Forums

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

Error on Jira indexing - says not enough space in the disc

Mageswari
Contributor
January 8, 2012
java.io.FileNotFoundException: C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\comments\segments_1x1h (There is not enough space on the disk)
Task completed in 0 seconds with unexpected error.
Started Today 08:10 PM.
Finished Today 08:10 PM.
com.atlassian.jira.util.RuntimeIOException: java.io.FileNotFoundException: C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\comments\segments_1x1h (There is not enough space on the disk)
	at com.atlassian.jira.index.DefaultIndexEngine.clean(DefaultIndexEngine.java:150)
	at com.atlassian.jira.index.DefaultManager.deleteIndexDirectory(DefaultManager.java:44)
	at com.atlassian.jira.issue.index.DefaultIssueIndexer.deleteIndexes(DefaultIssueIndexer.java:174)
	at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:231)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:70)
	at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
	at $Proxy71.reIndexAll(Unknown Source)
	at com.atlassian.jira.util.index.IndexLifecycleManager$Composite.reIndexAll(IndexLifecycleManager.java:113)
	at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:30)
	at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:55)
	at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:24)
	at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:338)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
	at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:250)
	at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.FileNotFoundException: C:\Program Files\Atlassian\Application Data\JIRA\caches\indexes\comments\segments_1x1h (There is not enough space on the disk)
	at java.io.RandomAccessFile.open(Native Method)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
	at org.apache.lucene.store.FSDirectory$FSIndexOutput.<init>(FSDirectory.java:593)
	at org.apache.lucene.store.FSDirectory.createOutput(FSDirectory.java:435)
	at org.apache.lucene.index.SegmentInfos.write(SegmentInfos.java:271)
	at org.apache.lucene.index.IndexWriter.init(IndexWriter.java:708)
	at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:503)
	at com.atlassian.jira.index.DefaultIndexEngine.clean(DefaultIndexEngine.java:146)
	... 22 more

2 answers

1 accepted

1 vote
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.
January 8, 2012

This is what it says on the tin - Jira doesn't have enough space for the index. Check the disk space, check that there's a lot of it for Jira to use, and check the quota for the user running Jira if you have it enabled. Generally, on a windows box, Jira will report "can't open file" if permissions are lacking, not disk space. It could be blowing the disk space because it tries to grab quite a large allocation of space up front (instead of getting 99% of the way through and then falling over)

Ideally, you would put the index on a different disk to the operating system, because Jira can thrash the index sometimes. You should also avoid having it under a diretory with a space in the name (in theory, not an issue, in the real world, it's windows), and for several reasons, it's always good to segregate data from application where you can.

0 votes
NielsJ
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.
January 8, 2012

Assuming you have space left von C:\, maybe the user you are running JIRA with does not have the permission to create files in C:\Program Files\. You could

  1. run JIRA with a more privileged user or
  2. relocate JIRAs data directory somewhere else.
Mageswari
Contributor
January 8, 2012

Also getting this error when trying to open Integrity Checker; Could these be related.

java.io.FileNotFoundException: no such file: C:\Program Files\Atlassian\JIRA 4.0.1\work\Catalina\localhost\_\org\apache\jsp\secure\admin\views\integritychecker_jsp.class

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events