# \[brew-install\] brew update fails

**URL:** <https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789>\
**Category:** Builds\
**Tags:** step\
**Created:** [July 29, 2019, 2:36pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789 "2019-07-29T14:36:25Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jean.mainguy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/jean.mainguy/32/2429_2.png) [@jean.mainguy](https://discuss.bitrise.io/u/jean.mainguy)\
**Post date:** [July 29, 2019, 2:36pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/1 "2019-07-29T14:36:25Z")

</div>

# Bitrise Build Issue Report template

## Description of the issue

When using the `brew-install` step, `brew update` fails with the error `the remote end hung up unexpectedly`.

## Environment:

Stack MacOS 10.14  
Xcode 10.3.x  
Brew install 0.9.0

## Reproducibility

When using the `brew-install` step, `brew update` fails with the error `the remote end hung up unexpectedly`.

### Local reproduction

Cannot be reproduced locally.

### Local reproduction: Linux / Android (docker based) stack builds

Cannot be reproduced locally.

## Build log

```
$ brew update
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!
```

---

<div class="post-metadata">

**Author:** ![jean.mainguy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/jean.mainguy/32/2429_2.png) [@jean.mainguy](https://discuss.bitrise.io/u/jean.mainguy)\
**Post date:** [July 29, 2019, 2:40pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/2 "2019-07-29T14:40:19Z")

</div>

Found a similar issue here: [https://github.com/bitrise-steplib/steps-brew-install/issues/5](https://github.com/bitrise-steplib/steps-brew-install/issues/5).

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [July 29, 2019, 3:42pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/3 "2019-07-29T15:42:39Z")

</div>

I believe Homebrew was experiencing some downtime for selective users this afternoon. I wasn’t able to brew update on my own machine for about 2 hours this afternoon but it’s working again.

---

<div class="post-metadata">

**Author:** ![jean.mainguy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/jean.mainguy/32/2429_2.png) [@jean.mainguy](https://discuss.bitrise.io/u/jean.mainguy)\
**Post date:** [July 30, 2019, 8:01am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/4 "2019-07-30T08:01:36Z")

</div>

Still not working on Bitrise though.

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [July 30, 2019, 8:43am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/5 "2019-07-30T08:43:32Z")

</div>

Hi @jean.mainguy , could you please send me a build URL that contains the error message so I can see exactly what’s going wrong?

---

<div class="post-metadata">

**Author:** ![jean.mainguy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/jean.mainguy/32/2429_2.png) [@jean.mainguy](https://discuss.bitrise.io/u/jean.mainguy)\
**Post date:** [July 30, 2019, 9:14am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/6 "2019-07-30T09:14:52Z")

</div>

It happens on a private repository, do you want the logs instead?

---

<div class="post-metadata">

**Author:** ![ben.dunn](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ben.dunn/32/1000_2.png) [@ben.dunn](https://discuss.bitrise.io/u/ben.dunn)\
**Post date:** [July 30, 2019, 11:39am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/7 "2019-07-30T11:39:13Z")

</div>

we’re also seeing this with swiftlint and soundflower brew packages… it seems really intermittent

---

<div class="post-metadata">

**Author:** ![jean.mainguy](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/jean.mainguy/32/2429_2.png) [@jean.mainguy](https://discuss.bitrise.io/u/jean.mainguy)\
**Post date:** [July 30, 2019, 11:57am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/8 "2019-07-30T11:57:49Z")

</div>

it is not related to any specific package, `brew update` fails at the `git clone` step.

---

<div class="post-metadata">

**Author:** ![ben.dunn](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ben.dunn/32/1000_2.png) [@ben.dunn](https://discuss.bitrise.io/u/ben.dunn)\
**Post date:** [July 30, 2019, 12:28pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/9 "2019-07-30T12:28:43Z")

</div>

yeah we are getting the same error:

```auto
$ brew update
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: the remote end hung up unexpectedly

```

---

<div class="post-metadata">

**Author:** ![nderkach-toptal](https://avatars.discourse-cdn.com/v4/letter/n/e9bcb4/32.png) [@nderkach-toptal](https://discuss.bitrise.io/u/nderkach-toptal)\
**Post date:** [July 31, 2019, 8:17am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/10 "2019-07-31T08:17:50Z")

</div>

The issue still persists here:

```
[34;1m$ brew updatee[0m
fatal: unable to access 'https://github.com/Homebrew/homebrew-cask/': transfer closed with outstanding read data remaining
Error: Fetching /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask failed!
```

---

<div class="post-metadata">

**Author:** ![RenaudP](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/renaudp/32/2433_2.png) [@RenaudP](https://discuss.bitrise.io/u/RenaudP)\
**Post date:** [July 31, 2019, 9:15am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/11 "2019-07-31T09:15:46Z")

</div>

Same, I still have this issue while trying to install SwiftLint despite the incident status saying it should be stable now.

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [July 31, 2019, 1:34pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/12 "2019-07-31T13:34:57Z")

</div>

We’re unfortunately still not able to reproduce the issue in-house, not on our own machines or on our build VMs. Unfortunately this appears to be a performance issue on either the homebrew or cask maintainer’s CDN. There’s not really much we can do to help a resolution along, unfortunately.

We’ve seen people have luck running their brew installs and updates in dedicated script steps, but this is most likely just down to the intermittency of the connectivity issue itself.

Regardless, reporting your brew issues here is helpful and appreciated, as it’s our best way to gauge if these issues on the brew side are continuing, so thank you.

---

<div class="post-metadata">

**Author:** ![asos-chrisblackmore](https://avatars.discourse-cdn.com/v4/letter/a/65b543/32.png) [@asos-chrisblackmore](https://discuss.bitrise.io/u/asos-chrisblackmore)\
**Post date:** [July 31, 2019, 2:21pm UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/13 "2019-07-31T14:21:21Z")

</div>

Still facing this issue, all builds are failing because of this. Installing brew locally works fine. Frustrating…

---

<div class="post-metadata">

**Author:** ![ahvth-bitrise](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.bitrise.io/ahvth-bitrise/32/2468_2.png) [@ahvth-bitrise](https://discuss.bitrise.io/u/ahvth-bitrise)\
**Post date:** [August 1, 2019, 10:32am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/14 "2019-08-01T10:32:07Z")

</div>

Is anyone having continued issues with this today?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/bitrise/original/2X/d/d901cf2aad020f2dd11918afc89ec2089bb87b35.png) [@system](https://discuss.bitrise.io/u/system)\
**Post date:** [August 31, 2019, 10:41am UTC](https://discuss.bitrise.io/t/brew-install-brew-update-fails/9789/15 "2019-08-31T10:41:29Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
