Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,370,157
Community Members
 
Community Events
168
Community Groups

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

Edited

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

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

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.

HI Alexey,

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

 

~Tushar

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

Atlassian Community Events