JIRA throws No sub-file with id found when indexing

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

プラットフォームについて: Server、Data Center、および Cloud (状況に応じる) - この記事はアトラシアンのサーバーおよびデータセンター プラットフォーム向けに記載されていますが、Atlassian Cloud のお客様も記事の内容を利用できる可能性があります。この記事で説明されている手順の実施が役立つと考えられる場合、アトラシアン サポートにお問い合わせのうえ、この記事を紹介してください。

問題

  • Re-index fails in JIRA with a RuntimeIOException

atlassian-jira.log に次のエラーが返されます。

2015-06-18 14:34:23,108 http-bio-8080-exec-19 WARN username 874x357x1 asa6is 192.168.0.10 /secure/QuickCreateIssue.jspa [atlassian.jira.index.AccumulatingResultBuilder] java.io.IOException: No sub-file with id .prx found (files: [.tii, .fnm, .frq, .tis, .fdx, .nrm, .fdt])
com.atlassian.jira.util.RuntimeIOException: java.io.IOException: No sub-file with id .prx found (files: [.tii, .fnm, .frq, .tis, .fdx, .nrm, .fdt])
at com.atlassian.jira.index.WriterWrapper.commit(WriterWrapper.java:147)
at com.atlassian.jira.index.DefaultIndexEngine$WriterReference.commit(DefaultIndexEngine.java:285)
at com.atlassian.jira.index.DefaultIndexEngine$FlushPolicy$2.commit(DefaultIndexEngine.java:78)
at com.atlassian.jira.index.DefaultIndexEngine$FlushPolicy.perform(DefaultIndexEngine.java:148)
at com.atlassian.jira.index.DefaultIndexEngine.write(DefaultIndexEngine.java:217)
at com.atlassian.jira.index.DefaultIndex.perform(DefaultIndex.java:36)
at com.atlassian.jira.index.QueueingIndex$Task.perform(QueueingIndex.java:159)
at com.atlassian.jira.index.QueueingIndex$Task.index(QueueingIndex.java:175)
at com.atlassian.jira.index.QueueingIndex$Task.run(QueueingIndex.java:133)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: No sub-file with id .prx found (files: [.tii, .fnm, .frq, .tis, .fdx, .nrm, .fdt])
at org.apache.lucene.index.CompoundFileReader.openInput(CompoundFileReader.java:155)
at org.apache.lucene.index.SegmentCoreReaders.<init>(SegmentCoreReaders.java:88)
at org.apache.lucene.index.SegmentReader.get(SegmentReader.java:114)
at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:702)
at org.apache.lucene.index.IndexWriter$ReaderPool.get(IndexWriter.java:677)
at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:3571)
at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:3508)
at org.apache.lucene.index.IndexWriter.prepareCommit(IndexWriter.java:3371)
at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:3444)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3426)
at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:3410)
at com.atlassian.jira.index.WriterWrapper.commit(WriterWrapper.java:143)

原因

There is a bug in Apache Lucene which is used in JIRA for indexing, tracked as part of LUCENE-5541.

You may encounter this when attempting to read from a file without having the necessary permissions or due to a failed network request. As mentioned on JIRA Supported Platforms Network storage locations are not supported due to Lucene requirements (such as NFS mounts). Please see the IndexWriter docs for further info. 

ソリューション

To resolve this problem, the indexes have to be re-built.

  1. Jira をシャットダウンします。
  2. Copy the contents of the JIRA HOME Directory except for the indexes folder.

    $JIRA_HOME\caches\indexes
  3. Setting your JIRA Home Directory to the server/drive where the install folder is located.
  4. Jira を再起動します。
  5. Run a full re-index.

最終更新日 2018 年 11 月 1 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.