• Uncategorized

About linux : Nexus-container-not-starting-up

Question Detail

Facing this error as i check my resource utilization on server is high but after fixing it giving this error.Can any body suggest how to fix this ?
Nexus docker container not starting up and the same time sonarqube container down too

ERROR [FelixStartLevel] *SYSTEM org.sonatype.nexus.orient.restore.RestoreServiceImpl – Failed transition: NEW -> STARTED
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage ‘/nexus-data/db/component’ with mode=rw
DB name=”component”

Question Answer

Based on the question and comment, looks like the data might be corrupt. You can either

  1. Use a different, temporary image to copy the directory over back to the host so you can run the java -jar command on the host
  2. Use the AdoptOpenJdk Java image with the Nexus console jar and run the command directly on the directory.

The first might be safer because you are taking a copy of your data rather than running code on the original data.

Example for 1:
docker run ubuntu -v
docker cp ubuntu:/nexus-data/db/component

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.