New random Issue with deployment, started getting this issue after two weeks of not deploying the project
dennekjr
TRIALOP

a year ago

MongoServerSelectionError: getaddrinfo ENOTFOUND mongodb-kn_n.railway.internal

12 77.97 at Topology.selectServer (/app/node_modules/mongodb/lib/sdam/topology.js:303:38)

12 77.97 at async Topology.connect (/app/nodemodules/mongodb/lib/sdam/topology.js:196:28)

12 77.97 at async Topology.connect (/app/node_modules/mongodb/lib/sdam/topology.js:158:13)

12 77.97 at async topologyConnect (/app/nodemodules/mongodb/lib/mongoclient.js:223:17)

12 77.97 at async MongoClient.connect (/app/nodemodules/mongodb/lib/mongo_client.js:236:13)

12 77.97 at async MongoClient.connect (/app/nodemodules/mongodb/lib/mongoclient.js:161:13) {

12 77.97 reason: TopologyDescription {

12 77.97 type: 'Unknown',

12 77.97 servers: Map(1) {

12 77.97 'mongodb-kn_n.railway.internal:27017' => [ServerDescription]

12 77.97 },

12 77.97 stale: false,

12 77.97 compatible: true,

12 77.97 heartbeatFrequencyMS: 10000,

12 77.97 localThresholdMS: 15,

12 77.97 setName: null,

12 77.97 maxElectionId: null,

12 77.97 maxSetVersion: null,

12 77.97 commonWireVersion: 0,

12 77.97 logicalSessionTimeoutMinutes: null

12 77.97 },

12 77.97 code: undefined,

12 77.97 [Symbol(errorLabels)]: Set(0) {},

12 77.97 [cause]: MongoNetworkError: getaddrinfo ENOTFOUND mongodb-kn_n.railway.internal

12 77.97 at connectionFailureError (/app/node_modules/mongodb/lib/cmap/connect.js:356:20)

12 77.97 at Socket. (/app/node_modules/mongodb/lib/cmap/connect.js:272:44)

12 77.97 at Object.onceWrapper (node:events:632:26)

12 77.97 at Socket.emit (node:events:517:28)

12 77.97 at emitErrorNT (node:internal/streams/destroy:151:8)

12 77.97 at emitErrorCloseNT (node:internal/streams/destroy:116:3)

12 77.97 at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {

12 77.97 [Symbol(errorLabels)]: Set(1) { 'ResetPool' },

12 77.97 [cause]: Error: getaddrinfo ENOTFOUND mongodb-kn_n.railway.internal

12 77.97 at GetAddrInfoReqWrap.onlookupall as oncomplete

12 77.97 at GetAddrInfoReqWrap.callbackTrampoline (node:internal/async_hooks:128:17) {

12 77.97 errno: -3008,

12 77.97 code: 'ENOTFOUND',

12 77.97 syscall: 'getaddrinfo',

12 77.97 hostname: 'mongodb-kn_n.railway.internal'

12 77.97 }

12 77.97 }

12 77.97 }

View Deploy details

> ⓘ Deployment information is only viewable by project members and Railway employees.

Solved

3 Replies

a year ago

Hello,

You are trying to access the private network during build.

The private network is not available during build.

Please have your app connect to the database publicly during build and privately during runtime.

Best,
Brody


Status changed to Solved brody about 1 year ago


Status changed to Open dennekjr about 1 year ago


brody

Hello,You are trying to access the private network during build.The private network is not available during build.Please have your app connect to the database publicly during build and privately during runtime. Best,Brody

dennekjr
TRIALOP

a year ago

This is an issue that only started occurring randomly a few days ago. Why wasn't this triggered for weeks during similar builds and only on a specidic page?


a year ago

Hello,

The private network has not been available during build since forever, you are now seeing this error due to a recent change you have made.

Please see my guidance above on what to do to remedy this issue.


Loading...