ni-c / heimcontrol.js

Home-Automation with node.js and Raspberry PI
MIT License
1.41k stars 297 forks source link

how to close properly heimcontrol.js server? #52

Closed dammianhr closed 9 years ago

dammianhr commented 10 years ago

hello, i follow all the steps to install and the first time run nice! close the ssh windows and re run heimcontrol.js

/home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:286 throw err; ^ ReferenceError: requirejs is not defined at requireRecursive (/home/pi/heimcontrol.js/libs/PluginHelper.js:57:7) at PluginHelper.getPluginList (/home/pi/heimcontrol.js/libs/PluginHelper.js:67:5) at /home/pi/heimcontrol.js/heimcontrol.js:167:32 at /home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:283:11 at process._tickCallback (node.js:415:13)

anyone know what happens?

if remove, reinstall heimcontrol.js... run nice.

ni-c commented 10 years ago

Hey!

You can close heimcontrol.js by pressing CTRL+C.

Very strange behaviour, sounds like a filesystem issue. Maybe you have turned off your Raspberry without shutting down with sudo shutdown -h now?

dammianhr commented 10 years ago

hello! now, reinstall heimcontrol.js scrips, use it, so I closed with CTRL + C, shutdown the raspberry with sudo shutdown -h now. then turn o, run the script and got the same error log u.u

info - socket.io started connect.multipart() will be removed in connect 3.0 visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives connect.limit() will be removed in connect 3.0

/home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:286 throw err; ^ ReferenceError: requirejs is not defined at requireRecursive (/home/pi/heimcontrol.js/libs/PluginHelper.js:57:7) at PluginHelper.getPluginList (/home/pi/heimcontrol.js/libs/PluginHelper.js:67:5) at /home/pi/heimcontrol.js/heimcontrol.js:167:32 at /home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:283:11 at process._tickCallback (node.js:415:13)

thank you very much for sharing!!!!!!

mduffin95 commented 9 years ago

I too am experiencing this problem:

info  - socket.io started
connect.multipart() will be removed in connect 3.0
visit https://github.com/senchalabs/connect/wiki/Connect-3.0 for alternatives
connect.limit() will be removed in connect 3.0

/home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:286
          throw err;
                ^
ReferenceError: requirejs is not defined
    at requireRecursive (/home/pi/heimcontrol.js/libs/PluginHelper.js:57:7)
    at PluginHelper.getPluginList (/home/pi/heimcontrol.js/libs/PluginHelper.js:67:5)
    at /home/pi/heimcontrol.js/heimcontrol.js:169:32
    at /home/pi/heimcontrol.js/node_modules/mongodb/lib/mongodb/db.js:283:11
    at process._tickCallback (node.js:419:13)

Strangely I only get this error when I am running the app from outside of its directory. If I cd into the directory where heimcontrol.js is stored, and run node heimcontrol.js it works fine. If I go one level up and type node heimcontrol.js/heimcontrol.js I then get the above error.

Gagnon06 commented 9 years ago

Same thing as ascent95 here. Somebody found a solution? Cause I want to run heimcomtrol as a service with the forever module and I get this error.

tjanson commented 9 years ago

Does this work?

Gagnon06 commented 9 years ago

Yes it's working! Thanks!!

viru-git commented 7 years ago

How to run heimcontrol.js on windows system, what installations are required and what is the procedure to follow.