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

Unable to start windows service after upgrading to 2.248

      After upgrading to 2.248, the Jenkins windows service can no longer be started.

      This is the error in Windows Event Viewer:

      Faulting application name: jenkins.exe, version: 2.9.0.0, time stamp: 0x5eb872d4
      Faulting module name: KERNELBASE.dll, version: 6.3.9600.19724, time stamp: 0x5ec5262a
      Exception code: 0xe0434f4d
      Fault offset: 0x0000000000007afc
      Faulting process id: 0x%9
      Faulting application start time: 0x%10
      Faulting application path: %11
      Faulting module path: %12
      Report Id: %13
      Faulting package full name: %14
      Faulting package-relative application ID: %15
      

      Attempting to run jenkins.exe directly gives the same error:

      The machine does have .NET framework 4 installed, as pointed out in

      https://www.jenkins.io/blog/2020/07/23/windows-support-updates/#windows-service-management-changes-in-jenkins-2-248

          [JENKINS-63198] Unable to start windows service after upgrading to 2.248

          chin ho created issue -
          chin ho made changes -
          Environment Original: Windows Server 2012 R2 64 bit New: Windows Server 2012 R2 64 bit
          .NET Framework version 4.7.02053

          chin ho added a comment -

          I figured out the fix. This is the content of the jenkins.exe.config file:

          <configuration>
            <runtime>
              <!-- see http://support.microsoft.com/kb/936707 -->
              <generatePublisherEvidence enabled="false"/>
            </runtime>
            <startup>
              <!-- this can be hosted either on .NET 2.0 or 4.0 -->
              <supportedRuntime version="v2.0.50727" />
              <supportedRuntime version="v4.0" />
            </startup>
          </configuration>
          

          I removed the <supportedRuntime version="v2.0.50727" /> line and the service can be started again

          chin ho added a comment - I figured out the fix. This is the content of the jenkins.exe.config file: <configuration> <runtime> <!-- see http://support.microsoft.com/kb/936707 --> <generatePublisherEvidence enabled="false"/> </runtime> <startup> <!-- this can be hosted either on .NET 2.0 or 4.0 --> <supportedRuntime version="v2.0.50727" /> <supportedRuntime version="v4.0" /> </startup> </configuration> I removed the <supportedRuntime version="v2.0.50727" /> line and the service can be started again
          Oleg Nenashev made changes -
          Assignee New: Oleg Nenashev [ oleg_nenashev ]

          Oleg Nenashev added a comment -

          Thanks! I will make sure to update the guidelines. This file should not be required anymore, and it looks like the update procedure did not remove it automatically

          Oleg Nenashev added a comment - Thanks! I will make sure to update the guidelines. This file should not be required anymore, and it looks like the update procedure did not remove it automatically
          Oleg Nenashev made changes -
          Labels New: Windows documentation regression upgrade-guidelines winsw
          Oleg Nenashev made changes -
          Component/s New: windows-azure-storage-plugin [ 17466 ]
          Oleg Nenashev made changes -
          Component/s New: windows-slave-installer-module [ 21834 ]
          Component/s Original: windows-azure-storage-plugin [ 17466 ]
          Oleg Nenashev made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]

          Alex Earl added a comment -

          Did you use the Windows installer to update?

          Alex Earl added a comment - Did you use the Windows installer to update?

            atul7107 Atul Yadav
            chinhodado chin ho
            Votes:
            2 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated: