【问题标题】:Laravel Homestead Error on vagrant upLaravel Homestead 关于流浪汉的错误
【发布时间】:2015-05-01 18:13:00
【问题描述】:

我的 Laravel Homestead 和 Vagrant 有问题。通过阅读 Laravel Homestead 文档并观看一些视频,我已经以正确的方式设置了所有内容。

当我启动 vagrant up 命令时,我遇到了这个问题:

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: A newer version of the box 'laravel/homestead' is available! You cu
rrently
==> default: have version '0.2.5'. The latest is version '0.2.6'. Run
==> default: `vagrant box update` to update.
==> default: Clearing any previously set network interfaces...
c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.7.2/lib/va
grant/util/io.rb:32:in `encode': "\xE9" from ASCII-8BIT to UTF-8 (Encoding::Unde
finedConversionError)
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/io.rb:32:in `read_until_block'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/subprocess.rb:144:in `block in execute'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/subprocess.rb:142:in `each'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/subprocess.rb:142:in `execute'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/subprocess.rb:22:in `execute'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/driver/base.rb:404:in `block in raw'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/driver/base.rb:403:in `raw'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/driver/base.rb:342:in `block in execute'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/retryable.rb:17:in `retryable'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/driver/base.rb:337:in `execute'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/driver/version_4_3.rb:275:in `read_bridged_i
nterfaces'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/network.rb:267:in `hostonly_config'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/network.rb:89:in `block in call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/network.rb:82:in `each'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/network.rb:82:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/clear_network_interfaces.rb:26:in `ca
ll'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/prepare_nfs_settings.rb:18:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/synced_folders.rb:84:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/synced_folder_cleanup.rb:28:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/synced_folders/nfs/action_cleanup.rb:19:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/prepare_nfs_valid_ids.rb:12:in `call'

        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:160:in `ha
ndle'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:42:in `blo
ck in call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/environment.rb:516:in `lock'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb:41:in `cal
l'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_para
ms.rb:30:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/env_set.rb:19:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/provision.rb:80:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/clear_forwarded_ports.rb:15:in `call'

        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/set_name.rb:50:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/clean_machine_folder.rb:17:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/check_accessible.rb:18:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/box_check_outdated.rb:68:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/config_validate.rb:25:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:95:in `block in finalize_action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builtin/call.rb:53:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/plugins/providers/virtualbox/action/check_virtualbox.rb:17:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/warden.rb:34:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/builder.rb:116:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `block in run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/util/busy.rb:19:in `busy'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/action/runner.rb:66:in `run'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/machine.rb:214:in `action_raw'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/machine.rb:191:in `block in action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/environment.rb:516:in `lock'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/machine.rb:178:in `call'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/machine.rb:178:in `action'
        from c:/Program Files (x86)/HashiCorp/Vagrant/embedded/gems/gems/vagrant
-1.7.2/lib/vagrant/batch_action.rb:82:in `block (2 levels) in run'

什么都没做。

【问题讨论】:

  • 有什么解决办法吗?请大家:(我的Virtualbox工作正常...我不知道问题出在哪里。
  • 搜索并找到类似的错误消息报告后,我的第一个想法是Windows主机路径或可能是网络接口中的非ASCII字符(不太可能)。您可以尝试将您的 Vagrantfile(和其他文件)移动到一个简单的目录,如 c:\temp 并从那里执行 vagrant up。另一个想法是启用调试 (docs) 并查看结果输出是否提供更详细的线索。

标签: php laravel vagrant virtualbox homestead


【解决方案1】:

检查您的 Homestead.yaml 文件是否有错误。 Yaml 不喜欢制表符,在分隔或为字符添加空格时使用空格代替。另一个示例在运行 vagrant up 时会触发错误

folders:
    -map: c:/wamp/www/laratest //wrong
      to: /var/www/Laravel
    -map: c:/wamp/www/Drupal//wrong
      to: /var/www/Drupal

folders:
   - map: c:/wamp/www/laratest//correct
      to: /var/www/Laravel
   - map: c:/wamp/www/Drupal/correct
      to: /var/www/Drupal

【讨论】:

    猜你喜欢
    • 2017-11-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-07-16
    • 1970-01-01
    • 2015-12-21
    • 2014-07-18
    • 1970-01-01
    相关资源
    最近更新 更多