With tutor 11.0.2, in MacOS, the system we use for development, when spinning up containers:
tutor dev runserver cms
We are getting consistently these errors on the docker container:
Setting file permissions for user openedx...
chown: changing ownership of '/openedx/config': Read-only file system
chown: changing ownership of '/openedx/config/cms.env.json': Read-only file system
chown: changing ownership of '/openedx/config/lms.env.json': Read-only file system
Error: Command failed with status 1: docker-compose -f /Users/neithan/.local/share/tutor/env/local/docker-compose.yml -f /Users/neithan /.local/share/tutor/env/dev/docker-compose.yml --project-name tutor_dev run --rm --service-ports lms
This can be overcome by editing the docker-compose files manually:
And mounting the volumes with something distinct from :ro (read-only), for example, we put ā:zā instead of ā:roā
After that, we can do
tutor images build openedx-dev
tutor dev runserver cms
to be able to spin up the containers fine:
The cms service will be available at http://studio.local.overhang.io:8001
docker-compose -f /Users/neithan/.local/share/tutor/env/local/docker-compose.yml -f /Users/neithan/.local/share/tutor/env/dev/docker-compose.yml --project-name tutor_dev run --rm --service-ports cms
Starting tutor_dev_lms_1 ... done
Creating tutor_dev_cms_run ... done
Setting file permissions for user openedx...
File permissions set.
Is that something that tutor can change, so we don“t need to do this manually?
Hi @vejeta! Thanks for reporting this. It is definitely a bug, so you can create a new Github issue. Please add a full description as well as a link to this conversation.
Iād very much like to keep the :ro label for future compatibility with Docker Swarm. This is a case where we need to improve the file permissions system in the dev container (again).
Hi, I am running tutor version 11.0.6 and still experiencing this issue, when running either tutor dev runserver lms or tutor dev lms bash on Mac. Still getting the same messages:
Yes. I just retried recently after using the command ādocker system prune -af āvolumesā and removed all images. Then rebuilt both images. Same issue, please let me know if I can do anything else to give you more info