Vagrant corrupted index file C:\Users\USERNAME\.vagrant.d/data/machine-index/index

Thomas Venturini picture Thomas Venturini · Jul 23, 2014 · Viewed 16.5k times · Source

My Windows 8.1 just crashed. Now I have some files on my dist that are corrupted. This includes my vagrant machine index (Not shure if the naming is right but I know that it is this file -> C:\Users\USERNAME.vagrant.d/data/machine-index/index).

So There is a lot of binary or hexdecimal stuff in there (Again not shure because I don't deal with this stuff usualy so correct me if I'm wrong!) And Vagrant spits out the following message if I try to start everything after boot.

vagrant up returns this

The machine index which stores all required information about
running Vagrant environments has become corrupt. This is usually
caused by external tampering of the Vagrant data folder.

Vagrant cannot manage any Vagrant environments if the index is
corrupt. Please attempt to manually correct it. If you are unable
to manually correct it, then remove the data file at the path below.
This will leave all existing Vagrant environments "orphaned" and
they'll have to be destroyed manually.

Path: C:/Users/Username/.vagrant.d/data/machine-index/index

Answer

Jukka Puranen picture Jukka Puranen · Aug 10, 2014

Same thing happened to me. So I just deleted the index file and the .lock file from the machine-index folder to get Vagrant working again.