Forums

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

Cant'stop (restart) jira

david_gianonatti October 3, 2018

I updated the TCP port of the application.

I want to restart the application (on Linux Debian 9)

When I do /etc/init.d/jira stop or with start-jira.sh


I got :

cat: /opt/atlassian/jira/work/catalina.pid: Permission denied
PID file found but either no matching process was found or the current user does not have permission to stop the process. Stop aborted.


I run this command under root user (I also tried on jira user)

 

Edit : now, I don't know why jira is not working anymore (whatever the used port), so got this error now :

 

Existing PID file found during start.
Unable to read PID file. Start aborted.

 

3 answers

1 accepted

2 votes
Answer accepted
david_gianonatti October 3, 2018

Ok found the problem ..

just have to delete /opt/atlassian/jira/work/catalina.pid

0 votes
Krishna Desai March 20, 2021

I think this is because the PID is not matching with the PID stored in catalina.pid file.

I would suggest, check the processID using ps command  and overwrite the PID in /opt/atlassian/jira/work/catalina.pid with the running processID. 

and then restart jira with correct user

 

ps -ef | grep jira

$ echo "jira_pid" > /opt/atlassian/jira/work/catalina.pid

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.
October 3, 2018

This is usually down to users.  The most common culprit is when someone logs in as root, and (re)starts Jira under that account rather than the jira account.  This clobbers a load of the installation and working files, including the pid file.  With root taking ownership of them, when you try to stop/start Jira as another user, it fails, because root owns files and the permissions are set to "owner only".

You need to log in as root, shut down Jira, check it has stopped in full with "ps", then "chown -R <jira user who should run it>" the installation and jira home directories.

david_gianonatti October 3, 2018

I did it but now got this error when I log to the webpage :

 

"

Setup: JIRA couldn't create the jira.home directory

Ensure JIRA has permission to create and write to the jira.home directory /var/atlassian/application-data/jira.
Review our documentation for more information on setting your JIRA home.

Learn more

"

My ls gives :

drwx-w--w- 11 jira root  12K Oct  3 17:28 jira

Suggest an answer

Log in or Sign up to answer