Databases not connecting after a failed payment

exxayoHOBBY

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

exxayoHOBBY

a year ago

NA


exxayoHOBBY

a year ago

@Brody kindly check this out


a year ago

<#727685388893945877> #5


exxayoHOBBY

a year ago

what do you need ?


a year ago

please read it


exxayoHOBBY

a year ago

I have


exxayoHOBBY

a year ago

I am not sure what to look for


a year ago

5


exxayoHOBBY

a year ago

I have been trying to get this fixed for 6 hours straight


exxayoHOBBY

a year ago

Okay, am I supposed to do something ?


a year ago

read readme #5


exxayoHOBBY

a year ago

5) Be courteous of people's time and space. Do NOT directly ping/DM any Team/Helpers/etc.


exxayoHOBBY

a year ago

correct ?


exxayoHOBBY

a year ago

Got it,

I don't think I directly DM anyone


a year ago

ping


exxayoHOBBY

a year ago

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.


exxayoHOBBY

a year ago

this affects our business.


a year ago

are you on pro?


exxayoHOBBY

a year ago

just checked, it's hobby


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


exxayoHOBBY

a year ago

understood


exxayoHOBBY

a year ago

can you see my actual problem in the first message of the thread ?


a year ago

what is the state of your database deployment


exxayoHOBBY

a year ago

it's deployed


exxayoHOBBY

a year ago

i don't have a deployment issue


exxayoHOBBY

a year ago

only that the db fails to connect


a year ago

please tell me the state of the deployment


exxayoHOBBY

a year ago

Active


a year ago

send the deploy logs for postgres please -


exxayoHOBBY

a year ago

do i upload here ?


a year ago

yes


exxayoHOBBY

a year ago


a year ago

thanks, show me a screenshot of the public networking


exxayoHOBBY

a year ago

1247594418060398800


exxayoHOBBY

a year ago

should i wait for a fix on the dashboard or how is it going to work ?


a year ago

try re-deploying the database


exxayoHOBBY

a year ago

thanks


exxayoHOBBY

a year ago

was anything changed or you think redploying fixes it ?

I just redeployed but I see the same kind of log


exxayoHOBBY

a year ago


a year ago

can you connect to it


exxayoHOBBY

a year ago

1247599944593047600


exxayoHOBBY

a year ago

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


exxayoHOBBY

a year ago

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?


exxayoHOBBY

a year ago

trying that


exxayoHOBBY

a year ago

i have been able to connect


exxayoHOBBY

a year ago

using dbgate


a year ago

have your application connect to the database via the private network


exxayoHOBBY

a year ago

ok


exxayoHOBBY

a year ago

the application log prints the same issue and it's now crashed


exxayoHOBBY

a year ago

can't reach database server @ ….


a year ago

please include the full error message


exxayoHOBBY

a year ago


a year ago

what is your current start script


exxayoHOBBY

a year ago

start is default


exxayoHOBBY

a year ago

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


exxayoHOBBY

a year ago

i am not sure of that but we didnt put anything if it's the start command


exxayoHOBBY

a year ago

got it?


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


exxayoHOBBY

a year ago

nest start


a year ago

try changing that to sleep 3 && nest start


exxayoHOBBY

a year ago

doesn't work.


a year ago

please show me your scripts


exxayoHOBBY

a year ago

okay, i will check but just to be clear,

  1. if i make a new environment of the databse and enter it to the application, it will work.

  2. The app deploys and start properly, there is. no start problem as we have been using it until I noticed subscription ended today


exxayoHOBBY

a year ago

1247654119716683800


a year ago

please try my suggested fix


exxayoHOBBY

a year ago

it doesn't work


a year ago

im not seeing my suggested fix here?


exxayoHOBBY

a year ago

i entered it directly on railway


a year ago

please show me how you have implemented it


exxayoHOBBY

a year ago

i edited this now, I am waiting for the build


exxayoHOBBY

a year ago

I edited the "start" to with the value you sent


exxayoHOBBY

a year ago

1247664559410512000


a year ago

i had previously asked you to have your app connect to the database via the private network, please do that now


exxayoHOBBY

a year ago

yes, i used it and it crashed,

I just tried it now, same thing


a year ago

please always show the error


exxayoHOBBY

a year ago

it's the same thing, no differnce


a year ago

every little bit of info helps


a year ago

im only trying to help you


exxayoHOBBY

a year ago


a year ago

thank you


a year ago

is the database in the same project?


exxayoHOBBY

a year ago

what does in the same project mean ?


a year ago

same railway project


exxayoHOBBY

a year ago

no


a year ago

please show a screenshot of your railway project


exxayoHOBBY

a year ago

1247669708375851000


exxayoHOBBY

a year ago

i just tried creating a db in the project now, i deleted it after that.


exxayoHOBBY

a year ago

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


exxayoHOBBY

a year ago

got it, what's to be done ?


a year ago

move your bot service into the same project as the database


exxayoHOBBY

a year ago

i don't see how to move it


a year ago

its a manual process


exxayoHOBBY

a year ago

i create a new database ?


a year ago

i did not say that


exxayoHOBBY

a year ago

manual is not clear


a year ago

you need to deploy your bot service into the same project as the database


exxayoHOBBY

a year ago

ok


exxayoHOBBY

a year ago

this trick works.

Thanks!


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


exxayoHOBBY

a year ago

okay.

Why does it need the sleep 3


a year ago

the private network is not available for the first 3 seconds


exxayoHOBBY

a year ago

okay


exxayoHOBBY

a year ago

but what's wrong with the public network


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


exxayoHOBBY

a year ago

okay, but the database doesn't connect as well, so could that be from me ?


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


exxayoHOBBY

a year ago

okay, thanks


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


Databases not connecting after a failed payment - Railway Help Station