Как я могу исправить ошибку Homestead Vagrant "Настройка и включение сетевых интерфейсов ...` await_response_state ': Agent pid 3330 (RuntimeError) " - PullRequest
0 голосов
/ 18 марта 2020

Я использую Laravel 7.x Усадьба . В течение многих лет все работало нормально, может быть, до тех пор, пока я не перешел с 6.x на 7.x (хотя я не уверен, потому что я не часто пытаюсь перезагрузить компьютер).

Теперь, когда я запустите cd /c/code/Homestead/ && vagrant up или cd /c/code/Homestead/ && vagrant reload --provision это происходит:

==> vboxHomestead: Machine booted and ready!
==> vboxHomestead: Checking for guest additions in VM...
    vboxHomestead: The guest additions on this VM do not match the installed version of
    vboxHomestead: VirtualBox! In most cases this is fine, but in rare cases it can
    vboxHomestead: prevent things such as shared folders from working properly. If you see
    vboxHomestead: shared folder errors, please make sure the guest additions within the
    vboxHomestead: virtual machine match the version of VirtualBox you have installed on
    vboxHomestead: your host and reload your VM.
    vboxHomestead:
    vboxHomestead: Guest Additions Version: 6.0.0 r127566
    vboxHomestead: VirtualBox Version: 6.1
==> vboxHomestead: Setting hostname...
==> vboxHomestead: Configuring and enabling network interfaces...
C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-scp-1.2.1/lib/net/scp.rb:398:in `await_response_state': Agent pid 3330 (RuntimeError)
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-scp-1.2.1/lib/net/scp.rb:369:in `block (3 levels) in start_command'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/channel.rb:323:in `process'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:250:in `block in ev_preprocess'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:540:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:540:in `each_channel'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:250:in `ev_preprocess'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/event_loop.rb:101:in `each'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/event_loop.rb:101:in `ev_preprocess'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/event_loop.rb:29:in `process'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:228:in `process'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:181:in `block in loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:181:in `loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/session.rb:181:in `loop'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-ssh-5.1.0/lib/net/ssh/connection/channel.rb:272:in `wait'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-scp-1.2.1/lib/net/scp.rb:284:in `upload!'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:327:in `block (2 levels) in upload'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:333:in `block in upload'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:742:in `block in scp_connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:382:in `connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:740:in `scp_connect'
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/vagrant-2.2.7/plugins/communicators/ssh/communicator.rb:303:in `upload'
...

Кроме того, попытка уничтожить коробку вызывает похожую ошибку:

vagrant destroy
==> vboxHomestead: Running action triggers before destroy ...
==> vboxHomestead: Running trigger...
==> vboxHomestead: Backing up mysql database homestead...
==> vboxHomestead: Trigger run failed
C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-scp-1.2.1/lib/net/scp.rb:398:in `await_response_state': Agent pid 4861 (RuntimeError)
        from C:/HashiCorp/Vagrant/embedded/gems/2.2.7/gems/net-scp-1.2.1/lib/net/scp.rb:369:in `block (3 le...

, если и до тех пор, пока я не закомментирую backup: true в усадьбе.ямл. Затем vagrant destroy работает, а затем vagrant up работает, и я некоторое время пользуюсь машиной, и в конце концов я снова сталкиваюсь с этой проблемой снова.

Как я могу сузить суть проблемы?

Я использую Vagrant 2.2.7, VirtualBox 6.1.4, Homestead v10.5.1, который использует коробку 'laravel / hometead' версии '9.3.0'.

1 Ответ

0 голосов
/ 16 апреля 2020

Сопровождающий Homestead говорит :

Мы не можем гарантировать результаты vagrant reload --provision, и я вообще не советую использовать его, если вы не очень довольны тем, что Vagrant делает и что делают ваши провайдеры.

Добро пожаловать на сайт PullRequest, где вы можете задавать вопросы и получать ответы от других членов сообщества.
...