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

java.lang.NoClassDefFoundError: java/security/interfaces/RSAPrivateKey in 107.27.3 jfrog/artifactory helm chart #1515

Closed
lukasmrtvy opened this issue Oct 4, 2021 · 4 comments

Comments

@lukasmrtvy
Copy link

lukasmrtvy commented Oct 4, 2021

Bump from 107.25.6 to 107.27.3 jfrog/artifactory chart causes:

2021-10-04T20:59:58.137Z [jfac ] [ERROR] [36d628bdf0c784d ] [.s.b.w.s.s.ErrorPageFilter:184] [27.0.0.1-8040-exec-2] - Forwarding to error page from request [/api/v1/registry/join/router] due to exception [org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: java/security/interfaces/RSAPrivateKey]
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.NoClassDefFoundError: java/security/interfaces/RSAPrivateKey

k8s version v1.18.10

values.yaml

  - artifactory:
      masterKey: {{ .Values.artifactory.artifactory.master_key }}
      javaOpts:
        xms: 4g
        xmx: 12g
      resources:
        requests:
          cpu: 2
          memory: 4Gi
        limits:
          cpu: 2
          memory: 12Gi
      openMetrics:
          enabled: true
      license:
        licenseKey: {{ .Values.artifactory.artifactory.license }}
      admin:
        username: admin
        password: {{ .Values.artifactory.secrets.password }}
      persistence:
        enabled: true
        storageClassName: retain-outside-sc-4gb-plus
        size: 8000Gi
        type: azure-blob
        azureBlob:
          accountName: {{ .Values.artifactory.storage.access_key }}
          accountKey: {{ .Values.artifactory.storage.access_secret }}
          containerName: artifactory
  - postgresql:
      enabled: false
  - database:
      type: postgresql
      driver: org.postgresql.Driver
      url: 'jdbc:postgresql://{{ .Values.artifactory.postgresql.host }}:5432/artifactory?ssl=true&sslmode=require'
      user: {{ .Values.artifactory.postgresql.username }}
      password: {{ .Values.artifactory.postgresql.password }}
  - ingress:
      enabled: true
      annotations:
        cert-manager.io/cluster-issuer: {{ .Values.artifactory.common.issuer }}
        external-dns.alpha.kubernetes.io/target: gw.{{ .Values.artifactory.common.stack }}.{{ .Values.artifactory.common.domain }}
      hosts:
      - artifactory.{{ .Values.artifactory.common.domain }}
      tls:
      - hosts:
        - artifactory.{{ .Values.artifactory.common.domain }}
        secretName: artifactory.{{ .Values.artifactory.common.domain }}-tls
  - nginx:
      enabled: false
@amithins
Copy link
Collaborator

amithins commented Oct 5, 2021

@lukasmrtvy If you have enterprise/pro license (I think you do), Can you please create a formal ticket via JFrog Support Channel to have sessions to look at your instance and provide the right guidance - that gives support with SLA. https://jfrog.com/support/

@chukka chukka closed this as completed Oct 21, 2021
@floriankoenig-work
Copy link

@lukasmrtvy I got that exact same error after upgrading from 7.36.14 via dpkg.
Unfortunately my Pro license does not include dedicated support.
Any chance you remember the cause/solution?
I'd be very thankful for every hint

@lvthillo
Copy link

Did you find a fix @floriankoenig-work?

@floriankoenig-work
Copy link

floriankoenig-work commented Nov 29, 2023

Unfortunately no real fix but here is what i did:

sudo systemctl stop artifactory
# remove everything except data and master.key
sudo rm -fr /opt/jfrog/artifactory/app  /opt/jfrog/artifactory/var/{backup,bootstrap,work}  /opt/jfrog/artifactory/var/etc/{access,event,integration,logrotate,observability,router,system.basic-template.yaml,system.yaml,artifactory,filebeat.yaml,jfconnect,metadata,replicator,system.full-template.yaml}
sudo dpkg -i jfrog-artifactory-pro-7.68.14.deb
sudo systemctl start artifactory.service

After that apt-upgrade could update to the latest version without problems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants