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

Default admin user cannot connect to jenkins after running SetupWizard

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Component/s: jenkins-test-harness
    • Labels:
      None
    • Environment:
    • Similar Issues:

      Description

      Default admin user cannot connect to jenkins after running SetupWizard

      Cannot use a fresh install of jenkins RPM on a minimal installation of CentOS7.   Firewalld and SELinux are disabled.

      All attempts to use jenkins are greeted with an error page reporting:

      • An error occurred / Unable to connect to Jenkins

      Symptom has been 100% reproducible. 

      To reproduce:

      Prepare a fresh install of Jenkins on a fresh install of CentOS7:

      • Install CentOS 7 - minimal install, hostname and IP supplied via DHCP
      • Disable SELinux via /etc/sysconfig/selinux
      • #> systemctl disable firewalld
      • Reboot
      • #> yum upgrade -y
      • #> yum install -y wget java-1.8.0-openjdk
      • #> java -version
      • #> echo 'export JAVA_HOME=/usr/lib/jvm/jre-1.8.0-openjdk' | sudo tee -a /etc/profile
      • #> echo 'export JRE_HOME=/usr/lib/jvm/jre' | sudo tee -a /etc/profile
      • #> source /etc/profile
      • #> wget -O /etc/yum.repos.d/jenkins.repo http://pkg.jenkins-ci.org/redhat/jenkins.repo
      • #> rpm --import http://pkg.jenkins-ci.org/redhat/jenkins-ci.org.key
      • #> yum install -y jenkins
      • #> systemctl enable jenkins
      • Reboot - for updated kernel and restart all services

      Attempt to use jenkins:

      • Direct browser to <appliance>:8080
      • click [install suggested plugins]
      • click [continue as admin]
      • click [start using Jenkins]

       

        Attachments

          Activity

          Hide
          wrjohnson Richard Johnson added a comment -

          The symptom can be accomodated by modifying the contents of /var/lib/jenkins/secrets/initialAdminPassword before first contact with a browser.

          For example, change:

          b0dc273fe0b745708ec1cb91f88eda81

          to

          passwd:b0dc273fe0b745708ec1cb91f88eda81

          Then set up Jenkins:

          • Direct browser to <appliance>:8080
          • Login as user "admin" with the original contents of initialAdminPassword
          • click [install suggested plugins]
          • click [continue as admin]
          • click [start using Jenkins] - The "cannot connect" error appears
          • click [retry] - The "cannot connect" error is resolved

           

           

          Show
          wrjohnson Richard Johnson added a comment - The symptom can be accomodated by modifying the contents of /var/lib/jenkins/secrets/initialAdminPassword before first contact with a browser. For example, change: b0dc273fe0b745708ec1cb91f88eda81 to passwd:b0dc273fe0b745708ec1cb91f88eda81 Then set up Jenkins: Direct browser to <appliance>:8080 Login as user "admin" with the original contents of initialAdminPassword click [install suggested plugins] click [continue as admin] click [start using Jenkins] - The "cannot connect" error appears click [retry] - The "cannot connect" error is resolved    
          Hide
          jjulve Jonas Julve added a comment -

          Thanks for the workaround Richard Johnson. That worked like a charm!!

          Show
          jjulve Jonas Julve added a comment - Thanks for the workaround Richard Johnson . That worked like a charm!!
          Hide
          120011676 Say li added a comment -

          How to solve this problem?

          Show
          120011676 Say li added a comment - How to solve this problem?
          Hide
          hassaancarry Hassaan Sohail added a comment - - edited

          Same steps I use as mention above. Because I don't want to use Ubuntu and docker to build android application with multiple jobs.
          I am facing same issue, is there any solution or need to quit to run Jenkins in centos?

          Show
          hassaancarry Hassaan Sohail added a comment - - edited Same steps I use as mention above. Because I don't want to use Ubuntu and docker to build android application with multiple jobs. I am facing same issue, is there any solution or need to quit to run Jenkins in centos?
          Hide
          hassaancarry Hassaan Sohail added a comment -

          Show
          hassaancarry Hassaan Sohail added a comment -
          Hide
          theejhay Taiwo Ogunyemi added a comment -

          Thanks for the solution Richard Johnson

          It worked like a charm

          Show
          theejhay Taiwo Ogunyemi added a comment - Thanks for the solution Richard Johnson It worked like a charm

            People

            • Assignee:
              olivergondza Oliver Gondža
              Reporter:
              wrjohnson Richard Johnson
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: