Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deployment Error on Openshift 4.8 - RuntimeException: AccessDeniedException: /nexus-data/etc/logback #223

Open
nnachefski opened this issue Jan 20, 2022 · 3 comments
Labels
bug 🐛 Something isn't working

Comments

@nnachefski
Copy link

nnachefski commented Jan 20, 2022

Hello,

I'm getting this error when attempting to deploy a nexus instance via the Community Operator from the catalog on Openshift 4.8

1) [Guice/ErrorInjectingConstructor]: RuntimeException: AccessDeniedException: /nexus-data/etc/logback

Instance config is:

apiVersion: apps.m88i.io/v1alpha1
kind: Nexus
metadata:
  name: repo
  namespace: nexus
spec:
  automaticUpdate:
    disabled: true
  generateRandomAdminPassword: true
  image: registry.connect.redhat.com/sonatype/nexus-repository-manager
  livenessProbe:
    failureThreshold: 3
    initialDelaySeconds: 240
    periodSeconds: 10
    successThreshold: 1
    timeoutSeconds: 15
  networking:
    expose: true
    exposeAs: Route
    tls: {}
  persistence:
    persistent: true
    storageClass: managed-premium
    volumeSize: 200Gi
  readinessProbe:
    failureThreshold: 3
    initialDelaySeconds: 240
    periodSeconds: 10
    successThreshold: 1
    timeoutSeconds: 15
  replicas: 1
  resources:
    limits:
      cpu: "2"
      memory: 2Gi
    requests:
      cpu: "1"
      memory: 2Gi
  serverOperations: {}
  serviceAccountName: repo
  useRedHatImage: true
@nnachefski nnachefski added the bug 🐛 Something isn't working label Jan 20, 2022
@ricardozanini
Copy link
Member

Hi! Can you try mounting an empty volume dir in this path like was discussed here? #222

@devent
Copy link

devent commented Apr 25, 2022

I hit the same bug in Kubernetes with NFS storage. The workaround works:

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

@davecore82
Copy link

I also hit this issue when deploying to openshift 4.12 with nexus operator v0.6.0.

I used the emptyDir workaround and it worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants