Skip to content

Installation fails with Unhandled exception #687

@jakubgs

Description

@jakubgs

Summary

I'm trying to run the Jenkins Agent using WinSW but it randomly fails with:

10:17:11,483 - Installing service 'Jenkins Agent (JenkinsAgent)'...
10:17:11,540 - Unhandled exception
10:17:11,873 - Unhandled exception
10:17:12,148 - Unhandled exception

Steps to reproduce

<service>
  <id>JenkinsAgent</id>
  <name>Jenkins Agent</name>
  <description>This service runs an agent for Jenkins automation server.</description>
  <executable>java.exe</executable>
  <arguments>-Xrs -jar C:\Users\jenkins\JenkinsService.jar -jnlpUrl https://ci.status.im/computer/windows-01/slave-agent.jnlp -secret MyJenkinsSecret -workDir C:\Users\jenkins\workspace</arguments>
  <workingdirectory>C:\Users\jenkins</workingdirectory>
  <env name="PATH" value="C:\Program Files\PowerShell\7;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\OpenSSH\;C:\ProgramData\scoop\apps\openjdk\current\bin;C:\ProgramData\scoop\apps\gcc\current\bin;C:\ProgramData\scoop\apps\git\current\bin;C:\ProgramData\scoop\apps\git\current\usr\bin;C:\ProgramData\scoop\shims" />
  <logmode>rotate</logmode>
  <onfailure action="restart" />
  <delayedAutoStart/>
  <serviceaccount>
    <user>jenkins</user>
    <password>MySecretPassword</password>
  </serviceaccount>
</service>

Environment

  • WinSW version: 3.0.0-alpha.4
  • WinSW package type: NET461
  • Windows version: Microsoft Windows Server Datacenter 10.0.19041 N/A Build 19041
  • Wrapped executable and version: Jenkins Agent 4.5 from Jenkins 2.257

Thoughts

I've tried using the stable 2.10.2 but that just fails every time.
I'm trying to understand what I'm supposed to do to get more info about what's the exception. I'm happy to help debug this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions