davidcreager / smartthings-smartbulbs

A server to intermediate between smartthings and mipow or yeelight smartbulbs. Also the smartapp and devicehandler groovy files
18 stars 20 forks source link

Failed to start node.js server to manage yeelight and miPow bulbs. #5

Open studio420 opened 6 years ago

studio420 commented 6 years ago

I've been trying to get the node up and running without much luck. All the steps in the README go silent, without any errors, until the last step where I check the status of the server/node, then it shows this error: `--- home-server@homeserver:/var/opt/node$ sudo cp /var/opt/node/smartthings-smartbulbs/smartbulbserver.service /etc/systemd/system/ home-server@homeserver:/var/opt/node$ sudo cp /var/opt/node/smartthings-smartbulbs/properties.json /home/smartbulbs/ home-server@homeserver:/var/opt/node$ sudo cp /var/opt/node/smartthings-smartbulbs/characteristics.json /home/smartbulbs/ home-server@homeserver:/var/opt/node$ sudo chown smartbulbs:smartbulbs /home/smartbulbs/properties.json home-server@homeserver:/var/opt/node$ sudo chown smartbulbs:smartbulbs /home/smartbulbs/characteristics.json home-server@homeserver:/var/opt/node$ sudo systemctl daemon-reload home-server@homeserver:/var/opt/node$ sudo systemctl enable smartbulbserver home-server@homeserver:/var/opt/node$ sudo systemctl start smartbulbserver home-server@homeserver:/var/opt/node$ sudo systemctl status smartbulbserver ● smartbulbserver.service - node.js server to manage yeelight and miPow bulbs Loaded: loaded (/etc/systemd/system/smartbulbserver.service; enabled; vendor preset: enabled) Active: inactive (dead) (Result: exit-code) since fim 2018-01-11 21:35:07 GMT; 2s ago Process: 22891 ExecStart=/var/opt/node/smartthings-smartbulbs/smartbulbserver.js (code=exited, status=127) Main PID: 22891 (code=exited, status=127)

jan 11 21:35:06 homeserver systemd[1]: smartbulbserver.service: Main process exited, code=exited, status=127/n/a jan 11 21:35:06 homeserver systemd[1]: smartbulbserver.service: Unit entered failed state. jan 11 21:35:06 homeserver systemd[1]: smartbulbserver.service: Failed with result 'exit-code'. jan 11 21:35:07 homeserver systemd[1]: smartbulbserver.service: Service hold-off time over, scheduling restart. jan 11 21:35:07 homeserver systemd[1]: Stopped node.js server to manage yeelight and miPow bulbs. jan 11 21:35:07 homeserver systemd[1]: smartbulbserver.service: Start request repeated too quickly. jan 11 21:35:07 homeserver systemd[1]: Failed to start node.js server to manage yeelight and miPow bulbs. ---` @davidcreager Is maybe some steps missing from the README or what can I try next? Also I think it is not very clear what branch we should use. I use (checkout) "V3.0" because the README now say "V3". Is that not a correct assumption? I also try what @ajw107 suggested in the last issue #3 but without any success. I really would like to, finally, have my Yee bulbs in my SmartThings setup so any help much appreciated.

ajw107 commented 6 years ago

Sorry for the delay @studio420, but if you are still having problem, if you go back to my post in issue #3 You will see I've updated my post with more info on how to get it working okay.