2 years ago
I still can't access the data, this is a screen shot of railway dashboard with the message:
Required Variables
Ensure that the following variables are configured
PGHOST
PGPORT
PGUSER
PGPASSWORD
PGDATABASE
DATABASE_URLEven though the variables are all there. I tried to restart the database and it didn't work.
PGHOST postgis.railway.internal
21 Replies
2 years ago
the data tab needs to be able to access the database via the public network but you have those values populated with private networking values, that won't work.
Instead, deploy the dbgate template into your project and use it to manage your database as it's going to offer a far better experience than the data tab will
2 years ago
is the database crashed?
2 years ago
okay let me know when you are back and we can pick this up
i changed the vars to railway public and set the public port, it worked in my table plus and was able to connect to the database. But the app and the data ui are not able to connect to the database. What might be the issue?
2 years ago
red does not mean error, please take into account the contents of the logs not the colour to determine if a log is an error or not.
2 years ago
there are many different reasons and I wouldn't have enough context to tell you what reason it is, but if it works in tableplus then there's absolutely nothing to worry about since tableplus would do a far better job than the data tab would
but my nodejs app can't connect to the database even though it's using the right env vars. thats my issue.
2 years ago
what error are you getting from the node app
status 500 and a custom message. Now tableplus can't connect to the database:
connection to server at "roundhouse.proxy.rlwy.net" (35.214.158.190), port 56760 failed: server closed the connection unexpectedly
This probably means the server terminated abnormally
before or while processing the request.
2 years ago
theres nothing wrong with your database, something has just been misconfigured
i ran a new deployment of the same template and it's not working: https://railway.app/template/A7Dwg9
it was working before the down time that happend today. You can see here postgis is using private network by default
Status changed to Solved Railway • almost 2 years ago
