About an hour ago, I did a fresh pull of the docker image sonatype/nexus:latest which upgraded my instance from 3.25.0 to 3.25.1 and all of my Maven repositories report no component/assets found in repository when I try to browse them. When I go to https://<URL>/service/rest/repository/browse/<REPONAME>/ I get Index of / and nothing is listed. After I reverted my backup, I took a VM snapshot and tried the upgrade again and got the same result. This time I was able to revert the VM snapshot for a quick recovery.
At the moment, I am using Maven repositories. Blob Stores still show plenty of usage after upgrading.
I am running a single instance. I’m not sure what you mean by maintaining the storage between your two containers. I ran the following commands to perform the upgrade. I can try the upgrade again this weekend and pull whatever logs you need.
Edit the tag from 3.25.0 to 3.25.1
docker-compose pull
docker-compose down
docker-compose up -d && docker-compose logs -f
My docker-compose.yml
version: "3"
services:
# HTTPS proxy
# The certificate file names should be the FQDN listed in VIRTUAL_HOST.
# With HTTPS enabled, HTTP will automaticly be redirected to HTTPS.
nginx-proxy:
image: jwilder/nginx-proxy:latest
container_name: nginx-proxy
restart: always
links:
- nexus
ports:
- "80:80"
- "443:443"
volumes:
# A link to Docker
- /var/run/docker.sock:/tmp/docker.sock:ro
# Keep the dhparams (Should generate on the first run)
- dhparam:/etc/nginx/dhparam
# Fix the upload size issue
- /root/nexus3/my_custom_proxy_settings.conf:/etc/nginx/conf.d/my_custom_proxy_settings.conf:ro
# Push the certs to nginx
- /root/nexus3/certs:/etc/nginx/certs:ro
depends_on:
- nexus
# Artifact storage
nexus:
image: sonatype/nexus3:3.25.0
container_name: nexus
restart: always
stop_grace_period: 2m
environment:
- VIRTUAL_HOST=repo.companyname.com
- VIRTUAL_PORT=8081
volumes:
- nexus-data:/nexus-data
- /mnt/nexus_mvn_mirror_repo_data:/nexus-mvn-mirror-repo-data
- /mnt/nexus_docker_repo_data:/nexus-docker-repo-data
volumes:
nexus-data:
dhparam:
This odd behaviour could be alleviated by creating and running a manual task of type “Repair - Rebuild Maven repository metadata (maven-metadata.xml)” on hosted maven-snapshots repository.
Unfortunately after updating to OSS 3.26.0-04 the task has to be rerun due artifacts weren’t found again.
I just upgraded from 3.25.0 to 3.26.0 and this exact task was automatically created, ran, and deleted. Now everything is working correctly. It would be nice if there was a pop-up that said a rebuild was in-progress.