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

FATAL: Jenkins has not been started, or was already shut down

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • core
    • None
    • jenkins V2.4 running on linux. Problems occured connecting to Windows 7 VM 64 bit VM.

      Upon updating to jenkins server 2.4 there was an issue with "FATAL: Jenkins has not been started, or was already shut down" being thrown when connecting to windows 7 VMs. The plugins that were also updated to the latest version were:

      • Ant plugin
      • Branch API plugin
      • Docker build step plugin
      • Folders plugin
      • Github branch source plugin
      • Github plugin
      • Pipeline: REST API plugin
      • Pipeline: Stage View plugin
      • SSH credentials plugin

      pastebin of the stacktrace can be found here:
      http://pastebin.com/yLED34m6

      Rolling jenkins server back to version 2.3 removed this issue.

      -Djenkins.model.Jenkins.disableExceptionOnNullInstance=true flag was successfully passed to the jenkins server via /etc/default/jenkins, but this did not resolve the issue

          [JENKINS-34857] FATAL: Jenkins has not been started, or was already shut down

          Oleg Nenashev added a comment -

          Oleg Nenashev added a comment - Caused by https://github.com/jenkinsci/jenkins/pull/2297 .

          So, very probably related: https://github.com/jenkinsci/jenkins/pull/2297

          What bothers me first currently is that the switch I put isn't working.
          After chatting with oleg_nenashev I just learnt that sysprops are not propagated to agents...

          Digging.

          Baptiste Mathus added a comment - So, very probably related: https://github.com/jenkinsci/jenkins/pull/2297 What bothers me first currently is that the switch I put isn't working. After chatting with oleg_nenashev I just learnt that sysprops are not propagated to agents... Digging.

          I filed two PR for two different approaches to fix this:

          Baptiste Mathus added a comment - I filed two PR for two different approaches to fix this: Simple revert: https://github.com/jenkinsci/jenkins/pull/2354 Reverse condition to be able to explicitly enable this option to help to better analyse it and possibly do it better in the future: https://github.com/jenkinsci/jenkins/pull/2355

          Baptiste Mathus added a comment - - edited

          scott_gilchrist could you please also retry with Jenkins 2.4, but apply the -Djenkins.model.Jenkins.disableExceptionOnNullInstance=true option to those Windows 7 agents/slaves? That should fix the issue for you, and also help us see if at least the subversion-plugin is the only one affected (in your setup).

          Thanks a lot.

          Baptiste Mathus added a comment - - edited scott_gilchrist could you please also retry with Jenkins 2.4, but apply the -Djenkins.model.Jenkins.disableExceptionOnNullInstance=true option to those Windows 7 agents/slaves? That should fix the issue for you, and also help us see if at least the subversion-plugin is the only one affected (in your setup). Thanks a lot.

          Code changed in jenkins
          User: Baptiste Mathus
          Path:
          core/src/main/java/jenkins/model/Jenkins.java
          http://jenkins-ci.org/commit/jenkins/b8d244b67733058ab2014c86517a0718680f01b2
          Log:
          [FIX JENKINS-34857] Dont throw Exception when Jenkins.instance yields null

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Baptiste Mathus Path: core/src/main/java/jenkins/model/Jenkins.java http://jenkins-ci.org/commit/jenkins/b8d244b67733058ab2014c86517a0718680f01b2 Log: [FIX JENKINS-34857] Dont throw Exception when Jenkins.instance yields null

          Code changed in jenkins
          User: Baptiste Mathus
          Path:
          core/src/main/java/jenkins/model/Jenkins.java
          http://jenkins-ci.org/commit/jenkins/85eff5f49470595d1ac884562671c5cb566bc161
          Log:
          Merge pull request #2355 from batmat/JENKINS-34857

          [FIX JENKINS-34857] Don't throw Exception when Jenkins.getInstance() yields null

          Compare: https://github.com/jenkinsci/jenkins/compare/c8d2f9036a10...85eff5f49470

          SCM/JIRA link daemon added a comment - Code changed in jenkins User: Baptiste Mathus Path: core/src/main/java/jenkins/model/Jenkins.java http://jenkins-ci.org/commit/jenkins/85eff5f49470595d1ac884562671c5cb566bc161 Log: Merge pull request #2355 from batmat/ JENKINS-34857 [FIX JENKINS-34857] Don't throw Exception when Jenkins.getInstance() yields null Compare: https://github.com/jenkinsci/jenkins/compare/c8d2f9036a10...85eff5f49470

          Oleg Nenashev added a comment -

          2.5 hotfix release is in progress

          Oleg Nenashev added a comment - 2.5 hotfix release is in progress

            batmat Baptiste Mathus
            scott_gilchrist Scott Gilchrist
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: