-
Type:
Bug
-
Status: Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.7.1, 3.9.0
-
Fix Version/s: None
-
Component/s: Database
-
Labels:None
"java.lang.OutOfMemoryError: Direct buffer memory" errors caused the orient database to be corrupted, with following errors:
2018-02-09 13:15:35,808+0100 ERROR [qtp995273124-3028] hudson2 com.orientechnologies.orient.core.storage.impl.local.paginated.OLocalPaginatedStorage - $ANSI{green {db=component}} Error on creating record in cluster: plocal cluster: asset_3 com.orientechnologies.orient.core.exception.OPaginatedClusterException: Error during record creation DB name="component" Component Name="asset_3"
The following steps had to be followed to repair the database:
1) Shut down Nexus
2) Make a backup of /opt/sonatype-work/nexus3/db
3) Bring up a terminal as the Nexus user and go to the /opt/nexus-pro directory
Run: java -jar nexus-3.7.1-02/lib/support/nexus-orient-console.jar
4) At the orientdb prompt run the following:
connect plocal:sonatype-work/nexus3/db/component admin admin repair database --fix-links rebuild index * exit
5) Start Nexus again.