Problem with connection database in deploy
lucasgarcia98
HOBBYOP

2 years ago

Hi, i have a problem with deploy, i use prisma ORM, with NestJS, and he's show me this log error:
$ /app/node_modules/.bin/prisma migrate deploy

Prisma schema loaded from prisma/schema.prisma

Datasource "db": PostgreSQL database "railway", schema "public" at "-----railway.internal:5432"

Error: P1001: Can't reach database server at ------.railway.internal:5432

Please make sure your database server is running at -------.railway.internal:5432.

error Command failed with exit code 1.

61 Replies

lucasgarcia98
HOBBYOP

2 years ago

N/A


brody
EMPLOYEE

2 years ago

what's with the ------


lucasgarcia98
HOBBYOP

2 years ago

the name from my service, i using internal database url


brody
EMPLOYEE

2 years ago

why is your service named ------


lucasgarcia98
HOBBYOP

2 years ago

i'm only hidden the name, but he's: postgres-windelback.railway.internal


brody
EMPLOYEE

2 years ago

it's not sensitive information fwiw


lucasgarcia98
HOBBYOP

2 years ago

ok


brody
EMPLOYEE

2 years ago

is postgres in the same project of the service that's trying to connect to it


lucasgarcia98
HOBBYOP

2 years ago

yes

1232403264104824800


brody
EMPLOYEE

2 years ago

please read this docs section


lucasgarcia98
HOBBYOP

2 years ago

ok, so my command to start application is this now

its work?

1232403937349337300


brody
EMPLOYEE

2 years ago

yeah looks good


lucasgarcia98
HOBBYOP

2 years ago

ok, txs


lucasgarcia98
HOBBYOP

2 years ago

other topic.
i'm using template to uptime kuma, and i create a subdomain to this, but the ssl is not working very good


lucasgarcia98
HOBBYOP

2 years ago


brody
EMPLOYEE

2 years ago

who is your domain dns provider?


lucasgarcia98
HOBBYOP

2 years ago

he's redirect me to certificate railway.app


lucasgarcia98
HOBBYOP

2 years ago

i don't know, but i trying discover this


brody
EMPLOYEE

2 years ago

show me your dns settings for that domain please


lucasgarcia98
HOBBYOP

2 years ago

i'm not access to our dns


lucasgarcia98
HOBBYOP

2 years ago

but other urls working normally, all services that i deploy, working


lucasgarcia98
HOBBYOP

2 years ago

but this not work, i dont know why


brody
EMPLOYEE

2 years ago

^


lucasgarcia98
HOBBYOP

2 years ago

i send to you in pv


brody
EMPLOYEE

2 years ago

<#727685388893945877> #5


lucasgarcia98
HOBBYOP

2 years ago

1232414306809811000


lucasgarcia98
HOBBYOP

2 years ago

we using this configuration


brody
EMPLOYEE

2 years ago

okay and show me the dns settings in your dns provider


lucasgarcia98
HOBBYOP

2 years ago

i'm trying get a print from dns settings.


lucasgarcia98
HOBBYOP

2 years ago

normally is make like this

1232423356540649700


brody
EMPLOYEE

2 years ago

please remove the red, this is not sensitive information


lucasgarcia98
HOBBYOP

2 years ago

ok


lucasgarcia98
HOBBYOP

2 years ago

1232423566029619200


brody
EMPLOYEE

2 years ago

send that domain in a clickable format please


lucasgarcia98
HOBBYOP

2 years ago

ok


lucasgarcia98
HOBBYOP

2 years ago

instead winsocket-develop, is https://monitor.windel.com.br
with this cname: kdcrvfsv.up.railway.app


brody
EMPLOYEE

2 years ago

the screenshot shows a different domain than what you just sent


lucasgarcia98
HOBBYOP

2 years ago

yeah, i not have a screenshot from this domain, because the sysadmin is not answering me, but the config is like this


brody
EMPLOYEE

2 years ago

please be clear and concise here, what domain are you having issues with?


lucasgarcia98
HOBBYOP

2 years ago


lucasgarcia98
HOBBYOP

2 years ago

certificate ssl, is show me this using google chrome

1232425104294547500


brody
EMPLOYEE

2 years ago

how long ago did you set that up


lucasgarcia98
HOBBYOP

2 years ago

if i try see other domain with this same config, he show me like this

1232425308720992500


lucasgarcia98
HOBBYOP

2 years ago

today, 9 hours ago


lucasgarcia98
HOBBYOP

2 years ago

1232514250266771500


brody
EMPLOYEE

2 years ago

show me the dns settings for monitor.windel.com.br please


lucasgarcia98
HOBBYOP

2 years ago

1232663104811172000


lucasgarcia98
HOBBYOP

2 years ago

@Brody Can you help me?


brody
EMPLOYEE

2 years ago

show me the domain in railway


lucasgarcia98
HOBBYOP

2 years ago

1232854136433672200


brody
EMPLOYEE

2 years ago

remove it, and then re-add it without touching any dns settings


lucasgarcia98
HOBBYOP

2 years ago

i need remove both domains?


lucasgarcia98
HOBBYOP

2 years ago

or only monitor?


brody
EMPLOYEE

2 years ago

only your custom


lucasgarcia98
HOBBYOP

2 years ago

ok


lucasgarcia98
HOBBYOP

2 years ago

i will need for my coworker update it, and tomorrow i'll let you know if it worked or not

1232855038385197000


brody
EMPLOYEE

2 years ago

as i just mentioned, without touching any dns settings


lucasgarcia98
HOBBYOP

2 years ago

ok



lucasgarcia98
HOBBYOP

2 years ago

oh, its works now

1232856561546956800


lucasgarcia98
HOBBYOP

2 years ago

😍


Loading...