Problems with plugins (apps) after Confluence upgrade due to plugin cache

Written by - 0 comments

Published on - Listed in Atlassian Linux


If you experience issues with plugins (apps) in Atlassian Confluence after an upgrade, the problem could simply be caused by an old cache.

Symptoms are that updating or installing a plugin doesn't work and the plugin will stay disabled (greyed out).

An error such as the following is then shown in the atlassian-confluence.log:

2021-09-07 10:47:08,172 ERROR [ThreadPoolAsyncTaskExecutor::Thread 55] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.troubleshooting.plugin-confluence'
 -- url: /confluence/rest/plugins/1.0/ | referer: https://confluence.example.com/confluence/plugins/servlet/upm | traceId: 74f0243fc43e24a5 | userName: admin
org.springframework.beans.factory.BeanDefinitionStoreException: Unexpected exception parsing XML document from URL [bundle://325.0:0/META-INF/spring/spring-context.xml]; nested exception is java.lang.IllegalStateException: The bundle is uninstalled.
[...]

To solve this, the plugin cache needs to be cleared.

1. Stop Confluence

root@confluence:~# /etc/init.d/confluence stop

2. Change into the CONFLUENCE_HOME directory (default: /var/atlassian/application-data/confluence)

root@confluence:~# cd /var/atlassian/application-data/confluence

3. Backup the plugin cache directories (e.g. to /tmp):

root@confluence:/var/atlassian/application-data/confluence# mkdir /tmp/plugins-cache-backup
root@confluence:/var/atlassian/application-data/confluence# cp -Rp bundled-plugins/ plugins-cache/ plugins-osgi-cache/ plugins-temp/ /tmp/plugins-cache-backup/

4. Remove the plugin cache directories:

root@confluence:/var/atlassian/application-data/confluence# rm -rf bundled-plugins/ plugins-cache/ plugins-osgi-cache/ plugins-temp/

5. Start Confluence

root@confluence:~# /etc/init.d/confluence start

Atlassian Jira or Confluence Hosting needed?

Looking for professional Atlassian Jira or Confluence server hosting in Switzerland? Head on over to Infiniroot!


Add a comment

Show form to leave a comment

Comments (newest first)

No comments yet.

RSS feed

Blog Tags:

  AWS   Android   Ansible   Apache   Apple   Atlassian   BSD   Backup   Bash   Bluecoat   CMS   Chef   Cloud   Coding   Consul   Containers   CouchDB   DB   DNS   Database   Databases   Docker   ELK   Elasticsearch   Filebeat   FreeBSD   Galera   Git   GlusterFS   Grafana   Graphics   HAProxy   HTML   Hacks   Hardware   Icinga   Influx   Internet   Java   KVM   Kibana   Kodi   Kubernetes   LVM   LXC   Linux   Logstash   Mac   Macintosh   Mail   MariaDB   Minio   MongoDB   Monitoring   Multimedia   MySQL   NFS   Nagios   Network   Nginx   OSSEC   OTRS   Office   PGSQL   PHP   Perl   Personal   PostgreSQL   Postgres   PowerDNS   Proxmox   Proxy   Python   Rancher   Rant   Redis   Roundcube   SSL   Samba   Seafile   Security   Shell   SmartOS   Solaris   Surveillance   Systemd   TLS   Tomcat   Ubuntu   Unix   VMWare   VMware   Varnish   Virtualization   Windows   Wireless   Wordpress   Wyse   ZFS   Zoneminder