Skip to content

InvalidStateException: Invalid state: INITIALISED; allowed: [STARTED] #227

Description

@devent

Describe the bug

The error pops out: Invalid state: INITIALISED; allowed: [STARTED] at the page repositories. No repositories can be created.

To Reproduce
Steps to reproduce the behavior:

  1. install operator
  2. install nexus
  3. login per admin default credentials
  4. run the wizard
  5. go to Repositories page

Expected behavior

No error, repositories can be created.

Environment

Kubernetes deployment.

Operator v0.6.0

kubectl version
Client Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:38:33Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"22", GitVersion:"v1.22.5", GitCommit:"5c99e2ac2ff9a3c549d9ca665e7bc05a3e18f07e", GitTreeState:"clean", BuildDate:"2021-12-16T08:32:32Z", GoVersion:"go1.16.12", Compiler:"gc", Platform:"linux/amd64"}

Additional context

replicas: 1

useRedHatImage: false

persistence:
  persistent: true
  storageClass: managed-nfs-storage
  volumeSize: 50Gi
  extraVolumes:
    - name: logback
      mountPath: /nexus-data/etc/logback
      emptyDir:
        medium: ""

networking:
  expose: false

Log:

2022-04-27 08:45:25,353+0000 ERROR [qtp2072319896-1092] admin org.sonatype.nexus.extdirect.internal.ExtDirectExceptionHandler - Failed to invoke action method: coreui_Repository.coreui_Repository_readStatus, java-method: org.sonatype.nexus.coreui.RepositoryComponent.readStatus
org.sonatype.nexus.common.stateguard.InvalidStateException: Invalid state: INITIALISED; 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:54)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐛Something isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions