Hi Luca,
Thank you for the looking into this issue and response.
Obviously it is volume ownership issue but my interest is - How gerrit container runs with same ownership when running with old image ubuntu 22.04 and start complaining permission issue when running with ubuntu 24.04 ? Gerrit version 3.9.4 is same in both cases.
In our current set up, gerrit's volume ownership on host/vm is "devuser" but inside container it is "gerrit" user and it's working with 22.04 image.
Below docker-compose file and volume is mounted on host VM.
---
services:
gerrit:
image: "
privaterepo.domain.io/image/gerrit_ubuntu_24:3.9.4" # Not working
image: "
privaterepo.domain.io/image/gerrit_ubuntu_22:3.9.4" # Working
restart: unless-stopped
ports:
- 8081:8081
- 29418:29418
volumes:
- "/data/gerrit/git:/var/gerrit/git"
- "/data/gerrit/index:/var/gerrit/index"
- "/data/cache/gerrit:/var/gerrit/cache"
- "/data/gerrit/db:/var/gerrit/db"
- "/data/gerrit/etc:/var/gerrit/etc"
- "/data/log/gerrit:/var/gerrit/logs"
- "/data/gerrit/data:/var/gerrit/data"
- "/data/gerrit/ssh:/var/gerrit/.ssh"
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
environment:
- CANONICAL_WEB_URL=
https://gerrit.domain.net/---
This is how ownership on host and inside container
(devuser) /data/gerrit/etc:/var/gerrit/etc (gerrit) >> gerrit.config file is here
If changed the volume ownership "gerrit" user on vm also, container is up with new image ubuntu24.04. My question is - How different ownership on host and container works with ubuntu 22.04 but not with 24.04 ?
Is this ownership requirement enforced in ubuntu 24.04 ? Or it was since beginning and somehow it has been working in our setup.
Please ask if you need more information for investigation.
BR
Sumit