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