Error after installing unified-red

479 views
Skip to first unread message

Hux

unread,
Oct 1, 2022, 7:13:36 PM10/1/22
to Unified-RED

Hi, 

I get the following error after installing unified-red: 

[error] MongooseError: Operation `roles.findOne()` buffering timed out after 10000ms

    at Timeout.<anonymous> (/Users/USERNAME/.node-red/node_modules/unified-red/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)

    at listOnTimeout (node:internal/timers:559:17)

    at processTimers (node:internal/timers:502:7)

Anyone else seen this?

Best

Colm

Samy Arbid

unread,
Oct 1, 2022, 7:53:31 PM10/1/22
to Unified-RED
Hi Colm,

It looks like you cannot connect to MongoDB. Are you trying to connect a local or hosted instance of MongoDB? If local, can you confirm that MongoDB is running?

Rodrigez Nonames

unread,
Dec 5, 2022, 9:47:24 AM12/5/22
to Unified-RED
Hey guys I am currently experiencing the same error..

I am sure that the username and password are correct as I can connect using mongo from a remote host, it's all accessible and the username and password are proper, what could be the issue?

This is the error:

5 Dec 14:45:24 - [error] MongooseError: Operation `roles.findOne()` buffering timed out after 10000ms
   at Timeout.<anonymous> (/root/node-red/node_modules/mongoose/lib/drivers/node-mongodb-native/collection.js:198:23)
   at listOnTimeout (node:internal/timers:564:17)
   at process.processTimers (node:internal/timers:507:7)



I appreciate any help!

Thanks in advance.

Alex


Rodrigez Nonames

unread,
Dec 5, 2022, 9:48:31 AM12/5/22
to Unified-RED
This is my config.json, I have only changed my username and password for the example.

{
   "dbConnection": "mongodb://localhost:27017/nodingred",
   "jwtsecret": "%)7}AQ`N`48BdM!Wxx5B;M,/sX(5z=#qsSBR9kmsVxg6sd3%(~/A#~6a3SQtd~@fj;NK_B%$D~m^~;/Db5BWR#952_C.@JF.{8(ngjqE)hW`?<_gb22RdD/M7H*GBX3qKJkkzsmP@M)'KRLPH;ee5Hm=KZ;-j4/8mb+g3(;Sq+7s{qNFX}X(CDA(DTB_C`pZH;{XsU3]Xc,-vk/)2(?+-`N:e93&(nQmUKBPkJvc+%h^{.w!!U8:qd?TK7*P,B)a",
   "smtp": {
       "fromAddress": null,
       "host": null,
       "port": 587,
       "ssl": false,
       "user": "myusername",
       "password": "mypassword"

Rodrigez Nonames

unread,
Dec 5, 2022, 11:04:04 AM12/5/22
to Unified-RED
Okay I got it fixed it's all good now..

The issue was that it was not resolving my localhost for some reason..

After using my public IP everything worked fine ( you must make sure your mongo is allowing public connections) 

Thanks anyway..

Antoine Debienne

unread,
Mar 3, 2023, 2:56:45 PM3/3/23
to Unified-RED
Hi everyone

I have the same issue, node red crash 
and I have :
[error] MongooseError: Operation `roles.findOne()` buffering timed out after 10000ms

I can't find the config.js file to set it 

any advice 

thank you

Antoine

Samy Arbid

unread,
Apr 24, 2023, 11:41:58 AM4/24/23
to Unified-RED
Antoine, I believe the file you’re looking for is api/config.json.
Reply all
Reply to author
Forward
0 new messages