debugging the orchestrator
Hey all,
New to the Lorhammer project, but it looks like a vital bit of kit for us as we scale our IoT offering.
I'm running the latest download from the tags
page on CentOS 7.5 with Loraserver.io version 2.3.0
I'm trying to run the sample policy from the docs (http://lorhammer.itk.fr/quickstart/ "Launch Orchestrator"), however it doesn't stay online and exits without any obvious errors.
I've tried using strace
to see what's going on, but that didn't reveal anything either, and there's nothing in the logs about OOMKiller shutting it down.
The output from Orchestrator is as follows:
[lorhammer@mbc-loranode1 lorhammer]$ orchestrator -mqtt tcp://localhost:1883 -port 8899 -from-file "./resources/scenarios/simple.json"
WARN[0000] Welcome to the Lorhammer's Orchestrator
INFO[0000] Connected to Mqtt broker ClientID="orchestrator_\xa7ˏV\x99\xc0\x85J" logger=tools/mqtt mqtt="tcp://localhost:1883"
INFO[0000] Listen mqtt logger=orchestrator/main topic=/lorhammer/orchestrator
It then quits without any further error messages.
My config file looks as follows (passwords etc changed to protect the innocent ;) )
[{
"test": {
"type": "oneShot",
"repeatTime": "0"
},
"stopAllLorhammerTime": "0",
"sleepBeforeCheckTime": "0",
"shutdownAllLorhammerTime": "0",
"sleepAtEndTime": "0",
"requiredLorhammer": 1,
"maxWaitLorhammerTime": "5s",
"init": [{
"nsAddress": "tcp://127.0.0.1:6001",
"nbGatewayPerLorhammer": 1,
"nbNodePerGateway": [1, 1],
"nbScenarioReplayLaps": 0,
"scenarioSleepTime": ["10s", "10s"],
"receiveTimeoutTime": "1s",
"gatewaySleepTime": ["100ms", "500ms"],
"payloads" : [
{"value": "01B501002919000006018403131313121233", "date": 1488931200},
{"value": "01B501002919000006018403131313121244", "date": 1488931201}
]
}],
"provisioning": {
"type": "loraserver",
"config": {
"apiUrl": "http://localhost:8080/",
"abp": true,
"login": "admin",
"password": "<PASSWORD>",
"nbProvisionerParallel": 10
}
},
"check": {
"type": "none"
},
"deploy": {
"type": "none"
}
}]
The assumptions that I've made here are as follows:
- The latest version of LoRaServer.io is supported by Lorhammer
- The
nsAddress
setting in theinit
section should point at the ip address and port set bybind
innetwork_server.api
from the loraserver.io loraserver settings file - TCP connections to the Network Server are supported by prefixing the
nsAddress
withtcp://
All help is gratefully appreciated.