AccessDeniedException: .index during git checkout when adding a git repository to Business Central in RHPAM

Solution In Progress - Updated -

Issue

  • When trying to add a git repository to a Business Central via command line, indexing failed with the following exception and Business Central goes unresponsive after loading on indexing for hour. Such error can occur if it's started from different location
2022-09-02 15:01:53,961 ERROR [org.uberfire.ext.metadata.io.IndexerDispatcher] (Thread-113) Indexing error for indexer [id=org.uberfire.ext.metadata.io.CoreIndexer]: org.uberfire.java.nio.IOException: java.nio.file.AccessDeniedException: /.index
    at org.uberfire.ext.metadata.backend.lucene.index.directory.DirectoryType$2.newIndex(DirectoryType.java:61)
    at org.uberfire.ext.metadata.backend.lucene.index.directory.DirectoryFactory.newCluster(DirectoryFactory.java:123)
    at org.uberfire.ext.metadata.backend.lucene.index.LuceneIndexManager.indexOf(LuceneIndexManager.java:66)
    at org.uberfire.ext.metadata.backend.lucene.index.LuceneIndexManager.indexOf(LuceneIndexManager.java:42)
    at org.uberfire.ext.metadata.backend.lucene.provider.LuceneIndexProvider.index(LuceneIndexProvider.java:73)
    at org.uberfire.ext.metadata.io.index.MetadataIndexEngine.doIndex(MetadataIndexEngine.java:159)
    at org.uberfire.ext.metadata.io.index.MetadataIndexEngine.doAction(MetadataIndexEngine.java:138)
    at java.util.ArrayList.forEach(ArrayList.java:1259)
    at org.uberfire.ext.metadata.io.index.MetadataIndexEngine.doCommit(MetadataIndexEngine.java:272)
    at org.uberfire.ext.metadata.io.index.MetadataIndexEngine.commit(MetadataIndexEngine.java:255)
    at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:195)
    at org.uberfire.ext.metadata.io.IndexerDispatcher$IndexerJob.get(IndexerDispatcher.java:165)
    at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1604)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
    at java.lang.Thread.run(Thread.java:750)
Caused by: java.nio.file.AccessDeniedException: /.index
    at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
    at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
    at sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:384)
    at java.nio.file.Files.createDirectory(Files.java:674)
    at java.nio.file.Files.createAndCheckIsDirectory(Files.java:781)
    at java.nio.file.Files.createDirectories(Files.java:767)
    at org.apache.lucene.store.FSDirectory.<init>(FSDirectory.java:157)
    at org.apache.lucene.store.NIOFSDirectory.<init>(NIOFSDirectory.java:63)
    at org.apache.lucene.store.NIOFSDirectory.<init>(NIOFSDirectory.java:73)
    at org.uberfire.ext.metadata.backend.lucene.index.directory.DirectoryType$2.newIndex(DirectoryType.java:59)
    ... 15 more

Environment

  • Red Hat Process Automation Manager

    • 7.13.0
  • Red Hat JBoss Enterprise Application Platform (EAP)

    • 7.4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content