Not able to access localhost:8080 or vmmachine:8080

Salam Elias December 15, 2024

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

 

1 answer

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 15, 2024

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.

Salam Elias December 16, 2024

Thanks, Tuncay, this is the 1st thing I did, I visited this folder but no file was created yesterday, only files created in 2022.

jiralog.jpg

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

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.

Salam Elias December 16, 2024

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
setenv
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

 

 

Salam Elias December 16, 2024

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?

 

jiraStout.jpg

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

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
Salam Elias December 16, 2024

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:\

jiraFile.jpg

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

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.

Salam Elias December 16, 2024

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"

 

Salam Elias December 16, 2024

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\"

 

jiraOK.jpg

 

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

jiraerr.jpg

 

jiraLogin.jpg

 

By the way what is the defaul;t login?

 

Salam Elias December 16, 2024

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?

jiralicense.jpg

 

 

Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 16, 2024

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events