[Bug]: [Bug] Official Railway librechat-official template fails /health healthcheck on deployment #16260
Unanswered
ylnztrkk
asked this question in
Troubleshooting
Replies: 1 comment 1 reply
|
Thanks for the detailed report. I tried the official librechat-official template on Railway. Couldn't reproduce the issue. The LibreChat service passed the /health healthcheck both times.
Both runs used ghcr.io/danny-avila/librechat-dev:latest with default variables. The port, HOST=0.0.0.0 and healthcheck path all look fine. RAILWAY_RUN_UID=0 isn't needed. To narrow down what is different in your deployment, could you share:
If redeploying LibreChat on its own works now, that points to something transient on Railway's side at the time. |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
What happened?
Bug: Official Railway "librechat-official" template fails healthcheck
Environment
What happened
I deployed LibreChat twice using the official Railway "librechat-official" template.
Both deployments failed in exactly the same way.
The supporting services were deployed successfully:
However, the LibreChat service failed during the Railway network healthcheck.
Deployment result
Initialization (00:00)
Pre-deploy (00:10)
Deploy (01:04)
Network › Healthcheck (04:51)
Healthcheck failure
Post-deploy: Not started
Railway reports:
Deployment failed during the network process
Healthcheck failure
The LibreChat service configuration shows:
Deployed via Docker Image:
ghcr.io/danny-avila/librechat-dev:latest
Healthcheck path:
/health
Restart policy:
on failure
Restart policy max retries:
10
The container is configured with:
HOST=0.0.0.0
RAILWAY_RUN_UID=0
I also tried adding "RAILWAY_RUN_UID=0" and redeploying, but the exact same healthcheck failure occurred.
Expected behavior
The official Railway template should deploy successfully and the LibreChat service should become healthy and respond successfully to:
/health
Actual behavior
The LibreChat service deploys but never passes Railway's healthcheck and fails after approximately five minutes.
This happened twice with the same official template.
Request
Could you please check whether the current "librechat-official" Railway template and its "latest" Docker image are compatible with the current Railway deployment configuration?
In particular, please check:
Version Information
LibreChat: ghcr.io/danny-avila/librechat-dev:latest
Deployment platform: Railway
Railway template: librechat-official
Region: SFO
Healthcheck path: /health
The official Railway template was deployed twice and both deployments failed at the Network → Healthcheck stage.
Steps to Reproduce
Open the official Railway LibreChat deployment template:
https://railway.com/new/template/librechat-official
Deploy the template on Railway.
Allow Railway to provision the required services:
The supporting services deploy successfully.
The LibreChat service starts deploying using:
ghcr.io/danny-avila/librechat-dev:latest
Railway reaches the Network → Healthcheck stage.
The healthcheck uses /health.
After approximately 4 minutes and 51 seconds, the healthcheck fails and the deployment is marked as failed.
I repeated the deployment twice and received the same result both times.
I also added RAILWAY_RUN_UID=0 and redeployed, but the same healthcheck failure occurred.
What browsers are you seeing the problem on?
No response
Relevant log output
Screenshots
No response
Code of Conduct
All reactions