Our Nexus repository ran out of space and now we cannot start the repository. Unfortunately, we do not have a backup of the repository that we can revert back to.
After we made some space on the disk 3.4. GB is free. Now we are trying to fix the corrupt Orient databases namely config, and component. After we start the Orient DB console via
*sudo java -jar ./lib/support/nexus-orient-console.jar*
and try to connect to the config DB via
*CONNECT plocal:/mnt/sonatype-work/nexus3/db/config admin admin*
we are getting error com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/mnt/sonatype-work/nexus3/db/config' with mode=rw DB name="config"
Connecting to database [plocal:/mnt/sonatype-work/nexus3/db/config] with user 'admin'... 2018-11-24 02:23:00:977 WARNI {db=config} Storage 'config' was not closed properly. Will try to recover from write ahead log... 2018-11-24 02:23:00:983 WARNI {db=config} Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OCheckpointEndRecord{lsn=LSN{segment=215, position=52}} will be skipped during data restore$ANSI{green {db=config}} Exception during storage data restore java.lang.NullPointerException at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.cutTill(ODiskWriteAheadLog.java:919) at
$ANSI{green {db=config}} Error during storage close java.lang.NullPointerException at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.cutTill(ODiskWriteAheadLog.java:919) at
Exception
475646D4
in storageplocal:/mnt/sonatype-work/nexus3/db/config
: 2.2.31 (build 285537d2767275f460df32c6a3be01bfff6a517c, branch 2.2.x) com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/mnt/sonatype-work/nexus3/db/config' with mode=rw DB name="config" at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
If we look at the processes running via htop we see multiple java -jar ./lib/support/nexus-orient-console.jar running.
Not sure if that is causing a problem connecting to the config db.
Any ideas or recommendations to fix the issue?
Our Nexus repository ran out of space and now we cannot start the repository. Unfortunately, we do not have a backup of the repository that we can revert back to.
After we made some space on the disk 3.4. GB is free. Now we are trying to fix the corrupt Orient databases namely config, and component. After we start the Orient DB console via
*sudo java -jar ./lib/support/nexus-orient-console.jar*
and try to connect to the config DB via
*CONNECT plocal:/mnt/sonatype-work/nexus3/db/config admin admin*
we are getting error com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/mnt/sonatype-work/nexus3/db/config' with mode=rw DB name="config"
Connecting to database [plocal:/mnt/sonatype-work/nexus3/db/config] with user 'admin'... 2018-11-24 02:23:00:977 WARNI {db=config} Storage 'config' was not closed properly. Will try to recover from write ahead log... 2018-11-24 02:23:00:983 WARNI {db=config} Record com.orientechnologies.orient.core.storage.impl.local.paginated.wal.OCheckpointEndRecord{lsn=LSN{segment=215, position=52}} will be skipped during data restore$ANSI{green {db=config}} Exception during storage data restore java.lang.NullPointerException at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.cutTill(ODiskWriteAheadLog.java:919) at
$ANSI{green {db=config}} Error during storage close java.lang.NullPointerException at com.orientechnologies.orient.core.storage.impl.local.paginated.wal.ODiskWriteAheadLog.cutTill(ODiskWriteAheadLog.java:919) at
Exception
475646D4
in storageplocal:/mnt/sonatype-work/nexus3/db/config
: 2.2.31 (build 285537d2767275f460df32c6a3be01bfff6a517c, branch 2.2.x) com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/mnt/sonatype-work/nexus3/db/config' with mode=rw DB name="config" at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:323)
Option 2: If the above does not work (and it often doesn't) an export/import of the config database may work. The instructions are the same as above, just a different set of commands at the console:
connect plocal:/mnt/sonatype-work/nexus3/db/confg admin admin export database config-exportIf we look at the processes running via htop we see multiple java -jar ./lib/support/nexus-orient-console.jar running.
Not sure if that is causing a problem connecting to the config db.
Any ideas or recommendations to fix the issue?
--
You received this message because you are subscribed to the Google Groups "Nexus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
To post to this group, send email to nexus...@glists.sonatype.com.
To view this discussion on the web visit https://groups.google.com/a/glists.sonatype.com/d/msgid/nexus-users/32a69f3c-2773-44fb-b8c0-875693170594%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.