Forums

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

JIRA stopped unexpectedly.

Ajay_Pratap May 21, 2019

I am using JIRA server 7.1.9 

I have configure background index for jira at 12:00 am daily. This is trigger using jira REST api. I am using this for past 3-4 months

Last night when reindexing happpened following error occoured; after that  jira stopped responding, and I had to manually delete indexes and re build them after starting jira.

2019-05-22 00:00:03,553 JiraTaskExectionThread-435 INFO rms 0x3925685x1 t0u3yz 180.151.75.219 /rest/api/2/reindex [c.a.j.issue.index.De
faultIndexManager] Reindexing 136389 issues in the background.
2019-05-22 00:00:44,040 ISSUE-indexQueue:thread-1 INFO [c.a.j.r.v2.index.ReindexResource] Re-indexing is 1% complete. Current inde
x: Issue
2019-05-22 00:01:21,686 ISSUE-indexQueue:thread-1 INFO [c.a.j.r.v2.index.ReindexResource] Re-indexing is 2% complete. Current inde
x: Issue
2019-05-22 00:01:52,660 ISSUE-indexQueue:thread-1 INFO [c.a.j.r.v2.index.ReindexResource] Re-indexing is 3% complete. Current inde
x: Issue
Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file /var/atlassian/application-data/jira/log/atlassian-jira-gc-2019-05-22_0655.
log due to No such file or directory

 

Can someone help me why this issue occoured, and how can i prevent this in future.

Thanks in advance

1 answer

0 votes
Kurt Klinner
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.
May 22, 2019

@Ajay_Pratap 

 

Looking at the last line, did you check if the directory structure is there, if there have been any changes to the folder permissions and if there have been any disk related messages?

Java HotSpot(TM) 64-Bit Server VM warning: Cannot open file /var/atlassian/application-data/jira/log/atlassian-jira-gc-2019-05-22_0655.
log due to No such file or directory

Cheers

Kurt

Ajay_Pratap May 24, 2019

thanks for the reply,

No there was no such file at that location,

and permission to its parent directory is fine.

 

cheers

ajay

Nic Brough -Adaptavist-
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.
May 26, 2019

Your Jira system was unable to write to the disk, as the operating system blocked it.  If you've checked the permissions are ok (remember Jira should be running as a dedicated user, not root or a real human user), then check the disk space and anything else that might stop it writing.

Ajay_Pratap May 28, 2019

Thanks for the reply Nic,

Follow up question: Is there any issue running jira from root user? I am running jira from root user only.

 

thanks

appreciate your reply

Nic Brough -Adaptavist-
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.
May 30, 2019

It's a bad security practice, as it is possible to trick a Tomcat into running code on the server if there are apps you can upload data to.  Running code as root - you've handed the server to the attacker.

You should never run an externally facing service as root

Suggest an answer

Log in or Sign up to answer