Missing Banners and icons after confluence upgrade
Asked by Jonnada Kiran:

Hi Everyone. We are using confluence data center. I have upgraded confluence from 5.10.8 to 6.6.2.

during the installation i copied these

/bin/cp /opt/atlassian/atlassian-confluence-5.10.8/confluence/images/icons/\* /opt/atlassian/atlassian-confluence-6.6.2/confluence/images/icons/

After upgrading I am unable to see our banners, icons and profile pictures etc...

Any sort of help is appreciated.

Thanks.


Answers:
author: AnnWorley
body: Hi Jonnada,

The data for the instance (such as profile pictures) is stored in the Confluence Home directory. The upgrade steps include pointing the new, upgraded installation directory at that existing home directory by editing \<Confluence_install_dir\>/confluence/WEB-INF/classes/confluence-init.properties. Doing so should have caused the images from the old version to be included in the upgraded version.

Please let me know what method was used for the upgrade. I am not finding the step regarding copying images from one installation directory to the other on our doc: [Upgrading Confluence Data Center](https://confluence.atlassian.com/doc/upgrading-confluence-data-center-1507377.html)

Thanks,

Ann

comments: author: Jonnada Kiran
body: Stopping confluence on both nodes:

Service confluence stop

Back installation folder:

cp -r atlassian-confluence-5.10.8/ atlassian-confluence-5.10.8_back/

Back up home directory:

cp -r confluence-data/ confluence-data_back/

Download tar file:

**cd /charter_nfs/**

**wget** [**https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.2.tar.gz**](https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.2.tar.gz)

**tar xvf** [**https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.2.tar.gz**](https://www.atlassian.com/software/confluence/downloads/binary/atlassian-confluence-6.6.2.tar.gz)

Copy exteacted folder to /opt/atlassian

cp -r atlassian-confluence-6.6.2 /opt/atlassian/

Change owner of the installation folder:

chown -R confluence:confluence atlassian-confluence-6.6.2/

Change permissions of the installation folder:

chmod 755 atlassian-confluence-6.6.2/

Install mysql connector {#toc-hId-1788804372}
---------------------------------------------

**cd /charter_nfs**

**wget** [**https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz**](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.45.tar.gz)

**Extract mysql**

Tar xvf mysql-connector-java-5.1.45.tar.gz

Copy mysql-connector to lib

cp mysql-connector-java-5.1.45/mysql-connector-java-5.1.45-bin.jar /opt/atlassian/atlassian-confluence-6.6.2/confluence/WEB-INF/lib/

Copying init properties {#toc-hId--763352589}
---------------------------------------------

cp /opt/atlassian/atlassian-confluence-5.10.8/confluence/WEB-INF/classes/confluence-init.properties /opt/atlassian/atlassian-confluence-6.6.2/confluence/WEB-INF/classes/confluence-init.properties

Copying required customization files {#toc-hId-979457746}
---------------------------------------------------------

cp -rf /opt/atlassian/atlassian-confluence-5.10.8/confluence/WEB-INF/classes/confluence-init.properties /opt/atlassian/atlassian-confluence-6.6.2/confluence/WEB-INF/classes/confluence-init.properties

/bin/cp /opt/atlassian/atlassian-confluence-5.10.8/confluence/images/icons/\* /opt/atlassian/atlassian-confluence-6.6.2/confluence/images/icons/

Editing setenv.sh {#toc-hId--1572699215}
----------------------------------------

cd atlassian-confluence-6.6.2/bin/

cp setenv.sh setenv_back.sh

cp /opt/atlassian/atlassian-confluence-5.10.8/bin/setenv.sh /opt/atlassian/atlassian-confluence-6.6.2/bin/

vi setenv.sh

Add following lines

CATALINA_OPTS="-Dsynchrony.enable.xhr.fallback=true -Dconfluence.upgrade.recovery.file.enabled=false ${CATALINA_OPTS}" {#toc-hId-170111120}
-------------------------------------------------------------------------------------------------------------------------------------------

CATALINA_OPTS="-Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 ${CATALINA_OPTS}" {#toc-hId-1912921455}
--------------------------------------------------------------------------------------------------------------

Editing server.xml and linking server.xml {#toc-hId--639235506}
---------------------------------------------------------------

cd /charter_nfs/confluence-shared-install/conf/

cp server.xml server_back.xml

vi server.xml

**Add the following lines**

\<**Context path="${confluence.context.path}/synchrony-proxy" docBase="../synchrony-proxy" debug="0" reloadable="false" useHttpOnly="true"\>**

**\<Valve className="org.apache.catalina.valves.StuckThreadDetectionValve" threshold="60" /\>**

**\</Context\>**

**cd /opt/atlassian/atlassian-confluence-6.6.2/conf/**

**cp server.xml server_back.xml**

**rm -rf server.xml**

**ln -s /charter_nfs/confluence-shared-install/conf/server.xml server.xml**

Copy the oracle driver: {#toc-hId-1103574829}
---------------------------------------------

**Cd /opt/atlassian**

**cp atlassian-confluence-5.10.8_back/lib/ojdbc8.jar /opt/atlassian/atlassian-confluence-6.6.2/lib/**

Link Base Directory {#toc-hId--1448582132}
------------------------------------------

* cd /opt/atlassian
* rm current
* ln -s **atlassian-confluence-6.6.2**/ current

Start Confluence:

Service confluence start

rsync -avz --delete --exclude 'setenv.sh' xxxxxx@xxxxxxx:/opt/atlassian/\* /opt/atlassian/

cd /opt/atlassian/atlassian-confluence-5.10.8/bin/

cp setenv.sh /opt/atlassian/atlassian-confluence-6.6.2/bin

vi setenv.sh

CATALINA_OPTS="-Dsynchrony.enable.xhr.fallback=true -Dconfluence.upgrade.recovery.file.enabled=false ${CATALINA_OPTS}"

CATALINA_OPTS="-Dorg.apache.tomcat.websocket.DEFAULT_BUFFER_SIZE=32768 ${CATALINA_OPTS}"

rsync -avz --delete --exclude 'cluster.properties' xxxxx@xxxxx:/var/atlassian/\* /var/atlassian/


author: AnnWorley
body: Thank you so much for the detailed steps!

I noticed that you are working on a support ticket with a senior support engineer on the Confluence support team, so I am confident the issues will be resolved soon. When the issue with the images is resolved we can follow up on this public thread to let the Community know how to resolve similar issues.


Tags: confluence-administration

developer

jira

jira-administration