Mattiman's avatar

Updating Homestead

After halting my Homestead this morning, I tried starting it again by running $ homestead up. The following message was shown:

==> default: Checking if box 'laravel/homestead' is up to date...
==> default: A newer version of the box 'laravel/homestead' is available! You currently
==> default: have version '0.2.0'. The latest is version '0.2.2'. Run
==> default: `vagrant box update` to update.

But running that returns:

$ vagrant box update
A Vagrant environment or target machine is required to run this
command. Run `vagrant init` to create a new Vagrant environment. Or,
get an ID of a target machine from `vagrant global-status` to run
this command on. A final option is to change to a directory with a
Vagrantfile and to try again.

But I have a vagrant environment running, within Homestead. So how do I update the Homestead?

0 likes
13 replies
Mattiman's avatar

Ah, thanx! That worked. Didn't see that in the documentation and my own notes still said vagrant box update.

So now it added a 0.2.2 folder to .vagrant.d/boxes/laraval-VAGRANTSLASH-homestead/

There are also the 0.1.8 en 0.2.0 folders still there. Can I remove those somehow?

raphael's avatar

I cannot update Homestead due to this error:

$ homestead update
==> default: Checking for updates to 'laravel/homestead'
    default: Latest installed version: 0.2.1
    default: Version constraints: 
    default: Provider: virtualbox
==> default: Updating 'laravel/homestead' with provider 'virtualbox' from version
==> default: '0.2.1' to '0.2.7'...
==> default: Loading metadata for box 'https://vagrantcloud.com/laravel/homestead'
==> default: Adding box 'laravel/homestead' (v0.2.7) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.2.7/providers/virtualbox.box
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

The requested URL returned error: 500 Internal Server Error

What's wrong?

ohffs's avatar

There are apparently problems with Amazon S3 storage just now (check the 'Amazon Simple Storage Service (US Standard)' on the service page http://status.aws.amazon.com/. I think hashicorp use that for the back-end storage. Lots of other sites are having issues just now too.

1 like
Ticked's avatar

vagrant global-status

vagrant box update "your-box-id"

5 likes
vladimir's avatar

homestead update ==> default: Checking for updates to 'laravel/homestead' default: Latest installed version: 0.2.7 default: Version constraints: default: Provider: virtualbox ==> default: Updating 'laravel/homestead' with provider 'virtualbox' from version ==> default: '0.2.7' to '0.4.1'... ==> default: Loading metadata for box 'https://atlas.hashicorp.com/laravel/homestead' ==> default: Adding box 'laravel/homestead' (v0.4.1) for provider: virtualbox default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.4.1/providers/virtualbox.box ==> 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 server doesn't seem to support byte ranges. Cannot resume.

impbob36's avatar

@vladimir , you need to remove the partial download

Windows: In your home directory, delete all the files in: .vagrant.d\tmp

LINUX \ MAC: rm ~/.vagrant.d/tmp/*

1 like
claudios's avatar

I'm using homestead-7 and to update the box I just run the command below:

homestead box update

5 likes
yazeed's avatar

homestead box update, is the new proper command to update.

1 like
satanik's avatar

@robjbrain If I am not wrong the reason is that the homestead commands are only forwarded to vagrant if you look at the homestead command it uses this:

function homestead() {
    ( cd ~/Homestead && vagrant $* )
}

Basically it means, wherever you are on your system it takes you to your project and runs the vagrant commands there. So if you run:

$ homestead list-commands

you can see all commands available to the homestead command

Please or to participate in this conversation.