Very strange Openhab cloud problem

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?

Do you get more ( debug ) output if you run:

sudo DEBUG=* node app.js

Thanks for your response
Here is the debug log:

На чт, 22.10.2020 г. в 23:59 Wolfgang_S via openHAB Community <bot@community.openhab.org> написа:

debug.log (369 KB)

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 ?

Hi
Yes, redis-cli ping says PONG

When I start the app.js, only this shows up in redis monitor console:

redis-cli monitor

OK
1604225270.680424 [0 127.0.0.1:39094] “info”
1604225270.682600 [0 127.0.0.1:39096] “info”
And then the app.js exits

In your initial post you wrote

Have you also renamed the config-production.json file and edited its content.
Would you mind to share the content of the config.json file ?

Yes, sure
Here is the config:
{
“system”: {
“host”: “openhabcloud.foobar.com”,
“port”: “443”,
“protocol”: “https”,
“logger” : {
“dir”: “./logs”,
“maxFiles” : “7d”,
“level” : “debug”,
“morganOption” : null
},
“subDomainCookies”: false,
“muteNotifications”: false
},
“express”:{
“key” : “some express key”
},
“apn” : {
“gateway”: “gateway.push.apple.com”,
“cert”: “certs/aps/aps_production_cert.pem”,
“key”: “certs/aps/aps_production_key.pem”,
“passphrase”: “passphrase”
},
“gcm” : {
“jid”: “something@gcm.googleapis.com”,
“password”: “password”
},
“ifttt” : {
“iftttChannelKey” : “key”,
“iftttTestToken” : “token”
},
“mail”: {
“host” : “smtp”,
“port” : 465,
“user” : “foo@bar.com”,
“pass” : “password”
},
“mongodb”: {
“hosts”: [“127.0.0.1”],
“db”: “openhab”
},
“redis”: {
“host”: “127.0.0.1”,
“port”: “6379”
},
“mailer”: {
“host” : “smtp”,
“port”: 465,
“secureConnection”: true,
“user”: “foo@bar.com”,
“password”: “password”,
“from”: “openHAB Cloud your@email.address
},
“legal”: {
“terms” : “”,
“policy”: “”
},
“registration_enabled”: false
}

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.

Hello,
I tried with and without password without effect
I even tried to run it in a docker also without success
Any ideas?

at the moment I am out of ideas.
In case it does not run in docker, either my guess would be it is something with the network setup.

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.