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

Cannot create first user on new install for Jenkins 2.0

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • core
    • El Capitan OS running Safari browser version 9.0.3 (11601.4.4). Clean install from Jenkins-2.0.pkg

    Description

      Is this expected behavior on a system with a new Jenkins 2.0 installation? How would a first user have been created if I do not have a previous version of Jenkins installed?

      HTTP ERROR 401

      Problem accessing /securityRealm/createFirstAccount. Reason: First user was already created

      Powered by Jetty://

      Attachments

        Activity

          I was using 2.73.3.  I still have the frozen setup wizard window open.

          ethanstrominger Ethan Strominger added a comment - I was using 2.73.3.  I still have the frozen setup wizard window open.
          danielbeck Daniel Beck added a comment -

          ethanstrominger That's an unrelated issue.

          danielbeck Daniel Beck added a comment - ethanstrominger That's an unrelated issue.
          danielbeck Daniel Beck added a comment -

          The form shown to users is not the Jenkins 2 setup wizard at all, but a regular Jenkins "first user" form that has existed forever and is the way to set up a user when the security realm is Jenkins user DB, and no user exists.

          This issue seems to be with the CREATE_FIRST_USER_FILTER in HudsonPrivateSecurityRealm.

          First, the security realm is set. Then, a user is added. Between the two, the servlet filter is installed. Only after the setup wizard finishes installation is its servlet filter installed.

          Either there's an ordering issue here, or a race condition. Not sure why HudsonIsLoading would no longer handle requests at that time, though. Doesn't look like it's happening in separate threads.

          danielbeck Daniel Beck added a comment - The form shown to users is not the Jenkins 2 setup wizard at all, but a regular Jenkins "first user" form that has existed forever and is the way to set up a user when the security realm is Jenkins user DB, and no user exists. This issue seems to be with the CREATE_FIRST_USER_FILTER in HudsonPrivateSecurityRealm . First, the security realm is set. Then, a user is added. Between the two, the servlet filter is installed. Only after the setup wizard finishes installation is its servlet filter installed. Either there's an ordering issue here, or a race condition. Not sure why HudsonIsLoading would no longer handle requests at that time, though. Doesn't look like it's happening in separate threads.

          danielbeck Does this pertain to my  logged issue as well (https://issues.jenkins-ci.org/browse/JENKINS-48352) that you said is unrelated to the current thread?  How are the two different?

          ethanstrominger Ethan Strominger added a comment - danielbeck Does this pertain to my  logged issue as well ( https://issues.jenkins-ci.org/browse/JENKINS-48352 ) that you said is unrelated to the current thread?  How are the two different?
          danielbeck Daniel Beck added a comment -

          ethanstrominger Since they're unrelated, no. This issue, as I and the reporter explained, doesn't even show the setup wizard.

          danielbeck Daniel Beck added a comment - ethanstrominger Since they're unrelated, no. This issue, as I and the reporter explained, doesn't even show the setup wizard.

          People

            kzantow Keith Zantow
            paddyoh Patrick O'Hannigan
            Votes:
            1 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: