R
Railwayβ€’14mo ago
Audi

Redis Error

Redis Error While deploying , I am getting this error. on local machine It working properly . but while deploying same on Railway app am facing the below issue. ConnectionTimeoutError: Connection timeout at Socket.<anonymous> (/app/node_modules/@redis/client/dist/lib/client/socket.js:142:124) at Object.onceWrapper (node:events:628:28) at Socket.emit (node:events:514:28) at Socket._onTimeout (node:net:589:8) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) error: Error: Connection timeout at Socket.<anonymous> (/app/node_modules/@redis/client/dist/lib/client/socket.js:142:124) at Object.onceWrapper (node:events:628:28) at Socket.emit (node:events:514:28) at Socket._onTimeout (node:net:589:8) at listOnTimeout (node:internal/timers:573:17) at process.processTimers (node:internal/timers:514:7) [nodemon] app crashed - waiting for file changes before starting.
22 Replies
Percy
Percyβ€’14mo ago
Project ID: N/A
Audi
AudiOPβ€’14mo ago
where do i get project id
Fragly
Fraglyβ€’14mo ago
quickest way is through the URL
No description
Fragly
Fraglyβ€’14mo ago
otherwise you can press ctrl+k on your deployment, click on debug info and you should have it there
Audi
AudiOPβ€’14mo ago
a3f276ee-0ba4-4764-a173-1723fc3cbd42
Fragly
Fraglyβ€’14mo ago
Are you sure you're connecting to the right URL? like you're not connecting to localhost or something, right?
Audi
AudiOPβ€’14mo ago
yeah I very sure that i am connect to redis server . which is also on railway app
Medim
Medimβ€’14mo ago
can you please share the entirety of your logs? https://bookmarklets.up.railway.app/log-downloader/ cause the one u sent its unreadable for me on mobile πŸ’€ but that seems like a connection issue
Audi
AudiOPβ€’14mo ago
Here is the deployment log
Fragly
Fraglyβ€’14mo ago
using nodemon in prod πŸ€”
Brody
Brodyβ€’14mo ago
first off, never use nodemon on railway, second, increase the connection timeout
Audi
AudiOPβ€’14mo ago
sure let me try that bro facing same error. still.
Fragly
Fraglyβ€’14mo ago
how are you connecting to your redis database?
Audi
AudiOPβ€’14mo ago
through REDIS_HOST= REDIS_PORT= REDIS_USER= REDIS_PASS
Fragly
Fraglyβ€’14mo ago
the railway provided variables?
Audi
AudiOPβ€’14mo ago
yeah its working local machine. but while deploying its throwing error.
Fragly
Fraglyβ€’14mo ago
I don't understand how that's possible
Brody
Brodyβ€’14mo ago
turn off private networking @Audi ^
Audi
AudiOPβ€’14mo ago
hey @Brody thankyou so much man. It worked turning of privat chefkiss
Brody
Brodyβ€’14mo ago
increasing the connection time limit or connection retry attempts would have also worked
Audi
AudiOPβ€’14mo ago
ohk got it.
Want results from more Discord servers?
Add your server