Jira Evaluation Crash workout.

Marshall Epie July 1, 2016

Hmm I wonder whats going on here. 

It was all going ok for about 2 weeks ,then this morning

 no jira.

so i eventually try this

 

>sh start-jira.sh -fg

and get this at the end of jargon.


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

    JIRA startup failed, JIRA has been locked.

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

    

2016-07-01 19:44:54,822 localhost-startStop-1 ERROR      [o.apache.jasper.EmbeddedServletOptions] The scratchDir you specified: /Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/work/Catalina/localhost/ROOT is unusable.

01-Jul-2016 19:44:54.897 SEVERE [main] org.apache.catalina.valves.AccessLogValve.open Failed to open access log file [/Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/logs/access_log.2016-07-01]

 java.io.FileNotFoundException: /Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/logs/access_log.2016-07-01 (Permission denied)

 at java.io.FileOutputStream.open0(Native Method)

 at java.io.FileOutputStream.open(FileOutputStream.java:270)

 at java.io.FileOutputStream.<init>(FileOutputStream.java:213)

 at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:579)

 at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:609)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

 at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:170)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

 at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:930)

 at org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

 at org.apache.catalina.core.StandardService.startInternal(StandardService.java:441)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

 at org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:769)

 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)

 at org.apache.catalina.startup.Catalina.start(Catalina.java:629)

 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

 at java.lang.reflect.Method.invoke(Method.java:498)

 at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:351)

 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:485)

 

01-Jul-2016 19:44:54.918 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]

01-Jul-2016 19:44:54.938 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 18678 ms

2016-07-01 19:44:55,082 JIRA-Bootstrap INFO      [c.a.jira.startup.LauncherContextListener] Memory Usage:

    ---------------------------------------------------------------------------------

      Heap memory     :  Used:  155 MiB.  Committed:  461 MiB.  Max:  735 MiB

      Non-heap memory :  Used:   34 MiB.  Committed:   36 MiB.  Max: 1264 MiB

    ---------------------------------------------------------------------------------

      TOTAL           :  Used:  189 MiB.  Committed:  497 MiB.  Max: 1999 MiB

    ---------------------------------------------------------------------------------

 

 

2 answers

1 accepted

2 votes
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 1, 2016

You've (re)started JIRA as the wrong user, either last time you ran it or this time.  The user running it takes ownership of files and always assumes the files are theirs, so if you run it as another user, the permissions are usually wrong.

Stop JIRA, change the ownership of all the directories (JIRA home and JIRA installation), sub-directories and files to the user who should be running JIRA and restart it as that user.

Marshall Epie July 1, 2016

Excellent! Thank you Nic. Was a bit confused on the whole user selection process. This clarified it and fixed it. JIRA booting now!

0 votes
Steven F Behnke
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.
July 1, 2016

The logs are pretty clear, it looks like JIRA doesn't have permission to use it's home folder anymore. 

2016-07-01 19:44:54,822 localhost-startStop-1 ERROR      [o.apache.jasper.EmbeddedServletOptions] The scratchDir you specified: /Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/work/Catalina/localhost/ROOT is unusable.

01-Jul-2016 19:44:54.897 SEVERE [main] org.apache.catalina.valves.AccessLogValve.open Failed to open access log file [/Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/logs/access_log.2016-07-01]
 
java.io.FileNotFoundException: /Applications/Jira_app/atlassian-jira-software-7.1.7-standalone/logs/access_log.2016-07-01 (Permission denied)

Suggest an answer

Log in or Sign up to answer