Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot find /opt/atlassian/iira/bin/setclasspath.sh when upgrading Jira in docker compose

Andrea C
Contributor
July 4, 2022

Hi,

 

I am trying to upgrade jira software from version 8.20.6 to 8.20.10 – data center using docker compose.

I have always upgraded by taking down the docker container, updating the version number in the docker-compose file and run the docker container again.

Here is the error that I get:

Cannot find /opt/atlassian/iira/bin/setclasspath.sh

Maybe I need to delete the container before restarting it? I am always a bit careful with docker as I don't want to lose or delete everything.

5 answers

1 accepted

1 vote
Answer accepted
idan_payne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 7, 2022

Upgrading the docker engine solved the problem:

 

https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository

 

  1.  sudo apt-get update
    
    $ sudo apt-get install \
        ca-certificates \
        curl \
        gnupg \
        lsb-release
  2. Add Docker’s official GPG key:

    $ sudo mkdir -p /etc/apt/keyrings
    $ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
  3. Use the following command to set up the repository:

    $ echo \
      "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
      $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

    sudo apt-get update
     $ sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin
     
Andrea C
Contributor
July 11, 2022

Brilliant! This totally solved the problem!

1 vote
Yi Xie
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 11, 2022

Hi @Andrea C 

Welcome to the Community.

Atlassian (Docker) images were recently updated and now require Docker Engine version >= 20.10.9.

The issue is related to the update to the Adoptium OpenJDK and incompatibilities with older versions of the Docker Engine.

Refer to each product's Docker Hub page:

Solution

Upgrade the Docker Engine to version 20.10.9 or a more recent one.

Refer to Docker Engine release notes for more information about Docker versions.

 

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. 

Navya Krishna Dubbala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 15, 2022

I am still getting same problem after upgrading docker to 20.10.17.

 trying to upgrade confluence from 7.14.3 to 7.18.2 

# docker -v
Docker version 20.10.17, build 100c701

 

confluence | Cannot find /opt/atlassian/confluence/bin/setclasspath.sh
confluence | This file is needed to run this program

Yi Xie
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 15, 2022

Hi, @Navya Krishna Dubbala 

Have you restart docker service after upgrade?

I can start confluence 7.18.2 (upgraded from 7.18.0) with docker 20.10.17, CentOS 8.4.2105.

 

Could you provide more information about you OS version, confluence image hash, etc?

Navya Krishna Dubbala
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 16, 2022

Yes, I have restarted service and tried docker-compose up -d .

Redhat 7.9 

Kernel :3.10.0-1160.66.1.el7.x86_64

Image Id: sha256:2e21be1a3328986cc7b73fada09427e2fc43ee87de8cd345bea3f562b7b60a91

 

Could you upgrade from 7.14.3 and try 

0 votes
emilianooliver July 12, 2022

Hi Andrea!

I have the same scenario than yours but I know that our docker engine is out of date. However, do you have best practices to ugprade Atlassian apps using compose? I've tried updating our JS version from 8.5.X to the latest LTS version just changing the jira tag but it's not working. I believe I had checked all the internet trying to find best practices using compose and I was unable to find anything that help me out.

Andrea C
Contributor
July 13, 2022

Hi @emilianooliver 

You need to update your docker engine before updating any Atlassian app, there is no way around it. 

Follow the commands from the answer of idan_payne.

I had already installed the GPG key and the repository the first time I have installed Docker so I just did

sudo apt-get update

and

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-compose-plugin

then I checked the docker version to be sure everything went fine and then updated the tag in the JS  docker-compose file and restarted the container (docker-compose up -d)

0 votes
Matias Iglesias July 7, 2022

Same here 🙋🏻‍♂️

0 votes
idan_payne
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 6, 2022

Having the same issue here :(

Suggest an answer

Log in or Sign up to answer