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

Reset database quorum fails on single node

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.14.0
    • Fix Version/s: None
    • Component/s: HA

      Description

      Due to HA synchronisation issue, we needed to go down to one node and and reset database quorum, but this failed with the following error:

      2018-11-19 12:05:45,727+0000 ERROR [qtp288338251-3996] NODE01 admin org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: proui_Database.resetQuorum, java-method: com.sonatype.nexus.proui.internal.orient.DatabaseQuorumResetComponent.resetQuorum

      java.lang.IllegalArgumentException: you can only reset quorum directly on the node that will remain

       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)

       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)

       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)

       at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:83)

       at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:105)

       at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:59)

       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:238)

       at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:250)

       at com.sonatype.nexus.proui.internal.orient.DatabaseQuorumResetComponent.resetQuorum(DatabaseQuorumResetComponent.groovy:56)

      The database status on single node was the following:

      component=ONLINE (MASTER)
      security=ONLINE (MASTER)
      audit=ONLINE (REPLICA)
      config=ONLINE (REPLICA)
      accesslog=ONLINE (REPLICA)

       

       

        Attachments

          Activity

            People

            Assignee:
            mbucher Michael Bucher
            Reporter:
            msurani Mahendra Surani
            Last Updated By:
            Peter Lynch Peter Lynch
            Team:
            NXRM - Morpheus
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title