# Vagrant up fails with "HTTP/2 stream 1 was not closed cleanly: INTERNAL\_ERROR (err 2)"

**URL:** https://meta.discourse.org/t/vagrant-up-fails-with-http-2-stream-1-was-not-closed-cleanly-internal-error-err-2/54796
**Category:** Development
**Created:** [2016 年 12 月 26 日午後 3:29 UTC](https://meta.discourse.org/t/vagrant-up-fails-with-http-2-stream-1-was-not-closed-cleanly-internal-error-err-2/54796 "2016-12-26T15:29:35Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2016 年 12 月 26 日午後 3:29 UTC](https://meta.discourse.org/t/vagrant-up-fails-with-http-2-stream-1-was-not-closed-cleanly-internal-error-err-2/54796/1 "2016-12-26T15:29:35Z")

</div>

I already had trouble with _vagrant_ before (when downloading the box was slow, which look like a [known vagrant issue](https://github.com/mitchellh/vagrant/issues/5319)), but now it fails to download it at all:

```plaintext
 $ vagrant up
Bringing machine 'default' up with 'libvirt' provider...
==> default: Box 'discourse-16.04' could not be found. Attempting to find and install...
    default: Box Provider: libvirt
    default: Box Version: >= 0
==> default: Box file was not detected as metadata. Adding it directly...
==> default: Adding box 'discourse-16.04' (v0) for provider: libvirt
    default: Downloading: https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=1
==> default: Box download is resuming from prior download progress
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

HTTP/2 stream 1 was not closed cleanly: INTERNAL_ERROR (err 2)

```

Any ideas? Can I maybe download the box manually and place it somewhere?

PS: I tried this on a stable 100 mbits cable connection (no wifi), so that shouldn’t be the problem.

---

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2016 年 12 月 26 日午後 4:43 UTC](https://meta.discourse.org/t/vagrant-up-fails-with-http-2-stream-1-was-not-closed-cleanly-internal-error-err-2/54796/2 "2016-12-26T16:43:32Z")

</div>

Here’s a workaround I came up with:

**First** , download the box manually:  
`wget -N -O /opt/discourse.box https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=1`

**Then** , edit `Vagrantfile`:

```vagrant
# Replace 
  conf.vm.box_url = "https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=1"
# with
  conf.vm.box_url = "file:///opt/discourse.box"

```

**Now** , `vagrant up` will use the downloaded box.

**Note** : You have to re-download the image from time to time. The `-N` option signals `wget` to only download the box if it has changed.

---

<div class="post-metadata">

### Author: ![claas](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/claas/32/71725_2.png) [@claas](https://meta.discourse.org/u/claas)
#### Post date: [2017 年 5 月 5 日午後 7:31 UTC](https://meta.discourse.org/t/vagrant-up-fails-with-http-2-stream-1-was-not-closed-cleanly-internal-error-err-2/54796/3 "2017-05-05T19:31:31Z")

</div>

> [@claas](#):
>
> wget -N -O /opt/discourse.box [Dropbox - Error - Simplify your life](https://www.dropbox.com/s/2132770g1e05c6d/discourse.box?dl=1)

It’s faster to download the box using [aria2](https://aria2.github.io/) with 5 connections (seems to be Dropbox’ maximum):

```plaintext
aria2c -x5 -o /opt/discourse.box https://www.dropbox.com/s/2132770g1e05c6d/discourse.box\?dl\=1

```
