Uploaded image for project: 'repository.jboss.org/nexus'
  1. repository.jboss.org/nexus
  2. NEXUS-6

Wrong artifact has been cached into Nexus

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 7.6.0 Nexus
    • 7.5.6 Nexus
    • None

      We've got a report that your server has cached invalid artifacts in it from repository.apache.org. Here's an example:

      https://repository.jboss.org/nexus/content/groups/public/rad_poi/openxml4j/1.0.sha1

      I'm still investigating how this got into your nexus instance (actually, you weren't the only one, others have had a similar issue).

      The root cause is that the repository.apache.org sever was down for maintenance and was returning an HTML page for all requests. For some reason these were getting cached by Nexus as artifacts even though they should have been blocked by Nexus' file content validation feature. I'm unsure at this point exactly what went wrong.

      In any event, the server is up again, and you should clear these out of the proxy repository's storage.

      The following command executed in the sonatype-work/nexus/storage/apache-snapshots directory will clean these up:

      find . -type f |xargs grep -l '^<html>'|xargs rm

              dhladky@redhat.com David Hladky
              dhladky@redhat.com David Hladky
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: