Spring boot 3 application

ikazz
HOBBY

a year ago

The issue is failed connection to MySql database which if also servise on your platform,
please can you help, if i missed out something, maybe some env. variabe or similar, many thanks in advance
Ivan Sretenovic

View Deploy details

ⓘ Deployment information is only viewable by Project members and Railway admins.

2 Replies

ikazz
HOBBY

a year ago

Caused by: java.net.ConnectException: Connection refused

at java.base/[sun.nio.ch](sun.nio.ch).Net.pollConnect(Native Method) ~[na:na]

at java.base/[sun.nio.ch](sun.nio.ch).Net.pollConnectNow(Net.java:672) ~[na:na]

at java.base/sun.nio.ch.NioSocketImpl.timedFinishConnect(NioSocketImpl.java:542) ~[na:na]

at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:597) ~[na:na]

at java.base/java.net.SocksSocketImpl.connect(SocksSocketImpl.java:327) ~[na:na]

at java.base/java.net.Socket.connect(Socket.java:633) ~[na:na]

at com.mysql.cj.protocol.StandardSocketFactory.connect(StandardSocketFactory.java:153) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]

at com.mysql.cj.protocol.a.NativeSocketConnection.connect(NativeSocketConnection.java:62) ~[mysql-connector-j-8.3.0.jar!/:8.3.0]

… 64 common frames omitted


That's an error from your application, not the Railway platform. Ensure you have the correct credentials/URL for connecting to your database.


Spring boot 3 application - Railway Help Station