{"action":"created","issue":{"url":"https://api.github.com/repos/docker/machine/issues/1500","labels_url":"https://api.github.com/repos/docker/machine/issues/1500/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/1500/comments","events_url":"https://api.github.com/repos/docker/machine/issues/1500/events","html_url":"https://github.com/docker/machine/issues/1500","id":94243942,"number":1500,"title":"docker-machine env xxx hangs forever","user":{"login":"chouclee","id":3389485,"avatar_url":"https://avatars.githubusercontent.com/u/3389485?v=3","gravatar_id":"","url":"https://api.github.com/users/chouclee","html_url":"https://github.com/chouclee","followers_url":"https://api.github.com/users/chouclee/followers","following_url":"https://api.github.com/users/chouclee/following{/other_user}","gists_url":"https://api.github.com/users/chouclee/gists{/gist_id}","starred_url":"https://api.github.com/users/chouclee/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chouclee/subscriptions","organizations_url":"https://api.github.com/users/chouclee/orgs","repos_url":"https://api.github.com/users/chouclee/repos","events_url":"https://api.github.com/users/chouclee/events{/privacy}","received_events_url":"https://api.github.com/users/chouclee/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/docker/machine/labels/driver/virtualbox","name":"driver/virtualbox","color":"bfdadc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":49,"created_at":"2015-07-10T08:02:28Z","updated_at":"2015-11-03T01:15:03Z","closed_at":null,"body":"The machine is running, and I could use `docker-machine ssh xxx` login that machine.\r\nBut `docker-machine env xxx` hangs forever. The debugging output said the \"host is down\". But \r\n`docker-machine ls` gave me \r\n\"NAME       ACTIVE   DRIVER       STATE     URL                         SWARM\r\ndev-test            virtualbox   Running   tcp://192.168.99.100:2376   \"\r\n\r\npossible related issue: https://github.com/docker/machine/issues/1168\r\ndocker-machine version: v0.3.0\r\nThe full info:\r\nCmd: `docker-machine -D env dev-test`\r\nOutput:\r\n```\r\nshell: sh\r\nexecuting: /usr/bin/VBoxManage showvminfo dev-test --machinereadable\r\nSTDOUT: name=\"dev-test\"\r\ngroups=\"/\"\r\nostype=\"Linux 2.6 / 3.x (64 bit)\"\r\nUUID=\"3928af02-deb5-4620-9433-0028c017030b\"\r\nCfgFile=\"/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.vbox\"\r\nSnapFldr=\"/var/root/.docker/machine/machines/dev-test/dev-test/Snapshots\"\r\nLogFldr=\"/var/root/.docker/machine/machines/dev-test/dev-test/Logs\"\r\nhardwareuuid=\"3928af02-deb5-4620-9433-0028c017030b\"\r\nmemory=1024\r\npagefusion=\"off\"\r\nvram=8\r\ncpuexecutioncap=100\r\nhpet=\"on\"\r\nchipset=\"piix3\"\r\nfirmware=\"BIOS\"\r\ncpus=1\r\npae=\"on\"\r\nlongmode=\"on\"\r\nsynthcpu=\"off\"\r\nbootmenu=\"disabled\"\r\nboot1=\"dvd\"\r\nboot2=\"dvd\"\r\nboot3=\"disk\"\r\nboot4=\"none\"\r\nacpi=\"on\"\r\nioapic=\"on\"\r\nbiossystemtimeoffset=0\r\nrtcuseutc=\"on\"\r\nhwvirtex=\"on\"\r\nnestedpaging=\"on\"\r\nlargepages=\"on\"\r\nvtxvpid=\"on\"\r\nvtxux=\"on\"\r\nVMState=\"running\"\r\nVMStateChangeTime=\"2015-07-10T07:54:44.216000000\"\r\nmonitorcount=1\r\naccelerate3d=\"off\"\r\naccelerate2dvideo=\"off\"\r\nteleporterenabled=\"off\"\r\nteleporterport=0\r\nteleporteraddress=\"\"\r\nteleporterpassword=\"\"\r\ntracing-enabled=\"off\"\r\ntracing-allow-vm-access=\"off\"\r\ntracing-config=\"\"\r\nautostart-enabled=\"off\"\r\nautostart-delay=0\r\ndefaultfrontend=\"\"\r\nstoragecontrollername0=\"SATA\"\r\nstoragecontrollertype0=\"IntelAhci\"\r\nstoragecontrollerinstance0=\"0\"\r\nstoragecontrollermaxportcount0=\"30\"\r\nstoragecontrollerportcount0=\"30\"\r\nstoragecontrollerbootable0=\"on\"\r\n\"SATA-0-0\"=\"/var/root/.docker/machine/machines/dev-test/boot2docker.iso\"\r\n\"SATA-ImageUUID-0-0\"=\"9ee6b7c5-49b9-4ec9-bc9e-6034d222da02\"\r\n\"SATA-tempeject\"=\"off\"\r\n\"SATA-IsEjected\"=\"off\"\r\n\"SATA-1-0\"=\"/var/root/.docker/machine/machines/dev-test/disk.vmdk\"\r\n\"SATA-ImageUUID-1-0\"=\"83cdb0e3-f525-44ee-9c1c-40dab5361d33\"\r\n\"SATA-2-0\"=\"none\"\r\n\"SATA-3-0\"=\"none\"\r\n\"SATA-4-0\"=\"none\"\r\n\"SATA-5-0\"=\"none\"\r\n\"SATA-6-0\"=\"none\"\r\n\"SATA-7-0\"=\"none\"\r\n\"SATA-8-0\"=\"none\"\r\n\"SATA-9-0\"=\"none\"\r\n\"SATA-10-0\"=\"none\"\r\n\"SATA-11-0\"=\"none\"\r\n\"SATA-12-0\"=\"none\"\r\n\"SATA-13-0\"=\"none\"\r\n\"SATA-14-0\"=\"none\"\r\n\"SATA-15-0\"=\"none\"\r\n\"SATA-16-0\"=\"none\"\r\n\"SATA-17-0\"=\"none\"\r\n\"SATA-18-0\"=\"none\"\r\n\"SATA-19-0\"=\"none\"\r\n\"SATA-20-0\"=\"none\"\r\n\"SATA-21-0\"=\"none\"\r\n\"SATA-22-0\"=\"none\"\r\n\"SATA-23-0\"=\"none\"\r\n\"SATA-24-0\"=\"none\"\r\n\"SATA-25-0\"=\"none\"\r\n\"SATA-26-0\"=\"none\"\r\n\"SATA-27-0\"=\"none\"\r\n\"SATA-28-0\"=\"none\"\r\n\"SATA-29-0\"=\"none\"\r\nnatnet1=\"nat\"\r\nmacaddress1=\"080027CA87FE\"\r\ncableconnected1=\"on\"\r\nnic1=\"nat\"\r\nnictype1=\"82540EM\"\r\nnicspeed1=\"0\"\r\nmtu=\"0\"\r\nsockSnd=\"64\"\r\nsockRcv=\"64\"\r\ntcpWndSnd=\"64\"\r\ntcpWndRcv=\"64\"\r\nForwarding(0)=\"ssh,tcp,127.0.0.1,50762,,22\"\r\nhostonlyadapter2=\"vboxnet1\"\r\nmacaddress2=\"0800276E6AB8\"\r\ncableconnected2=\"on\"\r\nnic2=\"hostonly\"\r\nnictype2=\"82540EM\"\r\nnicspeed2=\"0\"\r\nnic3=\"none\"\r\nnic4=\"none\"\r\nnic5=\"none\"\r\nnic6=\"none\"\r\nnic7=\"none\"\r\nnic8=\"none\"\r\nhidpointing=\"ps2mouse\"\r\nhidkeyboard=\"ps2kbd\"\r\nuart1=\"off\"\r\nuart2=\"off\"\r\nlpt1=\"off\"\r\nlpt2=\"off\"\r\naudio=\"none\"\r\nclipboard=\"disabled\"\r\ndraganddrop=\"disabled\"\r\nSessionType=\"headless\"\r\nVideoMode=\"720,400,0\"@0,0\r\nvrde=\"off\"\r\nusb=\"off\"\r\nehci=\"off\"\r\nSharedFolderNameMachineMapping1=\"Users\"\r\nSharedFolderPathMachineMapping1=\"/Users\"\r\nVRDEActiveConnection=\"off\"\r\nVRDEClients=0\r\nvcpenabled=\"off\"\r\nvcpscreens=0\r\nvcpfile=\"/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.webm\"\r\nvcpwidth=1024\r\nvcpheight=768\r\nvcprate=512\r\nvcpfps=25\r\nGuestMemoryBalloon=0\r\nGuestOSType=\"Linux26_64\"\r\nGuestAdditionsRunLevel=1\r\nGuestAdditionsVersion=\"4.3.28 r100309\"\r\nGuestAdditionsFacility_VirtualBox Base Driver=50,1436514900104\r\nGuestAdditionsFacility_Seamless Mode=0,1436514900104\r\nGuestAdditionsFacility_Graphics Mode=0,1436514900104\r\n\r\nSTDERR: \r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nip addr show dev eth1\r\n&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker@localhost ip addr show dev eth1] []  <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}\r\nSSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n    link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n\r\nSSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n    link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n\r\nEND SSH\r\n\r\ninvalid certs detected; regenerating for 192.168.99.100:2376\r\ncommand=configureAuth machine=dev-test\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\ncat /etc/os-release\r\n&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker@localhost cat /etc/os-release] []  <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}\r\nSSH cmd err, output: <nil>: NAME=Boot2Docker\r\nVERSION=1.7.0\r\nID=boot2docker\r\nID_LIKE=tcl\r\nVERSION_ID=1.7.0\r\nPRETTY_NAME=\"Boot2Docker 1.7.0 (TCL 6.3); master : 7960f90 - Thu Jun 18 18:31:45 UTC 2015\"\r\nANSI_COLOR=\"1;34\"\r\nHOME_URL=\"http://boot2docker.io\"\r\nSUPPORT_URL=\"https://github.com/boot2docker/boot2docker\"\r\nBUG_REPORT_URL=\"https://github.com/boot2docker/boot2docker/issues\"\r\n\r\nfound compatible host: boot2docker\r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nsudo hostname dev-test && echo \"dev-test\" | sudo tee /var/lib/boot2docker/etc/hostname\r\n&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker@localhost sudo hostname dev-test && echo \"dev-test\" | sudo tee /var/lib/boot2docker/etc/hostname] []  <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}\r\nSSH cmd err, output: <nil>: dev-test\r\n\r\nexecuting: /usr/bin/VBoxManage showvminfo dev-test --machinereadable\r\nSTDOUT: name=\"dev-test\"\r\ngroups=\"/\"\r\nostype=\"Linux 2.6 / 3.x (64 bit)\"\r\nUUID=\"3928af02-deb5-4620-9433-0028c017030b\"\r\nCfgFile=\"/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.vbox\"\r\nSnapFldr=\"/var/root/.docker/machine/machines/dev-test/dev-test/Snapshots\"\r\nLogFldr=\"/var/root/.docker/machine/machines/dev-test/dev-test/Logs\"\r\nhardwareuuid=\"3928af02-deb5-4620-9433-0028c017030b\"\r\nmemory=1024\r\npagefusion=\"off\"\r\nvram=8\r\ncpuexecutioncap=100\r\nhpet=\"on\"\r\nchipset=\"piix3\"\r\nfirmware=\"BIOS\"\r\ncpus=1\r\npae=\"on\"\r\nlongmode=\"on\"\r\nsynthcpu=\"off\"\r\nbootmenu=\"disabled\"\r\nboot1=\"dvd\"\r\nboot2=\"dvd\"\r\nboot3=\"disk\"\r\nboot4=\"none\"\r\nacpi=\"on\"\r\nioapic=\"on\"\r\nbiossystemtimeoffset=0\r\nrtcuseutc=\"on\"\r\nhwvirtex=\"on\"\r\nnestedpaging=\"on\"\r\nlargepages=\"on\"\r\nvtxvpid=\"on\"\r\nvtxux=\"on\"\r\nVMState=\"running\"\r\nVMStateChangeTime=\"2015-07-10T07:54:44.216000000\"\r\nmonitorcount=1\r\naccelerate3d=\"off\"\r\naccelerate2dvideo=\"off\"\r\nteleporterenabled=\"off\"\r\nteleporterport=0\r\nteleporteraddress=\"\"\r\nteleporterpassword=\"\"\r\ntracing-enabled=\"off\"\r\ntracing-allow-vm-access=\"off\"\r\ntracing-config=\"\"\r\nautostart-enabled=\"off\"\r\nautostart-delay=0\r\ndefaultfrontend=\"\"\r\nstoragecontrollername0=\"SATA\"\r\nstoragecontrollertype0=\"IntelAhci\"\r\nstoragecontrollerinstance0=\"0\"\r\nstoragecontrollermaxportcount0=\"30\"\r\nstoragecontrollerportcount0=\"30\"\r\nstoragecontrollerbootable0=\"on\"\r\n\"SATA-0-0\"=\"/var/root/.docker/machine/machines/dev-test/boot2docker.iso\"\r\n\"SATA-ImageUUID-0-0\"=\"9ee6b7c5-49b9-4ec9-bc9e-6034d222da02\"\r\n\"SATA-tempeject\"=\"off\"\r\n\"SATA-IsEjected\"=\"off\"\r\n\"SATA-1-0\"=\"/var/root/.docker/machine/machines/dev-test/disk.vmdk\"\r\n\"SATA-ImageUUID-1-0\"=\"83cdb0e3-f525-44ee-9c1c-40dab5361d33\"\r\n\"SATA-2-0\"=\"none\"\r\n\"SATA-3-0\"=\"none\"\r\n\"SATA-4-0\"=\"none\"\r\n\"SATA-5-0\"=\"none\"\r\n\"SATA-6-0\"=\"none\"\r\n\"SATA-7-0\"=\"none\"\r\n\"SATA-8-0\"=\"none\"\r\n\"SATA-9-0\"=\"none\"\r\n\"SATA-10-0\"=\"none\"\r\n\"SATA-11-0\"=\"none\"\r\n\"SATA-12-0\"=\"none\"\r\n\"SATA-13-0\"=\"none\"\r\n\"SATA-14-0\"=\"none\"\r\n\"SATA-15-0\"=\"none\"\r\n\"SATA-16-0\"=\"none\"\r\n\"SATA-17-0\"=\"none\"\r\n\"SATA-18-0\"=\"none\"\r\n\"SATA-19-0\"=\"none\"\r\n\"SATA-20-0\"=\"none\"\r\n\"SATA-21-0\"=\"none\"\r\n\"SATA-22-0\"=\"none\"\r\n\"SATA-23-0\"=\"none\"\r\n\"SATA-24-0\"=\"none\"\r\n\"SATA-25-0\"=\"none\"\r\n\"SATA-26-0\"=\"none\"\r\n\"SATA-27-0\"=\"none\"\r\n\"SATA-28-0\"=\"none\"\r\n\"SATA-29-0\"=\"none\"\r\nnatnet1=\"nat\"\r\nmacaddress1=\"080027CA87FE\"\r\ncableconnected1=\"on\"\r\nnic1=\"nat\"\r\nnictype1=\"82540EM\"\r\nnicspeed1=\"0\"\r\nmtu=\"0\"\r\nsockSnd=\"64\"\r\nsockRcv=\"64\"\r\ntcpWndSnd=\"64\"\r\ntcpWndRcv=\"64\"\r\nForwarding(0)=\"ssh,tcp,127.0.0.1,50762,,22\"\r\nhostonlyadapter2=\"vboxnet1\"\r\nmacaddress2=\"0800276E6AB8\"\r\ncableconnected2=\"on\"\r\nnic2=\"hostonly\"\r\nnictype2=\"82540EM\"\r\nnicspeed2=\"0\"\r\nnic3=\"none\"\r\nnic4=\"none\"\r\nnic5=\"none\"\r\nnic6=\"none\"\r\nnic7=\"none\"\r\nnic8=\"none\"\r\nhidpointing=\"ps2mouse\"\r\nhidkeyboard=\"ps2kbd\"\r\nuart1=\"off\"\r\nuart2=\"off\"\r\nlpt1=\"off\"\r\nlpt2=\"off\"\r\naudio=\"none\"\r\nclipboard=\"disabled\"\r\ndraganddrop=\"disabled\"\r\nSessionType=\"headless\"\r\nVideoMode=\"720,400,0\"@0,0\r\nvrde=\"off\"\r\nusb=\"off\"\r\nehci=\"off\"\r\nSharedFolderNameMachineMapping1=\"Users\"\r\nSharedFolderPathMachineMapping1=\"/Users\"\r\nVRDEActiveConnection=\"off\"\r\nVRDEClients=0\r\nvcpenabled=\"off\"\r\nvcpscreens=0\r\nvcpfile=\"/var/root/.docker/machine/machines/dev-test/dev-test/dev-test.webm\"\r\nvcpwidth=1024\r\nvcpheight=768\r\nvcprate=512\r\nvcpfps=25\r\nGuestMemoryBalloon=0\r\nGuestOSType=\"Linux26_64\"\r\nGuestAdditionsRunLevel=1\r\nGuestAdditionsVersion=\"4.3.28 r100309\"\r\nGuestAdditionsFacility_VirtualBox Base Driver=50,1436514900104\r\nGuestAdditionsFacility_Seamless Mode=0,1436514900104\r\nGuestAdditionsFacility_Graphics Mode=0,1436514900104\r\n\r\nSTDERR: \r\nUsing SSH client type: external\r\nAbout to run SSH command:\r\nip addr show dev eth1\r\n&{/usr/bin/ssh [/usr/bin/ssh -o PasswordAuthentication=no -o IdentitiesOnly=yes -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o ConnectionAttempts=3 -o ConnectTimeout=10 -i /var/root/.docker/machine/machines/dev-test/id_rsa -p 50762 docker@localhost ip addr show dev eth1] []  <nil> <nil> <nil> [] <nil> <nil> <nil> ?reflect.Value? false [] [] [] [] <nil>}\r\nSSH cmd err, output: <nil>: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n    link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n\r\nSSH returned: 4: eth1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000\r\n    link/ether 08:00:27:6e:6a:b8 brd ff:ff:ff:ff:ff:ff\r\n    inet 192.168.99.100/24 brd 192.168.99.255 scope global eth1\r\n       valid_lft forever preferred_lft forever\r\n    inet6 fe80::a00:27ff:fe6e:6ab8/64 scope link \r\n       valid_lft forever preferred_lft forever\r\n\r\nEND SSH\r\n\r\nDaemon not responding yet: dial tcp 192.168.99.100:2376: host is down\r\nDaemon not responding yet: dial tcp 192.168.99.100:2376: host is down\r\nDaemon not responding yet: dial tcp 192.168.99.100:2376: host is down\r\n```"},"comment":{"url":"https://api.github.com/repos/docker/machine/issues/comments/153209927","html_url":"https://github.com/docker/machine/issues/1500#issuecomment-153209927","issue_url":"https://api.github.com/repos/docker/machine/issues/1500","id":153209927,"user":{"login":"nathanleclaire","id":1476820,"avatar_url":"https://avatars.githubusercontent.com/u/1476820?v=3","gravatar_id":"","url":"https://api.github.com/users/nathanleclaire","html_url":"https://github.com/nathanleclaire","followers_url":"https://api.github.com/users/nathanleclaire/followers","following_url":"https://api.github.com/users/nathanleclaire/following{/other_user}","gists_url":"https://api.github.com/users/nathanleclaire/gists{/gist_id}","starred_url":"https://api.github.com/users/nathanleclaire/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathanleclaire/subscriptions","organizations_url":"https://api.github.com/users/nathanleclaire/orgs","repos_url":"https://api.github.com/users/nathanleclaire/repos","events_url":"https://api.github.com/users/nathanleclaire/events{/privacy}","received_events_url":"https://api.github.com/users/nathanleclaire/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T01:15:03Z","updated_at":"2015-11-03T01:15:03Z","body":"@jrep Ah, in that case, yes, you definitely need to wait a brief interval for the daemon to start up and begin accepting requests.  It's why Machine has code to wait for Docker in between our daemon restarts during provisioning.  Arguably, we should check for that on `start` as well."}}