Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-16967

Yum proxy to amazon main yum repository fails with 500 error

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.9.0, 3.10.0
    • Fix Version/s: None
    • Component/s: Yum
    • Labels:

      Description

      Yum Proxy pointing to http://packages.ap-southeast-2.amazonaws.com/2018.03/main/ca877ddc4929/ fails with a 500 error when request the repomd.xml.

      1.2.3.4 - user [29/Apr/2018:23:39:39 +0000] "GET /repository/qlfs-yum-amzn-main-proxy/x86_64/repodata/repomd.xml HTTP/1.1" 500 1914 52 "urlgrabber/3.10 yum/3.4.3"

      2018-04-29 23:39:39,369+0000 WARN [qtp2035242271-15735] stephen.muss org.sonatype.nexus.repository.httpbridge.internal.ViewServlet - Failure servicing: GET /repository/qlfs-yum-amzn-main-proxy/x86_64/repodata/repomd.xml
      java.lang.NullPointerException: null
      at org.sonatype.nexus.repository.yum.internal.metadata.RepomdParser.extract(RepomdParser.java:59)
      at org.sonatype.nexus.repository.yum.internal.metadata.RepomdParser.parse(RepomdParser.java:47)
      at org.sonatype.nexus.repository.yum.internal.metadata.RepomdProcessor.process(RepomdProcessor.java:55)
      at org.sonatype.nexus.repository.yum.internal.proxy.YumProxyFacetImpl.processRepomd(YumProxyFacetImpl.java:169)
      at org.sonatype.nexus.repository.yum.internal.proxy.YumProxyFacetImpl.processAndSaveMetadata(YumProxyFacetImpl.java:149)
      at org.sonatype.nexus.repository.yum.internal.proxy.YumProxyFacetImpl.putMetadata(YumProxyFacetImpl.java:130)
      at org.sonatype.nexus.repository.yum.internal.proxy.YumProxyFacetImpl.store(YumProxyFacetImpl.java:118)
      at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.doGet(ProxyFacetSupport.java:222)
      at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.lambda$1(ProxyFacetSupport.java:209)
      at org.sonatype.nexus.repository.proxy.Cooperation$CooperatingFuture.download(Cooperation.java:262)
      at org.sonatype.nexus.repository.proxy.Cooperation.download(Cooperation.java:194)
      at org.sonatype.nexus.repository.proxy.Cooperation.cooperate(Cooperation.java:93)
      at org.sonatype.nexus.repository.proxy.ProxyFacetSupport.get(ProxyFacetSupport.java:201)
      at org.sonatype.nexus.repository.proxy.ProxyHandler.handle(ProxyHandler.java:49)
      at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
      at org.sonatype.nexus.repository.storage.UnitOfWorkHandler.handle(UnitOfWorkHandler.java:39)
      at org.sonatype.nexus.repository.view.Context.proceed(Context.java:80)
      at org.sonatype.nexus.repository.view.handlers.ContentHeadersHandler.handle(ContentHeadersHandler.java:44)

      Having yum use following works fine.

      baseurl=http://packages.ap-southeast-2.amazonaws.com/2018.03/main/ca877ddc4929/$basearch

      Using yum use the following fails with the 500 error.

      baseurl=http://host:8081/repository/qlfs-yum-amzn-main-proxy/$basearch

      Using a raw proxy repository I can get yum to work.

      Not seeing any obvious issue with the repomd.xml.

      http://packages.ap-southeast-2.amazonaws.com/2018.03/main/ca877ddc4929/x86_64/repodata/repomd.xml.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              msurani Mahendra Surani
              CC:
              Stephen Muss
              Last Updated By:
              Peter Lynch Peter Lynch
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Date of First Response:

                  tigCommentSecurity.panel-title