Problème

Une erreur s’est produite lors de la copie du fichier.

18.05.2016 05:22:45.576 *WARN* [oak-lucene-0] org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier [oak:index/lucene] Error occurred while copying file [segments_6] from Directory for /oak:index/lucene to MMapDirectory@crx-quickstart/repository/index/ecd8ca46812604a909af4a3571c7c0ba708592723d0e67134e8a44b75456682c/0 lockFactory=NativeFSLockFactory@crx-quickstart/repository/index/ecd8ca46812604a909af4a3571c7c0ba708592723d0e67134e8a44b75456682c/0
java.io.FileNotFoundException: segments_6
at org.apache.jackrabbit.oak.plugins.index.lucene.OakDirectory.openInput(OakDirectory.java:133)
at org.apache.lucene.store.Directory.copy(Directory.java:185)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.copyFilesToLocal(IndexCopier.java:420)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory.access$600(IndexCopier.java:296)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier$CopyOnReadDirectory$1.run(IndexCopier.java:379)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Non-concordance des en-têtes de codec.

07.12.2016 02:09:40.468 *WARN* 192.168.1.5 [1481094580317] POST /bin/test.json HTTP/1.1] org.apache.jackrabbit.oak.plugins.index.lucene.IndexCopier [/oak:index/lucene] Found local copy for _0.cfs in MMapDirectory@crx-quickstart/repository/index/fa3408cae8305c809886bb043f35b7da7e69285d2d192e089198dfea3a3ccc84/1 lockFactory=NativeFSLockFactory@crx-quickstart/repository/index/fa3408cae8305c809886bb043f35b7da7e69285d2d192e089198dfea3a3ccc84/1 but size of local 636425 differs from remote 636106. Content would be read from remote file only
07.12.2016 02:09:40.476 *ERROR* [19.163.192.105 [1481094580317] POST /bin/test.json HTTP/1.1] org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker Could not access the Lucene index at /oak:index/lucene
org.apache.lucene.index.CorruptIndexException: codec header mismatch: actual header=-16777216 vs expected header=1071082519 (resource: SlicedIndexInput(SlicedIndexInput(_0.fnm in _0.cfs) in _0.cfs slice=626286:636425))
at org.apache.lucene.codecs.CodecUtil.checkHeader(CodecUtil.java:128)
at org.apache.lucene.codecs.lucene46.Lucene46FieldInfosReader.read(Lucene46FieldInfosReader.java:56)
at org.apache.lucene.index.SegmentReader.readFieldInfos(SegmentReader.java:215)
at org.apache.lucene.index.SegmentReader.<init>(SegmentReader.java:95)
at org.apache.lucene.index.StandardDirectoryReader$1.doBody(StandardDirectoryReader.java:62)
at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:843)
at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:66)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.<init>(IndexNode.java:103)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexNode.open(IndexNode.java:69)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.findIndexNode(IndexTracker.java:179)
at org.apache.jackrabbit.oak.plugins.index.lucene.IndexTracker.acquireIndexNode(IndexTracker.java:154)
at org.apache.jackrabbit.oak.plugins.index.lucene.LucenePropertyIndex.getPlans(LucenePropertyIndex.java:220)

Cause

La copie locale de l’index Lucene est probablement corrompue.

Résolution

Pour résoudre le problème, nous pouvons reconstruire la copie d’index locale :

  1. Arrêtez AEM.
  2. Supprimez crx-quickstart/repository/index.
  3. Démarrez AEM.

Si cela ne résout pas le problème, contactez l'assistance clientèle AEM.  En attendant, comme solution de contournement pour que la recherche fonctionne à nouveau, mais avec un impact sur les performances, procédez comme suit :

  1. Allez sur : http://host:port/system/console/configMgr/org.apache.jackrabbit.oak.plugins.index.lucene.LuceneIndexProviderService
  2. Désactivez / décochez les cases Copy on Read et Copy on Write.
  3. Enregistrer

Ce produit est distribué sous licence Creative Commons Attribution - Pas d’utilisation commerciale - Partage à l’identique 3.0 non transposé  Les publications Twitter™ et Facebook ne sont pas couvertes par les dispositions Creative Commons.

Mentions légales   |   Politique de confidentialité en ligne