Can't connect to server.
rich4523
HOBBYOP

a month ago

I can't connect to my website. I keep getting this message: Server Error (500). Refreshing doesn't help.

$10 Bounty

7 Replies

Status changed to Open Railway 26 days ago


Status changed to Solved rich4523 26 days ago


rich4523
HOBBYOP

a month ago

I am still getting the message Server Error(500) when I try to log in to my website


Status changed to Awaiting Railway Response Railway 26 days ago


Do you see any errors in your service's deploy logs?


rich4523
HOBBYOP

a month ago

no. The last deployment was 3 months ago and the status is active


Try redeploying your service, it might resolve the issue. If it doesn't, check the deploy logs for any errors.


rich4523
HOBBYOP

25 days ago

It redeploys successfully then crashes about a minute later. I get this error message: django.db.utils.OperationalError: connection to server at "mainline.proxy.rlwy.net" (66.33.22.234), port 19358 failed: server closed the connection unexpectedly

This probably means the server terminated abnormally

before or while processing the request.

You are using the public URL to connect to your database from your django app. You should use the internal URL instead. Not only it's most likely to resolve the issue, but you decrease latency, and you won't be billed for egress charges.


darseen

You are using the public URL to connect to your database from your django app. You should use the internal URL instead. Not only it's most likely to resolve the issue, but you decrease latency, and you won't be billed for egress charges.

rich4523
HOBBYOP

25 days ago

I redeployed the database and it worked. Thanks.


Status changed to Open brody 24 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...