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

Nexus fails when deployed without persistence #25

Closed
sutaakar opened this issue Dec 18, 2019 · 3 comments
Closed

Nexus fails when deployed without persistence #25

sutaakar opened this issue Dec 18, 2019 · 3 comments
Assignees
Labels
bug 🐛 Something isn't working nexus3 Issue Related to Nexus version 3.x
Milestone

Comments

@sutaakar
Copy link

When I deploy Nexus without persistence then the Nexus pod fails with "Permission denied" issues.

Example CR:

apiVersion: apps.m88i.io/v1alpha1
kind: Nexus
metadata:
  name: nexus3
spec:
  replicas: 1
  useRedHatImage: false
  resources:
    limits:
      cpu: "2"
      memory: "2Gi"
    requests:
      cpu: "1"
      memory: "2Gi"
  persistence:
    persistent: false
  networking:
    expose: true

In the log I can see:

id: cannot find name for user ID 1000650000
Warning:  Cannot open log file: ../sonatype-work/nexus3/log/jvm.log
Warning:  Forcing option -XX:LogFile=/tmp/jvm.log
OpenJDK 64-Bit Server VM warning: Cannot open file ../sonatype-work/nexus3/log/jvm.log due to Permission denied

java.io.FileNotFoundException: ../sonatype-work/nexus3/tmp/i4j_tA0O_LqRVFNhWb_IlDQiAGNa5vA=.lock (Permission denied)
	at java.io.RandomAccessFile.open0(Native Method)
	at java.io.RandomAccessFile.open(RandomAccessFile.java:316)
	at java.io.RandomAccessFile.<init>(RandomAccessFile.java:243)
	at com.install4j.runtime.launcher.util.SingleInstance.check(SingleInstance.java:72)
	at com.install4j.runtime.launcher.util.SingleInstance.checkForCurrentLauncher(SingleInstance.java:31)
	at com.install4j.runtime.launcher.UnixLauncher.checkSingleInstance(UnixLauncher.java:88)
	at com.install4j.runtime.launcher.UnixLauncher.main(UnixLauncher.java:67)
...
@sutaakar
Copy link
Author

Deploying Nexus with persistence works correctly.

@ricardozanini
Copy link
Member

It seems that the image requires a PV mounted :(

I’ll take a look into it to understand if we can run the image without volume.

@ricardozanini ricardozanini self-assigned this Dec 18, 2019
@ricardozanini ricardozanini added bug 🐛 Something isn't working nexus3 Issue Related to Nexus version 3.x labels Dec 18, 2019
@ricardozanini ricardozanini added this to the v0.2.0 milestone Dec 18, 2019
@ricardozanini ricardozanini modified the milestones: v0.2.0, v0.3.0 Apr 25, 2020
@ricardozanini
Copy link
Member

ricardozanini commented May 1, 2020

Fixed here:
#35

@sutaakar as soon as we release 0.2.0, I'll let you know to try again.

@ricardozanini ricardozanini modified the milestones: v0.3.0, v0.2.0 May 1, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working nexus3 Issue Related to Nexus version 3.x
Projects
None yet
Development

No branches or pull requests

3 participants