Volume Mount Correction
caugeson
HOBBYOP

21 days ago

My PostgreSQL service (project: hopeful-illumination, service ID: be1026c3-1393-4c17-9229-e7c06dc73a99) is stuck in a crash loop since May 20 ~4:47 AM UTC. Every restart attempt mounts the wrong volume (vol_2wzllp2b02k2zgfk) instead of my correct volume (vol_upo9a91iqhj8gx25) and fails with "failed to exec pid1: No such file or directory." I cannot fix this from the UI — I need the volume mount corrected on your end. This is affecting paying subscribers.

Solved

3 Replies

Status changed to Awaiting Railway Response Railway 21 days ago


The error in your deployment logs ("failed to exec pid1") is your container's init system failing to find its entrypoint inside the image, not a volume mount problem. The volume currently attached to your Postgres service is mapped to /var/lib/postgresql/data, which is the standard Postgres data path.

The other volume you referenced is currently attached to your web service in this same project. Can you confirm whether it was previously attached to Postgres and got moved? If so, we can swap them back, but Postgres will also need a redeploy to fix the entrypoint issue.


Status changed to Awaiting User Response Railway 20 days ago


caugeson
HOBBYOP

20 days ago

Yes, please swap the volumes back. The volume vol_upo9a91iqhj8gx25 should be attached to the web service (mounted at /app/outputs), and the PostgreSQL service should have its own correct volume. After the swap, please redeploy both services. The web service was working correctly before May 20 when this started.


Status changed to Awaiting Railway Response Railway 20 days ago


chandrika
EMPLOYEE

16 days ago

We checked the current volume configuration and the volumes are already correctly attached: postgres-volume is on your Postgres service and web-volume is on your web service. No swap is needed. Your web service is also running fine. Could you confirm you are good?

The Postgres crash is caused by a stale container image, not a volume issue. Your data is intact. To fix it, open your Postgres service, press Cmd+K (or Ctrl+K) to open the command palette, and select "Redeploy source image". This re-pulls a fresh image and resolves the pid1 error. A normal redeploy from the three-dot menu won't work here since it reuses the cached image.


Status changed to Awaiting User Response Railway 16 days ago


Railway
BOT

9 days ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 9 days ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...