Docker based application cannot be redeployed successfully (502 Gateway Error)
Hello everybody,
Since a month we have a issue with one specific service within our production environment. After the first request the deployed instance crashes.
The instance is "just" a Java (Spring) application living inside a Docker container. The codebase as the corresponding Dockerfile didn't
changed.
The
railway.json
file:
15 Replies
Project ID:
a2d3c3f9-f5e5-4456-bb12-a749673c197d
a2d3c3f9-f5e5-4456-bb12-a749673c197d
have you pointed the domain to the correct port?
Yes, we changed nothing.
please send the domain in question
vectorsphere-backend-production.up.railway.app
application failed to respond means your application failed to respond.
please check that you are listening on the host
0.0.0.0
and your domain is pointing to the correct port.We checked. Nothing changed in the configuration. The application listens to
0.0.0.0
and points to :8080
.
Also the instance crashes without any error in the Observability log.if it's crashing without any logs that means your application is not logging anything
It should 😄 And it has before^^ Was there any changes to how docker builds are treated?
there has not been, this would be an application level issue, as long as your application prints logs unbuffered to stdout / stderr you will see them in the deploys logs
Yes, that was the case two weeks ago. It is even possible to run the docker container locally.
Could there be something else that we miss in the railway configuration?
yes that possible, I would focus on adding more verbose logging so you can find out why your application is crashing
Okay, we will try our best^^ Thank you anyway 🙂
sorry i couldn't give you the answer, but railway doesn’t have any more observability into what your code does or doesn’t do than you would.