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

Cannot create first user on new install for Jenkins 2.0

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open (View Workflow)
    • Priority: Critical
    • Resolution: Unresolved
    • Component/s: core
    • Labels:
    • Environment:
      El Capitan OS running Safari browser version 9.0.3 (11601.4.4). Clean install from Jenkins-2.0.pkg
    • Similar Issues:

      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

          Hide
          ethanstrominger Ethan Strominger added a comment -

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

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

          Ethan Strominger That's an unrelated issue.

          Show
          danielbeck Daniel Beck added a comment - Ethan Strominger That's an unrelated issue.
          Hide
          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.

          Show
          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.
          Hide
          ethanstrominger Ethan Strominger added a comment -

          Daniel Beck 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?

          Show
          ethanstrominger Ethan Strominger added a comment - Daniel Beck 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?
          Hide
          danielbeck Daniel Beck added a comment -

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

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

            People

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

              Dates

              • Created:
                Updated: