# SSL The handshake operation timed out to github

**URL:** <https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288>\
**Category:** Travis CI Discussions & Feedback\
**Created:** [May 4, 2019, 12:29am UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288 "2019-05-04T00:29:56Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![ross-desmond](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@ross-desmond](https://travis-ci.community/u/ross-desmond)\
**Post date:** [May 4, 2019, 12:29am UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/1 "2019-05-04T00:29:57Z")

</div>

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.

```auto
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)>

```

---

<div class="post-metadata">

**Author:** ![potiuk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/potiuk/32/1610_2.png) [@potiuk](https://travis-ci.community/u/potiuk)\
**Post date:** [May 4, 2019, 11:07am UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/2 "2019-05-04T11:07:05Z")

</div>

I have experienced probably related thing - hanging or failing ‘pip install commands’ - for example [https://travis-ci.org/apache/airflow/jobs/528104607](https://travis-ci.org/apache/airflow/jobs/528104607) or [https://travis-ci.org/apache/airflow/jobs/528104609](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

---

<div class="post-metadata">

**Author:** ![kiemlicz](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/kiemlicz/32/1768_2.png) [@kiemlicz](https://travis-ci.community/u/kiemlicz)\
**Post date:** [May 5, 2019, 8:31pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/3 "2019-05-05T20:31:31Z")

</div>

I think I’m experiencing something similar  
[https://travis-ci.org/kiemlicz/ambassador/jobs/528206219](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)`

---

<div class="post-metadata">

**Author:** ![vismid86](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/vismid86/32/1760_2.png) [@vismid86](https://travis-ci.community/u/vismid86)\
**Post date:** [May 6, 2019, 4:53am UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/4 "2019-05-06T04:53:31Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![potiuk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/potiuk/32/1610_2.png) [@potiuk](https://travis-ci.community/u/potiuk)\
**Post date:** [May 6, 2019, 2:54pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/5 "2019-05-06T14:54:04Z")

</div>

> [@ross-desmond](#):
>
> githubusercontent

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

---

<div class="post-metadata">

**Author:** ![gergo-papp](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/gergo-papp/32/1766_2.png) [@gergo-papp](https://travis-ci.community/u/gergo-papp)\
**Post date:** [May 6, 2019, 3:28pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/6 "2019-05-06T15:28:25Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![potiuk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/potiuk/32/1610_2.png) [@potiuk](https://travis-ci.community/u/potiuk)\
**Post date:** [May 6, 2019, 4:00pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/7 "2019-05-06T16:00:51Z")

</div>

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](https://www.traviscistatus.com/incidents/kyf149kl6bvp?u=3g7kt113nmgs)

---

<div class="post-metadata">

**Author:** ![baszoetekouw](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/baszoetekouw/32/1780_2.png) [@baszoetekouw](https://travis-ci.community/u/baszoetekouw)\
**Post date:** [May 8, 2019, 11:28am UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/8 "2019-05-08T11:28:59Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![potiuk](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/potiuk/32/1610_2.png) [@potiuk](https://travis-ci.community/u/potiuk)\
**Post date:** [May 8, 2019, 1:24pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/9 "2019-05-08T13:24:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![eric.fulmer](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/eric.fulmer/32/1791_2.png) [@eric.fulmer](https://travis-ci.community/u/eric.fulmer)\
**Post date:** [May 9, 2019, 2:58pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/10 "2019-05-09T14:58:51Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![baszoetekouw](https://sea1.discourse-cdn.com/flex015/user_avatar/travis-ci.community/baszoetekouw/32/1780_2.png) [@baszoetekouw](https://travis-ci.community/u/baszoetekouw)\
**Post date:** [May 9, 2019, 7:17pm UTC](https://travis-ci.community/t/ssl-the-handshake-operation-timed-out-to-github/3288/11 "2019-05-09T19:17:59Z")

</div>

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
