can we able to remove the /opt/atlassian/jira/temp/ files or not

kedar
Contributor
May 21, 2018

can we able to remove the /opt/atlassian/jira/temp/ files or not 

please let me know what type files can be removed from the Temp.

1 answer

1 accepted

3 votes
Answer accepted
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 21, 2018

The simple answer is "yes, when Jira is offline".

However, there is a reason you are asking this, and I suspect that you're not going to gain anything that you want from clearing the directory.  Could you explain why you asked this question?

kedar
Contributor
May 21, 2018

The reason is the Opt/atlassian/jira /temp is getting full and free space is showing error .so,that the reason I want to remove the temp files and can we remove the temp files while jira is in online 

Like Daniel Alonso likes this
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 22, 2018

No.  NEVER touch the files while Jira is running.  You MUST stop it first.

If you are having disk space warnings, then this directory is probably only one of several you should be looking at.  In many cases, if you clear it, Jira will simply re-create most or all of the stuff you cleared, because it needs it while running, so you're wasting your time looking.

Without knowing everything you keep on that partition, I can't really tell you where to look for more disk space.

Also, are you sure it's physical space, or could it be inodes?

kedar
Contributor
May 23, 2018

Physical space in opt directory 

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 23, 2018

Ok.  Temp is unlikely to be the problem here.

Try

du -khd 1

to start finding out where your space has gone.  It might be the temp directory, but it is essential to check before deleting anything.

kedar
Contributor
May 23, 2018

I checked jira is asking to keep space in temp directory ( I got indexing free space error )do this I added extra space to directory and its got resolved .why I'm asking because everytime I can't add extra space any solution to clear the temp files or we have to keep on increasing space while we got free space error means

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 23, 2018

That directory is not related to the index.  Although, unless you have allocated quotas (which most people will not do nowadays), what matters is the space on the partition, not in any one particular directory.

Please, analyse the disk space on that partition.  What directories are taking up all the space?  Deleting temp when it's not the culprit is a complete waste of time.  You need to identify that it really is before you do the wrong thing.

Andriy Yakovlev _Atlassian_
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 6, 2019

Echo @Nic Brough -Adaptavist-  point. 

NEVER touch the files while Jira is running.  You MUST stop it first.

Regarding the /opt/atlassian/jira/temp/ space, you might want to move to a different mount point with more space, see KB How to Change the Temporary Directory

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events