-
Notifications
You must be signed in to change notification settings - Fork 15
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
Vagrant up on the development folder fails #14
Comments
@Jonne, in order to diagnose this problem further, can you please:
|
Hmm, funny thing, it seems it only works on a 2012r2 image if I run provision at least twice. The first provision fails when it runs DSC:
It could be the use of the SEEK DSC installation via Chocolatey, although that seems unlikely, even unblocking the modules in advance doesn't seem to help. Will talk to my resident DSC expert tomorrow and hopefully nut this out - should be something basic. Sorry Jonne - there is an issue after all (although different to what you're seeing). On a side note, this works first time on a 2008r2 server. |
As a debugging note, locally i've started to isolate what specifically requires DSC to be run twice. My results:
Note this works on a 2008r2 image I have locally running WMF 5. I will next look at swapping out the current 2012r2 server with my own one build via Packer Community to rule out server-config issues, I suspect it could be that or even timing issues with running provisioning as soon as WinRM is available (perhaps other sub-systems are not yet?). |
NOTE: I have created a new Windows 2012r2 standard server Vagrant box and the issue persists. |
…already contains chocolatey and Seek DSC resources (#14)
Seems there may be an issue specific to the cWebAdministration module in the SEEK-Jobs/DSC resource. For now, I have temporarily replaced it with the xWebAdministration module and now it works on first boot. |
@warnergodfrey - Great news, you've hit the nail on the head - Now, to find a solution. I'm hoping we can keep it as simple as something like a check for the command (i.e. |
I'm running into this issue as well. I changed the path to simply remove the C:\ and it worked for getting past the mkdir C:\ -force error (which I think is a Vagrant bug as seen in the #7435 above). But now I'm hitting the same can't find module issues. I noticed that all the SEEK modules were mentioning moving to the Powershell official repos, are there any plans to update this repository in that case, or is there a good document on the migration path to using the official modules instead of the SEEK ones? |
I think I found part of the problem, you replaced the cWebAdministration portion, but when you updated for the new Vagrant version that got pulled back out and replaced with just the SEEK-DSC package again. |
Hi @dragon788. I reverted to the SEEK-DSC resources as the fix was applied (https://github.com/SEEK-Jobs/DSC/pull/23). I'm not aware of any migration documents but yes as I understand those modules have been merged into the official repos (which is awesome!). That being said, I just attempted a fresh install on Vagrant 1.8.1 and a vagrant-up on the development folder and all was successful. I'm going to upgrade Vagrant to latest now and try again. In any case, I wouldn't be too concerned about this - it's just an example repository and is in no indication a problem with the |
Just tried with vagrant version 1.8.4 also, worked a treat. Are you able to please put together some of the debugging notes from #14 (comment)? That might help get to the bottom of it all. I note you're running on Windows. I can't test this locally so it's just a guess, but if the files aren't syncing to the remote machine then the DSC will fail with something similar to the above - i.e. the DSC resources aren't on the filesystem so they can't be used. |
I wonder if the first failure may be due to pending Windows Updates causing issues. I just ran into this where I was attempting to run the Vagrantfile against another box and even though I was updating PowerShell and trying to install the latest version of DSC, without a reboot PowerShell wasn't getting updated, but it also wasn't properly installing any modules due to some other pending reboot from Updates which causes a weird exit code from some installers when it detects the pending reboot. |
See #10 for context.
Running
vagrant up
on the development folder results in:The text was updated successfully, but these errors were encountered: