1 and half year back, I needed to install jira to do a POC with gitlab which I did on a windows 2022 server.
When I run, on command line
E:\Jira Software\bin>start-jira.bat
I dont see any errors as you can see in the following text I get
To run Jira in the foreground, start the server with start-jira.bat /fg `
some ascii shapes...... `UOJ
Atlassian Jira Version : 9.3.0
If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-093/Troubleshooting+installation
Using JIRA_HOME: E:\Jira Software
Using CATALINA_BASE: "E:\Jira Software"
Using CATALINA_HOME: "E:\Jira Software"
Using CATALINA_TMPDIR: "E:\Jira Software\temp"
Using JRE_HOME: "E:\Jira Software\jre\"
Using CLASSPATH: "E:\Jira Software\bin\bootstrap.jar;E:\Jira Software\bin\tomcat-juli.jar" Using CATALINA_OPTS: ""
but cant access jira.
At that time I did not follow as the customer stopped the POC, now request came again and I need to understand what is going wrong and why this is happening? So where should I investigate? Thanks in advance
Hi @Salam Elias
If Jira starts without errors but is inaccessible, you should check application logs (not the console logs). To do that, navigate to the logs folder in your Jira installation directory (E:\Jira Software\logs
) and open the atlassian-jira.log
file. There should be something there. Look for any errors or exceptions, especially related to server startup, ports, or database connectivity.
Thanks, Tuncay, this is the 1st thing I did, I visited this folder but no file was created yesterday, only files created in 2022.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That's strange. Does your start-jira.bat or set-env.bat file have any other location for the log files? I'd recommend checking the bat file.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Here is the content for both files, start-jira and setenv (not set-env)
start-jira
@echo off
set _PRG_DIR=%~dp0
set _PRGRUNMODE=false
if "%1" == "/?" GOTO EXECHELP
if "%1" == "/fg" set _PRGRUNMODE=true
if "%1" == "run" set _PRGRUNMODE=true
set START_JIRA_JAVA_OPTS=-Datlassian.plugins.startup.options="%*%"
FOR %%A in (%*%) DO (
echo.%%A | findstr /C:"disablealladdons" >nul && (
echo Disabling all user installed addons
)
echo.%%A | findstr /C:"disableaddons" >nul && (
echo Disabling specified plugins
)
)
if "%_PRGRUNMODE%" == "true" GOTO EXECSTART
echo.
echo To run Jira in the foreground, start the server with start-jira.bat /fg
:EXECSTART
if "%_PRGRUNMODE%" == "true" GOTO EXECRUNMODE
"%_PRG_DIR%startup.bat" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO END
:EXECRUNMODE
"%_PRG_DIR%catalina.bat" run %2 %3 %4 %5 %6 %7 %8 %9
GOTO END
:EXECHELP
"%_PRG_DIR%display-help.bat"
GOTO END
:END
set JVM_SUPPORT_RECOMMENDED_ARGS=
rem --------------------------------------------------------------------------
rem
rem You can use variable below to modify garbage collector settings.
rem For Java 8 we recommend default settings
rem For Java 11 and relatively small heaps we recommend: -XX:+UseParallelGC
rem For Java 11 and larger heaps we recommend: -XX:+UseG1GC -XX:+ExplicitGCInvokesConcurrent
rem
rem --------------------------------------------------------------------------
set JVM_GC_ARGS=-XX:+ExplicitGCInvokesConcurrent
rem --------------------------------------------------------------------------
rem
rem The following 2 settings control the minimum and maximum given to the Jira Java virtual machine. In larger Jira instances, the maximum amount will need to be increased.
rem
rem --------------------------------------------------------------------------
set JVM_MINIMUM_MEMORY=384m
set JVM_MAXIMUM_MEMORY=2048m
rem
rem --------------------------------------------------------------------------
set JVM_CODE_CACHE_ARGS=-XX:InitialCodeCacheSize=32m -XX:ReservedCodeCacheSize=512m
rem --------------------------------------------------------------------------
set JVM_REQUIRED_ARGS=-Djava.awt.headless=true -Datlassian.standalone=JIRA -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true -Dmail.mime.decodeparameters=true -Dorg.dom4j.factory=com.atlassian.core.xml.InterningDocumentFactory
rem set DISABLE_NOTIFICATIONS= -Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true -Datlassian.mail.popdisabled=true
set JVM_EXTRA_ARGS=-XX:-OmitStackTraceInFastThrow -Djava.locale.providers=COMPAT
set _PRG_DIR=%~dp0
type "%_PRG_DIR%\jirabanner.txt"
set JIRA_HOME_MINUSD=
IF "x%JIRA_HOME%x" == "xx" GOTO NOJIRAHOME
set JIRA_HOME_MINUSD=-Djira.home="%JIRA_HOME%"
:NOJIRAHOME
set JAVA_OPTS=%JAVA_OPTS% -Xms%JVM_MINIMUM_MEMORY% -Xmx%JVM_MAXIMUM_MEMORY% %JVM_CODE_CACHE_ARGS% %JVM_REQUIRED_ARGS% %DISABLE_NOTIFICATIONS% %JVM_SUPPORT_RECOMMENDED_ARGS% %JVM_EXTRA_ARGS% %JIRA_HOME_MINUSD% %START_JIRA_JAVA_OPTS%
rem Checks if the JAVA_HOME has a space in it (can cause issues)
SET _marker="x%JAVA_HOME%"
SET _marker=%_marker: =%
IF NOT %_marker% == "x%JAVA_HOME%" ECHO JAVA_HOME "%JAVA_HOME%" contains spaces. Please change to a location without spaces if this causes problems.
rem DO NOT remove the following line
SET "JAVA_HOME=E:\Jira Software\jre\"
echo.
echo If you encounter issues starting or stopping Jira, please see the Troubleshooting guide at https://docs.atlassian.com/jira/jadm-docs-093/Troubleshooting+installation
echo.
IF "x%JIRA_HOME%x" == "xx" GOTO NOJIRAHOME2
echo Using JIRA_HOME: %JIRA_HOME%
:NOJIRAHOME2
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please Tuncay, when I run start-jira on commandline, it displays some messages then it goes back to my prompt? is this what I should expect or should I see the stdout messages from jira server?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, that's how it may work. It starts the job and run in the background.
In order to run it foreground execute below command. then you will see the logs in the console, not sure why you can't see those log files though
start-jira.bat /fg
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ok, I did use flag fg I see a strange exception. I searched where this Xlog is used but not able to find it.
Using CATALINA_BASE: "E:\Jira Software"
Using CATALINA_HOME: "E:\Jira Software"
Using CATALINA_TMPDIR: "E:\Jira Software\temp"
Using JRE_HOME: "E:\Jira Software\jre\"
Using CLASSPATH: "E:\Jira Software\bin\bootstrap.jar;E:\Jira Software\bin\tomcat-juli.jar"
Using CATALINA_OPTS: ""
NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED
[0.003s][error][logging] Missing terminating quote in -Xlog option 'file="E:\Jira'
Invalid -Xlog option '-Xlog:gc*:file="E:\Jira', see error log for details.
Error: Could not create the Java Virtual Machine.
Error: A fatal exception has occurred. Program will exit.
I have no file jira in E:\
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We are making progress. The issue seems to be related to the space character in Jira Software. It would be better to use "jira" instead. The console also warns against using a location with spaces.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK so how I use jira? do you mean change the folder name from jira software to jira? If yes, the problem I see is that it looks for "Jira software "
Using CATALINA_BASE: "E:\Jira Software"
Using CATALINA_HOME: "E:\Jira Software"
Using CATALINA_TMPDIR: "E:\Jira Software\temp"
Using JRE_HOME: "E:\Jira Software\jre\"
Using CLASSPATH: "E:\Jira Software\bin\bootstrap.jar;E:\Jira Software\bin\tomcat-juli.jar"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I changed the folder name to jira and ran the startup it erorre for the jre, I remembered that it was hard-coded in a setenv.bt file as follows
SET "JAVA_HOME=E:\Jira Softyare\jre\"
I changed it and initialization went through
rem DO NOT remove the following line
SET "JAVA_HOME=E:\Jira\jre\"
Really appreciate your help, so many thanks
However, in spit of the fact that jira dasboard was diplayed in the browser I saw this error in the terminal
By the way what is the defaul;t login?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, I am getting "license expired " and as I said I did not use it in 2022 as it was for a canceled POC. How can I fix this please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
For the license problem, you need to get an evaluation/trial license to make it work.
For the other problem, I think it needs to be reindexed but I am not 100% sure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.