Error 500 when downloading package from group repository - Sonatype Nexus Repository - Sonatype Community
Error 500 when downloading package from group repository
post by ibizdevops on Mar 24, 2024
Hello! We have a private proxy repository (A proxy repository → local other repository) and encountered a problem after upgrading from version 3.61.0 to version 3.66.0. A proxy repository became inaccessible in the group repository (from A The access to the proxy repository is normal), and “ Error 500” is displayed when accessing the group repository (as shown in the figure below). The group repository also contains several proxy repositories, including A proxy repository, which were in normal use before the upgrade.
user config registry A proxy repository → A proxy repository — OK
user config registry group repository → group repository(A proxy repository) — Error 500
We’ve tried invalidating the cache, rebuilding the proxy repository and the group repository, but to no avail.
Could you please help us find out the cause of this problem? Thank you very much!
Env: Docker 19.03.15
Version: Nexus OSS 3.66.0 (standalone)
2024-03-22 18:05:05,640+0800 WARN [qtp945471308-636] admin org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/xxx-npm-proxy/leihou-ui/-/leihou-ui-1.0.12.tgz
java.lang.IllegalStateException: child 'versions' not a Map
at com.google.common.base.Preconditions.checkState(Preconditions.java:601)
at org.sonatype.nexus.common.collect.NestedAttributesMap.child(NestedAttributesMap.java:128)
...
post by mpiggott on Mar 25, 2024
The exception suggests that the metadata isn’t valid, check the versions - registry/docs/REGISTRY-API.md at master · npm/registry · GitHub
post by ibizdevops on Mar 25, 2024
thank you for your reply! After our follow-up investigation, we found that it was caused by a problem with one of the proxy repositories in the group repository. After we removed the problematic proxy repository, everything recovered.
Thanks again!