Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Operation already in progress #373

Open
dearchap opened this issue Sep 18, 2018 · 2 comments
Open

Error: Operation already in progress #373

dearchap opened this issue Sep 18, 2018 · 2 comments

Comments

@dearchap
Copy link

An unknown error happened in Vagrant OpenStack provider
To easily debug what happened, we recommend to set the environment
variable VAGRANT_OPENSTACK_LOG to debug
$ export VAGRANT_OPENSTACK_LOG=debug
If doing this does not help fixing your issue, there may be a bug
in the provider. Please submit an issue on Github at
https://github.com/ggiamarchi/vagrant-openstack-provider
with the stracktrace and the logs.
We are looking for feedback, so feel free to ask questions or
describe features you would like to see in this provider.
/opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in __connect_nonblock': Catched Error: Catched Error: Catched Error: Operation already in progress - connect(2) for 10.62.178.136:22 (Errno::EALREADY) from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in connect_nonblock'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:56:in connect_internal' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:137:in connect'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:627:in block in tcp' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in each'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in foreach' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:617:in tcp'
from /opt/vagrant/embedded/gems/2.1.4/gems/net-ssh-5.0.2/lib/net/ssh/transport/session.rb:73:in initialize' from /opt/vagrant/embedded/gems/2.1.4/gems/net-ssh-5.0.2/lib/net/ssh.rb:242:in new'
from /opt/vagrant/embedded/gems/2.1.4/gems/net-ssh-5.0.2/lib/net/ssh.rb:242:in start' from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/plugins/communicators/ssh/communicator.rb:415:in block (2 levels) in connect'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in block in timeout' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in block in catch'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in timeout' from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/plugins/communicators/ssh/communicator.rb:389:in block in connect'
from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/lib/vagrant/util/retryable.rb:17:in retryable' from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/plugins/communicators/ssh/communicator.rb:388:in connect'
from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/plugins/communicators/ssh/communicator.rb:84:in block in wait_for_ready' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in block in timeout'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in block in catch' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in timeout'
from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/plugins/communicators/ssh/communicator.rb:62:in wait_for_ready' from /opt/vagrant/embedded/gems/2.1.4/gems/vagrant-2.1.4/lib/vagrant/action/builtin/wait_for_communicator.rb:16:in block in call'

@venushka
Copy link

venushka commented Jan 9, 2019

I am getting the same when running on Windows 10 WSL :(

OS: Windows 10 Pro (Version 1803)
Vagrant version: 2.2.2 (64-bit)

WSL: Ubuntu 18.04 (Version 1804.2018.817.0)
Vagrant version: 2.2.2 (for Debian)
vagrant-openstack-provider version: 0.13.0

This is the full trace. Tried with debug as suggested, but the result it the same apart from the printing all REST API calls before this.

    ubuntu: SSH address: 192.168.1.10:22
    ubuntu: SSH username: ubuntu
    ubuntu: SSH auth method: private key
An unknown error happened in Vagrant OpenStack provider

To easily debug what happened, we recommend to set the environment
variable VAGRANT_OPENSTACK_LOG to debug

    $ export VAGRANT_OPENSTACK_LOG=debug

If doing this does not help fixing your issue, there may be a bug
in the provider. Please submit an issue on Github at
https://github.com/ggiamarchi/vagrant-openstack-provider
with the stracktrace and the logs.

We are looking for feedback, so feel free to ask questions or
describe features you would like to see in this provider.
/opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in `__connect_nonblock': Catched Error: Catched Error: Catched Error: Operation already in progress - connect(2) for 192.168.1.10:22 (Errno::EALREADY)
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in `connect_nonblock'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:56:in `connect_internal'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:137:in `connect'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:627:in `block in tcp'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in `each'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in `foreach'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:617:in `tcp'
        from /opt/vagrant/embedded/gems/2.2.2/gems/net-ssh-5.0.2/lib/net/ssh/transport/session.rb:73:in `initialize'
        from /opt/vagrant/embedded/gems/2.2.2/gems/net-ssh-5.0.2/lib/net/ssh.rb:242:in `new'
        from /opt/vagrant/embedded/gems/2.2.2/gems/net-ssh-5.0.2/lib/net/ssh.rb:242:in `start'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/communicators/ssh/communicator.rb:425:in `block (2 levels) in connect'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `block in catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in `timeout'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/communicators/ssh/communicator.rb:399:in `block in connect'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/lib/vagrant/util/retryable.rb:17:in `retryable'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/communicators/ssh/communicator.rb:398:in `connect'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/communicators/ssh/communicator.rb:86:in `block in wait_for_ready'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in `block in timeout'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `block in catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in `catch'
        from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in `timeout'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/plugins/communicators/ssh/communicator.rb:62:in `wait_for_ready'
        from /opt/vagrant/embedded/gems/2.2.2/gems/vagrant-2.2.2/lib/vagrant/action/builtin/wait_for_communicator.rb:16:in `block in call'

Please let me know if I can provider any other information.

@piotr-ce
Copy link

piotr-ce commented May 31, 2019

Seems like the same issue, often when doing vagrant up, but also vagrant halt

Vagrant 2.2.4
Windows 10.0.17763 build
Provider: Hyper-V
Trace:

$ vagrant halt
/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/which.rb:37: warning: Insecure world writable dir /home/piotr/.tfenv/bin in PATH, mode 040777
/mnt/c/repos/git/proj-ws-2/Vagrantfile:4: warning: already initialized constant VAGRANT_API_VERSION
/mnt/c/repos/git/proj-ws-2/Vagrantfile:4: warning: previous definition of VAGRANT_API_VERSION was here
==> default: Attempting graceful shutdown of VM...
/opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in __connect_nonblock': Operation already in progress - connect(2) for 192.168.1.3:22 (Errno::EALREADY) from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:1198:in connect_nonblock'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:56:in connect_internal' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:137:in connect'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:627:in block in tcp' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in each'
from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:227:in foreach' from /opt/vagrant/embedded/lib/ruby/2.4.0/socket.rb:617:in tcp'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-ssh-5.1.0/lib/net/ssh/transport/session.rb:73:in initialize' from /opt/vagrant/embedded/gems/2.2.4/gems/net-ssh-5.1.0/lib/net/ssh.rb:242:in new'
from /opt/vagrant/embedded/gems/2.2.4/gems/net-ssh-5.1.0/lib/net/ssh.rb:242:in start' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/communicator.rb:467:in block (2 levels) in connect'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:93:in block in timeout' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in block in catch'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch' from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:33:in catch'
from /opt/vagrant/embedded/lib/ruby/2.4.0/timeout.rb:108:in timeout' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/communicator.rb:433:in block in connect'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/retryable.rb:17:in retryable' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/communicator.rb:432:in connect'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/communicators/ssh/communicator.rb:149:in ready?' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:273:in guest'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/graceful_halt.rb:50:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in block in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/call.rb:43:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:121:in block in finalize_action' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in block in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/call.rb:53:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/after_trigger.rb:26:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/config_validate.rb:25:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builtin/before_trigger.rb:23:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/warden.rb:50:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/builder.rb:116:in call' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in block in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/util/busy.rb:19:in busy' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/action/runner.rb:102:in run'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:238:in action_raw' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:209:in block in action'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:615:in lock' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:195:in call'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/machine.rb:195:in action' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/commands/halt/command.rb:31:in block in execute'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:238:in block in with_target_vms' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:232:in each'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/plugin/v2/command.rb:232:in with_target_vms' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/commands/halt/command.rb:30:in execute'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/cli.rb:66:in execute' from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/lib/vagrant/environment.rb:292:in cli'
from /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant:182:in `

'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants