a year 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
0 Replies
a year ago
<#727685388893945877> #5
a year ago
please read it
a year ago
5
a year ago
read readme #5
5) Be courteous of people's time and space. Do NOT directly ping/DM any Team/Helpers/etc.
a year 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.
a year ago
are you on pro?
a year 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
a year ago
what is the state of your database deployment
a year ago
please tell me the state of the deployment
a year ago
send the deploy logs for postgres please -
a year ago
yes
a year ago
thanks, show me a screenshot of the public networking
a year 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
a year ago
can you connect to it
after showing this for a while, it sometimes open up the data then it disconnects again
a year 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
a year ago
are you able to connect to the database with dbgate?
a year ago
have your application connect to the database via the private network
a year ago
please include the full error message
a year 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
a year ago
I don't know what "start is default" means, please tell me what you have for your start script
a year 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
a year ago
try changing that to sleep 3 && nest start
a year 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
a year ago
please try my suggested fix
a year ago
im not seeing my suggested fix here?
a year ago
please show me how you have implemented it
a year ago
i had previously asked you to have your app connect to the database via the private network, please do that now
a year ago
please always show the error
a year ago
every little bit of info helps
a year ago
im only trying to help you
a year ago
thank you
a year ago
is the database in the same project?
a year ago
same railway project
a year 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
a year ago
your database needs to be in the same project to use the private network
a year ago
move your bot service into the same project as the database
a year ago
its a manual process
a year ago
i did not say that
a year ago
you need to deploy your bot service into the same project as the database
a year ago
no problem
a year ago
you do need to keep the sleep 3
a year ago
please dont remove that or you will face issues again
a year ago
the private network is not available for the first 3 seconds
a year ago
nothing, you had something missconfigured, so its better to use the private network as that wont result in database <--> service egress fees
a year 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
a year ago
no problem!
a year ago
tl;dr: add a 3 second sleep to the beginning of your start command and connect to the database over the private network