-
-
Notifications
You must be signed in to change notification settings - Fork 130
Systemd startup and disconnects #185
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Does anyone know what status 15 is?? pi@RPi:~ $ sudo systemctl status ot-recorder.service -l |
Judging by the diagnostics printed by Recorder, this are connectivity issues to your configured MQTT broker. The code 15 you're seeing is from the mosquitto library:
|
Have the same problem. Am able to start the service manually when the system comes up but systemd fails to start it. Have added Restart=Always to the event config file but still doesn't come up by itself. Also note that I am using CloudMQT service. Waiting to get a response on this issue. |
Hi, I am having a similar issue. After booting, I have a 15 error, I have to run the service manually and it then works. I tried adding 'owntracks/#' manually to ot-recorder.service which I have read elsewhere as a possible solution.
My configuration is as follows:
My ot-recorder.service file is below (default, not changed anything....do I need to?):
|
Could it be the ot-recorder service is started before network and/or mqtt service? Starting it after these fixes the problem ? |
Not sure how to control the startup sequence for the recorder dependencies? |
- FIX: systemd launch and default topics in default files (#185) - NEW: name of Lua revgeo function can be set in JSON payload - NEW: support TLS PSK (#74) - NEW: support for a Lua function to perform reverse Geo (#149) - FIX: support for FREEBSD in Makefile/config.mk.in (#163) - NEW: support for global store of geo fences (#178) - NEW: support for CA_PATH and TLS client certificates - FIX: setting http_port = 0 took CPU to unheard heights (#176) - NEW: Add support for OSM using Leaflet, by Sven Klomp (#173) - NEW: support for waypoints / geo-fences (WARNING: you must --initialize) - FIX: built-in Web server serves apikey.js with application/javascript mime type (#168) - FIX: Usage now shows missing OTR_BROWSERAPIKEY (#167)
I've spent ages trying to get this right and on the platforms I've tested it appears to work. Packages |
So, even with What I've experimented with is to add the following line to the unit file:
The sleep is lousy, but if that's the only way it'll work ... This is now in production here on 3 different machines and after 12 reboots the Recorder always launches correctly. Should you still have issues in |
Works! |
- FIX: GPX exporter gets xmlns (#215) - FIX: wait on start of systemd to allow Mosquitto to start (#185) - FIX: s/json_remove_from_parent/_delete/g - NEW: Add support for OwnTracks Pico by pretending `../pico` is a base topic (#205) - UPD: rollback: cards are now once again stored at user/device/user-device.json (but map/table also uses user/user.json if it exists)
I have not been able to get Systemd startup to work. I have tried with both non-tls and TLS with the same results. I am getting failed code exited status=15. If I restart it then it works. After it starts, I get constant Disconnected with Reason 0xE. Any help would be appreciated. Thanks
After sudo reboot:
now restart and no more error code but disconnect errors
The text was updated successfully, but these errors were encountered: