Does anyone know what to do about this error?
gean7
HOBBYOP

13 hours ago

I need to connect to a MySQL database

image.png

Attachments

$10 Bounty

7 Replies

Status changed to Open Railway about 13 hours ago


logicminds
FREE

12 hours ago

What do the deploy logs show? Looks like the app failed to deploy correctly. Are you able to show the logs?


logicminds

What do the deploy logs show? Looks like the app failed to deploy correctly. Are you able to show the logs?

gean7
HOBBYOP

12 hours ago

It displays correctly, but I don't know what the error is.

image.png

image.png

image.png


Make sure the port your application is listening to is the same port your URL is mapped to.


0x5b62656e5d

Make sure the port your application is listening to is the same port your URL is mapped to.

gean7
HOBBYOP

12 hours ago

How can I check that?


Check to see if the port of the pregenerated URL in your networking settings of the service is 8080.

If it is, I'd try setting it to an arbitrary number (eg, 3000), and change your application to listen to 3000 as well using the PORT variable.


logicminds
FREE

12 hours ago

Reference the variables here https://docs.railway.com/variables/reference and make sure that the port the app is running on (lets say 3000) is configured either in the railway deployment config (variables) or .env file or config file. Try comparing RAILWAY_TCP_APPLICATION_PORT with what you have configured and what your app actually uses.


oscarkabanda-cyber
FREE

2 hours ago

go settings then scroll down to public networking. you will see which port its running (3000) click to edit then select port 8080


Welcome!

Sign in to your Railway account to join the conversation.

Loading...