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

Lock timeout updating repository configuration causes it to go permanently offline

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.28.1
    • Fix Version/s: None
    • Component/s: Repository
    • Labels:
    • Notability:
      2

      Description

      If  lock timeout occurs when updating a repository's configuration then the repository is put into STOPPED state.  All requests to the repository will then fail. The only way to recover is to restart the entire instance.

      This is unacceptable, this should not be a fatal error.

       

      2021-03-05 21:45:16,199+0000 ERROR [qtp1739256462-65702] DEHOK002 org.sonatype.nexus.repository.manager.internal.RepositoryImpl - Failed transition: STARTED -> STOPPED
      .sonatype.goodies.common.MultipleFailures$MultipleFailuresException: Failed to stop facets; 1 failure
      at org.sonatype.goodies.common.MultipleFailures.maybePropagate(MultipleFailures.java:95)
      at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.stop(RepositoryImpl.java:255)
      at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:193)
      at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)
      at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.update(RepositoryManagerImpl.java:380)
      at org.sonatype.nexus.common.stateguard.MethodInvocationAction.run(MethodInvocationAction.java:39)
      at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:272)
      at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:54)
      at org.sonatype.nexus.repository.manager.RepositoryManager$update$4.call(Unknown Source)
      at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)

      ...

      at java.lang.Thread.run(Thread.java:748)
      Suppressed: java.lang.RuntimeException: Failed to obtain lock after 60 seconds
      at org.sonatype.goodies.common.Locks.lock(Locks.java:43)
      at org.sonatype.goodies.common.Locks.write(Locks.java:65)
      at org.sonatype.nexus.common.stateguard.StateGuard$TransitionImpl.run(StateGuard.java:184)
      at org.sonatype.nexus.common.stateguard.TransitionsInterceptor.invoke(TransitionsInterceptor.java:57)
      at org.sonatype.nexus.repository.manager.internal.RepositoryImpl.stop(RepositoryImpl.java:248)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              rseddon Rich Seddon
              Last Updated By:
              Joe Tom Joe Tom
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title