Archiva fails to start : "Caused by: java.io.IOException: Error indexing workspace "

Overview

The Archiva artifact repository fails to start, and displays exceptions.

 

Environment

Archiva

 

Symptoms/Description

It is not possible to start the Archiva Artifact repository as a standalone or as a service, and you are getting the following exception in Talend ESB while executing:

./archiva.sh console
jvm 1    | 2014-07-02 09:48:01.341:WARN::Failed startup of context o.e.j.w.WebAppContext{/archiva,file:/opt/Talend-5.3.1/tac/Talend-Artifact-Repository-V5.3.1/apps/archiva/},file:/opt/Talend-5.3.1/tac/Talend-Artifact-Repository-V5.3.1/apps/archiva/
jvm 1    | org.springframework
... ... .. ..

Caused by: 
jvm 1    | javax.jcr.RepositoryException: Unable to initialize query handler: org.apache.jackrabbit.core.query.lucene.SearchIndex@6b127fc2
jvm 1    |     at org.apache.jackrabbit.core.config.RepositoryConfigurationParser$1.getQueryHandler(RepositoryConfigurationParser.java:649)
jvm 1    |     at org.apache.jackrabbit.core.config.WorkspaceConfig.getQueryHandler(WorkspaceConfig.java:215)
.. .. ....

jvm 1    |     at java.lang.Thread.run(Thread.java:744)
jvm 1    | Caused by: 
jvm 1    | java.io.IOException: Error indexing workspace

 

Resolution

It is possible that the Archiva installation is corrupted and needs to be reinstalled. As per the log, the reindexing is not working correctly. Talend recommends the following steps to solve this issue.

  1. First, back up the complete Archiva installation folder. Verify the archiva.xml file and locate the repository's location. Back up the Repository folder.
  2. Verify whether there are any additional configurations done in Archiva, for example additional users/credentials. If required, you may need to back up the embedded derby database which stores user data.
  3. Reinstall Archiva (unzip the installation) and copy the back up Repository folder to the installation root directory (or edit the archiva.xml to point to the correct Repository folder).
  4. Restart Archiva. This will automatically reindex the Repository.
Version history
Revision #:
3 of 3
Last update:
‎06-29-2017 09:44 PM
Updated by:
 
Labels (1)
Tags (1)