Hello guys,
I have downloaded the cloud software from git, installed nodejs 7.10.1 and everything went okay. But when I start the app.js this happens:
sudo node app.js
(node:32231) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(node:32231) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
root@host:/#
The logs shows nothing as well:
2020-10-22 19:10:07:077 info: openHAB-cloud: Backend service is starting up…
2020-10-22 19:10:07:077 info: openHAB-cloud: Backend logging initialized…
2020-10-22 19:10:09:099 info: openHAB-cloud: Initializing XMPP connection to GCM
2020-10-22 19:10:09:099 info: openHAB-cloud: Connecting to Redis at 127.0.0.1:6379
2020-10-22 19:10:12:1212 info: openHAB-cloud: Mailer will emulate sending in development environment
2020-10-22 19:10:13:1313 info: opneHAB-cloud: Trying to connect to mongodb at: mongodb://127.0.0.1/openhab?poolSize=50
2020-10-22 19:10:13:1313 info: openHAB-cloud: Scheduling a statistics job (every 5 min)
2020-10-22 19:10:13:1313 info: openHAB-cloud: IFTTT is configured, app handling IFTTT capabilities…
2020-10-22 19:10:13:1313 info: openHAB-cloud: express server listening on port 3000
2020-10-22 19:13:35:3535 info: openHAB-cloud: Backend service is starting up…
2020-10-22 19:13:35:3535 info: openHAB-cloud: Backend logging initialized…
2020-10-22 19:13:36:3636 info: openHAB-cloud: Initializing XMPP connection to GCM
2020-10-22 19:13:37:3737 info: openHAB-cloud: Connecting to Redis at 127.0.0.1:6379
2020-10-22 19:13:40:4040 info: openHAB-cloud: Mailer will emulate sending in development environment
2020-10-22 19:13:40:4040 info: opneHAB-cloud: Trying to connect to mongodb at: mongodb://127.0.0.1/openhab?poolSize=50
2020-10-22 19:13:40:4040 info: openHAB-cloud: Scheduling a statistics job (every 5 min)
2020-10-22 19:13:41:4141 info: openHAB-cloud: IFTTT is configured, app handling IFTTT capabilities…
2020-10-22 19:13:41:4141 info: openHAB-cloud: express server listening on port 3000
Of course port 3000 is closed and there is no server running?
Any ideas?
I can’t see any item that gives a hint pointing to a problem.
While the first output that you posted shows the same messages in a loop I am wondering why this one does not.
After the output “express server listening on port 3000” next message normally shows that it was possible to connect to the Redis instance. This is not showing up.
Are you able to connect to Redis manually ?
I just would like to check with you if no password was set during setup of mongodb and redis.
They will work without a password but in case one was set user and password need to be added to config.json.
This is a bit old, but found myself a similar issue and I have had to compile a newer version of mongodb for it to work.
If you are using a linux distribution, or Windows, that provides MongoDB >= 3.2, just upgrade. If you are using raspbian (debian) on a 32-bir raspberry, you may need to compile MongoDB yourself. A step by step guide to get a working MongoDB 3.2 on a rpi 3 here.