[JIRA] (JENKINS-60787) Unexpected Error launching agent via DCOM

5 views
Skip to first unread message

ian.williams1@telus.com (JIRA)

unread,
Jan 16, 2020, 2:05:07 AM1/16/20
to jenkinsc...@googlegroups.com
Ian Williams created an issue
 
Jenkins / Bug JENKINS-60787
Unexpected Error launching agent via DCOM
Issue Type: Bug Bug
Assignee: Emilio Escobar
Components: windows-slaves-plugin
Created: 2020-01-16 07:04
Environment: Jenkins 2.176.2
windows-slaves-1.4 (WMI Windows Agents)
Priority: Minor Minor
Reporter: Ian Williams

Full error is shown below. I believe the scenario was as follows:

Master on Linux, agent on  Windows server, agent launched via DCOM, running service as local user, keep this agent on-line as much as possible.

Linux server was restarted (init 6) while Jenkins was running, no Jenkins shutdown.

Windows node remained running. After restart, Jenkins auto starts, but cannot restart agent.

I suppose it should detect the agent is still running, then restart it instead of start ?

Stopping the  agent service on the windows server and launching via Jenkins UI brought it back on-line.

ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
org.jinterop.dcom.common.JIException: Service Already Running
 at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149)
Caused: java.lang.reflect.InvocationTargetException
 at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140)
Caused: java.lang.reflect.UndeclaredThrowableException
 at com.sun.proxy.$Proxy73.start(Unknown Source)
 at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:342)
 at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)
 at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
 at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
 at java.util.concurrent.FutureTask.run(FutureTask.java:266)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)

 

Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

ian.williams1@telus.com (JIRA)

unread,
Jan 16, 2020, 2:08:07 AM1/16/20
to jenkinsc...@googlegroups.com
Ian Williams updated an issue
Change By: Ian Williams
Full error is shown below. I believe the scenario was as follows:

Master on Linux, agent on  Windows server, agent launched via DCOM, running service as local user, keep this agent on-line as much as possible.

Linux server was restarted (init 6) while Jenkins was running, no Jenkins shutdown.

Windows node and Jenkins agent service remained running. After restart, Jenkins auto starts, but cannot restart agent.


I suppose it should detect the agent is still running, then restart it instead of start ?

Stopping the  agent service on the windows server and launching via Jenkins UI brought it back on-line.

{{ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins}}
{{org.jinterop.dcom.common.JIException: Service Already Running}}
{{ at org.jvnet.hudson.wmi.Win32Service$Implementation.start(Win32Service.java:149)}}
{{Caused: java.lang.reflect.InvocationTargetException}}
{{ at sun.reflect.GeneratedMethodAccessor221.invoke(Unknown Source)}}
{{ at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)}}
{{ at java.lang.reflect.Method.invoke(Method.java:498)}}
{{ at org.kohsuke.jinterop.JInteropInvocationHandler.invoke(JInteropInvocationHandler.java:140)}}
{{Caused: java.lang.reflect.UndeclaredThrowableException}}
{{ at com.sun.proxy.$Proxy73.start(Unknown Source)}}
{{ at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:342)}}
{{ at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:294)}}
{{ at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)}}
{{ at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)}}
{{ at java.util.concurrent.FutureTask.run(FutureTask.java:266)}}
{{ at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)}}
{{ at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)}}
{{ at java.lang.Thread.run(Thread.java:748)}}

 
Reply all
Reply to author
Forward
0 new messages