R
Railway2mo ago
Garcia

Problem with connection database in deploy

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.
Solution:
remove it, and then re-add it without touching any dns settings
Jump to solution
55 Replies
Percy
Percy2mo ago
Project ID: N/A
Garcia
Garcia2mo ago
N/A
Brody
Brody2mo ago
what's with the ------
Garcia
Garcia2mo ago
the name from my service, i using internal database url
Brody
Brody2mo ago
why is your service named ------
Garcia
Garcia2mo ago
i'm only hidden the name, but he's: postgres-windelback.railway.internal
Brody
Brody2mo ago
it's not sensitive information fwiw
Garcia
Garcia2mo ago
ok
Brody
Brody2mo ago
is postgres in the same project of the service that's trying to connect to it
Garcia
Garcia2mo ago
yes
No description
Garcia
Garcia2mo ago
ok, so my command to start application is this now its work?
No description
Brody
Brody2mo ago
yeah looks good
Garcia
Garcia2mo ago
ok, txs other topic. i'm using template to uptime kuma, and i create a subdomain to this, but the ssl is not working very good https://monitor.windel.com.br/
Brody
Brody2mo ago
who is your domain dns provider?
Garcia
Garcia2mo ago
he's redirect me to certificate railway.app i don't know, but i trying discover this
Brody
Brody2mo ago
show me your dns settings for that domain please
Garcia
Garcia2mo ago
i'm not access to our dns but other urls working normally, all services that i deploy, working but this not work, i dont know why
Brody
Brody2mo ago
^
Garcia
Garcia2mo ago
i send to you in pv
Brody
Brody2mo ago
#🛂|readme #5
Garcia
Garcia2mo ago
No description
Garcia
Garcia2mo ago
we using this configuration
Brody
Brody2mo ago
okay and show me the dns settings in your dns provider
Garcia
Garcia2mo ago
i'm trying get a print from dns settings.
Garcia
Garcia2mo ago
normally is make like this
No description
Brody
Brody2mo ago
please remove the red, this is not sensitive information
Garcia
Garcia2mo ago
ok
Garcia
Garcia2mo ago
No description
Brody
Brody2mo ago
send that domain in a clickable format please
Garcia
Garcia2mo ago
ok instead winsocket-develop, is https://monitor.windel.com.br with this cname: kdcrvfsv.up.railway.app
Brody
Brody2mo ago
the screenshot shows a different domain than what you just sent
Garcia
Garcia2mo ago
yeah, i not have a screenshot from this domain, because the sysadmin is not answering me, but the config is like this
Brody
Brody2mo ago
please be clear and concise here, what domain are you having issues with?
Garcia
Garcia2mo ago
certificate ssl, is show me this using google chrome
No description
Brody
Brody2mo ago
how long ago did you set that up
Garcia
Garcia2mo ago
if i try see other domain with this same config, he show me like this
No description
Garcia
Garcia2mo ago
today, 9 hours ago
Garcia
Garcia2mo ago
No description
Brody
Brody2mo ago
show me the dns settings for monitor.windel.com.br please
Garcia
Garcia2mo ago
No description
Garcia
Garcia2mo ago
@Brody Can you help me?
Brody
Brody2mo ago
show me the domain in railway
Garcia
Garcia2mo ago
No description
Solution
Brody
Brody2mo ago
remove it, and then re-add it without touching any dns settings
Garcia
Garcia2mo ago
i need remove both domains? or only monitor?
Brody
Brody2mo ago
only your custom
Garcia
Garcia2mo ago
ok
Garcia
Garcia2mo ago
i will need for my coworker update it, and tomorrow i'll let you know if it worked or not
No description
Brody
Brody2mo ago
as i just mentioned, without touching any dns settings
Garcia
Garcia2mo ago
ok
Brody
Brody2mo ago
Garcia
Garcia2mo ago
oh, its works now
No description
Garcia
Garcia2mo ago
😍