当我通过 vagrant 创建集群时,我遇到了 minidcos 问题
i have a problem with minidcos when i creating cluster by vagrant
我遵循了以下步骤:https://minidcos.readthedocs.io/en/latest/dcos-vagrant-cli.html
我用这个命令创建了一个集群:minidcos vagrant create ./dcos_generate_config.sh
然后这个错误出现在我身上:
以下 SSH 命令以非零退出状态响应。
Vagrant 认为这意味着命令失败!
yum install -y centos-release
来自命令的标准输出:
加载的插件:fastestmirror
来自命令的 Stderr:
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] HTTPS 错误 404 - 未找到
尝试其他镜像。
要解决此问题,请参阅下面的知识库文章
https://access.redhat.com/articles/1320623
如果以上文章无法帮助解决此问题,请在 https://bugs.centos.org/
上创建一个错误
配置的存储库之一失败(Docker 存储库),
并且 yum 没有足够的缓存数据来继续。此时唯一
yum 可以做的安全事情就是失败。有几种方法可以实现 "fix" 这个:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=dockerrepo ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable dockerrepo
or
subscription-manager repos --disable=dockerrepo
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=dockerrepo.skip_if_unavailable=true
失败:repodata/repomd.xml 来自 dockerrepo:[Errno 256] 没有更多的镜像可以尝试。
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] HTTPS 错误 404 - 未找到
创建集群时出错。
完整错误:
命令 '['/usr/bin/vagrant', 'up']' 返回非零退出状态 1.
希望有人帮助我
如果有人遇到这个错误,我找到了解决方案
在 Vagrantfile 中:
config.vbguest.auto_update = 真
将 true 替换为 false
我遇到了同样的问题。在阅读了一些文章后,我发现这是由于 vagrant 插件 vagrant-vbguest。我不得不卸载最新版本的插件并安装版本 0.21.0.
我遵循了以下步骤:https://minidcos.readthedocs.io/en/latest/dcos-vagrant-cli.html 我用这个命令创建了一个集群:minidcos vagrant create ./dcos_generate_config.sh 然后这个错误出现在我身上: 以下 SSH 命令以非零退出状态响应。 Vagrant 认为这意味着命令失败!
yum install -y centos-release
来自命令的标准输出:
加载的插件:fastestmirror
来自命令的 Stderr:
https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] HTTPS 错误 404 - 未找到 尝试其他镜像。 要解决此问题,请参阅下面的知识库文章
https://access.redhat.com/articles/1320623
如果以上文章无法帮助解决此问题,请在 https://bugs.centos.org/
上创建一个错误配置的存储库之一失败(Docker 存储库), 并且 yum 没有足够的缓存数据来继续。此时唯一 yum 可以做的安全事情就是失败。有几种方法可以实现 "fix" 这个:
1. Contact the upstream for the repository and get them to fix the problem.
2. Reconfigure the baseurl/etc. for the repository, to point to a working
upstream. This is most often useful if you are using a newer
distribution release than is supported by the repository (and the
packages for the previous distribution release still work).
3. Run the command with the repository temporarily disabled
yum --disablerepo=dockerrepo ...
4. Disable the repository permanently, so yum won't use it by default. Yum
will then just ignore the repository until you permanently enable it
again or use --enablerepo for temporary usage:
yum-config-manager --disable dockerrepo
or
subscription-manager repos --disable=dockerrepo
5. Configure the failing repository to be skipped, if it is unavailable.
Note that yum will try to contact the repo. when it runs most commands,
so will have to try and fail each time (and thus. yum will be be much
slower). If it is a very temporary problem though, this is often a nice
compromise:
yum-config-manager --save --setopt=dockerrepo.skip_if_unavailable=true
失败:repodata/repomd.xml 来自 dockerrepo:[Errno 256] 没有更多的镜像可以尝试。 https://yum.dockerproject.org/repo/main/centos/7/repodata/repomd.xml: [Errno 14] HTTPS 错误 404 - 未找到
创建集群时出错。 完整错误: 命令 '['/usr/bin/vagrant', 'up']' 返回非零退出状态 1.
希望有人帮助我
如果有人遇到这个错误,我找到了解决方案 在 Vagrantfile 中: config.vbguest.auto_update = 真 将 true 替换为 false
我遇到了同样的问题。在阅读了一些文章后,我发现这是由于 vagrant 插件 vagrant-vbguest。我不得不卸载最新版本的插件并安装版本 0.21.0.