SSL The handshake operation timed out to github

#1

Has anyone been recently receiving increasing _ssl.c:574: The handshake operation timed out when attempting to open a url to https://raw.githubusercontent.com/... through a travis-ci?

Our builds are failing when using rosdep update

Error caused by python3.6 urllib.urlopen(). Timeout is set to 15 seconds, increasing failures over the past few days.

ERROR: error loading sources list:
	<urlopen error <urlopen error ('_ssl.c:574: The handshake operation timed out',)> (https://raw.githubusercontent.com/ros/rosdistro/master/bouncy/distribution.yaml)>
4 Likes
#2

I have experienced probably related thing - hanging or failing ‘pip install commands’ - for example https://travis-ci.org/apache/airflow/jobs/528104607 or https://travis-ci.org/apache/airflow/jobs/528104609 - also increased number of failures (20%/30% of our jobs) over the course of last few days.

It looks like a routing issues from the Travis build workers… I raised an issue with Travis support

2 Likes
#3

I think I’m experiencing something similar
https://travis-ci.org/kiemlicz/ambassador/jobs/528206219

requests.packages.urllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='pypi.org', port=443): Read timed out. (read timeout=300.0)

#4

Seeing similar issues. It started 3 days back I guess randomly and now seen for all runs.
I see no updates on Travis status page. Has they responded to any of the support ticket?

1 Like
#5

Not yet. Hey Travis support? Can you do anything about it? It affects us heavily.

1 Like
#6

We are also experiencing timeouts when downloading Elixir dependencies since last week. It can only be reproduced on Travis.

#7

Seems That Travis engineers are investigating it now and provided a possible workaround (not very helpful in our case) in the meantime: https://www.traviscistatus.com/incidents/kyf149kl6bvp?u=3g7kt113nmgs

#8

I don’t think this is the same issue. I was seeing both the inexplicable timeouts/hangs and the failed ssl handshakes. The timeouts seems to have been fixed (as promised in the incident you linked), but the failed ssl handshakes are persisting.

#9

It’s the same issue I think. It’s not fixed yet also for us https://travis-ci.org/apache/airflow/jobs/529764185 . I am reopening the issue.

#10

Seeing this too, but only when contacting a specific host. Can’t share a run because it’s on a private project, but I opened up a ticket through support and am awaiting follow-up info.

#11

i just heard back from Travis support: they have found a fix and are currently testing it before rolling it out.

For the impatient among you: there is a workaround, which involves adding the following to your .travis.yml:
before_install:
- |
sudo tee /etc/resolvconf/resolv.conf.d/tail <<EOF
options attempts:5
EOF
- sudo service resolvconf restart

1 Like