Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16389

Out of direct buffer memory causes orient database corruption

    XMLWordPrintable

    Details

    • 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

      Description

      "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.

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title