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

Deleting repositories via script intermittently fails with invalid state exception

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: New
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Repository, Scripting
    • Labels:
    • Notability:
      3

      Description

      Customer is scripting bulk creation and deletion of repositories and groups.

      Occasionally when the script is bulk deleting repositories and groups an invalid state exception occurs. When the script attempts to delete the repository again it succeeds.

      Caused by: org.sonatype.nexus.common.stateguard.InvalidStateException: Invalid state: STOPPED; allowed: [STARTED]
      at org.sonatype.nexus.common.stateguard.StateGuard._ensure(StateGuard.java:115)
      at org.sonatype.nexus.common.stateguard.StateGuard.access$1(StateGuard.java:108)
      at org.sonatype.nexus.common.stateguard.StateGuard$GuardImpl.run(StateGuard.java:271)
      at org.sonatype.nexus.common.stateguard.GuardedInterceptor.invoke(GuardedInterceptor.java:53)
      at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.removeRepositoryFromAllGroups(RepositoryManagerImpl.java:444)
      at org.sonatype.nexus.repository.manager.internal.RepositoryManagerImpl.delete(RepositoryManagerImpl.java:408)

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            cseney Cassandra Seney
            CC:
            Boris Borisov
            Last Updated By:
            Wes Wannemacher
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Date of First Response:

                tigCommentSecurity.panel-title