ruby - Vagrant 不提供堆栈
问题描述
当我运行vagrant up
以下显示错误时:
vagrant up
/Users/sui6526/.vagrant.d/gems/2.4.4/gems/rubyhacks-0.1.5/lib/rubyhacks.rb:536: warning: constant ::Fixnum is deprecated
Bringing machine 'srvub01' up with 'virtualbox' provider...
Bringing machine 'srvubu02' up with 'virtualbox' provider...
Bringing machine 'srvubu03' up with 'virtualbox' provider...
==> srvub01: Importing base box 'ubuntu/bionic64'...
==> srvub01: Matching MAC address for NAT networking...
==> srvub01: Checking if box 'ubuntu/bionic64' version '20190126.0.0' is up to date...
==> srvub01: Setting the name of the VM: ContainerWeek_srvub01_1555943344899_21275
==> srvub01: Clearing any previously set network interfaces...
==> srvub01: Preparing network interfaces based on configuration...
srvub01: Adapter 1: nat
srvub01: Adapter 2: hostonly
==> srvub01: Forwarding ports...
srvub01: 22 (guest) => 2222 (host) (adapter 1)
==> srvub01: Running 'pre-boot' VM customizations...
==> srvub01: Booting VM...
==> srvub01: Waiting for machine to boot. This may take a few minutes...
==> srvub01: Forcing shutdown of VM...
==> srvub01: Destroying VM and associated drives...
/opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:70:in `block in <class:Response>': undefined method `downcase' for nil:NilClass (NoMethodError)
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:68:in `each'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:68:in `inject'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:68:in `<class:Response>'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:16:in `<module:SFTP>'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:3:in `<module:Net>'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/response.rb:3:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/request.rb:2:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp/session.rb:5:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-sftp-2.1.2/lib/net/sftp.rb:2:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/communicator.rb:12:in `<top (required)>'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/plugin.rb:14:in `block in <class:Plugin>'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/registry.rb:27:in `get'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:259:in `communicate'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/wait_for_communicator.rb:16:in `block in call'
我使用 MacOS 并运行 Vagrant 2.2.4,有人可以帮助我吗?我不是程序员,也不了解 Ruby。
解决方案
尝试通过以下方式解决此问题: vagrant plugin uninstall hostmanager
$ vagrant.exe plugin uninstall hostmanager
Uninstalling the 'hostmanager' plugin...
Removing hm
Successfully uninstalled hostmanager-1.2.2
Successfully uninstalled rubyhacks-0.1.5
推荐阅读
- javascript - 从数据库显示谷歌图表未正确显示数据
- java - 9-patch 在 Java 和 Xml 中设置时表现不同
- javascript - 从一些人那里获得价值?
- android - Ionic 3 - 已发布的 apk 安装一次,但卸载后无法再次安装
- python-3.x - Peewee 迁移改变外键约束
- ios - Sinch iOS 应用程序:识别应用程序是否接收到视频或语音呼叫
- c# - 从不同的文件路径在内存中创建 Zip 文件并在 C# 中下载
- javascript - ios设备输入类型=“文本”值在我们输入值时未显示
- angular5 - Angular 5中的路由不起作用
- ibm-mobilefirst - 具有默认范围的 MFP 8 中的适配器安全性