Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-48099

The redhat "jenkins-stable" yum repo points to "jenkins", leading to a broken repo

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • packaging
    • None
    • Amazon Linux AMI 2015.03

      As per the instructions here, https://pkg.jenkins.io/redhat-stable/, it has you download the https://pkg.jenkins.io/redhat-stable/jenkins.repo file.  This file's header line is "[jenkins]".  This causes yum to think that it should be grabbing the latest "jenkins" mirror version, which isn't available in the "jenkins-stable" mirror.

      Workaround:
      Change the first line in the downloaded "/etc/yum.repos.d/jenkins.repo" file to read:
      [jenkins-stable]

      The output of attempting to install jenkins after using this repo file is below:
      Downloading packages:
      http://pkg.jenkins.io/redhat-stable/jenkins-2.89-1.1.noarch.rpm: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"
      Trying other mirror.

      Error downloading packages:
      jenkins-2.89-1.1.noarch: failure: jenkins-2.89-1.1.noarch.rpm from jenkins: [Errno 256] No more mirrors to try.

          [JENKINS-48099] The redhat "jenkins-stable" yum repo points to "jenkins", leading to a broken repo

          Scott Glajch created issue -
          Daniel Beck made changes -
          Component/s New: packaging [ 20120 ]
          Component/s Original: www [ 18921 ]
          Key Original: INFRA-1405 New: JENKINS-48099
          Workflow Original: classic default workflow [ 223844 ] New: JNJira + In-Review [ 224065 ]
          Project Original: Infrastructure [ 10301 ] New: Jenkins [ 10172 ]
          Daniel Beck made changes -
          Assignee Original: R. Tyler Croy [ rtyler ] New: Daniel Beck [ danielbeck ]
          Daniel Beck made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Daniel Beck made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Daniel Beck made changes -
          Remote Link New: This issue links to "PR 104 (Web Link)" [ 18110 ]

          Daniel Beck added a comment -

          Does this issue only occur when both repos are installed on a system? Otherwise I expect we'd have learned about this long ago. How can this be reproduced?

          Daniel Beck added a comment - Does this issue only occur when both repos are installed on a system? Otherwise I expect we'd have learned about this long ago. How can this be reproduced?

          Mark Waite added a comment - - edited

          I can't duplicate the problem as described. Steps I took in my attempt:

          1. Update my CentOS 7 machine to latest with:
            yum update
          2. Confirm the Jenkins repo is not in the repolist with:
            sudo yum repolist | grep jenkins
          3. Install jenkins.repo into /etc/yum.repos.d/ with:
            sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo
          4. Install the Jenkins repository signature with:
            sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key
          5. Confirm the Jenkins repo is in the repolist with:
            sudo yum repolist | grep jenkins
          6. Install Jenkins and confirm it is latest LTS (2.73.3) with:
            sudo yum install jenkins

          The message reported by the glajchs looks similar to messages I've seen when a mirror was temporarily unavailable. Does the reported problem still appear? Does it continue if you use a different mirror?

          Mark Waite added a comment - - edited I can't duplicate the problem as described. Steps I took in my attempt: Update my CentOS 7 machine to latest with: yum update Confirm the Jenkins repo is not in the repolist with: sudo yum repolist | grep jenkins Install jenkins.repo into /etc/yum.repos.d/ with: sudo wget -O /etc/yum.repos.d/jenkins.repo https://pkg.jenkins.io/redhat-stable/jenkins.repo Install the Jenkins repository signature with: sudo rpm --import https://pkg.jenkins.io/redhat-stable/jenkins.io.key Confirm the Jenkins repo is in the repolist with: sudo yum repolist | grep jenkins Install Jenkins and confirm it is latest LTS (2.73.3) with: sudo yum install jenkins The message reported by the glajchs looks similar to messages I've seen when a mirror was temporarily unavailable. Does the reported problem still appear? Does it continue if you use a different mirror?

          Daniel Beck added a comment -

          markewaite Note the version it tries to download, 2.89 isn't stable.

          Perhaps installing both repos as my comment suggests works?

          Daniel Beck added a comment - markewaite Note the version it tries to download, 2.89 isn't stable. Perhaps installing both repos as my comment suggests works?

          Mark Waite added a comment -

          danielbeck I agree that the description from glajchs says that his download was attempting 2.89, and if that is the version being attempted from "stable", then that is a bug.

          My results were that it downloaded 2.73.3 as I expected. I am unable to duplicate the bug as reported. Have you been able to duplicate the bug as reported?

          Mark Waite added a comment - danielbeck I agree that the description from glajchs says that his download was attempting 2.89, and if that is the version being attempted from "stable", then that is a bug. My results were that it downloaded 2.73.3 as I expected. I am unable to duplicate the bug as reported. Have you been able to duplicate the bug as reported?

            danielbeck Daniel Beck
            glajchs Scott Glajch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: