-
Notifications
You must be signed in to change notification settings - Fork 20
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
service failed to start #7
Comments
Did you get any log messages? Maybe try running nodejs /usr/local/bin/cgateweb/index.js directly and see if there are any errors? |
No log created at /usr/local/bin/cgateweb/log |
Running index.js directly worked for a while. I was receiving MQTT messages into node-red and was able to respond and publish to C-gate. After a while (less than an hour, I got distracted) MQTT messages stopped. ls -l /usr/local/bin/cgateweb Directly starting index.js now appears to have no affect then hangs with no command prompt or MQTT messages sent. |
That's weird. Maybe try changing this line in /etc/systemd/system/cgateweb.service ExecStart=/usr/local/bin/cgateweb/index.js Then sudo systemctl daemon-reload The logs won't go to that folder anymore, journalctl should manage them, they should appear when you sudo service cgateweb status Have you turned on logging in the settings file? Might give a bit more information. |
In case, it helps, my cgateweb.service from my pi is below. Note that
`[Unit] [Service] [Install] |
logging is set to true. Modded cgateweb.service as suggested cgateweb.service - cgateweb Nov 05 15:27:32 raspberrypi systemd[1]: cgateweb.service holdoff time over, scheduling restart. |
Sorry, forgot to add this: |
Also, are you running raspbian? |
Yes, on raspbian, installed from NOOBS a couple of weeks ago. apt-get update & upgrade after the installation, so should be up to date. Done sudo chmod +x /usr/local/bin/cgateweb/index.js then sudo systemctl daemon-reload again, same problem. service cgateweb status |
I may have missed a chmod in the initial setup. I appear to have a running service and MQTT messages being relayed. I'll test for a couple of days, fingers crossed it's all my fault :) |
Good to hear, I wasn't really sure where to look next. :S |
I'm all fixed, everything is starting and running ok across reboots. Would you be interested in a token financial gesture for your work? This is already pretty useful to me :) |
I've got an Amazon wishlist on my blog, but I'm not chasing anything for helping. I'm happy that my hobby can help other people with theirs. :) |
Followed the install instructions at http://addictedtopi.tumblr.com/post/101165284373/setting-up-cgateweb-c-bus-to-mqtt-on-linux
service cgateweb status
● cgateweb.service - cgateweb
Loaded: loaded (/etc/systemd/system/cgateweb.service; enabled)
Active: failed (Result: start-limit) since Sun 2017-11-05 10:55:13 UTC; 8min ago
Process: 2515 ExecStart=/usr/bin/nodejs /usr/local/bin/cgateweb/index.js (code=exited, status=203/EXEC)
Main PID: 2515 (code=exited, status=203/EXEC)
The text was updated successfully, but these errors were encountered: