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

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

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

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:

Last modified on Mar 10, 2017

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.