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

Manage Jenkins -> Configure System stuck at LOADING

    XMLWordPrintable

Details

    • Bug
    • Status: Resolved (View Workflow)
    • Blocker
    • Resolution: Duplicate
    • core
    • Jenkins 1.607 installed via apt-get on Ubuntu 14.04 in EC2

    Description

      I know there are many related issues, but they all claim the issue was related to a plugin I don't have or they were related to older versions or they indicate a JavaScript error which I am not seeing. I was able to reproduce this on a fresh Jenkins install.

      The first thing I did after getting Jenkins started was try to go to Manage Jenkins -> Configure System and it just gets stuck at LOADING.

      This happens with the core plugins before I had a chance to add any plugins or define any builds at all. I hadn't even setup global security yet and it happens.

      I have tried in both Chrome and Firefox and it is the same for both. I do have nginx reverse proxy, but I took that out of the picture and it still happens.

      This code does generate a JavaScript error (hudson-behavior, line 932)

      for (var depth=0; ; e=$(e).next()) {

      Stacktrace:

      Uncaught TypeError: Cannot read property 'next' of undefinedVM289 hudson-behavior.js:932 findEnd
      VM289 hudson-behavior.js:949 
      jenkinsRules.TR.rowvg-startbehavior.js:111 
      (anonymous function)behavior.js:107 
      (anonymous function)behavior.js:93 
      Behaviour.applySubtreebehavior.js:76 
      Behaviour.applybehavior.js:71 
      (anonymous function)behavior.js:125 
      Behaviour.addLoadEvent.window.onloadbehavior.js:125 
      Behaviour.addLoadEvent.window.onloadbehavior.js:125 
      Behaviour.addLoadEvent.window.onload
      
      

      Since the initial error I tried updating all the core plugins that come installed with Jenkins, which I did and restarted Jenkins, but it still happens.

      I have also tried `sudo service restart jenkins` – does not fix.

      I have tailed `/var/log/jenkins/jenkins.log` but I see nothing of interest.

      ubuntu@ip-172-31-18-106:/var/log/jenkins$ sudo service jenkins restart

      • Restarting Jenkins Continuous Integration Server jenkins [ OK ]

      ubuntu@ip-172-31-18-106:/var/log/jenkins$ sudo service jenkins status
      Jenkins Continuous Integration Server is running with the pid 15797

      ubuntu@ip-172-31-18-106:/var/log/jenkins$ tail -f jenkins.log

      Apr 03, 2015 2:02:04 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Started Download metadata
      Apr 03, 2015 2:02:04 AM hudson.model.AsyncPeriodicWork$1 run
      INFO: Finished Download metadata. 8 ms
      Apr 03, 2015 2:02:05 AM org.jenkinsci.main.modules.sshd.SSHD start
      INFO: Started SSHD at port 44274
      Apr 03, 2015 2:02:05 AM jenkins.InitReactorRunner$1 onAttained
      INFO: Completed initialization
      Apr 03, 2015 2:02:05 AM hudson.WebAppMain$3 run
      INFO: Jenkins is fully up and running
      Apr 03, 2015 2:08:33 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON
      WARNING: 'stapler-class' is deprecated: org.jenkinsci.plugins.BitbucketSecurityRealm
      Apr 03, 2015 2:08:33 AM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
      INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@290e4e36: display name [Root WebApplicationContext]; startup date [Fri Apr 03 02:08:33 UTC 2015]; root of context hierarchy
      Apr 03, 2015 2:08:33 AM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@290e4e36]: org.springframework.beans.factory.support.DefaultListableBeanFactory@3057a971
      Apr 03, 2015 2:08:33 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@3057a971: defining beans [filter,legacy]; root of factory hierarchy
      Apr 03, 2015 2:08:33 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON
      WARNING: 'stapler-class' is deprecated: hudson.markup.EscapedMarkupFormatter
      Apr 03, 2015 2:17:51 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON
      WARNING: 'stapler-class' is deprecated: org.jenkinsci.plugins.BitbucketSecurityRealm
      Apr 03, 2015 2:17:51 AM org.springframework.web.context.support.StaticWebApplicationContext prepareRefresh
      INFO: Refreshing org.springframework.web.context.support.StaticWebApplicationContext@14d3ba24: display name [Root WebApplicationContext]; startup date [Fri Apr 03 02:17:51 UTC 2015]; root of context hierarchy
      Apr 03, 2015 2:17:51 AM org.springframework.web.context.support.StaticWebApplicationContext obtainFreshBeanFactory
      INFO: Bean factory for application context [org.springframework.web.context.support.StaticWebApplicationContext@14d3ba24]: org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8e789a
      Apr 03, 2015 2:17:51 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons
      INFO: Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@5f8e789a: defining beans [filter,legacy]; root of factory hierarchy
      Apr 03, 2015 2:17:51 AM org.kohsuke.stapler.RequestImpl$TypePair convertJSON
      WARNING: 'stapler-class' is deprecated: hudson.markup.EscapedMarkupFormatter

      Attachments

        Activity

          The install doesn't sound entirely fresh as there appears to be data from a previous install there, e.g. the reference to BitbucketSecurityRealm.

          Does this also happen if you wipe out (or move) the contents of $JENKINS_HOME? It's probably at /var/lib/jenkins or similar.

          orrc Christopher Orr added a comment - The install doesn't sound entirely fresh as there appears to be data from a previous install there, e.g. the reference to BitbucketSecurityRealm . Does this also happen if you wipe out (or move) the contents of $JENKINS_HOME ? It's probably at /var/lib/jenkins or similar.
          zenocon Davis Ford added a comment -

          You're right, I did add the bitbucket auth plugin. The log dumps there were after I did indeed add some plugins. I could swear the config page was stuck before I added any plugins (and continued even after I added some plugins).

          However, a colleague found this https://issues.jenkins-ci.org/browse/JENKINS-27499 and we tried it, and that seems to have resolved the issue. I did add the golang plugin shortly after I updated all the core plugins and restarted.

          Since the issue seems to be resolved, I'm going to close it.

          zenocon Davis Ford added a comment - You're right, I did add the bitbucket auth plugin. The log dumps there were after I did indeed add some plugins. I could swear the config page was stuck before I added any plugins (and continued even after I added some plugins). However, a colleague found this https://issues.jenkins-ci.org/browse/JENKINS-27499 and we tried it, and that seems to have resolved the issue. I did add the golang plugin shortly after I updated all the core plugins and restarted. Since the issue seems to be resolved, I'm going to close it.
          zenocon Davis Ford added a comment - Duplicate of https://issues.jenkins-ci.org/browse/JENKINS-27499

          People

            Unassigned Unassigned
            zenocon Davis Ford
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: