Closed rasmunk closed 8 months ago
Sounds like an issue with the specific dev-sif storage/
setup to me. Probably something @Martin-Rehr has more insight into.
The problem is RO binds to 'state' because of the 'chown -R $USER:$USER ${MIG_ROOT}/state' command in docker-entry.sh
My suggestion is that we move the 'chown -R $USER:$USER ${MIG_ROOT}/state' out of docker-entry.sh and into the build environment.
Would it be possible to have chown in both places? I'm just contemplating a scenario where you fix some issue inside ${MIG_ROOT}/state files on the host with a user that has a different UID, and then subsequently relaunch the docker-migrid stack, which would then have permission issues inside ${MIG_ROOT}/state
I have a strong suspicion that the chown
was in fact moved to docker-entry.sh
because it didn't work correctly to do during build. Probably hinges on the volume vs plain dir discussion.
Hmmm, maybe I'm mixing it up with other adjustments going into docker-entry for that reason. I can trace the introduction of that chown -R
all the way back to 8b414873057cb5b48f053024e42ef45cd06913f4 several years ago.
This fixes the issue: https://github.com/ucphhpc/docker-migrid-ucphhpc/commit/3180d514a4299f1e12d37889568a917635400904 https://github.com/ucphhpc/docker-migrid-ucphhpc/commit/3180d514a4299f1e12d37889568a917635400904
On 23 Jan 2024, at 09.20, Jonas Bardino @.***> wrote:
Hmmm, maybe I'm mixing it up with other adjustments going into docker-entry for that reason. I can trace the introduction of that chown -R all the way back to rev 8b414873057cb5b48f053024e42ef45cd06913f4 several years ago.
— Reply to this email directly, view it on GitHub https://github.com/ucphhpc/docker-migrid-ucphhpc/issues/1#issuecomment-1905524791, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACVL5PKM55TXGZDV6O4ISRDYP5XDLAVCNFSM6AAAAABBQHPNZ6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMBVGUZDINZZGE. You are receiving this because you were mentioned.
When trying to create the migrid container via the
docker-compose_dev-sif.erda.dk_full.yml
configuration, the docker runtime seems to not like that the readonly flagbind,ro
is set on thevgrid_files_readonly
bind volume. https://github.com/ucphhpc/docker-migrid-ucphhpc/blob/85e882ca2351cf473c56914cad98257845d1936d/docker-compose_dev-sif.erda.dk_full.yml#L390System details: OS: Rocky 9,3 Docker version:
Upon launching, docker throws the following error:
However, you can get it to work, if launch the docker-migrid stack without the
ro
flag on thevgrid_files_readonly
volume and the subsequently readd it after the stack has been taken down again.Steps to mitigate:
ro
flag onvgrid_files_readonly
make up
make down
ro
flag on thevgrid_files_readonly
make up
So far I have only tested it on Rocky 9,3. Therefore I can't say if this error also occurs on other distributions or versions.