Container cannot write on mounted volume

michael-databit
TRIAL

6 months ago

Container cannot write on the mounted volume.

Error Images: https://imgur.com/a/qzipFfC

Github Repo Link: bugzilla/harmony: next generation bugzilla

Awaiting User Response

5 Replies

6 months ago

I think this has something to do with the Dockerfile not properly giving the user permissions to write and store data. Can you share the dockerfile?


Status changed to Awaiting User Response Railway 6 months ago


michael-databit
TRIAL

6 months ago

here is the dockerfile which is being used by docker-compose. it works when running docker-compose locally

docker-compose.yml: harmony/docker-compose.yml at main · bugzilla/harmony
dockerfile: harmony/Dockerfile at main · bugzilla/harmony


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

Hello,

Please try setting a RAILWAY_RUN_UID service variable to 0

Best,
Brody


Status changed to Awaiting User Response Railway 6 months ago


michael-databit
TRIAL

6 months ago

it did something.

It changed the error to: Effective UID must be 10001!


Status changed to Awaiting Railway Response Railway 6 months ago


6 months ago

Hello,

You would need to remove that artificial limitation as your app does need to run as root (UID 0) to read and write with the volume, as the volume is mounted as root and that is not configurable.


Status changed to Awaiting User Response Railway 6 months ago