vagrant up hangs in Docker desktop 4.11.0 mac monterey
Docker version
Docker desktop 4.11.0 Docker 20.10.17
Vagrant version
Vagrant 2.2.9
Host operating system
MacOS Monterey 12.5
Debug output
DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 DEBUG ssh: Checking key permissions: /Users/soniachan/.vagrant.d/insecure_private_key INFO ssh: Attempting SSH connection... INFO ssh: Attempting to connect to SSH... INFO ssh: - Host: 127.0.0.1 INFO ssh: - Port: 2222 INFO ssh: - Username: vagrant INFO ssh: - Password? false INFO ssh: - Key Path: ["/Users/soniachan/.vagrant.d/insecure_private_key"] DEBUG ssh: - connect_opts: {:auth_methods=>["none", "hostbased", "publickey"], :config=>false, :forward_agent=>true, :send_env=>false, :keys_only=>true, :verify_host_key=>:never, :password=>nil, :port=>"2222", :timeout=>15, :user_known_hosts_file=>[], :verbose=>:debug, :logger=>#<Logger:0x00007fd905bf3930 @level=0, @progname=nil, @default_formatter=#<Logger::Formatter:0x00007fd905bf3908 @datetime_format=nil>, @formatter=nil, @logdev=#<Logger::LogDevice:0x00007fd905bf38b8 @shift_period_suffix=nil, @shift_size=nil, @shift_age=nil, @filename=nil, @dev=#StringIO:0x00007fd905bf3980, @binmode=false, @mon_data=#Monitor:0x00007fd905bf3890, @mon_data_owner_object_id=28700>>, :keys=>["/Users/soniachan/.vagrant.d/insecure_private_key"], :remote_user=>"vagrant"} DEBUG ssh: == Net-SSH connection debug-level log START == DEBUG ssh: D, [2022-08-01T21:22:30.893818 #42216] DEBUG -- net.ssh.transport.session[7030]: establishing connection to 127.0.0.1:2222 D, [2022-08-01T21:22:30.894150 #42216] DEBUG -- net.ssh.transport.session[7030]: connection established I, [2022-08-01T21:22:30.894198 #42216] INFO -- net.ssh.transport.server_version[7044]: negotiating protocol version D, [2022-08-01T21:22:30.894211 #42216] DEBUG -- net.ssh.transport.server_version[7044]: local is `SSH-2.0-Ruby/Net::SSH_6.1.0 x86_64-darwin19'
DEBUG ssh: == Net-SSH connection debug-level log END == INFO ssh: SSH not ready: #<Vagrant::Errors::SSHDisconnected: The SSH connection was unexpectedly closed by the remote end. This usually indicates that SSH within the guest machine was unable to properly start up. Please boot the VM in GUI mode to check whether it is booting properly.> INFO subprocess: Starting process: ["/usr/local/bin/docker", "ps", "-a", "-q", "--no-trunc"] DEBUG subprocess: Command not in installer, not touching env vars. INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: 7a03858aedf20e365246800859041b9bd1ec134a8ee08c208c9b31f3d9237cbd DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000 DEBUG subprocess: Exit status: 0 INFO subprocess: Starting process: ["/usr/local/bin/docker", "ps", "-q", "--no-trunc"] DEBUG subprocess: Command not in installer, not touching env vars. INFO subprocess: Command not in installer, restoring original environment... DEBUG subprocess: Selecting on IO DEBUG subprocess: stdout: 7a03858aedf20e365246800859041b9bd1ec134a8ee08c208c9b31f3d9237cbd DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 31999 DEBUG subprocess: Exit status: 0
Behaviour
The log keeps looping in selecting on IO
Hi there,
Would you please provide a minimal Vagrantfile which reproduces this error. Also, when this occurs, are you able to ssh directly into the container?