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

Plugin manager fails to load while navigating to the manage plugins view

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Not A Defect
    • Component/s: core
    • Labels:
    • Environment:
      Jenkins ver. 2.176.2
    • Similar Issues:

      Description

      On clicking the ManageJenkins-> Manage Plugins

       

      The page load fails with the below javascript  error as in console 

      Uncaught TypeError: Cannot read property 'get' of undefined
      at _createResponder (prototype.js:5615)
      at Function.observe (prototype.js:5694)
      at initPluginRowHandling (_table.js:350)
      at _table.js:406
      at responder (prototype.js:5656)

       

      Screenshot as below:

       

       

       

       

        Attachments

        1. image-2020-01-14-16-52-26-485.png
          image-2020-01-14-16-52-26-485.png
          1.37 MB
        2. jenkins_issue.png
          jenkins_issue.png
          344 kB
        3. jenkins_issue.png
          jenkins_issue.png
          344 kB
        4. jenkinsvarlogerror.png
          jenkinsvarlogerror.png
          43 kB

          Activity

          Hide
          markewaite Mark Waite added a comment -

          Ashok K the original submitter says that restarting the server resolved the issue. Since restarting the server does not resolve it for you, I assume you have a different issue at the root of the problem.

          Can you duplicate the problem on another computer?

          Can you duplicate the problem on the same computer when running Jenkins with a different JENKINS_HOME directory (see the wiki for JENKINS_HOME setting)?

          Show
          markewaite Mark Waite added a comment - Ashok K the original submitter says that restarting the server resolved the issue. Since restarting the server does not resolve it for you, I assume you have a different issue at the root of the problem. Can you duplicate the problem on another computer? Can you duplicate the problem on the same computer when running Jenkins with a different JENKINS_HOME directory (see the wiki for JENKINS_HOME setting )?
          Hide
          akafle Ashok K added a comment -

          I am basically installing jenkins on a VM created through proxmox.  The current JENKINS_HOME configured on the UI is /va/lib/jenkins and as you suggested I tried export JENKINS_HOME=/.jenkins and moved everything from /var/lib/jenkins to /.jenkins directory in my VM and tried restarting the jenkins.

          But i get following errors. Is there any other way to change JENKINS_HOME or why is it still trying to reach /var/lib/jenkins ?

          Show
          akafle Ashok K added a comment - I am basically installing jenkins on a VM created through proxmox.  The current JENKINS_HOME configured on the UI is /va/lib/jenkins and as you suggested I tried export JENKINS_HOME=/.jenkins and moved everything from /var/lib/jenkins to /.jenkins directory in my VM and tried restarting the jenkins. But i get following errors. Is there any other way to change JENKINS_HOME or why is it still trying to reach /var/lib/jenkins ?
          Hide
          markewaite Mark Waite added a comment -

          Setting the JENKINS_HOME environment variable before running Jenkins should be enough. I just confirmed with my environment that I can use:

          $ jdir=tmp$$
          $ mkdir $jdir
          $ wget http://mirrors.jenkins.io/war/latest/jenkins.war
          $ JENKINS_HOME=`pwd`/$jdir java -jar jenkins.war --httpPort=9090
          

          That starts a Jenkins server that is using the "jdir" that I defined.

          You may also want to check that you are sizing the virtual machine adequately.

          Show
          markewaite Mark Waite added a comment - Setting the JENKINS_HOME environment variable before running Jenkins should be enough. I just confirmed with my environment that I can use: $ jdir=tmp$$ $ mkdir $jdir $ wget http://mirrors.jenkins.io/war/latest/jenkins.war $ JENKINS_HOME=`pwd`/$jdir java -jar jenkins.war --httpPort=9090 That starts a Jenkins server that is using the "jdir" that I defined. You may also want to check that you are sizing the virtual machine adequately.
          Hide
          akafle Ashok K added a comment - - edited

          Mark Waite Thank you !  It seems changing the JAVA_HOME directory is some sort of solution even though I don't understand how that makes difference .

          Setting the JAVA_HOME to /.jenkins and running by executing java - jar jenkins.war  worked but I am rather trying to run the jenkins as the service.

          The war file is placed in /usr/share/jenkins and systemctl start jenkins or /etc/init.d/jenkins start basically starts the jenkins. However, doing so I am not able to change the JENKINS_HOME to /.jenkins by using export JENKINS_HOME=/.jenkins

          Show
          akafle Ashok K added a comment - - edited Mark Waite Thank you !  It seems changing the JAVA_HOME directory is some sort of solution even though I don't understand how that makes difference . Setting the JAVA_HOME to /.jenkins and running by executing java - jar jenkins.war   worked but I am rather trying to run the jenkins as the service. The war file is placed in /usr/share/jenkins and systemctl start jenkins or /etc/init.d/jenkins start basically starts the jenkins. However, doing so I am not able to change the JENKINS_HOME to /.jenkins by using export JENKINS_HOME=/.jenkins
          Hide
          markewaite Mark Waite added a comment -

          That indicates that the contents of your JENKINS_HOME directory is the source of the problem. You don't need to change the JENKINS_HOME you use, just fix the contents of the default JENKINS_HOME directory

          Show
          markewaite Mark Waite added a comment - That indicates that the contents of your JENKINS_HOME directory is the source of the problem. You don't need to change the JENKINS_HOME you use, just fix the contents of the default JENKINS_HOME directory

            People

            • Assignee:
              Unassigned
              Reporter:
              anishpk Anish P K
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: