a year ago
Hi all, I'm trying to build a simple table and create a model called "Lead" so I can store interested users. But when I npx prisma db push, i get the error in the title. Is there a setting on railway im missing?
0 Replies
a year ago
do you get this error when developing locally or when deployed to railway?
a year ago
are you sure you are using all the correct environment variables?
a year ago
yep the database url contains all the connection details you'd need
a year ago
would you be happen to be on school / business / public / etc internet? maybe you're behind a restrictive firewall?
a year ago
it would be controlled by the networking administrator
a year ago
do you have a VPN service you could temporarily connect to then try having your app connect to the database
i dont have a personal VPN, and im at an airbnb so IDK if they would have a strong firewall. I disconnected from my company provided VPN
a year ago
nc -zv
a year ago
your connection issues are happening locally, you would want to run that command locally
Connection to localhost port 3000 [tcp/hbci] succeeded!
a year ago
the database on railway is most certainly not exposed on your localhost
a year ago
use the public hostname and port of the database
a year ago
correct
a year ago
please try this command
I am trying "nc -zv roundhouse.proxy.rlwy.net 20223" in my terminal and its hanging for 30 sec or more. doesnt seem normal
nc: connectx to roundhouse.proxy.rlwy.net port 20223 (tcp) failed: Operation timed out
a year ago
is the database running?
a year ago
check it's logs
a year ago
I'm thinking this is still a networking issue on your end
a year ago
there are plenty of free VPNs you can download to temporarily try
a year ago
for free VPNs, no I don't unfortunately
a year ago
sounds fine to me
redid the "nc -zv roundhouse.proxy.rlwy.net 20223"
a year ago
redeploy the database
a year ago
is there any data in the database right now?
a year ago
then would you mind sending the URL?
a year ago
I'm talking about the database url
postgresql://postgres:qTazdVPgTtynozPybRWfkMkvJeBEYQrK@roundhouse.proxy.rlwy.net:59178/railway
a year ago
why is the port different than what you showed earlier?
a year ago
when did i say that?
a year ago
i can connect just fine
a year ago
a year ago
nc doesnt work either
nc -zv roundhouse.proxy.rlwy.net 59178 gets timed out
a year ago
yes it does
a year ago
are you on the vpn?
a year ago
ncat also works fine (windows alterative for nc)
a year ago
this isnt a platform issue
a year ago
nc does not work for you either, remember?
a year ago
do you have a local firewall on your computer?
Hmm, can’t find it, but as it is a company computer I wouldn’t be too surprised that there is one
a year ago
awesome, problem solved