redis and mongodb I got problem with .env

hknfrt
HOBBY

10 months ago

Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal

Solved

0 Replies

hknfrt
HOBBY

10 months ago

project ID:d517069c-0bb0-4771-ac55-08ff3b9cd8e8


10 months ago

if you are using ioredis, please see our docs for that -


hknfrt
HOBBY

10 months ago

thank you, I will check it


hknfrt
HOBBY

10 months ago

doesn't work for me


10 months ago

are you using ioredis?


hknfrt
HOBBY

10 months ago

yes


10 months ago

is redis in the same project as your app?


hknfrt
HOBBY

10 months ago

nope


hknfrt
HOBBY

10 months ago

when I run the locally everythings working but on railway


hknfrt
HOBBY

10 months ago

db connection failed


10 months ago

you need to have redis in the same project


hknfrt
HOBBY

10 months ago

ok I will try


hknfrt
HOBBY

10 months ago

still same


hknfrt
HOBBY

10 months ago

[ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:109:26) ERR! Db Failed to setup database connection { short_message: 'TESTAPP [Exception] Authentication failed.', full_message: 'MongoServerError: Authentication failed.\n' + ' at Connection.onMessage (/testapp/node_modules/mongodb/lib/cmap/connection.js:231:30)\n' + ' at MessageStream. (/testapp/node_modules/mongodb/lib/cmap/connection.js:61:60)\n' + ' at MessageStream.emit (node:events:518:28)\n' + ' at processIncomingData (/testapp/node_modules/mongodb/lib/cmap/message_stream.js:125:16)\n' + ' at MessageStream._write (/testapp/node_modules/mongodb/lib/cmap/message_stream.js:33:9)\n' + ' at writeOrBuffer (node:internal/streams/writable:572:12)\n' + ' at _write (node:internal/streams/writable:501:10)\n' + ' at Writable.write (node:internal/streams/writable:510:10)\n' + ' at Socket.ondata (node:internal/streams/readable:1009:22)\n' + ' at Socket.emit (node:events:518:28)', _exception: 'yes', _error: 'Authentication failed.', _code: '18', _codeName: 'AuthenticationFailed', facility: 'testapp', host: 'f508cab8ffc2', timestamp: 1733253859.991, _component: 'testapp' } [ioredis] Unhandled error event: Error: getaddrinfo ENOTFOUND redis.railway.internal


10 months ago

are you getting this during build or runtime?


hknfrt
HOBBY

10 months ago

runtime


hknfrt
HOBBY

10 months ago

build is ok


10 months ago

screenshot of your project please


hknfrt
HOBBY

10 months ago

dashbord?


10 months ago

of your project canvas


hknfrt
HOBBY

10 months ago

1313589750128447500


10 months ago

okay now please see this docs


hknfrt
HOBBY

10 months ago

ok


hknfrt
HOBBY

10 months ago

I did and not worked


hknfrt
HOBBY

10 months ago

I solved, thanks for intersted


10 months ago

!s


Status changed to Solved brody 10 months ago


redis and mongodb I got problem with .env - Railway Help Station