Skip to content
This repository has been archived by the owner on Sep 26, 2021. It is now read-only.

Error getting state for host using Docker Machine #2154

Closed
arun-gupta opened this issue Nov 3, 2015 · 4 comments
Closed

Error getting state for host using Docker Machine #2154

arun-gupta opened this issue Nov 3, 2015 · 4 comments

Comments

@arun-gupta
Copy link

Installed Docker Machine 0.5.0 and tried listing all the existing machines using docker-machine ls. The following error message is thrown:

~ > docker-machine ls
error getting state for host lab: /usr/local/bin/VBoxManage showvminfo lab --machinereadable failed:
VBoxManage: error: The object is not ready
VBoxManage: error: Details: code E_ACCESSDENIED (0x80070005), callee nsISupports
VBoxManage: error: Context: "COMGETTER(SharedFolders)(ComSafeArrayAsOutParam(folders))" at line 2186 of file VBoxManageInfo.cpp

NAME        ACTIVE   DRIVER       STATE     URL                         SWARM
cluster     -        virtualbox   Running   tcp://192.168.99.108:2376   
couchbase   -        virtualbox   Running   tcp://192.168.99.101:2376   
javaone     -        virtualbox   Running   tcp://192.168.99.109:2376   
lab         -        virtualbox   Error                                 
lab2        *        virtualbox   Running   tcp://192.168.99.112:2376   
@nathanleclaire
Copy link
Contributor

Weird. Does it work on subsequent invocations or same error message?

@arun-gupta
Copy link
Author

docker-machine ls gave that error consistently.

Removed and recreated the machine and now stuck with #2147 (comment)

@bfirsh
Copy link
Contributor

bfirsh commented Nov 3, 2015

I got the error when upgrading an existing install (a 1.9 RC).

$ docker-machine upgrade default                                                          !86
Stopping machine to do the upgrade...
/usr/local/bin/VBoxManage showvminfo default --machinereadable failed:
VBoxManage: error: The object is not ready
VBoxManage: error: Details: code E_ACCESSDENIED (0x80070005), component SessionMachine, interface IMachine, callee nsISupports
VBoxManage: error: Context: "COMGETTER(BandwidthControl)(bwCtrl.asOutParam())" at line 2243 of file VBoxManageInfo.cpp

Starting the machine and then upgrading again works fine - I can't reproduce now.

@dgageot
Copy link
Member

dgageot commented Nov 4, 2015

Hi @arun-gupta, thanks a lot for the feedback. I faced the same problem today and I know how to fix it. docker-machine ls contacts the hosts in separate go routines. But vbox isn't really happy about that. I'm going to shoot a PR.

@dgageot dgageot self-assigned this Nov 4, 2015
@dgageot dgageot added this to the 0.5.1 milestone Nov 4, 2015
dgageot added a commit to dgageot/machine that referenced this issue Nov 4, 2015
Signed-off-by: David Gageot <david@gageot.net>
dgageot added a commit to dgageot/machine that referenced this issue Nov 5, 2015
Signed-off-by: David Gageot <david@gageot.net>
dgageot added a commit to dgageot/machine that referenced this issue Nov 7, 2015
Signed-off-by: David Gageot <david@gageot.net>
Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
@dgageot dgageot closed this as completed in 68092b3 Nov 9, 2015
nathanleclaire added a commit that referenced this issue Nov 9, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants