-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
The file provisioner hangs in WindowsServer 2016 Datacenter image #5006
Comments
Please add your entire debug log. how long does it hang for? your debug log shows 45 seconds, which isn't long enough to consider this a bug. winrm can be abysmally slow. |
hi @mwhooker thanks for the response. Yeah I did not save the report for the original run, but it will just keep showing the same thing for over an hour. I can run it again today for half an hour if you want. Below is a more detailed report I got from this run, I can update it later today for the full run. As you can see it hangs on Line 75 before I terminated the build:
In my previous run it will just keep doing this step over and over again. |
Ok so I confirmed that this issues is caused by the file provisioner trying to upload an entire directory. Apparently it takes a long long time to upload a folder with many files, however the size of the folder is not so big, only 60MB. The script ran without problems if I zip that folder, but it still took about 15 mins to upload that 30MB zip file. |
yeah, winrm isn't very fast right now unfortunately. see #4806 for example. sorry, there's not much we can do about that right now |
Hey @mwhooker, you're right that fixing this isn't really your problem. However, it would probably be a really good idea to add some documentation somewhere about this, and that it would be a good workaround to use |
@nebffa I agree. I'll add that to the file provisioner docs |
done in 0608fe4 |
Thanks @mwhooker - you're a legend. |
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. |
I am building an image using
azure-arm
with theWindowsServer 2016 Datacenter
image from the market place. Everything runs well until packer tries to execute thefile
provisioner to copy over my application folders to the image. The same script works for aWindowsServer 2012 R2
image.Debug Output:
Script:
Packer version: Packer v1.0.0
Host Platform: MacOSX Sierra
Debug Log: https://gist.github.com/harryluo91/2275bbd53ff9298842316e82de5ba875
Script executed: https://gist.github.com/harryluo91/e208d62f795d662f08816d9e0075bf0a
The text was updated successfully, but these errors were encountered: