Is it safe to delete the temp dir in JIRA's installation directory?

Nabil Sayegh
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.
April 23, 2013

We have some data inconsistency, the filter is showing wrong data in some columns for some issues. The values in the database are correct, issue detail view is also correct.

Re-indexing/Restarting doesn't help. After opening and saving the issues the filter shows correct data for that issue.

The problem must be some application state, i.e. temporary files.

Is it safe to delete the temp dir in JIRA's installation directory?

1 answer

1 accepted

2 votes
Answer accepted
Thiago - Gmail April 24, 2013

In this case you can try 2 things to fix:

1- Try to rebuild your index from scratch by following the steps below:

* Shutdown JIRA.
* Delete all the files in the following folders:
** <JIRA-INSTALL>/work
** <JIRA-HOME>/caches/indexes
* Restart JIRA
* Run the Re-Index. (Administration > System > Advanced > Indexing > Re-Index)

2 - Check your Project workflow to see if you have any post function set after the re-index process.

I hope it helps you!

Nabil Sayegh
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.
April 24, 2013

Thank you.

P.S.: Apparently you have to keep the subdirectories of caches/index ;-)

Bhanu November 26, 2019

Also after you shutdown Jira, clear the contents of the temp folder in jira install directory:

rm -rf /opt/atlassian/jira/temp/*

Do a Lock and re-index as it builds a index from scratch.

Suggest an answer

Log in or Sign up to answer