Nodebb can't resolve mongodb Atlas domain when I install.
Unsolved
Technical Support
-
When I install nodebb on my macbook, it says
NodeBB Setup Aborted MongoServerSelectionError: getaddrinfo ENOTFOUND nodebb.p6ruuly.mongodb.net at AbortSignal.<anonymous> (/Users/xxx/github/nodebb-3.x/node_modules/mongodb/lib/sdam/topology.js:276:34) at AbortSignal.[nodejs.internal.kHybridDispatch] (node:internal/event_target:736:20) at AbortSignal.dispatchEvent (node:internal/event_target:678:26) at abortSignal (node:internal/abort_controller:292:10) at AbortController.abort (node:internal/abort_controller:323:5) at Timeout.<anonymous> (/Users/xxx/github/nodebb-3.x/node_modules/mongodb/lib/utils.js:1010:92) at listOnTimeout (node:internal/timers:559:17) at processTimers (node:internal/timers:502:7)
I use Mongodb Atlas free database on cloud.
-
When I was testing with mongodb atlas I used the below connection string and it was working fine. This goes in your nodebb config.json under mongo block.
"mongo": { "uri": "mongodb+srv://<username>:<password>@<cluster_name>.mongodb.net/<database_name>?retryWrites=true&w=majority" }
Replace
<username>
,<password>
,<cluster_name>
and<database_name>
with your own values.
Copyright © 2024 NodeBB | Contributors