We’re trying to upgrade our SonarQube v10.3 to v10.5 (Community Edition), which is running as a docker container inside our Jelastic platform, see also: Container Run Configuration | Virtuozzo Dev Docs.
When trying to start up we see the following error message: /bin/sh: 1: /opt/sonarqube/docker/entrypoint.sh: Permission denied
We’re not changing any user ids or anything like that ourselves, but probably the Jelastic platform does something in how it starts the container that’s interfering with this configuration. We’re at a loss however how we can resolve this issue and upgrade our SonarQube instance.
It is my first time hearing about Jelastic. Can you show me how you are deploying our Docker image there? Are you trying to run it as an Application or System container?
Can you SSH into the container and show me the output of stat /opt/sonarqube/docker/entrypoint.sh?
Just upgraded to 10.6 and in that version this problem seems to be resolved! Let’s hope it stays that way and the problem doesn’t come back in a future release.
Hi. Still locked on this issue. I’m not upgrading, just a fresh deployment of 10.6 (latest). @davi.vidal , mounting a JElastic instance is not possible, I’m afraid, or a very long process… But, perhaps, you can try a free account on one of JElastic PAAS providers : Virtuozzo Cloud Union Catalog: Choose Your Service Provider.
Note :
If I “su sonarqube” inside the container, I can launch entrypoint.sh…
If I apply a 'chown -R sonarqube /opt/sonarqube/ ’ and the restart the contener, it works also… I suspect there is something around the fact that the owner of file is “root”, and despite membership of user sonarqube to guid 0.
That is very weird indeed. As you noted, we make sure that the sonarqube user has the root group as its primary group, and that the group has permission over everything. This is a recommended guideline from OpenShift.
That is interesting! You shouldn’t need that as the default user is sonarqube. Can you open a terminal session to the container and run id?
You should see something similar to this:
docker run -it --entrypoint /bin/bash sonarqube
sonarqube@5a0ada440bf6:/opt/sonarqube$ id
uid=1000(sonarqube) gid=0(root) groups=0(root)
sonarqube@5a0ada440bf6:/opt/sonarqube$
exit