Problem with connection database in deploy

lucasgarcia98HOBBY

a year 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.

0 Replies

lucasgarcia98HOBBY

a year ago

N/A


a year ago

what's with the ------


lucasgarcia98HOBBY

a year ago

the name from my service, i using internal database url


a year ago

why is your service named ------


lucasgarcia98HOBBY

a year ago

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


a year ago

it's not sensitive information fwiw


lucasgarcia98HOBBY

a year ago

ok


a year ago

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


lucasgarcia98HOBBY

a year ago

yes

1232403264104824800


a year ago

please read this docs section


lucasgarcia98HOBBY

a year ago

ok, so my command to start application is this now

its work?

1232403937349337300


a year ago

yeah looks good


lucasgarcia98HOBBY

a year ago

ok, txs


lucasgarcia98HOBBY

a year 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


lucasgarcia98HOBBY

a year ago


a year ago

who is your domain dns provider?


lucasgarcia98HOBBY

a year ago

he's redirect me to certificate railway.app


lucasgarcia98HOBBY

a year ago

i don't know, but i trying discover this


a year ago

show me your dns settings for that domain please


lucasgarcia98HOBBY

a year ago

i'm not access to our dns


lucasgarcia98HOBBY

a year ago

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


lucasgarcia98HOBBY

a year ago

but this not work, i dont know why


a year ago

^


lucasgarcia98HOBBY

a year ago

i send to you in pv


a year ago

<#727685388893945877> #5


lucasgarcia98HOBBY

a year ago

1232414306809811000


lucasgarcia98HOBBY

a year ago

we using this configuration


a year ago

okay and show me the dns settings in your dns provider


lucasgarcia98HOBBY

a year ago

i'm trying get a print from dns settings.


lucasgarcia98HOBBY

a year ago

normally is make like this

1232423356540649700


a year ago

please remove the red, this is not sensitive information


lucasgarcia98HOBBY

a year ago

ok


lucasgarcia98HOBBY

a year ago

1232423566029619200


a year ago

send that domain in a clickable format please


lucasgarcia98HOBBY

a year ago

ok


lucasgarcia98HOBBY

a year ago

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


a year ago

the screenshot shows a different domain than what you just sent


lucasgarcia98HOBBY

a year ago

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


a year ago

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


lucasgarcia98HOBBY

a year ago


lucasgarcia98HOBBY

a year ago

certificate ssl, is show me this using google chrome

1232425104294547500


a year ago

how long ago did you set that up


lucasgarcia98HOBBY

a year ago

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

1232425308720992500


lucasgarcia98HOBBY

a year ago

today, 9 hours ago


lucasgarcia98HOBBY

a year ago

1232514250266771500


a year ago

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


lucasgarcia98HOBBY

a year ago

1232663104811172000


lucasgarcia98HOBBY

a year ago

@Brody Can you help me?


a year ago

show me the domain in railway


lucasgarcia98HOBBY

a year ago

1232854136433672200


a year ago

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


lucasgarcia98HOBBY

a year ago

i need remove both domains?


lucasgarcia98HOBBY

a year ago

or only monitor?


a year ago

only your custom


lucasgarcia98HOBBY

a year ago

ok


lucasgarcia98HOBBY

a year ago

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

1232855038385197000


a year ago

as i just mentioned, without touching any dns settings


lucasgarcia98HOBBY

a year ago

ok



lucasgarcia98HOBBY

a year ago

oh, its works now

1232856561546956800


lucasgarcia98HOBBY

a year ago

😍