Jira not starting with the command service jira start

Hi,

When tries to start / stop Jira with command service jira start / service jira stop I am getting the below error

To run JIRA in the foreground, start the server with start-jira.sh -fg
executing using dedicated user: jira2
./startup.sh: line 62: /opt/atlassian/jira/bin/catalina.sh: Permission denied
./startup.sh: line 62: exec: /opt/atlassian/jira/bin/catalina.sh: cannot execute: Permission denied

When start Jira with the command sh /opt/atlassian/jira/bin/startup.sh Jira is starting and working fine.

I tried chmod 777 for the installation and home directory of Jira and still nothing happends. :(

I have unistalled and re-installed jira nore than once and i suspect this might be reason but i dont know how to resolve it.

Plese Help.. Thanks in Advance..


5 answers

1 accepted

This widget could not be displayed.

please check if owner for all jira files (including subdirectories) is jira2

Please post output of


ls -la /opt/atlassian/jira/bin

command.

As you can see owner of these files is"root".

Please execute as root:

chown jira2 -R /opt/atlassian/jira

and same for jira home if it is not located in /opt/atlassian/jira

Hi Andris,

PFB output of the command..

drwxr-xr-x 4 root root 4096 Feb 26 11:23 .
drwxrwxrwx 15 root root 4096 Feb 25 06:16 ..
drwxr-xr-x 2 root root 4096 Jan 26 05:31 apr
drwxr-xr-x 2 root root 4096 Jan 27 11:49 attachments
-rw-r--r-- 1 root root 28548 Nov 22 2012 bootstrap.jar
-rw-r--r-- 1 root root 13217 Nov 22 2012 catalina.bat
-rwxr-xr-x 1 root root 19189 Nov 22 2012 catalina.sh
-rw-r--r-- 1 root root 2168 Nov 22 2012 catalina-tasks.xml
-rw-r--r-- 1 root root 24242 Nov 22 2012 commons-daemon.jar
-rw-r--r-- 1 root root 202519 Nov 22 2012 commons-daemon-native.tar.gz
-rw-r--r-- 1 root root 990 Nov 22 2012 config.bat
-rwxr-xr-x 1 root root 1105 Nov 22 2012 config.sh
-rw-r--r-- 1 root root 2131 Nov 22 2012 configtest.bat
-rwxr-xr-x 1 root root 1982 Nov 22 2012 configtest.sh
-rw-r--r-- 1 root root 1342 Nov 22 2012 cpappend.bat
-rwxr-xr-x 1 root root 7492 Nov 22 2012 daemon.sh
-rw-r--r-- 1 root root 2178 Nov 22 2012 digest.bat
-rwxr-xr-x 1 root root 2021 Nov 22 2012 digest.sh
-rwxr-xr-x 1 root root 1496 Nov 22 2012 install_linux_service.sh
-rw-r--r-- 1 root root 538 Nov 22 2012 jirabanner.txt
-rw-r--r-- 1 root root 581 Nov 22 2012 permgen.bat
-rw-r--r-- 1 root root 585 Nov 22 2012 permgenservice.bat
-rwxr-xr-x 1 root root 1640 Jan 26 05:31 permgen.sh
-rw-r--r-- 1 root root 6608 Nov 22 2012 service.bat
-rw-r--r-- 1 root root 3264 Nov 22 2012 setclasspath.bat
-rwxr-xr-x 1 root root 3403 Nov 22 2012 setclasspath.sh
-rw-r--r-- 1 root root 4304 Nov 22 2012 setenv.bat
-rwxr-xr-x 1 root root 4006 Feb 25 14:30 setenv.sh
-rwxr-xr-x 1 root root 1927 Nov 22 2012 setup_user.sh
-rw-r--r-- 1 root root 2111 Nov 22 2012 shutdown.bat
-rwxr-xr-x 1 root root 1960 Nov 22 2012 shutdown.sh
-rw-r--r-- 1 root root 487 Nov 22 2012 start-jira.bat
-rwxr-xr-x 1 root root 1257 Nov 22 2012 start-jira.sh
-rw-r--r-- 1 root root 2112 Nov 22 2012 startup.bat
-rwxr-xr-x 1 root root 1961 Nov 22 2012 startup.sh
-rw-r--r-- 1 root root 85 Nov 22 2012 stop-jira.bat
-rwxr-xr-x 1 root root 854 Nov 22 2012 stop-jira.sh
-rw-r--r-- 1 root root 77312 Nov 22 2012 tomcat7.exe
-rw-r--r-- 1 root root 99840 Nov 22 2012 tomcat7.exe.x64
-rw-r--r-- 1 root root 103424 Nov 22 2012 tomcat7w.exe
-rw-r--r-- 1 root root 38129 Nov 22 2012 tomcat-juli.jar
-rw-r--r-- 1 root root 261742 Nov 22 2012 tomcat-native.tar.gz
-rw-r--r-- 1 root root 4114 Nov 22 2012 tool-wrapper.bat
-rwxr-xr-x 1 root root 5086 Nov 22 2012 tool-wrapper.sh
-rwxr-xr-x 1 root root 142 Jan 26 05:31 user.sh
-rw-r--r-- 1 root root 2116 Nov 22 2012 version.bat
-rwxr-xr-x 1 root root 1965 Nov 22 2012 version.sh

This widget could not be displayed.

I tried it.. but the same error.. :(

PFB theoutput of the command ls -la /opt/atlassian/jira/bin after the change

drwxr-xr-x 4 jira2 root 4096 Feb 26 11:23 .
drwxrwxrwx 15 jira2 root 4096 Feb 25 06:16 ..
drwxr-xr-x 2 jira2 root 4096 Jan 26 05:31 apr
drwxr-xr-x 2 jira2 root 4096 Jan 27 11:49 attachments
-rw-r--r-- 1 jira2 root 28548 Nov 22 2012 bootstrap.jar
-rw-r--r-- 1 jira2 root 13217 Nov 22 2012 catalina.bat
-rwxr-xr-x 1 jira2 root 19189 Nov 22 2012 catalina.sh
-rw-r--r-- 1 jira2 root 2168 Nov 22 2012 catalina-tasks.xml
-rw-r--r-- 1 jira2 root 24242 Nov 22 2012 commons-daemon.jar
-rw-r--r-- 1 jira2 root 202519 Nov 22 2012 commons-daemon-native.tar.gz
-rw-r--r-- 1 jira2 root 990 Nov 22 2012 config.bat
-rwxr-xr-x 1 jira2 root 1105 Nov 22 2012 config.sh
-rw-r--r-- 1 jira2 root 2131 Nov 22 2012 configtest.bat
-rwxr-xr-x 1 jira2 root 1982 Nov 22 2012 configtest.sh
-rw-r--r-- 1 jira2 root 1342 Nov 22 2012 cpappend.bat
-rwxr-xr-x 1 jira2 root 7492 Nov 22 2012 daemon.sh
-rw-r--r-- 1 jira2 root 2178 Nov 22 2012 digest.bat
-rwxr-xr-x 1 jira2 root 2021 Nov 22 2012 digest.sh
-rwxr-xr-x 1 jira2 root 1496 Nov 22 2012 install_linux_service.sh
-rw-r--r-- 1 jira2 root 538 Nov 22 2012 jirabanner.txt
-rw-r--r-- 1 jira2 root 581 Nov 22 2012 permgen.bat
-rw-r--r-- 1 jira2 root 585 Nov 22 2012 permgenservice.bat
-rwxr-xr-x 1 jira2 root 1640 Jan 26 05:31 permgen.sh
-rw-r--r-- 1 jira2 root 6608 Nov 22 2012 service.bat
-rw-r--r-- 1 jira2 root 3264 Nov 22 2012 setclasspath.bat
-rwxr-xr-x 1 jira2 root 3403 Nov 22 2012 setclasspath.sh
-rw-r--r-- 1 jira2 root 4304 Nov 22 2012 setenv.bat
-rwxr-xr-x 1 jira2 root 4006 Feb 25 14:30 setenv.sh
-rwxr-xr-x 1 jira2 root 1927 Nov 22 2012 setup_user.sh
-rw-r--r-- 1 jira2 root 2111 Nov 22 2012 shutdown.bat
-rwxr-xr-x 1 jira2 root 1960 Nov 22 2012 shutdown.sh
-rw-r--r-- 1 jira2 root 487 Nov 22 2012 start-jira.bat
-rwxr-xr-x 1 jira2 root 1257 Nov 22 2012 start-jira.sh
-rw-r--r-- 1 jira2 root 2112 Nov 22 2012 startup.bat
-rwxr-xr-x 1 jira2 root 1961 Nov 22 2012 startup.sh
-rw-r--r-- 1 jira2 root 85 Nov 22 2012 stop-jira.bat
-rwxr-xr-x 1 jira2 root 854 Nov 22 2012 stop-jira.sh
-rw-r--r-- 1 jira2 root 77312 Nov 22 2012 tomcat7.exe
-rw-r--r-- 1 jira2 root 99840 Nov 22 2012 tomcat7.exe.x64
-rw-r--r-- 1 jira2 root 103424 Nov 22 2012 tomcat7w.exe
-rw-r--r-- 1 jira2 root 38129 Nov 22 2012 tomcat-juli.jar
-rw-r--r-- 1 jira2 root 261742 Nov 22 2012 tomcat-native.tar.gz
-rw-r--r-- 1 jira2 root 4114 Nov 22 2012 tool-wrapper.bat
-rwxr-xr-x 1 jira2 root 5086 Nov 22 2012 tool-wrapper.sh
-rwxr-xr-x 1 jira2 root 142 Jan 26 05:31 user.sh
-rw-r--r-- 1 jira2 root 2116 Nov 22 2012 version.bat
-rwxr-xr-x 1 jira2 root 1965 Nov 22 2012 version.sh

This widget could not be displayed.

Probably user jira2 don't have permission to higher folders, try as root:

chmod 755 /opt

chmod 755 /opt/atlassian

chmod 755 /opt/atlassian/jira

Try starting jira with this command (from root):
su - jira2 -c "/opt/atlassian/jira/bin/start-jira.sh"

...to ensure jira2 user can start jira.

This widget could not be displayed.

Hi Andris,

Thanks a lot.. This really helped me.. :)

This widget could not be displayed.
Great. :) You should probably mark this question as answered.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted 8 hours ago in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

21 views 0 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you