R
Railwayā€¢6mo 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ā€¢6mo ago
Project ID: N/A
maddsua
maddsuaā€¢6mo ago
Can you provide more specific detail on what issues did you encounter?
youngrake
youngrakeā€¢6mo 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ā€¢6mo ago
can you try adding a 3 second sleep to your start command? this is potentially a known issue
maddsua
maddsuaā€¢6mo ago
it could be doing migrations too you can check db logs see that
youngrake
youngrakeā€¢6mo 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ā€¢6mo ago
the database is in the same project, correct?
youngrake
youngrakeā€¢6mo ago
No
Brody
Brodyā€¢6mo 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
youngrakeā€¢6mo ago
guys it connects and then disconnects I am receiving some requests And then it fails
Brody
Brodyā€¢6mo ago
please show a screenshot of your railway project
youngrake
youngrakeā€¢6mo ago
Can we make a call?
Brody
Brodyā€¢6mo ago
we both are only people from the community
maddsua
maddsuaā€¢6mo ago
yep. the team is on vacation rn
Brody
Brodyā€¢6mo ago
please send the screenshot
youngrake
youngrakeā€¢6mo ago
) How to make a dump I will then do manual deploy I cant connect even šŸ˜‚
Brody
Brodyā€¢6mo 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
youngrakeā€¢6mo ago
do you need logs or what?
Brody
Brodyā€¢6mo ago
let's start with a screenshot please
youngrake
youngrakeā€¢6mo ago
Brody
Brodyā€¢6mo ago
my mistake, I should have specified that I would like an uncropped screenshot of the browsers viewport
youngrake
youngrakeā€¢6mo ago
Brody
Brodyā€¢6mo 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ā€¢6mo ago
or move it to the same project
maddsua
maddsuaā€¢6mo ago
which would be better in the long run
youngrake
youngrakeā€¢6mo ago
guys, I only need database on the railway For now
Brody
Brodyā€¢6mo ago
hey now let's not overcomplicate this
maddsua
maddsuaā€¢6mo ago
then we should've started from this then public address is the solution
Brody
Brodyā€¢6mo ago
yes public address
youngrake
youngrakeā€¢6mo ago
Okay trying Thanks anyway I am connecting the same as before moving to another project leterally was not changing anything
Brody
Brodyā€¢6mo ago
have you tried the public address
youngrake
youngrakeā€¢6mo 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ā€¢6mo ago
can you replicate this behavior locally?
youngrake
youngrakeā€¢6mo 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ā€¢6mo ago
have you tried restarting the database?
youngrake
youngrakeā€¢6mo ago
Yes Where I can check postgres version?
Brody
Brodyā€¢6mo ago
whats the source image of the service
youngrake
youngrakeā€¢6mo 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ā€¢6mo ago
then its version 16