ni-c / heimcontrol.js

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

I can not run node heimcontrol.js #3

Closed PascualArroyo closed 11 years ago

PascualArroyo commented 11 years ago

When running "node heimcontrol.js" the following error occurs "Failed to connect to MongoDB: Error: failed to connect to [127.0.0.1:27017]"

I followed the tutorial to complete but not working.

I installed mongopi as you indicate in the tutorial. You know you can be?

pi@RaspberryPi ~/heimcontrol.js $ sudo service mongodb start [FAIL] Starting database: mongodb failed! pi@RaspberryPi ~/heimcontrol.js $

pi@RaspberryPi ~/heimcontrol.js $ mongo MongoDB shell version: 2.1.1 connecting to: test Mon Aug 12 18:10:55 Error: couldn't connect to server 127.0.0.1:27017 src/mongo/shell/mongo.js:91 exception: connect failed

ni-c commented 11 years ago

Can you post the output of the mongodb logs? That should tell us why it failed.

You can find the log in:

/var/log/mongodb/mongodb.log
PascualArroyo commented 11 years ago

thanks for the help already works

first run "mongod" then "node heimcontrol.js"

ni-c commented 11 years ago

You're right, i forgot that in the installation tutorial. I have added it now.