首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >流浪者损坏的索引文件C:\Users\USERNAME\.vagrant.d/data/machine-index/index

流浪者损坏的索引文件C:\Users\USERNAME\.vagrant.d/data/machine-index/index
EN

Stack Overflow用户
提问于 2014-07-23 20:53:06
回答 3查看 17.8K关注 0票数 55

我的Windows 8.1刚刚崩溃了。现在我的dist上有一些损坏的文件。这包括我的流浪机器索引(如果命名正确,则不是舒尔,但我知道它就是这个文件-> C:\Users\USERNAME.vagrant.d/data/machine-index/index).

所以里面有很多二进制或十六进制的东西(同样不是舒尔,因为我通常不处理这些东西,所以如果我错了,请纠正我!)如果我尝试在启动后启动所有东西,Vagrant会显示以下消息。

vagrant up返回此消息

代码语言:javascript
复制
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
EN

回答 3

Stack Overflow用户

回答已采纳

发布于 2014-08-10 18:24:54

同样的事情也发生在我身上。因此,我只是从机器索引文件夹中删除了索引文件和.lock文件,以便让Vagrant再次工作。

票数 136
EN

Stack Overflow用户

发布于 2021-11-04 09:41:14

在Windows10中使用Vagrant 2.2.5时,我必须导航到/Users/{yourname}/.vagrant.d/data/machine-index并删除indexindex.lock,因此先删除rm index,然后删除rm index.lock

最后,我导航回Homestead文件夹并运行vagrant up

票数 2
EN

Stack Overflow用户

发布于 2021-11-15 09:49:42

当我的笔记本电脑意外崩溃时,我第一次尝试运行流浪时也遇到了同样的流浪问题(索引)。

代码语言:javascript
复制
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/{user}/.vagrant.d/data/machine-index/index

不幸的是,我的问题并不是通过删除索引和index.lock文件来解决的,因为大多数人都是这样回答的。我使用virtualbox GUI (用作虚拟机提供程序)重新启动了我的虚拟机,并显示了以下消息。

代码语言:javascript
复制
Entering emergency mode. Exit the shell to continue.
Type "journalctl" to view system logs.
You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot
after mounting them and attach it to a bug report.

我意识到崩溃会在VM的FS上产生错误。因此,在搜索和调查之后,我通过执行下面的命令克服了这个问题。

代码语言:javascript
复制
xfs_repair -v -L /dev/dm-0

环境信息: OS windows10、virtual-box 6.1、vagrant 2.2.7和vm-os centos7

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/24911021

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档