'Found file atlassian-bundled-plugins.zip, but failed to read file' Causes Loss of Standard Functionality
Problem
Some functionality, which are provided by the bundled plugins stored in atlassian-bundled-plugins.zip
cease to work. For example:
- Confluence Dashboard renders
unknown macro
in place of the recently-updated section. - Graphical user interface, for example the pull down menu no longer works.
- Index rebuild does not work.
- Dashboard does not render, throwing a browser redirection error.
Diagnosis
The following stack trace appears in the atlassian-confluence.log
:
2009-06-25 15:49:49,243 ERROR [main] [atlassian.plugin.util.FileUtils] conditionallyExtractZipFile Found file:/apps/confluence-3.0.0_01/confluence/WEB-INF/classes/com/atlassian/confluence/setup/atlassian-bundled-plugins.zip, but failed to read file
java.io.IOException: Unable to delete file: /apps/data/confluence-data/bundled-plugins/toc-plugin-2.4.5.jar
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1390)
Cause
This is usually due to Confluence inability to update the bundled plugins in the Confluence home folder. Usually related to write permissions. For example if the files belong to root user account and Confluence is run by a non-root user account, then it may not be able to delete (ie. update) its bundled plugins.
Resolution
Check for your files and/or folder permissions in <confluence home>/bundled-plugins
folder. Make sure that Confluence is run by a user with sufficient write permission.