• Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • swarm-plugin
    • None
    • Windows Server 2008,

      This problem exists on both 32bit and 64bit versions of java. I tried both.

      I am unable to get the swarm client to run properly when configured as a windows service. I configured the service using the following command line:

      sc create swarm binpath= "\"C:\Program Files (x86)\Java\jre7\bin\java.exe\" -Xrs -jar c:\swarm\swarm-client-1.9-jar-with-dependencies.jar -executors 2 -fsroot c:\jenkins-slave -labels myLabel -mode exclusive -name NewNode " displayname= "Jenkins Swarm" start= delayed-auto

      When I start the service through Services, I can see that the node becomes active when I look at the homepage on the master. Unfortunately, Windows thinks that it was unsuccessful and terminates the service with the following error:

      Windows could not start the Jenkins Swarm service on Local Computer.
      Error 1053: The service did not respond to the start or control request in a timely fashion.

      I can run the command line manually on the node and it works fine.

      It would be great if this was fixed so that swarm could run as a service.

          [JENKINS-18802] Can't Run Swarm As a Windows Service

          tim johnston created issue -
          tim johnston made changes -
          Environment Original: Windows Server 2008 New: Windows Server 2008,

          This problem exists on both 32bit and 64bit versions of java. I tried both.
          Nicolas De Loof made changes -
          Assignee Original: Kohsuke Kawaguchi [ kohsuke ] New: Nicolas De Loof [ ndeloof ]
          Resolution New: Not A Defect [ 7 ]
          Status Original: Open [ 1 ] New: Resolved [ 5 ]
          Peter Jönsson made changes -
          Assignee Original: Nicolas De Loof [ ndeloof ] New: Peter Jönsson [ mindjiver ]
          Status Original: Resolved [ 5 ] New: Closed [ 6 ]
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 150152 ] New: JNJira + In-Review [ 206797 ]

            mindjiver Peter Jönsson
            timjohnston tim johnston
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: