How to fix Sonatype Nexus OrientDB "component" database?

7,313 views
Skip to first unread message

Carlo Reggiani

unread,
Dec 13, 2017, 8:50:46 AM12/13/17
to Nexus Users
Hi

Maybe after a "low disk" situation (we added some disk space to sonatype-work filesystem) we are getting errors related to maven operation.

In the log we are getting a loto of:

"2017-12-13 00:06:12,866+0100 ERROR [quartz-1-thread-5] *SYSTEM com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=component}} Exception `754BDA32` in storage `component`
java.lang.NullPointerException: null
    at com.orientechnologies.orient.core.serialization.serializer.binary.impl.index.OCompositeKeySerializer.deserializeFromByteBufferObject(OCompositeKeySerializer.java:380)
    at com.orientechnologies.orient.core.serialization.serializer.binary.impl.index.OCompositeKeySerializer.deserializeFromByteBufferObject(OCompositeKeySerializer.java:46)
    at (...)"


Reading on https://issues.sonatype.org/browse/NEXUS-14174 I tryed to connect to the local db from console, but I'm getting error! Any idea how to fix?

orientdb> CONNECT PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component admin admin

Connecting to database [PLOCAL:/opt/sonatype/sonatype-work/nexus3/db/component] with user 'admin'...$ANSI{green {db=component}} Exception `3F985A86` in storage `component`
com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/opt/sonatype/sonatype-work/nexus3/db/component' with mode=rw
        DB name="component"
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:299)
        at com.orientechnologies.orient.core.db.document.ODatabaseDocumentTx.open(ODatabaseDocumentTx.java:258)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.connect(OConsoleDatabaseApp.java:234)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at com.orientechnologies.common.console.OConsoleApplication.execute(OConsoleApplication.java:405)
        at com.orientechnologies.common.console.OConsoleApplication.executeCommands(OConsoleApplication.java:260)
        at com.orientechnologies.common.console.OConsoleApplication.run(OConsoleApplication.java:131)
        at com.orientechnologies.orient.console.OConsoleDatabaseApp.main(OConsoleDatabaseApp.java:145)
        at org.sonatype.nexus.orient.console.Main.main(Main.java:58)
Caused by: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'component' because it does not exist in path: /opt/sonatype/sonatype-work/nexus3/db/component
        DB name="component"
        at com.orientechnologies.orient.core.storage.impl.local.OAbstractPaginatedStorage.open(OAbstractPaginatedStorage.java:238)
        ... 11 more

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open local storage '/opt/sonatype/sonatype-work/nexus3/db/component' with mode=rw
        DB name="component"

Error: com.orientechnologies.orient.core.exception.OStorageException: Cannot open the storage 'component' because it does not exist in path: /opt/sonatype/sonatype-work/nexus3/db/component
        DB name="component"


Rich Seddon

unread,
Dec 13, 2017, 9:22:04 AM12/13/17
to Nexus Users
This doesn't look like something you can fix, it's saying the component database is entirely missing:

Cannot open the storage 'component' because it does not exist in path: /opt/sonatype/sonatype-work/nexus3/db/component

What exactly happened here? I don't see how a full disk can cause the component database to disappear. 

Have you been taking backups?  If so, you can use those to restore:


Rich

Carlo Reggiani

unread,
Dec 14, 2017, 3:05:06 AM12/14/17
to Rich Seddon, Nexus Users
Hi Rich

I'm looking for the first time a OrientDB database: /opt/sonatype/sonatype-work/nexus3/db/component is a folder with a lot of files.

In this folder, related to "component" there are this files:

Inline image 1

Which is the "missing" file?

Thanks for any support :(

Carlo

--
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+unsubscribe@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/c2aea025-202c-4b63-8a10-9857fab89463%40glists.sonatype.com.
For more options, visit https://groups.google.com/a/glists.sonatype.com/d/optout.

Danilo Ischiavolini Chaves

unread,
Jun 5, 2018, 3:28:19 PM6/5/18
to Nexus Users, rse...@sonatype.com


Hi Carlo, 

 I have the same problem with the version 3.10..

 I tried restore using the reference on connect to the db separeted and i receveid the same error.. 

 The only solution that i find was restore the instlation with the backup that i already have.


 I hope that i could help you..

To unsubscribe from this group and stop receiving emails from it, send an email to nexus-users...@glists.sonatype.com.
Reply all
Reply to author
Forward
0 new messages