【问题标题】:Vagrant box error message流浪框错误信息
【发布时间】:2016-05-20 10:08:05
【问题描述】:

尝试在我的 mac 系统上下载 Vagrant box,这是我收到的消息。

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'bahmni-team/bahmni' could not be found. Attempting to find and install...
    default: Box Provider: virtualbox
    default: Box Version: >= 0
==> default: Loading metadata for box 'bahmni-team/bahmni'
    default: URL: https://atlas.hashicorp.com/bahmni-team/bahmni
==> default: Adding box 'bahmni-team/bahmni' (v0.80) for provider: virtualbox
    default: Downloading: https://atlas.hashicorp.com/bahmni-team/boxes/bahmni/versions/0.80/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.

transfer closed with 963850334 bytes remaining to read

我该如何解决这个问题?

成功安装 Vagrant box 后,出现此错误

default: Importing base box 'bahmni-team/bahmni'...
Progress: 10%There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["import", "/Users/Paul/.vagrant.d/boxes/bahmni-team-VAGRANTSLASH-bahmni/0.80/virtualbox/box.ovf", "--vsys", "0", "--vmname", "packer-virtualbox-iso-1459089960_1463772163009_23494", "--vsys", "0", "--unit", "7", "--disk", "/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk"]

Stderr: 0%...10%...20%...30%...40%...50%...60%...70%...80%...90%...100%
Interpreting /Users/Paul/.vagrant.d/boxes/bahmni-team-VAGRANTSLASH-bahmni/0.80/virtualbox/box.ovf...
OK.
0%...10%...
Progress state: VBOX_E_FILE_ERROR
VBoxManage: error: Appliance import failed
VBoxManage: error: Could not create the imported medium '/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk'.
VBoxManage: error: VMDK: cannot write allocated data block in '/Users/Paul/VirtualBox VMs/packer-virtualbox-iso-1459089960_1463772163009_23494/packer-virtualbox-iso-1459089960-disk1.vmdk' (VERR_DISK_FULL)
VBoxManage: error: Details: code VBOX_E_FILE_ERROR (0x80bb0004), component ApplianceWrap, interface IAppliance
VBoxManage: error: Context: "RTEXITCODE handleImportAppliance(HandlerArg*)" at line 877 of file VBoxManageAppliance.cpp

【问题讨论】:

  • 看起来您的磁盘空间可能用完了? (VERR_DISK_FULL)

标签: vagrant box


【解决方案1】:

我认为错误“VERR_DISK_FULL”是您应该关注的错误。您的磁盘可能已满。因此,解决方案是释放磁盘上的一些空间并再次尝试该命令。

【讨论】:

    【解决方案2】:

    Vagrant 在内部使用 curl 并且 curl 存在问题。

    您可以在 URL 上尝试 wget,因为它通常比 curl 效果更好

    wget https://atlas.hashicorp.com/bahmni-team/boxes/bahmni/versions/0.80/providers/virtualbox.box
    

    一旦你有了 box 文件,你仍然需要添加到 vagrant (vagrant box add bahmni-team/bahmni <path to box file>)

    【讨论】:

    • 刚刚试过这个,新的错误“下载远程文件时发生错误。错误消息(如果有)在下面重现。请修复此错误并重试。SSL读取:错误:00000000 :lib(0):func(0):reason(0), errno 54"
    • 哼...你能用下面的vagrant box add -c --insecure bahmni-team/bahmni 运行吗
    猜你喜欢
    • 2018-05-06
    • 2016-07-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-06-30
    • 1970-01-01
    • 1970-01-01
    • 2018-03-07
    相关资源
    最近更新 更多