-
Notifications
You must be signed in to change notification settings - Fork 27
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
file upload failed on Win10 #18
Comments
I tried to reproduce this last night. I've been on win 10 now since late last year on the previews and have done alot of winrm FROM win 10 but none TO win10. Last night I was not able to succesfully authenticate from an ubuntu host to win10 via winrm. I had no problem connecting to win8.1 and couuld connect from win8.1 to win10 but only via powershell remoting. I did all the needed winrm/firewall tweaking that typically gets things working. I was just talking with @smurawski and we stumbled on this topic and he mentioned that winrm is basically broken on win10 RTM and MS is aware of it. Did not go into details. Sounds like you are able to at least authenticate. Is that correct? I may try to get a cleanly installed win10 VM running and see if I have better luck there. |
We've hit instances where WinRM in WMF 5 April preview and Win10 versions where WinRM replies with 500 errors rather then 401 auth negotiation. This is a breaking change from previous behavior and has been reported to Microsoft, but no currently released WMF or Win10 rev has a fix yet. |
Yes, I am able to authenticate and execute command successfully on Win10 machine. I am connecting from OSX. |
Grabbed an eval ISO and had no problem authenticating to a win 10 VM built with that and easily reproduced this problem. Merged a fix. |
😢 I'm running into this problem with test-kitchen 1.4.2. |
@sneal test-kitchen uses winrm-transport which I'm hoping to merge into winrm-fs (I recently got diverted from that effort but hope to get back to it soon). I released @smurawski 's fix yesterday which is pretty much a duplicate of #19 in this gem. So to fix test-kitchen:
|
I'm on the latest version yet I still appear to receive this?
Any ideas? Cheers |
Latest version of which gem @TheFrogDaddy? Your stack trace indicates you are using 0.2.3 of winrm-fs but 0.4.3 is latest. |
Sorry yes, I was on an old version and I've updated that now by downloading latest Vagrant. This didn't resolve my issue though. I've pinned it down to the chocolatey install powershell script breaking any subsequent winrm-fs uploads, it seems to be affecting comms with box somehow. I've raised an issue with them. chocolatey/choco#834
Not sure if you've seen this? |
@TheFrogDaddy You are still using an old version of the gem
To deal with that error you'll need the latest 0.4.3. |
@smurawski, thanks for this. 0.3.2 is actually what comes shipped with the latest Vagrant. I'll look into getting this updated manually for now. Thanks. |
Sorry I'm trying to catch up on old issues. So what happens sometimes if you update to a later WMF is it may reset some winrm settings which could be causing problems here. |
@mwrock I think you are onto something. I have a box built with PS4 and when I update with Choco to PS5 after a reboot it immediately starts throwing this error. It seems like I can connect to WinRM, I just get the "failure" message of "Preparing modules for first use." This could be something the plugin just needs to ignore or redirect to a different level of output? |
I have a script to upload a Powershell script with winrm-fs to remote machine then run it with winrm.cmd.
It works well on Windows 7 and 8.1. I tried to run it on Windows 10 machine recently and find it always failed at file upload.
My code to upload file is like:
If I copy the file manually to Win10 machine, winrm.cmd can run normally. I assume this is not WinRM config problem on remote machine.
The text was updated successfully, but these errors were encountered: