-
Type:
Bug
-
Resolution: Fixed
-
Priority:
Low
-
Affects Version/s: 7.6.11, 7.13.1
-
Component/s: Environment - Java
-
None
-
7.06
-
1
-
Severity 2 - Major
Summary
Jira fails to start on Solaris when executing the startup manually. This also happens when upgrading instance manually.
Environment
- JIRA 7.13.1 running on Solaris.
Steps to Reproduce
- Run the start-jira.sh or else check-java.sh and try to start Jira.
Expected Results
Jira starts without issue.
Actual Results
There's a grep -E on the check-java.sh that is avoiding Jira to check what the Java version is. Solaris cannot use the -E option on grep as the syntax for recursively grep is different on Solaris.
#!/bin/sh _EXPECTED_JAVA_VERSION="8" # check for correct java version by parsing out put of java -version we expect first line to be in format '(java|openjdk) version "1.8.0_40"' and assert that minor version number will be 8 or higher # "$_RUNJAVA" -version 2>&1 | grep -E "(java|openjdk) version" | ( IFS=. read ignore1 version ignore2 if [ ! ${version:-0} -ge "$_EXPECTED_JAVA_VERSION" ] then echo "*************************************************************************************************************************************" echo "********** Wrong JVM version! You are running with "$ignore1"."$version"."$ignore2" but JIRA requires at least 1.8 to run. **********" echo "*************************************************************************************************************************************" exit 1 fi ) if [ $? -ne 0 ] ; then exit 1 fi
Server startup logs are located in /app/jira/logs/catalina.out Using CATALINA_BASE: /app/jira Using CATALINA_HOME: /app/jira Using CATALINA_TMPDIR: /app/jira/temp Using JRE_HOME: /usr Using CLASSPATH: /app/jira/bin/bootstrap.jar:/app/jira/bin/tomcat-juli.jar Using CATALINA_PID: /app/jira/work/catalina.pid grep: illegal option -- E Usage: grep [-c|-l|-q] -bhinsvw pattern file . . . ************************************************************************************************************************************* ********** Wrong JVM version! You are running with .. but JIRA requires at least 1.8 to run. ********** *************************************************************************************************************************************
Workaround
Edit the check-java.sh file and remove the -E option off the grep to be able to start Jira.
- is related to
-
JRASERVER-68812 Start Jira with embedded Tomcat Java application
- Gathering Interest