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

Configure UI completely broken after upgrade to 2.264

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Report all issues with a complete plugin list, and a screenshot

      JENKINS_HOST=username:password@myhost.com:port
      curl -sSL "http://$JENKINS_HOST/pluginManager/api/xml?depth=1&xpath=/*/*/shortName|/*/*/version&wrapper=plugins" | perl -pe 's/.*?<shortName>([\w-]+).*?<version>([^<]+)()(<\/\w+>)+/\1 \2\n/g'|sed 's/ /:/'
       

      Check if your plugin already has an issue reported https://issues.jenkins.io/secure/Dashboard.jspa?selectPageId=20741 artifactory is https://github.com/jfrog/jenkins-artifactory-plugin/issues/350

      If you know which plugin is causing the issue report a new issue, including steps to reproduce and screenshots and label it with 'tables-to-divs-regression'

      How to identify which plugin is causing the issue

      1. check plugins list against open issues on https://issues.jenkins.io/secure/Dashboard.jspa?selectPageId=20741
      2. then if no open issue matches:

      • disable plugins in groups of about 10 and record which ones you disabled
      • Restart Jenkins
      • If you can still reproduce keep disabling
      • Once you can't reproduce enable plugins one by one until you find which one it is
      • Then report an issue with the label 'tables-to-divs-regression'

      How to triage someone else's issue

      1. check plugins list against open issues on https://issues.jenkins.io/secure/Dashboard.jspa?selectPageId=20741
      2. then if no open issue matches:

      curl https://issues.jenkins.io/secure/attachment/53350/53350_jenkins-basith-16112020.txt | sort > abdul-bas-plugins.txt
      cat abdul-bas-plugins.txt | cut -d ':' -f 1 | sort > plugins.filtered.txt # remove versions as CLI complains when old versions are there
      wget https://github.com/jenkinsci/plugin-installation-manager-tool/releases/download/2.1.2/jenkins-plugin-manager-2.1.2.jar
      wget https://get.jenkins.io/war/2.266/jenkins.war
      export JENKINS_HOME=~/.jenkins-64072
      java -jar jenkins-plugin-manager-2.1.2.jar -f abdul-bas-plugins.txt -d ~/.jenkins-64072/plugins --war jenkins.war
      java -jar jenkins.war
      
      • Normally create a new freestyle job and then reproduce the issue, (requires enough information with steps to reproduce, sometimes it is a different page or requires specific config)
      • Once reproduced disable plugins in groups of about 10 and record which ones you disabled
      • Restart Jenkins
      • If you can still reproduce keep disabling
      • Once you can't reproduce enable plugins one by one until you find which one it is
      • Then report an issue with the label 'tables-to-divs-regression'

      original text

      After upgrade to 2.264.1 via yum package, the confgure UI of all my projects was borked, showing things that the project didn't support, preventing modification and updates to jobs.  Jobs were still running correctly however.  Looking at JavaScript console there were alot of errors in js files.  console log attached.  

       

      Fixed by downgrading to 2.263.1 via yum downgrade and temporarily locking the version.  While the UI appears better in 2.263.1, some boxes are still long and an error is still received in the console:

       

      hudson-behavior.js:2982 Uncaught SyntaxError: Unexpected token ')'
       at onSuccess (combobox.js:19)
       at klass.respondToReadyState (prototype.js:1657)
       at klass.onStateChange (prototype.js:1600)
       at XMLHttpRequest.<anonymous> (prototype.js:414)
      

       

        Attachments

        1. 1.txt
          3 kB
        2. atlas-1603912761063.log
          22 kB
        3. branch-api.png
          branch-api.png
          14 kB
        4. configureClouds.png
          configureClouds.png
          292 kB
        5. ConfigureUIBroken_PublishOverFTP.png
          ConfigureUIBroken_PublishOverFTP.png
          305 kB
        6. image-2020-10-30-15-25-56-938.png
          image-2020-10-30-15-25-56-938.png
          118 kB
        7. image-2020-10-30-15-27-16-916.png
          image-2020-10-30-15-27-16-916.png
          118 kB
        8. image-2020-11-03-21-10-10-643.png
          image-2020-11-03-21-10-10-643.png
          33 kB
        9. image-2020-11-06-09-45-42-994.png
          image-2020-11-06-09-45-42-994.png
          35 kB
        10. image-2020-11-10-19-10-02-083.png
          image-2020-11-10-19-10-02-083.png
          68 kB
        11. image-2020-11-11-09-47-08-180.png
          image-2020-11-11-09-47-08-180.png
          48 kB
        12. image-2020-11-18-09-05-02-548.png
          image-2020-11-18-09-05-02-548.png
          37 kB
        13. image-2020-11-18-09-06-44-059.png
          image-2020-11-18-09-06-44-059.png
          51 kB
        14. image-2020-11-18-09-07-49-596.png
          image-2020-11-18-09-07-49-596.png
          47 kB
        15. image-2020-11-18-10-40-53-012.png
          image-2020-11-18-10-40-53-012.png
          78 kB
        16. image-2020-11-18-10-41-57-764.png
          image-2020-11-18-10-41-57-764.png
          7 kB
        17. image-2020-11-18-10-44-20-271.png
          image-2020-11-18-10-44-20-271.png
          79 kB
        18. image-2020-11-23-22-53-45-011.png
          image-2020-11-23-22-53-45-011.png
          246 kB
        19. image-2020-11-23-23-03-02-021.png
          image-2020-11-23-23-03-02-021.png
          208 kB
        20. image-2021-01-14-13-49-48-253.png
          image-2021-01-14-13-49-48-253.png
          158 kB
        21. image-2021-01-30-03-13-41-175.png
          image-2021-01-30-03-13-41-175.png
          92 kB
        22. image-2021-01-30-03-15-12-305.png
          image-2021-01-30-03-15-12-305.png
          47 kB
        23. image-2021-01-30-03-21-29-377.png
          image-2021-01-30-03-21-29-377.png
          92 kB
        24. image-2021-01-30-03-21-51-931.png
          image-2021-01-30-03-21-51-931.png
          174 kB
        25. issues.png
          issues.png
          60 kB
        26. jenkins_2.263.1-not-so-bad-ui.jpg
          jenkins_2.263.1-not-so-bad-ui.jpg
          76 kB
        27. jenkins_2.264.1-borked-ui.jpg
          jenkins_2.264.1-borked-ui.jpg
          99 kB
        28. jenkins_plugins.txt
          3 kB
        29. jenkins_plugins.xml
          10 kB
        30. jenkins-basith-11112020.txt
          6 kB
        31. jenkins-basith-16112020.txt
          6 kB
        32. jenkins plugins in use.txt
          19 kB
        33. jenkins plugins in use - correct format.txt
          9 kB
        34. jsErrors.png
          jsErrors.png
          97 kB
        35. laksh - jenkins plugins.txt
          6 kB
        36. plugin.txt
          7 kB
        37. plugins.rossc.txt
          6 kB
        38. plugins.rossc-2.txt
          3 kB
        39. plugins.txt
          5 kB
        40. plugins.txt
          2 kB
        41. Plugins.txt
          4 kB
        42. plugins-1.txt
          7 kB
        43. plugins-18-11.txt
          7 kB
        44. plugins-2.txt
          3 kB
        45. Project1.png
          Project1.png
          1.22 MB
        46. Project2.png
          Project2.png
          1.01 MB
        47. Screenshot 2020-10-29 170505.png
          Screenshot 2020-10-29 170505.png
          53 kB
        48. Screenshot 2020-10-29 170642.png
          Screenshot 2020-10-29 170642.png
          84 kB
        49. Screenshot 2020-11-18 at 10.24.57 AM.png
          Screenshot 2020-11-18 at 10.24.57 AM.png
          63 kB
        50. Screenshot 2020-11-18 at 10.26.22 AM.png
          Screenshot 2020-11-18 at 10.26.22 AM.png
          57 kB
        51. Screenshot 2020-11-18 at 10.27.20 AM.png
          Screenshot 2020-11-18 at 10.27.20 AM.png
          70 kB
        52. Screenshot from 2020-11-23 23-02-24.png
          Screenshot from 2020-11-23 23-02-24.png
          224 kB

          Issue Links

            Activity

            Hide
            joeshang Chuanren added a comment -

            I'm facing the same issue, after dig into job's config xml file and disable some plugin, the source of issue is Android Lint plugin, uninstall it and problem solved.

            In update center of my jenkins, Android Lint plugin is deprecated, click learn more, this page (https://issues.jenkins.io/browse/INFRA-2487) show a list of deprecated plugins, such as FindMyBugs/PMD plugin which is mentioned above. 

            So when you're facing this issue, please check deprecated plugins in your update center, maybe uninstall those plugins solve this issue.

            Show
            joeshang Chuanren added a comment - I'm facing the same issue, after dig into job's config xml file and disable some plugin, the source of issue is Android Lint plugin, uninstall it and problem solved. In update center of my jenkins, Android Lint plugin is deprecated, click learn more, this page ( https://issues.jenkins.io/browse/INFRA-2487 ) show a list of deprecated plugins, such as FindMyBugs/PMD plugin which is mentioned above.  So when you're facing this issue, please check deprecated plugins in your update center, maybe uninstall those plugins solve this issue.
            Hide
            ricfos Riccardo Foschia added a comment - - edited

            After an update of Jenkins from 2.263 to 2.291 I faced the issues mentioned here (UI looked strange, changes in job configuration could not be saved).

            To get it working again I disabled the following plugins (thanks to Chris Beswick for the instructions how to determine the problem causing plugins fast, see his comment above)

            1. Promoted Builds plugin (current version 3.9.1, see also JENKINS-65429)
            2. as already mentioned in earlier comments (see above) all deprecated plugins like:
              1. Static analysis suite plugins (Checkstyle, DRY, PMD, Findbugs, Violations)
              2. Multiple SCMs plugin
              3. Locks and latches plugin
              4. Continuous integration game
            Show
            ricfos Riccardo Foschia added a comment - - edited After an update of Jenkins from 2.263 to 2.291 I faced the issues mentioned here (UI looked strange, changes in job configuration could not be saved). To get it working again I disabled the following plugins (thanks to Chris Beswick for the instructions how to determine the problem causing plugins fast, see his comment above) Promoted Builds plugin (current version 3.9.1, see also JENKINS-65429 ) as already mentioned in earlier comments (see above) all deprecated plugins like: Static analysis suite plugins (Checkstyle, DRY, PMD, Findbugs, Violations) Multiple SCMs plugin Locks and latches plugin Continuous integration game
            Hide
            toledoe Erick added a comment -

            After some trial and error I found that the rbenv plugin 0.0.17 - jenkins version 2.293
            here is how to identify and solve

            Open developer tools and inspect the page,
            Search for "center" and you will eventually find a plugin or section that modifies the entire page: 
                    mine was the div class "optionalBlock-container config_build_environment active"
            i tested by changing the align:"center"  to align:"left" 
            the name of the block i was in told me which plugin to disable
            once i figured out which class was forcing alignment I disabled the plugin of that dependent via manage jenkins plugins
            after a reset none of my configure sections auto realigned to the center.

            Show
            toledoe Erick added a comment - After some trial and error I found that the rbenv plugin 0.0.17 - jenkins version 2.293 here is how to identify and solve Open developer tools and inspect the page, Search for "center" and you will eventually find a plugin or section that modifies the entire page:          mine was the div class "optionalBlock-container config_build_environment active" i tested by changing the align:"center"  to align:"left"  the name of the block i was in told me which plugin to disable once i figured out which class was forcing alignment I disabled the plugin of that dependent via manage jenkins plugins after a reset none of my configure sections auto realigned to the center.
            Hide
            nikhleshgoenka Nikhlesh added a comment - - edited

            Riccardo Foschia Chris Beswick Erick can you please help me with the same. I randomly get DOMException when I save anything on my Jenkins after the upgrade.

            Below is the exact error I get. This was when I was trying to configure the Cloud though;

            Uncaught DOMException: Blocked a frame with origin "https://domain.com" from accessing a cross-origin frame.
                at HTMLIFrameElement.<anonymous> (https://domain.com/adjuncts/80bde827/lib/form/apply/apply.js:36:66)
            

            Version : Jenkins 2.289.1

            Show
            nikhleshgoenka Nikhlesh added a comment - - edited Riccardo Foschia Chris Beswick Erick can you please help me with the same. I randomly get DOMException when I save anything on my Jenkins after the upgrade. Below is the exact error I get. This was when I was trying to configure the Cloud though; Uncaught DOMException: Blocked a frame with origin "https: //domain.com" from accessing a cross-origin frame. at HTMLIFrameElement.<anonymous> (https: //domain.com/adjuncts/80bde827/lib/form/apply/apply.js:36:66) Version : Jenkins 2.289.1
            Hide
            apatecgratzl Michael Gratzl added a comment -

            We are facing the same issue. However in our case, i cannot see any error message. Neither in the console log of the browser nor in the jenkins log. 

             

            However on the call of the configuration page of a job I can see the following: 

            couldn't find the expected parent element (.setting-main) for element
            

            and 

            unable to find nearby url
            

            Version: Jenkins 2.289.1

            I had already issues in the previous LTS Version so I tried to update the Plugin and also revert the Performance Plugin. 

            Show
            apatecgratzl Michael Gratzl added a comment - We are facing the same issue. However in our case, i cannot see any error message. Neither in the console log of the browser nor in the jenkins log.    However on the call of the configuration page of a job I can see the following:  couldn't find the expected parent element (.setting-main) for element and  unable to find nearby url Version: Jenkins 2.289.1 I had already issues in the previous LTS Version so I tried to update the Plugin and also revert the Performance Plugin. 

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jonl_percsol Jonathon Lamon
              Votes:
              42 Vote for this issue
              Watchers:
              67 Start watching this issue

                Dates

                Created:
                Updated: