I started Jira with the following `docker` command:
```
docker run -d -e JVM_MINIMUM_MEMORY=6144m -e JVM_MAXIMUM_MEMORY=6144m -e JVM_RESERVED_CODE_CACHE_SIZE=2048m -e ATL_PROXY_NAME="jira.example.com" -e ATL_PROXY_PORT="443" -e ATL_TOMCAT_SCHEME="https" -e ATL_TOMCAT_SECURE="true" --name jira.atlassian.sys.alpha --hostname jira.atlassian.sys.alpha --network-alias jira.atlassian.sys.alpha --network system --volume jira.atlassian.system:/var/atlassian/application-data/jira atlassian/jira-software:8.20.6
```
In order to upgrade this installation, I did the following:
`docker rm -f jira.atlassian.sys.alpha` then
```
docker run -d -e RUN_GROUP=root -e RUN_UID=0 -e RUN_USER=root -e JVM_MINIMUM_MEMORY=6144m -e JVM_MAXIMUM_MEMORY=6144m -e JVM_RESERVED_CODE_CACHE_SIZE=2048m -e ATL_PROXY_NAME="jira.example.com" -e ATL_PROXY_PORT="443" -e ATL_TOMCAT_SCHEME="https" -e ATL_TOMCAT_SECURE="true" --name jira.atlassian.sys.alpha --hostname jira.atlassian.sys.alpha --network-alias jira.atlassian.sys.alpha --network system --volume jira.atlassian.system:/var/atlassian/application-data/jira atlassian/jira-software:8.22.4
```
The only change is the version from 8.20.6 to 8.22.4.
The error is the following:
```
INFO:root:Generating /etc/container_id from template container_id.j2
INFO:root:Generating /opt/atlassian/jira/conf/server.xml from template server.xml.j2
INFO:root:Generating /opt/atlassian/jira/atlassian-jira/WEB-INF/classes/seraph-config.xml from template seraph-config.xml.j2
INFO:root:/var/atlassian/application-data/jira/dbconfig.xml exists; skipping.
INFO:root:User is currently root. Will downgrade run user to root
INFO:root:Running Jira with command '/opt/atlassian/jira/bin/start-jira.sh', arguments ['/opt/atlassian/jira/bin/start-jira.sh', '-fg']
executing as current user
Cannot find /opt/atlassian/jira/bin/setclasspath.sh
This file is needed to run this program
```
The above error is present even if I change `RUN_USER=root`, `RUN_GROUP=root` or `RUN_PID=0`. Checking the contents of the image I can see that the `/opt/atlassian/jira/bin/setclasspath.sh` is there.
This issue is critical to us because we can not upgrade as advised because of a vulnerability.
I upgraded from `docker-ce` 18.06.X on Ubuntu 18.04 LTS to `docker-ce` 20.10.X and then it worked. It was a Docker or `containerd` issue.
As some mentioned on the thread, please update the Docker Engine to the latest version.
You may find more details on https://confluence.atlassian.com/kb/running-atlassian-products-on-docker-might-fail-during-startup-because-of-docker-engine-version-1141492018.html
Kind regards,
Thiago Masutti
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
in my case it was obviously related to an old Docker version. I updated docker and the image/jira is now running.
BR
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think there is a general problem with the newest docker image(s).
I'm getting the error with both Jira and Confluence in the latest Docker Image version.
Unfortunately I don't have a solution at the moment.
BR
Benjamin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
A good practice before upgrading is always first take look at the docs, just in case something has changed. Just go to https://hub.docker.com/r/atlassian/jira-software and you will see that now docker engine >= 20.10.9 is required. As mentioned above, that will resolve the issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, that also solved the problem for us:)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Just went through the upgrade procedure in our environment. Indeed after getting Docker 20.10, it worked. Thx for the hint!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try updating the Docker engine, it worked for a few users.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Same for me: setclasspath.sh is inside the container, r-x access rights set but cannot be found/used during startup.
Please correct the latest docker images, our Jira/Confluence is down after trying to upgrade for the sake of the latest security advice.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I've the same behaviour in different systems. For me a docker update resolved this issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Having the same problem since today. But we didnt even change the docker images. We just restartet the containers and then got these errors.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I'm also seeing this with Jira Software 8.22.4
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.