R
Railwayā€¢11mo ago
youngrake

Issues with connection

Hi, guys! I bought pro plan And moved server to another location, and now I am having connection issues?
39 Replies
Percy
Percyā€¢11mo ago
Project ID: N/A
maddsua
maddsuaā€¢11mo ago
Can you provide more specific detail on what issues did you encounter?
youngrake
youngrakeOPā€¢11mo ago
So, the url to connect is the same right? PrismaClientInitializationError: Can't reach database server at postgres.railway.internal:5432 We are getting that error on start
Brody
Brodyā€¢11mo ago
can you try adding a 3 second sleep to your start command? this is potentially a known issue
maddsua
maddsuaā€¢11mo ago
it could be doing migrations too you can check db logs see that
youngrake
youngrakeOPā€¢11mo ago
So I just moved the service existing one with the data to a pro plan team So it connects server works and then it failes again could it be sleep issue?
Brody
Brodyā€¢11mo ago
the database is in the same project, correct?
youngrake
youngrakeOPā€¢11mo ago
No
Brody
Brodyā€¢11mo ago
then you will never be able to connect to it via the private network the private network is scoped to the same project and same environment either move the database into the same project manually, or use it's public url
youngrake
youngrakeOPā€¢11mo ago
guys it connects and then disconnects I am receiving some requests And then it fails
Brody
Brodyā€¢11mo ago
please show a screenshot of your railway project
youngrake
youngrakeOPā€¢11mo ago
Can we make a call?
Brody
Brodyā€¢11mo ago
we both are only people from the community
maddsua
maddsuaā€¢11mo ago
yep. the team is on vacation rn
Brody
Brodyā€¢11mo ago
please send the screenshot
youngrake
youngrakeOPā€¢11mo ago
) How to make a dump I will then do manual deploy I cant connect even šŸ˜‚
Brody
Brodyā€¢11mo ago
respectfully, you seen to be ignoring my request for a screenshot, neither of us work for railway so a screenshot helps us get a better understanding of what's going on in your project if you have sensitive information like domains displayed in the screenshot you are more than welcome to block them out
youngrake
youngrakeOPā€¢11mo ago
do you need logs or what?
Brody
Brodyā€¢11mo ago
let's start with a screenshot please
youngrake
youngrakeOPā€¢11mo ago
Brody
Brodyā€¢11mo ago
my mistake, I should have specified that I would like an uncropped screenshot of the browsers viewport
youngrake
youngrakeOPā€¢11mo ago
Brody
Brodyā€¢11mo ago
you do indeed have the database in a separate project, you for sure can not use it's private domain. you need to use it's public domain
Adam
Adamā€¢11mo ago
or move it to the same project
maddsua
maddsuaā€¢11mo ago
which would be better in the long run
youngrake
youngrakeOPā€¢11mo ago
guys, I only need database on the railway For now
Brody
Brodyā€¢11mo ago
hey now let's not overcomplicate this
maddsua
maddsuaā€¢11mo ago
then we should've started from this then public address is the solution
Brody
Brodyā€¢11mo ago
yes public address
youngrake
youngrakeOPā€¢11mo ago
Okay trying Thanks anyway I am connecting the same as before moving to another project leterally was not changing anything
Brody
Brodyā€¢11mo ago
have you tried the public address
youngrake
youngrakeOPā€¢11mo ago
Yes I was using that before it works works after 5mins stops backend tries to reconnect 20 secs - then it works again 5 mins
Brody
Brodyā€¢11mo ago
can you replicate this behavior locally?
youngrake
youngrakeOPā€¢11mo ago
2023-12-28 17:30:32.322 UTC [53] LOG: could not receive data from client: Connection reset by peer Yes locally the same
Brody
Brodyā€¢11mo ago
have you tried restarting the database?
youngrake
youngrakeOPā€¢11mo ago
Yes Where I can check postgres version?
Brody
Brodyā€¢11mo ago
whats the source image of the service
youngrake
youngrakeOPā€¢11mo ago
GitHub
Build software better, together
GitHub is where people build software. More than 100 million people use GitHub to discover, fork, and contribute to over 420 million projects.
Brody
Brodyā€¢11mo ago
then its version 16
Want results from more Discord servers?
Add your server