-
Type:
Bug
-
Resolution: Unresolved
-
Priority:
Low
-
None
-
Affects Version/s: 11.3.3
-
Component/s: Tomcat
-
None
-
11.03
-
3
-
Severity 2 - Major
-
18
Issue Summary
JIRA 11.3.3 (LTS) Windows x64 Installer (install4j) fails to upgrade from old JIRA versions due to IllegalArgumentException
Steps to Reproduce
- Install Jira v11.3.2 or previous versions on Windows
- Try upgrade to v11.3.3 through Windows installer
Expected Results
Installer continues with the normal upgrade steps and complete installation
Actual Results
- Installer quits and throws below error in the upgrade installation directory itself (filename - atlassian-jira-software-11.3.3-x64_error):
- The below exception is thrown in the xxxxxxx.log file:
In action "Run script" (screen "Check if Jira is running [Form]"), property "Script": java.lang.IllegalArgumentException: port out of range:-1 at java.base/java.net.InetSocketAddress.checkPort(Unknown Source) at java.base/java.net.InetSocketAddress.<init>(Unknown Source) at com.atlassian.inception.TomcatChecker.isTomcatRunning(TomcatChecker.java:15) at com.install4j.script.I4jScript_Internal_236.eval(I4jScript_Internal_236.java:5) at com.install4j.script.I4jScript_Internal_236.evaluate(I4jScript_Internal_236.java:*30) at com.install4j.runtime.installer.helper.Script.evaluate(Script.java:33) at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:210) at com.install4j.runtime.installer.ContextImpl.runScript(ContextImpl.java:204) at com.install4j.runtime.beans.actions.control.RunScriptAction.execute(RunScriptAction.java:35) at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.install(SystemInstallOrUninstallAction.java:29) at com.install4j.runtime.installer.ContextImpl$7.executeAction(ContextImpl.java:1774) at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1764) at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1761) at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionDirect(HelperCommunication.java:292) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionInt(HelperCommunication.java:267) at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionChecked(HelperCommunication.java:205) at com.install4j.runtime.installer.helper.comm.HelperCommunication.fetchObjectChecked(HelperCommunication.java:188) at com.install4j.runtime.installer.ContextImpl.performActionIntStatic(ContextImpl.java:1761) at com.install4j.runtime.installer.InstallerContextImpl.performActionInt(InstallerContextImpl.java:157) at com.install4j.runtime.installer.ContextImpl.performAction(ContextImpl.java:1173) at com.install4j.runtime.installer.controller.Controller.executeAction(Controller.java:411) at com.install4j.runtime.installer.controller.Controller.executeActions(Controller.java:377) at com.install4j.runtime.installer.controller.Controller.handleCommand(Controller.java:231) at com.install4j.runtime.installer.controller.Controller.start(Controller.java:133) at com.install4j.runtime.installer.Installer.runInProcess(Installer.java:61) at com.install4j.runtime.installer.Installer.main(Installer.java:46) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(Unknown Source) at java.base/java.lang.reflect.Method.invoke(Unknown Source) at com.exe4j.runtime.LauncherEngine.launch(LauncherEngine.java:84) at com.exe4j.runtime.WinLauncher.main(WinLauncher.java:94) at com.install4j.runtime.launcher.WinLauncher.main(WinLauncher.java:25) In action "Check Jira is shut [Run script]" (screen "Upgrade Actions [Form]"), property "Script": java.lang.IllegalArgumentException: port out of range:-1
Workaround
- Backup current server.xml
- Â Temporarily set the shutdown port to a valid value
Change:<Server port="-1" shutdown="SHUTDOWN">
To:
<Server port="8005" shutdown="SHUTDOWN">
8005 is the Tomcat default, but any unused port will work.
- Run the Jira 11.3.3 installer/upgrade again. The installer should now proceed without the port out of range error.
- After the upgrade completes, we can revert the shutdown port back to -1 for security:
<Server port="-1" shutdown="SHUTDOWN">
- Or, leave it as a valid port if you want to avoid this issue in future upgrades (but be aware of the security implications). KB article reference - Upgrade Fails due to java.lang.IllegalArgumentException: port out of range