Uploaded image for project: 'Infrastructure'
  1. Infrastructure
  2. INFRA-964

apt repository redirect https -> http

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: etc, www
    • Environment:
      Debian testing
      $ uname -a
      Linux jenkins 4.6.0-1-amd64 #1 SMP Debian 4.6.2-2 (2016-06-25) x86_64 GNU/Linux
      $ cat /etc/issue
      Debian GNU/Linux stretch/sid \n \l
    • Similar Issues:

      Description

      Err:1 https://pkg.jenkins.io/debian binary/ jenkins 2.28
        Redirection from https to 'http://mirrors.jenkins.io/debian/jenkins_2.28_all.deb' is forbidden
      E: Failed to fetch https://pkg.jenkins.io/debian/binary/jenkins_2.28_all.deb  Redirection from https to 'http://mirrors.jenkins.io/debian/jenkins_2.28_all.deb' is forbidden
      E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
      

      Content of /etc/apt/sources.list.d/jenkins.list

      deb https://pkg.jenkins.io/debian binary/
      

      Current workaround:

      deb http://pkg.jenkins.io/debian binary/
      

        Attachments

          Issue Links

            Activity

            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: R. Tyler Croy
            Path:
            dist/profile/templates/pkgrepo/debian_htaccess.erb
            spec/server/mirrorbrain/mirrorbrain_spec.rb
            http://jenkins-ci.org/commit/jenkins-infra/b65c2597383b319d693cd4d438f5beb6cf72f56e
            Log:
            Redirect HTTPs downloads from pkg.jenkins.io to Azure blob storage

            This is still a bit experimental at this point as releases have to be manually
            pushed to Azure blob storage by me, but this will resolve INFRA-964 and give us
            a good proof-of-concept for serving more traffic off Azure blob storage

            Fixes INFRA-964

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: R. Tyler Croy Path: dist/profile/templates/pkgrepo/debian_htaccess.erb spec/server/mirrorbrain/mirrorbrain_spec.rb http://jenkins-ci.org/commit/jenkins-infra/b65c2597383b319d693cd4d438f5beb6cf72f56e Log: Redirect HTTPs downloads from pkg.jenkins.io to Azure blob storage This is still a bit experimental at this point as releases have to be manually pushed to Azure blob storage by me, but this will resolve INFRA-964 and give us a good proof-of-concept for serving more traffic off Azure blob storage Fixes INFRA-964
            Hide
            rtyler R. Tyler Croy added a comment -

            I have deployed a somewhat experimental change which bounces requests to https://pkg.jenkins.io to our newly populated archives on Azure (which are served over HTTPs)

            Please let me know if you continue to see issues.

            Show
            rtyler R. Tyler Croy added a comment - I have deployed a somewhat experimental change which bounces requests to https://pkg.jenkins.io to our newly populated archives on Azure (which are served over HTTPs) Please let me know if you continue to see issues.
            Hide
            stodorov Steve Todorov added a comment -

            I was just about to report the same issue with OpenSUSE and zypper. The error you would receive there is:

            Problem retrieving the specified RPM file:
            Download (curl) error for 'https://pkg.jenkins.io/opensuse/jenkins-2.28-1.2.noarch.rpm':
            Error code: Bad URL
            Error message: Protocol "http" not supported or disabled in libcurl

            The workaround is to simply remove the jenkins repository and add it again using the HTTP protocol.

            Show
            stodorov Steve Todorov added a comment - I was just about to report the same issue with OpenSUSE and zypper. The error you would receive there is: Problem retrieving the specified RPM file: Download (curl) error for 'https://pkg.jenkins.io/opensuse/jenkins-2.28-1.2.noarch.rpm': Error code: Bad URL Error message: Protocol "http" not supported or disabled in libcurl The workaround is to simply remove the jenkins repository and add it again using the HTTP protocol.
            Hide
            rtyler R. Tyler Croy added a comment -

            Steve Todorov, pending some soak-time with the debian repositories, I plan on rolling this out to other package repositories.

            Will you please open a new ticket with your version of openSUSE so I can use t hat to test the change(s) when I make them?

            Show
            rtyler R. Tyler Croy added a comment - Steve Todorov , pending some soak-time with the debian repositories, I plan on rolling this out to other package repositories. Will you please open a new ticket with your version of openSUSE so I can use t hat to test the change(s) when I make them?
            Hide
            stodorov Steve Todorov added a comment -

            R. Tyler Croy sure, I've created a new ticket INFRA-967 with some instructions on how to reproduce the issue on OpenSUSE.

            Show
            stodorov Steve Todorov added a comment - R. Tyler Croy sure, I've created a new ticket INFRA-967 with some instructions on how to reproduce the issue on OpenSUSE.

              People

              • Assignee:
                rtyler R. Tyler Croy
                Reporter:
                oddstr13 Odd Stråbø
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: