how to enable useful debugging info for jenkin slave running as a service on windows...

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

how to enable useful debugging info for jenkin slave running as a service on windows...

JP-3
I have a jenkins agent / slave running as a windows service,  it is observed that once in a while after reboot of the machine, jenkin slave service don't come up. I have looked at eventlog and it says jenkin service is timing out. I want to debug why timeouts are happening. 

Can someone point to me a link which will allow me to enable useful logging / debugging info so that next time I can see more info than just timeout.

Thanks
JP

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com.
Reply | Threaded
Open this post in threaded view
|

Re: how to enable useful debugging info for jenkin slave running as a service on windows...

Jeff Thompson

Unfortunately, it's a challenging exercise, hunting down why something like this is occurring. Typically, it has something to do with local system, network, environment, or Jenkins configuration. It may have something to do with how the agent is configured.

The best documentation on agent (Remoting) logging I can remember is at https://github.com/jenkinsci/remoting/blob/master/docs/logging.md . It can be a little hard to understand and configure but I've successfully used it before to configure logging in the detail and areas I needed.

It sounds like you will need to examine what is happening on the master and the agent during this time. Your issue sounds pretty weird. In my experience, agent-initiated connections will keep retrying, so a timeout is only a temporary delay.

Jeff Thompson

On 3/21/20 12:53 PM, JP wrote:
I have a jenkins agent / slave running as a windows service,  it is observed that once in a while after reboot of the machine, jenkin slave service don't come up. I have looked at eventlog and it says jenkin service is timing out. I want to debug why timeouts are happening. 

Can someone point to me a link which will allow me to enable useful logging / debugging info so that next time I can see more info than just timeout.

Thanks
JP
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/5b195930-9f67-4ac0-991d-505108ec22ac%40cloudbees.com.
Reply | Threaded
Open this post in threaded view
|

Re: how to enable useful debugging info for jenkin slave running as a service on windows...

JP-3
Thanks Jeff. I was able to create a logging configuration file and was able to start slave with -Djava.util.logging.config.file=C:\jenkins\jenkins-slave.logging.properties. Now I am able to see lot more logging. Thanks for the pointer.

On Monday, March 23, 2020 at 8:33:43 AM UTC-7, Jeff Thompson wrote:

Unfortunately, it's a challenging exercise, hunting down why something like this is occurring. Typically, it has something to do with local system, network, environment, or Jenkins configuration. It may have something to do with how the agent is configured.

The best documentation on agent (Remoting) logging I can remember is at <a href="https://github.com/jenkinsci/remoting/blob/master/docs/logging.md" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fremoting%2Fblob%2Fmaster%2Fdocs%2Flogging.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjNL-3kJZpqnGGl8tOp9N4aNXgAA&#39;;return true;" onclick="this.href=&#39;https://www.google.com/url?q\x3dhttps%3A%2F%2Fgithub.com%2Fjenkinsci%2Fremoting%2Fblob%2Fmaster%2Fdocs%2Flogging.md\x26sa\x3dD\x26sntz\x3d1\x26usg\x3dAFQjCNHjNL-3kJZpqnGGl8tOp9N4aNXgAA&#39;;return true;">https://github.com/jenkinsci/remoting/blob/master/docs/logging.md . It can be a little hard to understand and configure but I've successfully used it before to configure logging in the detail and areas I needed.

It sounds like you will need to examine what is happening on the master and the agent during this time. Your issue sounds pretty weird. In my experience, agent-initiated connections will keep retrying, so a timeout is only a temporary delay.

Jeff Thompson

On 3/21/20 12:53 PM, JP wrote:
I have a jenkins agent / slave running as a windows service,  it is observed that once in a while after reboot of the machine, jenkin slave service don't come up. I have looked at eventlog and it says jenkin service is timing out. I want to debug why timeouts are happening. 

Can someone point to me a link which will allow me to enable useful logging / debugging info so that next time I can see more info than just timeout.

Thanks
JP
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to <a href="javascript:" target="_blank" gdf-obfuscated-mailto="hrzQqfdlBQAJ" rel="nofollow" onmousedown="this.href=&#39;javascript:&#39;;return true;" onclick="this.href=&#39;javascript:&#39;;return true;">jenkins...@googlegroups.com.
To view this discussion on the web visit <a href="https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com?utm_medium=email&amp;utm_source=footer" target="_blank" rel="nofollow" onmousedown="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;" onclick="this.href=&#39;https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com?utm_medium\x3demail\x26utm_source\x3dfooter&#39;;return true;">https://groups.google.com/d/msgid/jenkinsci-users/9513af77-8a40-42cc-9f6d-b183bf63af8f%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/ad292da4-1207-45f3-bb5c-9316806e86d7%40googlegroups.com.