-
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
Windows file provisioner fails with "The path is not of legal form" #7435
Comments
Hi @dragon788 This looks suspiciously like mefellows/vagrant-dsc#14. Can you try the solutions on there? |
Sorry to say @sethvargo, looking at the error above it's a separate issue. mefellows/vagrant-dsc#14 is to do with an issue with the upstream DSC resources (which have since been fixed). To me, it looks like the files (DSC resources and manifests) are unable to be synced into the guest, and there PowerShell is unable to see the DSC modules. It may still be an issue with the plugin of course, but definitely a different issue. |
Still running into this issue and having a failure on the file provisioner. This doesn't appear to be directly related to the vagrant-dsc plugin as it should be using the core file provisioner still. |
As dragon788 says, "changing this to not include the drive as part of the path works", i.e:
However the file/directory won't end up in C:\ as you might expect, but rather in C:\Users\Administrator. One might use |
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 now have this problem with vagrant 1.9.5 running against a Windows 2012r2 host. I've tried config.vm.provision "file" do |f|
f.source = "s:/infra/puppet/"
f.destination = "c:\\puppet"
end config.vm.provision "file" do |f|
f.source = "s:/infra/puppet/"
f.destination = "c:/puppet"
end and the error is
|
Using Vagrant 1.9.6 on Windows 10 Pro x64, using WinRM to connect to a Windows 10 x64 Enterprise image: Configuration:
Output:
|
Hi, I was setting up the vagrant and I got this issue during the vagrant setup error 9 , tmp\tools\provisioner\provision_utils.py mkdir(self.__manifes['id']) is too long I found the file was in the vagrant\provisioning\scripts\provisioner\provision_utils.py and i commented the erroneous lines. will it cause any issue later. #if os.path.exists(TMP_PATH + "/" + self.__manifest['id']) == False: |
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
Vagrant 1.8.1
Host operating system
Windows 7 Enterprise
Guest operating system
Windows 2012r2
Vagrantfile
Using the Vagrantfile under development directory in this repository https://github.com/mefellows/vagrant-dsc.git
The failing line is:
It is attempting to recursively upload the website directory (really only 1 file) into this destination after creating it, but it fails to perform the create. Changing this to not include the drive as part of the path works, but it shouldn't fail if a drive is included as well.
Failure output
Expected behavior
It should have created the folder and uploaded the files.
Actual behavior
It fails to create the folders and therefore the vagrant up fails. It appears that the syntax for mkdir differs between cmd and Powershell, and when running through WinRM the command runs as Powershell. In Powershell mkdir is recursive, so it will create the entire path defined in one call, rather than having to mkdir -p or loop over the folders precreating each level.
Steps to reproduce
References
Perhaps similar to #7234
The text was updated successfully, but these errors were encountered: