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

Blank page after login just after finishing Setup Wizard

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • core
    • None
    • 2.195

      Blank page after login from all browsers from every computer.

      It's freshly installed Jenkins. Just after Setup Wizard with Install suggested plugins. Then in wizard dialogue user was created. And after that all attemts to login with this user lead to nothing.

       


      For those who just need to fix it right now:

      You can restart Jenkins with this URL: 

      http://<jenkins.server>/restart

       or you can restart host, where Jenkins installed, or restart Jenkins in another way, depending of your installation. 

        1. 2019-08-20_22h02_57.png
          2019-08-20_22h02_57.png
          71 kB
        2. 2019-08-20_22h04_59.png
          2019-08-20_22h04_59.png
          48 kB
        3. Jenkins-Docker-logs.txt
          48 kB
        4. Jenkins-logs.txt
          0.8 kB
        5. Thread dump [Jenkins].html
          55 kB

          [JENKINS-59017] Blank page after login just after finishing Setup Wizard

          Bogdan Sukonnov added a comment - - edited

          I saw this bug previously and know that

          http://<jenkins.server>/restart

          will help. And I wont be able to reproduce bug after restart (I tried before).

          Luckily, I have VM snapshot. So, this state most likely can be reproduced as many times as needed.

          The question now is - how i can gather more information without restarting Jenkins?

          Bogdan Sukonnov added a comment - - edited I saw this bug previously and know that http: //<jenkins.server>/restart will help. And I wont be able to reproduce bug after restart (I tried before). Luckily, I have VM snapshot. So, this state most likely can be reproduced as many times as needed. The question now is - how i can gather more information without restarting Jenkins?

          As I found, I can fully access Jenkins and it works fine when I use URL other then mainpage. And mainpage is still blank. So I can use loggers with http://<jenkins.server>/log/. Trying to figure out which loggers can help me.

          Bogdan Sukonnov added a comment - As I found, I can fully access Jenkins and it works fine when I use URL other then mainpage. And mainpage is still blank. So I can use loggers with  http://<jenkins.server>/log/ . Trying to figure out which loggers can help me.

          logs with words Setup Wizard Jenkins-logs.txt

          Bogdan Sukonnov added a comment - logs with words Setup Wizard  Jenkins-logs.txt

          in Tread dump we see jenkins.install.SetupWizard$1.doFilter(SetupWizard.java:627) so, SetupWizard is still in a filter chain
          Thread dump [Jenkins].html

          Bogdan Sukonnov added a comment - in Tread dump we see jenkins.install.SetupWizard$1.doFilter(SetupWizard.java:627) so, SetupWizard is still in a filter chain Thread dump [Jenkins].html

          Bogdan Sukonnov added a comment - - edited

          but Script Console

          println(Jenkins.get().getSetupWizard().hasSetupWizardFilter());

          prints false 

          println(Jenkins.get().getInstallState().isSetupComplete());

           prints true

          Bogdan Sukonnov added a comment - - edited but Script Console println(Jenkins.get().getSetupWizard().hasSetupWizardFilter()); prints  false   println(Jenkins.get().getInstallState().isSetupComplete());  prints true

          The same blank page can be reached in any Jenkins by 
          http://<jenkins.server>/setupWizard/

          Bogdan Sukonnov added a comment - The same blank page can be reached in any Jenkins by  http://<jenkins.server>/setupWizard/

          Bogdan Sukonnov added a comment - - edited

          So I see 3 problems here:

          1. SetupWizardFilter still do filtering in spite of isSetupComplete() == true
          2. SetupWizardFilter is still in filters list when Setup Wizard is complete - this can indicate general problems with deleting filters
          3. http://<jenkins.server>/setupWizard/   works on every Jenkins, but doesn't give user any information or interface with possible actions

          Bogdan Sukonnov added a comment - - edited So I see 3 problems here: SetupWizardFilter still do filtering in spite of isSetupComplete() == true SetupWizardFilter is still in filters list when Setup Wizard is complete - this can indicate general problems with deleting filters http://<jenkins.server>/setupWizard/   works on every Jenkins, but doesn't give user any information or interface with possible actions

          Bogdan Sukonnov added a comment - PR  [JENKINS-59017] disable ForceSetupWizardFilter if setup complete #4170

          FYI I just put the release version a bit in advance, it will be released in 1-2 days with your PR.

          Wadeck Follonier added a comment - FYI I just put the release version a bit in advance, it will be released in 1-2 days with your PR.

          Daniel Beck added a comment -

          Just encountered this in 2.190.1 and the following script (entered at /script because for some reason we never addressed the "wizard bypass") addressed it:

          ExtensionList.lookupSingleton(jenkins.install.SetupWizard.class).onInstallStateUpdate(Jenkins.get().getInstallState()) 

          Quicker than re-running the wizard I guess.

          Daniel Beck added a comment - Just encountered this in 2.190.1 and the following script (entered at  /script because for some reason we never addressed the "wizard bypass") addressed it: ExtensionList.lookupSingleton(jenkins.install.SetupWizard.class).onInstallStateUpdate(Jenkins.get().getInstallState()) Quicker than re-running the wizard I guess.

            bogdan_sukonnov Bogdan Sukonnov
            bogdan_sukonnov Bogdan Sukonnov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: