Skip to content
This repository has been archived by the owner on Nov 24, 2022. It is now read-only.

Locking problems with ssh #321

Closed
gucki opened this issue Oct 13, 2014 · 3 comments
Closed

Locking problems with ssh #321

gucki opened this issue Oct 13, 2014 · 3 comments

Comments

@gucki
Copy link

gucki commented Oct 13, 2014

When I try to start two ssh sessions to a running machine at the (almost) same timeI very often get an error in the second terminal like:

An action 'fetch_ip' was attempted on the machine 'xxx',
but another process is already executing an action on the machine.
Vagrant locks each machine for access by only one process at a time.
Please wait until the other Vagrant process finishes modifying this
machine, then try again.

If you believe this message is in error, please check the process
listing for any "ruby" or "vagrant" processes and kill them. Then
try again.

I did not have this error when using vagrant with virtualbox. I wonder if locking is really necessary for vagrant ssh? If it is necessary, probably a --waitflag would be nice, which should make the command to not fail but wait for a previous lock to be released.

To reproduce just open two terminals and paste vagrant ssh. It should show the error above in the second terminal.

@fgrehm
Copy link
Owner

fgrehm commented Oct 13, 2014

This is likely to be fixed with GH-318 :)

@fgrehm fgrehm closed this as completed in 186d453 Oct 15, 2014
@fgrehm
Copy link
Owner

fgrehm commented Oct 15, 2014

It wasn't fixed with 318 but I worked around the issue, should be fixed with 1.0.1!

@gucki
Copy link
Author

gucki commented Oct 15, 2014

Great, thanks a lot! 👍

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

No branches or pull requests

2 participants