Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

The Jira service does not start after an incorrect termination

Ildus
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
August 23, 2021

I gave the stop command "systemctl stop jira "and after about 40 seconds I started" systemctl start jira " without checking that the process was completed.
Now jira does not start at all. Please help me solve the problem

[root@jira ~]# systemctl status jira.service
● jira.service - (null)
Loaded: loaded (/etc/rc.d/init.d/jira; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2021-08-23 22:40:36 MSK; 24s ago
Docs: man:systemd-sysv-generator(8)
Process: 948 ExecStart=/etc/rc.d/init.d/jira start (code=exited, status=1/FAILURE)

Aug 23 22:40:36 jira.aplanadc.ru jira[948]: Atlassian Jira
Aug 23 22:40:36 jira.aplanadc.ru jira[948]: Version : 8.4.0
Aug 23 22:40:36 jira.aplanadc.ru jira[948]: If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at https://docs.atlassi...stallation
Aug 23 22:40:36 jira.aplanadc.ru jira[948]: Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Aug 23 22:40:36 jira.aplanadc.ru jira[948]: Neither the JAVA_HOME nor the JRE_HOME environment variable is defined
Aug 23 22:40:36 jira.aplanadc.ru jira[948]: At least one of these environment variable is needed to run this program
Aug 23 22:40:36 jira.aplanadc.ru systemd[1]: jira.service: control process exited, code=exited status=1
Aug 23 22:40:36 jira.aplanadc.ru systemd[1]: Failed to start (null).
Aug 23 22:40:36 jira.aplanadc.ru systemd[1]: Unit jira.service entered failed state.
Aug 23 22:40:36 jira.aplanadc.ru systemd[1]: jira.service failed.journalctl.png

2 answers

0 votes
Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 28, 2021

Hi @Ildus

while I certainly agree with Nic that looking into logs is the best option to spot any details I saw that there is an error we came across in the past (Jira does not know where your JRE is but as it needs it - it cannot continue):

Neither the JAVA_HOME nor the JRE_HOME environment variable is defined

There is some more information in a bug https://jira.atlassian.com/browse/JRASERVER-43770 - but basically you need to state in configuration where Jira should look for the JRE, setting per environment variable works, too.

That, of course, cannot say anything about if there are several other critical issues with your installation. You need to check.

Regards,
Daniel

0 votes
Nic Brough -Adaptavist-
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
August 23, 2021

What does the application log say the problem is?   (<jira home>/log/atlassian-jira.log is the first place to look when it fails to start)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events