I think there are others who have experienced something similar:

https://github.com/ansible/ansible/issues/9980

It is possible that you are hitting one of the quota limits set in the 
winrm configuration 
- https://msdn.microsoft.com/en-us/library/ee309367%28v=vs.85%29.aspx

Personally I only use win_copy to push out small files usually less than 
1Mb.  To transfer large binary files it is much quicker to use the 
win_get_url module to make the remote host retrieve them.

Jon

On Friday, June 12, 2015 at 2:19:55 PM UTC+1, [email protected] wrote:
>
> Hi ,
>
> I am trying to copy file to windows using win_copy and file size is around 
> 20 mb , i am getting following error
>
> Traceback (most recent call last):
>   File 
> "/usr/lib/python2.6/site-packages/ansible/runner/connection_plugins/winrm.py",
>  
> line 198, in put_file
>     result = self._winrm_exec(cmd_parts[0], cmd_parts[1:])
>   File 
> "/usr/lib/python2.6/site-packages/ansible/runner/connection_plugins/winrm.py",
>  
> line 125, in _winrm_exec
>     command_id = self.protocol.run_command(self.shell_id, command, args)
>   File "/usr/lib/python2.6/site-packages/winrm/protocol.py", line 232, in 
> run_command
>     rs = self.send_message(xmltodict.unparse(rq))
>   File "/usr/lib/python2.6/site-packages/winrm/protocol.py", line 173, in 
> send_message
>     return self.transport.send_message(message)
>   File "/usr/lib/python2.6/site-packages/winrm/transport.py", line 95, in 
> send_message
>     raise WinRMTransportError(error_message)
> WinRMTransportError: Bad HTTP response returned from server. Code 500
>
>
> Any idea on this .. please suggest me if anyone faced this issue.
>
> Thanks
> Ravi 
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4d5fbdbe-0269-4df2-bf53-b7fdfa864089%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to