Connection issue
caiosilva584
TRIALOP

a year ago

My application cannot start because is showing a connection error with the postgree. I've tried to add all enviroment variables and different properties on "aplication-prd.yml" but nothing worked.

View Deploy details

ⓘ Deployment information is only viewable by project members and Railway employees.

5 Replies

a year ago

From your deploy logs -

Schema-validation: missing table [tb_account]

Have you ran your migrations?


caiosilva584
TRIALOP

a year ago

Hello Brody!
When I try to run before deploy, the following message was appearing:
```
Caused by: org.postgresql.util.PSQLException: A tentativa de conex�o falhou.
```
The portuguese part translation is "Connection attempt failed"

So, I thought it was a connection issue with my pc, since change the enviroment variables dont make difference


a year ago

Locally you must use the databases public host and port that can be found in the service settings.


caiosilva584
TRIALOP

a year ago

Now the error is:

Caused by: org.postgresql.util.PSQLException: Connection to localhost:5432 refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.


a year ago

I can assure you, the Railway hosted database is not running on localhost, please see my last message.


Loading...