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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      jenkins V2.4 running on linux. Problems occured connecting to Windows 7 VM 64 bit VM.
    • Similar Issues:

      Description

      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

        Attachments

          Issue Links

            Activity

            Show
            oleg_nenashev Oleg Nenashev added a comment - Caused by https://github.com/jenkinsci/jenkins/pull/2297 .
            Hide
            batmat 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.

            Show
            batmat 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.
            Hide
            batmat Baptiste Mathus added a comment -

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

            Show
            batmat 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
            Hide
            batmat 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.

            Show
            batmat 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.
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            scm_issue_link 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

            Show
            scm_issue_link 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
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            2.5 hotfix release is in progress

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

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: