2 years ago
I have some services running on Railway for a long time but I missed the payment.
I paid and restarted all services but the databases were not connecting, I have 3 of them.
Kindly help
115 Replies
2 years ago
<#727685388893945877> #5
2 years ago
please read it
2 years ago
5
2 years ago
read readme #5
5) Be courteous of people's time and space. Do NOT directly ping/DM any Team/Helpers/etc.
2 years ago
ping
Okay, as i said earlier I have been trying to fix the db connection issue on my railway for about 6 hours now.
They are 3 different services and they are in production.
2 years ago
are you on pro?
2 years ago
you should not be running a business on a hobby plan meant only for hobby projects, please upgrade to pro at your earliest convenience
2 years ago
what is the state of your database deployment
2 years ago
please tell me the state of the deployment
2 years ago
send the deploy logs for postgres please -
2 years ago
yes
2 years ago
thanks, show me a screenshot of the public networking
2 years ago
try re-deploying the database
was anything changed or you think redploying fixes it ?
I just redeployed but I see the same kind of log
2 years ago
can you connect to it
after showing this for a while, it sometimes open up the data then it disconnects again
2 years ago
please use a proper database client like dbgate
it works before now,
However, my interest is not seeing the db, but to make the connection work on the backend we are using.
The connection issue breaks the backend
2 years ago
are you able to connect to the database with dbgate?
2 years ago
have your application connect to the database via the private network
2 years ago
please include the full error message
2 years ago
what is your current start script
The database itself fails to connect, so i don't think it is an issue from the application
2 years ago
I don't know what "start is default" means, please tell me what you have for your start script
2 years ago
please tell me what you have for your start script, if you are unfamiliar with node development, this can be found in your package.json
2 years ago
try changing that to sleep 3 && nest start
2 years ago
please show me your scripts
okay, i will check but just to be clear,
if i make a new environment of the databse and enter it to the application, it will work.
The app deploys and start properly, there is. no start problem as we have been using it until I noticed subscription ended today
2 years ago
please try my suggested fix
2 years ago
im not seeing my suggested fix here?
2 years ago
please show me how you have implemented it
2 years ago
i had previously asked you to have your app connect to the database via the private network, please do that now
2 years ago
please always show the error
2 years ago
every little bit of info helps
2 years ago
im only trying to help you
2 years ago
thank you
2 years ago
is the database in the same project?
2 years ago
same railway project
2 years ago
please show a screenshot of your railway project
I have 4 different services running.
1 worked well after making the payment but the remaining have issues with db connection
2 years ago
your database needs to be in the same project to use the private network
2 years ago
move your bot service into the same project as the database
2 years ago
its a manual process
2 years ago
i did not say that
2 years ago
you need to deploy your bot service into the same project as the database
2 years ago
no problem
2 years ago
you do need to keep the sleep 3
2 years ago
please dont remove that or you will face issues again
2 years ago
the private network is not available for the first 3 seconds
2 years ago
nothing, you had something missconfigured, so its better to use the private network as that wont result in database <--> service egress fees
2 years ago
this would be due to a misconfiguration on your side, unfortunately i was not able to find out what that is, but either way, using the private network is much preferred
2 years ago
no problem!
2 years ago
tl;dr: add a 3 second sleep to the beginning of your start command and connect to the database over the private network




