I’m setting up a Galaxy staging environment, and there seems to be something I need to do to access my existing MongoDB instance from staging. I’m getting this error when running on staging.myapp.com:
MongoServerSelectionError: Server selection timed out after 30000 ms
at Timeout._onTimeout (/app/bundle/programs/server/npm/node_modules/meteor/npm-mongo/node_modules/mongodb/src/sdam/topology.ts:591:30)
at listOnTimeout (node:internal/timers:581:17)
at processTimers (node:internal/timers:519:7) {
reason: TopologyDescription {
type: 'ReplicaSetNoPrimary',
servers: Map(3) {
'cluster0-shard-00-01.o4usp.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-02.o4usp.mongodb.net:27017' => [ServerDescription],
'cluster0-shard-00-00.o4usp.mongodb.net:27017' => [ServerDescription]
},
stale: false,
compatible: true,
heartbeatFrequencyMS: 10000,
localThresholdMS: 15,
setName: 'atlas-wrzo7s-shard-0',
maxElectionId: null,
maxSetVersion: null,
commonWireVersion: 0,
logicalSessionTimeoutMinutes: null
},
code: undefined,
[Symbol(errorLabels)]: Set(0) {}
What am I missing?
Update
MongoDB support says I need to get the WAN IP of my staging server and add it to my MongoDB whitelist.