touch: cannot touch '/opt/atlassian/jira/logs/catalina.out': Permission denied

Alexey Kravtsov April 28, 2020

Our server ran out of disk space. We have corrected this issue and now Jira does not want to start. Bitbucket and Confluence started without any issue and Jira outputs these

[ec2-user@ip-172-31-59-210 ~]$ sudo service jira start

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira

Atlassian JIRA
Version : 7.12.1


If you encounter issues starting or stopping JIRA, please see the Troubleshooting guide at http://confluence.atlassian.com/display/JIRA/Installation+Troubleshooting+Guide


Server startup logs are located in /opt/atlassian/jira/logs/catalina.out
Using CATALINA_BASE: /opt/atlassian/jira
Using CATALINA_HOME: /opt/atlassian/jira
Using CATALINA_TMPDIR: /opt/atlassian/jira/temp
Using JRE_HOME: /opt/atlassian/jira/jre/
Using CLASSPATH: /opt/atlassian/jira/bin/bootstrap.jar:/opt/atlassian/jira/bin/tomcat-juli.jar
Using CATALINA_PID: /opt/atlassian/jira/work/catalina.pid
touch: cannot touch '/opt/atlassian/jira/logs/catalina.out': Permission denied
/opt/atlassian/jira/bin/catalina.sh: line 469: /opt/atlassian/jira/logs/catalina.out: Permission denied

 

2 answers

0 votes
Srinivasa Chimata August 21, 2022

Check if Jira got installed as jira2 user. 

As root, run < cat /etc/passwd |grep jira >
If returns jira2, then ensure that you have stopped jira service < service jira stop >

Then, run the following command in both /opt/atlassian and /var/atlassian/application-data directories. 

<chown -R jira2:jira2 jira> 

Now restart jira service <service jira start> and you should be fine now!!

0 votes
Alexey Kravtsov April 28, 2020

It started to work after I changed permissions on 

/opt/atlassian

/opt/atlassian/jira

/opt/atlassian/jira/logs

for everyone to be able to read.

Tushar Kamble February 2, 2021

HI Alexey,

I stuck with same problem. Can you please let me know what permission did you changed?

 

~Tushar

Alexey Kravtsov February 2, 2021

Tushar, I allowed read to everyone.

Like Tushar Kamble likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.12.1
TAGS
AUG Leaders

Atlassian Community Events