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

[nexus2] - /var/lib/rpm/.dbenv.lock -> needs root #63

Open
ReSearchITEng opened this issue Nov 20, 2017 · 0 comments
Open

[nexus2] - /var/lib/rpm/.dbenv.lock -> needs root #63

ReSearchITEng opened this issue Nov 20, 2017 · 0 comments

Comments

@ReSearchITEng
Copy link

ReSearchITEng commented Nov 20, 2017

anonymous org.sonatype.nexus.yum.internal.task.CommandLineExecutor - Execute command : mergerepo --no-database --repo=file:[....] [...] anonymous org.sonatype.nexus.yum.internal.task.CommandLineExecutor - ovl: Error while doing RPMdb copy-up: [Errno 13] Permission denied: '/var/lib/rpm/.dbenv.lock'

Conclusion is that for nexus2 (which uses OS's RPM commands), the process needs to run as root (and not as nexus user).

For those facing this issue, the work around is to start the nexus2 overriding the user defined in Dockerfile using:
docker run -u root ...

@ReSearchITEng ReSearchITEng changed the title [nexus2 [nexus2] - /var/lib/rpm/.dbenv.lock -> needs root Nov 20, 2017
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

1 participant