Closed gschafra closed 1 year ago
My nexus docker file:
# declaration of NEXUS_VERSION must appear before first FROM command
# see: https://docs.docker.com/engine/reference/builder/#understand-how-arg-and-from-interact
ARG NEXUS_VERSION=latest
FROM sonatype/nexus3:$NEXUS_VERSION
ARG NEXUS_COMPOSER_VERSION=0.0.29
ARG DEPLOY_DIR=/opt/sonatype/nexus/deploy/
ENV NEXUS_COMPOSER_VERSION=${NEXUS_COMPOSER_VERSION}
ENV DEPLOY_DIR=${DEPLOY_DIR}
USER root
RUN microdnf update -y && microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y wget
RUN wget -O ${DEPLOY_DIR}nexus-repository-composer-${NEXUS_COMPOSER_VERSION}-bundle.kar https://repo1.maven.org/maven2/org/sonatype/nexus/plugins/nexus-repository-composer/${NEXUS_COMPOSER_VERSION}/nexus-repository-composer-${NEXUS_COMPOSER_VERSION}-bundle.kar
# COPY ./nexus-repository-composer-*-bundle.kar ${DEPLOY_DIR}
USER nexus
FYI: Looks like the plugin is not loading at all.
As suspected... the problem also occurs with another third-party bundle/plugin: https://github.com/sonatype-nexus-community/nexus-repository-cargo. So, it's DEFINITLY NOT related the the bundle/plugin itself. This strengthens me in the assumption that it is a problem of Nexus itself.
same problem here with some composer repository definend during Nexus upgrade passing from 3.45.1 to 3.53.0 each with plugin version 0.0.29. Only way I've found to get my Nexus start was using the "most permanent install" of the composer plugin.
I hope this save you some panic moment ;)
I hope this save you some panic moment ;)
Ohh... thanks a lot... this REALLY provides relief... since I'm struggling with this problems for hours... and I thought I was kind of stupid.
@mvanini Could you please confirm the corresponding issue (everything points to a nexus problem so far, https://github.com/sonatype/nexus-public/issues/106) at the public nexus repo. I am afraid "they" (or any GPT bot) do not believe me/us. Other third party bundles seem also to be affected.
Hello, the issue seems to be resolved since 3.54. https://github.com/sonatype/nexus-public/issues/106#issuecomment-1552197498
What are you trying to do?
When trying to update our nexus from 3.52 to 3.53 with installed composer plugin nexus fails to start with following stack trace:
How could we solve this issue? (Not knowing is okay!)
Fix compatibility with nexus v3.53