Upgrading JIRA using Linux installer fails due to missing stats.properties

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

Upon upgrading JIRA using the Linux installer, the terminal is showing the following error:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 java.io.FileNotFoundException: /opt/atlassian/jira/atlassian-jira-5.2.11-x64.bin.21860.dir/stats.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentStats.<init>(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentStats.getInstance(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentInstaller.getMinSize(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentInstaller.validateInstallationDir(Unknown Source) at com.install4j.runtime.beans.actions.InstallFilesAction.install(Unknown Source) at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source) at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source) at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source) at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source) at com.install4j.runtime.installer.controller.Controller.start(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Extracting files ... An error occurred: java.io.FileNotFoundException: /opt/atlassian/jira/atlassian-jira-5.2.11-x64.bin.21860.dir/stats.properties (No such file or directory) Error log: /opt/atlassian/jira/install4jError7231333255525687269.log java.io.FileNotFoundException: /opt/atlassian/jira/atlassian-jira-5.2.11-x64.bin.21860.dir/stats.properties (No such file or directory) at java.io.FileInputStream.open(Native Method) at java.io.FileInputStream.<init>(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentStats.<init>(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentStats.getInstance(Unknown Source) at com.install4j.runtime.installer.helper.content.ContentInstaller.doStandardInstallation(Unknown Source) at com.install4j.runtime.beans.actions.InstallFilesAction.install(Unknown Source) at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(Unknown Source) at com.install4j.runtime.installer.ContextImpl.performAction(Unknown Source) at com.install4j.runtime.installer.controller.Controller.executeActions(Unknown Source) at com.install4j.runtime.installer.controller.Controller.handleCommand(Unknown Source) at com.install4j.runtime.installer.controller.Controller.start(Unknown Source) at com.install4j.runtime.installer.Installer.main(Unknown Source) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(Unknown Source) at com.install4j.runtime.launcher.Launcher.main(Unknown Source) Finishing installation ... sh: 0: getcwd() failed: No such file or directory

Cause

The installer bin file is placed on the JIRA Installation Directory. The installation creates the atlassian-jira-x.x.x-x64.bin.xxx.dir directory at the same place where JIRA suppose to remove the entire JIRA-Installation directory. Therefore, the file atlassian-jira-x.x.x-x64.bin.xxxx.dir/stats.properties and the directory itself are not there (deleted) when install begins.

Workaround

If the above stack-trace is displayed on the terminal, chances are the entire JIRA installation directory has been removed. The best way to upgrade is to install a fresh instance of JIRA and then restore the latest XML backup(zip archive) from the <jira-home>/export directory.

Please place the installer bin file outside the JIRA-Installation directory.

For more info, please refer to the following documentation:

Updated on April 8, 2025

Still need help?

The Atlassian Community is here for you.