Forums

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

Jira is throwing the following error while I access through browser

prasad biddika
Contributor
October 27, 2022

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

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

Pls help to resolve this issue

 

Thanks,

Prasad

4 answers

1 vote
Tom Lister
Community Champion
October 27, 2022

The user which is running the start doesn't have these permissions.

The quick fix is to go the server as the jira user and create /data/atl/jira/home yourself.

Note it not advised to create the home directory within the same directory tree as the Jira application as it can cause issues in upgrading.

0 votes
prasad biddika
Contributor
October 27, 2022

Resolved but throwing the following error

This site can’t be reached

10.53.0.22 refused to connect.

Try:

ERR_CONNECTION_REFUSED
Tom Lister
Community Champion
October 27, 2022

Jira may not be starting at all.

check for the process 'ps -ef | grep java'

check the atlassian-jira.log file in /jira-home/log directory

0 votes
prasad biddika
Contributor
October 27, 2022

After executing 

sudo chown -R jirauser:jiragroup /path/to/jirahome
sudo chown -R jirauser:jiragroup /path/to/jirainstall

chmod -R u=rwx,go-rwx,o-rwx /path/to/jirahome
chmod -R u=rwx,go-rwx,o-rwx /path/to/jirainstall

I am not able to start jira from bin throwing the following error now

earlier i used to start and stop as a service also now not able to start and stop from bin also

***************************************************

[root@ip-10-53-0-22 bin]# sudo ./start-jira.sh

To run Jira in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira3
bash: ./startup.sh: Permission denied

Tom Lister
Community Champion
October 27, 2022

Can you screenshot the exact commands you ran?

Also ls-al your Jira & home directories.

PS

If you reply to the posted answer it will be easier for us to read the post and mark the correct solution is resolved

0 votes
Mayur Jadhav
Community Champion
October 27, 2022

Hello @prasad biddika ,

Hope you are doing good!!

It means Jira is unable to read or write the data in Jira Home directory.

So, you need check the ownership and permission of Home Directory. 

sudo chown -R jirauser:jiragroup /path/to/jirahome
sudo chown -R jirauser:jiragroup /path/to/jirainstall

chmod -R u=rwx,go-rwx,o-rwx /path/to/jirahome
chmod -R u=rwx,go-rwx,o-rwx /path/to/jirainstall

 

 

For more information you may please have a look at How to fix directory permissions in Linux for Jira Server 

 

 

Hope this information helps!

 

Regards,
Mayur

Mayur Jadhav
Community Champion
October 27, 2022

Hello @prasad biddika ,

You have to check the dedicated user bu navigaing to cd /op/atlassian/jira/bin and cat user,sh and check the user. I think in your case it is jira3.

  1. Then run the 
    sudo chown -R jira3:jira3 /path/to/jirahome
    sudo chown -R jira3:jira3 /path/to/jirainstall

     

  2. chmod -R u=rwx,go-rwx,o-rwx /path/to/jirahome
    chmod -R u=rwx,go-rwx,o-rwx /path/to/jirainstall

 

 

Hope this will solve the issue.

Suggest an answer

Log in or Sign up to answer