com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments

Atlassian JIRA | Brenden Bain [Atlassian] | 8 years ago
  1. 0

    * Having a stale index directory causes some weirdness. ## Start up JIRA. ## Configure JIRA. ## Stop JIRA. Make the index directory readonly (I make the caches directory in JIRA_HOME read only) ## Restart JIRA. JIRA does not complain about the directory being invalid until you actually try to do some searching. Should be issue some warnings before hand? ## Goto the "Admin > Indexing". Note that indexing appears to be disabled. ## Reindex JIRA. I get the error message "Error occurred while activating indexes: com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments". I am then returned to the index screen and it appears that the index is now enabled even though it is broken. ## Try to reindex again. This time I get a long runnin task result with stack trace like the following. Indexing still appears to be enabled. {code} com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments at com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getFileSystemDirectory(IndexDirectoryFactory.java:91) at com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getDirectory(IndexDirectoryFactory.java:78) at com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:125) at com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:107) at com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.open(DefaultIssueIndexer.java:285) at com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.iterator(DefaultIssueIndexer.java:264) at com.atlassian.jira.issue.index.DefaultIssueIndexer.deleteIndexes(DefaultIssueIndexer.java:173) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:225) 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:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy9.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.IndexLifecycleManager$Composite.reIndexAll(IndexLifecycleManager.java:112) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:29) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:55) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:360) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:252) at java.lang.Thread.run(Thread.java:619) {code}

    Atlassian JIRA | 8 years ago | Brenden Bain [Atlassian]
    com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments
  2. 0

    * Having a stale index directory causes some weirdness. ## Start up JIRA. ## Configure JIRA. ## Stop JIRA. Make the index directory readonly (I make the caches directory in JIRA_HOME read only) ## Restart JIRA. JIRA does not complain about the directory being invalid until you actually try to do some searching. Should be issue some warnings before hand? ## Goto the "Admin > Indexing". Note that indexing appears to be disabled. ## Reindex JIRA. I get the error message "Error occurred while activating indexes: com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments". I am then returned to the index screen and it appears that the index is now enabled even though it is broken. ## Try to reindex again. This time I get a long runnin task result with stack trace like the following. Indexing still appears to be enabled. {code} com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments at com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getFileSystemDirectory(IndexDirectoryFactory.java:91) at com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getDirectory(IndexDirectoryFactory.java:78) at com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:125) at com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:107) at com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.open(DefaultIssueIndexer.java:285) at com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.iterator(DefaultIssueIndexer.java:264) at com.atlassian.jira.issue.index.DefaultIssueIndexer.deleteIndexes(DefaultIssueIndexer.java:173) at com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:225) 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:71) at com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28) at $Proxy9.reIndexAll(Unknown Source) at com.atlassian.jira.util.index.IndexLifecycleManager$Composite.reIndexAll(IndexLifecycleManager.java:112) at com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:29) at com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:55) at com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:360) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178) at edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442) at edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178) at com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:252) at java.lang.Thread.run(Thread.java:619) {code}

    Atlassian JIRA | 8 years ago | Brenden Bain [Atlassian]
    com.atlassian.jira.util.RuntimeIOException: java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments
  3. 0

    Unable to Rebuild JIRA Index - JIRA Knowledge Base - Atlassian Documentation

    atlassian.com | 1 year ago
    com.atlassian.jira.util.RuntimeIOException: java.io.IOException: directory '/var/atlassian/application-data/jira/caches/indexes/comments' exists and is a directory, but cannot be listed: list() returned null
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Unable to rebuild JIRA application indexes - Atlassian Documentation

    atlassian.com | 3 months ago
    com.atlassian.jira.util.RuntimeIOException: java.io.IOException: directory '/var/atlassian/application-data/jira/caches/indexes/comments' exists and is a directory, but cannot be listed: list() returned null

    Root Cause Analysis

    1. com.atlassian.jira.util.RuntimeIOException

      java.io.IOException: Cannot create directory: E:\blitz\home\caches\indexes\comments

      at com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getFileSystemDirectory()
    2. com.atlassian.jira
      DefaultIndexManager.reIndexAll
      1. com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getFileSystemDirectory(IndexDirectoryFactory.java:91)
      2. com.atlassian.jira.issue.index.IndexDirectoryFactory$Name.getDirectory(IndexDirectoryFactory.java:78)
      3. com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:125)
      4. com.atlassian.jira.issue.index.IndexDirectoryFactory$IndexPathAdapter.get(IndexDirectoryFactory.java:107)
      5. com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.open(DefaultIssueIndexer.java:285)
      6. com.atlassian.jira.issue.index.DefaultIssueIndexer$Lifecycle.iterator(DefaultIssueIndexer.java:264)
      7. com.atlassian.jira.issue.index.DefaultIssueIndexer.deleteIndexes(DefaultIssueIndexer.java:173)
      8. com.atlassian.jira.issue.index.DefaultIndexManager.reIndexAll(DefaultIndexManager.java:225)
      8 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. com.atlassian.util
      ObjectProfiler.profiledInvoke
      1. com.atlassian.util.profiling.object.ObjectProfiler.profiledInvoke(ObjectProfiler.java:71)
      1 frame
    5. com.atlassian.jira
      SwitchingInvocationHandler.invoke
      1. com.atlassian.jira.config.component.SwitchingInvocationHandler.invoke(SwitchingInvocationHandler.java:28)
      1 frame
    6. Unknown
      $Proxy9.reIndexAll
      1. $Proxy9.reIndexAll(Unknown Source)
      1 frame
    7. com.atlassian.jira
      TaskManagerImpl$TaskCallableDecorator.call
      1. com.atlassian.jira.util.index.IndexLifecycleManager$Composite.reIndexAll(IndexLifecycleManager.java:112)
      2. com.atlassian.jira.web.action.admin.index.ReIndexAsyncIndexerCommand.doReindex(ReIndexAsyncIndexerCommand.java:29)
      3. com.atlassian.jira.web.action.admin.index.AbstractAsyncIndexerCommand.call(AbstractAsyncIndexerCommand.java:55)
      4. com.atlassian.jira.task.TaskManagerImpl$TaskCallableDecorator.call(TaskManagerImpl.java:360)
      4 frames
    8. Backport of JSR 166
      FutureTask.run
      1. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178)
      2. edu.emory.mathcs.backport.java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:442)
      3. edu.emory.mathcs.backport.java.util.concurrent.FutureTask.run(FutureTask.java:178)
      3 frames
    9. com.atlassian.jira
      ForkedThreadExecutor$ForkedRunnableDecorator.run
      1. com.atlassian.jira.task.ForkedThreadExecutor$ForkedRunnableDecorator.run(ForkedThreadExecutor.java:252)
      1 frame
    10. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame