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