Jira shows a 404 error after restart
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Symptoms
After a restart of Jira, when trying to get to Jira via your web browser, you run into a 404 error.
The following appears in the atlassian-jira.log
:
1
2
3
4
YYYY-MM-DD HH:MM:SS,MSS main FATAL [atlassian.jira.upgrade.PluginSystemLauncher] A fatal error occured during initialisation. JIRA has been locked.
com.atlassian.plugin.osgi.container.OsgiContainerException: Unable to clean the cache directory: /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix
...
Caused by: java.io.IOException: Unable to delete file: /var/atlassian/application-data/jira/plugins/.osgi-plugins/felix/felix-cache/bundle4/bundle.location
Cause
The permissions to Jira folders are not assigned to the user who is starting Jira.
Resolution
Check that both your <Jira-home> and <Jira-install> directories are recursively owned by the user who starts Jira and try to start the application again as the user who owns all files.
Linux
In a terminal prompt run the following commands.
1
2
chown -R <username> <Jira-install-dir>
chown -R <username> <Jira-home-dir>
ℹ️ You may need to sudo this operation
Windows
Open Windows Explorer, and then locate the file or folder you want to take ownership of.
Right-click the file or folder, click Properties, and then click the Security tab.
Click Advanced, and then click the Owner tab.
Click Edit, and then do one of the following:
To change the owner to a user or group that is not listed, click Other users and groups and, in Enter the object name to select (examples), type the name of the user or group, and then click OK.
To change the owner to a user or group that is listed, in the Change owner to box, click the new owner.
(Optional) To change the owner of all subcontainers and objects within the tree, select the Replace owner on subcontainers and objects check box.
ℹ️ Reference: Take Ownership of a File or Folder
Was this helpful?