-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Occasional "Access is denied." on vagrant provision with #8363
Comments
Related: packer-community/winrmcp#8 |
Update: Since a week, since I have added a 10 seconds pause between the "reload" and the "provision" commands in the Jenkins' job, I haven't seen any more errors.
|
Two weeks without errors, I'm quite sure that the problem is caused by the execution of the second commands immediately after the first one. I can imagine that vagrant spawns new threads, which are still working when vagrant main thread ends, what could cause the "access is denied", if another vagrant command is executed immediately after. |
Now is over one month since I have added the pause of 10s between the two commands and the error never appeared again. |
@Spamme1 Are you still encountering this on recent versions of Vagrant? |
We are running 1.0.1 version at the moment, I cannot really say if it has been solved or not, effectively adding a pause of 10s between the commands solved a lot of "build failures", nevertheless we have still daily "build failures" from vagrant deployment, and the solution was to repeat the build automatically after a failure up to three times. Normally in three retries one is working correctly.
|
Hi there, It looks like this has been resolved within a previously shipped version of Vagrant so I am now closing this issue. If the original issue was not fully resolved, please reopen this issue or create a new one. Cheers! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Vagrant version
1.9.1
Host operating system
Ubuntu 14.04.5 LTS
Guest operating system
Windows 2012 r2 (devopsgroup-io/windows_server-2012r2-standard-amd64-nocm)
Vagrantfile
Debug output
https://gist.github.com/Spamme1/e86dc1d2f90a83c44c89b3e4cfe9a14a
Expected behavior
Vagrant provision is executed successfully
Actual behavior
Occasionally the second provision can't be executed because "access is denied"
There is no other process accessing the virtual machine, and as you can see from the log file the vagrant provision command is executed immediately after the vagrant reload command.
The question is: Could it be that the machine is still locked from the vagrant reload command?
At the moment I will try to add a pause of 10 sec between the two commands and see if the error will disappear.
Steps to reproduce
References
#7968
The text was updated successfully, but these errors were encountered: