[JIRA] (JENKINS-53532) Kubernetes java.net.SocketTimeoutException: timeout

17 views
Skip to first unread message

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Mar 16, 2019, 6:54:58 AM3/16/19
to jenkinsc...@googlegroups.com
Carlos Sanchez updated an issue
 
Jenkins / Bug JENKINS-53532
Kubernetes java.net.SocketTimeoutException: timeout
Change By: Carlos Sanchez
Summary: KubernetesClientException Kubernetes java.net.SocketTimeoutException : Operation: [get]  for kind: [Pod]  with name: [maven-3-jdk-8-hgdv3]  in namespace: [jenkins]  failed timeout
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d)

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Mar 16, 2019, 6:55:02 AM3/16/19
to jenkinsc...@googlegroups.com

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Mar 16, 2019, 6:58:02 AM3/16/19
to jenkinsc...@googlegroups.com
Carlos Sanchez commented on Bug JENKINS-53532
 
Re: Kubernetes java.net.SocketTimeoutException: timeout

If you want to be able to set the pingTimeout in the Jenkins config it needs to be added the same way the connectTimeout and readTimeout

I'm closing this issue, as the correct solution is to increase the connectTimeout and readTimeout and in the next release they will be correctly saved. Feel free to open other issue if you want to add pingTimeout

jenkins-ci@carlossanchez.eu (JIRA)

unread,
Mar 16, 2019, 6:59:03 AM3/16/19
to jenkinsc...@googlegroups.com
Carlos Sanchez resolved as Fixed
Change By: Carlos Sanchez
Status: Open Resolved
Resolution: Fixed

xzaphroditemo@gmail.com (JIRA)

unread,
May 22, 2019, 8:34:02 AM5/22/19
to jenkinsc...@googlegroups.com
mu qiao updated an issue
Change By: mu qiao
Attachment: image-2019-05-22-20-33-26-157.png

xzaphroditemo@gmail.com (JIRA)

unread,
May 22, 2019, 8:39:03 AM5/22/19
to jenkinsc...@googlegroups.com
mu qiao commented on Bug JENKINS-53532
 
Re: Kubernetes java.net.SocketTimeoutException: timeout

As Matthew Ludlum (thx a lot, you save my days) said, adding -Dkubernetes.websocket.ping.interval=<number> fix the ping timeout issue

More information is: this so-called 'interval' option changes ping/pong timeout and uses millisecond as unit. I set it to 30 and got log below

 

elhayefrat@gmail.com (JIRA)

unread,
Sep 16, 2019, 6:34:05 AM9/16/19
to jenkinsc...@googlegroups.com
elhay efrat commented on Bug JENKINS-53532
 
Re: Kubernetes java.net.SocketTimeoutException: timeout

Matthew Ludlum, there is not a configuration that we can change in the plugin itself, we really need to restart Jenkins for it? 

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

aburdajewicz@cloudbees.com (JIRA)

unread,
Dec 22, 2019, 8:36:05 PM12/22/19
to jenkinsc...@googlegroups.com
Allan BURDAJEWICZ commented on Bug JENKINS-53532
 
Re: Kubernetes java.net.SocketTimeoutException: timeout

The original issue java.net.SocketTimeoutException: timeout is due to a Socket Read Timeout. The value can be changed in the kubernetes cloud configuration since version 1.14.9. Before this version, there was a persistent issue and the value was reset to 0 every time the configuration was saved from the UI.

Note that until version 1.22.3 a value of 0 does not mean no timeout. If a value of 0 is provided, the fabric8 kubernetes client does not explicitly set a timeout. But the okhttp client defaults to 10s. *A value of 0 actually means 10s*.

Since version 1.22.3 of the kubernetes plugin:

  • the minimum value for Read Timeout is 15s
  • the minimum value of the connection timeout is 5s.

****

The SocketTimeoutException: sent ping but didn't receive pong within XXXXms is related to the Socket Ping Timeout interval and should be fixed since version 1.19.3 of the kubernetes plugin: https://issues.jenkins-ci.org/browse/JENKINS-58301.

Reply all
Reply to author
Forward
0 new messages