Comments (8)
I did the ansible upgrade and tried but still the same behavior. Seems some timeout is happening somewhere.
# pip3 show ansible
Name: ansible
Version: 2.9.13
Summary: Radically simple IT automation
Home-page: https://ansible.com/
Author: Ansible, Inc.
Author-email: [email protected]
License: GPLv3+
Location: /usr/local/lib/python3.8/dist-packages
Requires: cryptography, jinja2, PyYAML
Required-by:
Also I observed that its able to make the complete tarball of the folder under /root/.ansible/tmp location but after that its not copying the data to the target location. But if the size is small then its working perfectly.
from ansible.windows.
I tried to copy a single file of 6.7GiB and that worked. But when keeping that in a folder its failing with the same error.
from ansible.windows.
After switching from ntlm to credssp based method, its able to do the copy from ansible provision server to windows guest system. I tried multiple size like 3GB, 5GB, 7GB and upto 8.5GB and all worked successfully.
So not sure if the issue with the module or the auth method.
from ansible.windows.
Hmm I can't seem to replicate this problem, I created a 4.5GB file with fallocate -l 4.5G large.file
then ran the following playbook
- hosts: '2019'
gather_facts: no
tasks:
- win_copy:
src: large.file
dest: C:\temp\large.file
- win_file:
path: C:\temp\large.file
state: absent
I made sure to use NTLM auth through WinRM based on your last comment but it succeeded in the end. Are you finding this is failing when the task starts or after some time and some data has been transferred already. Is it happening with just 1 Windows host or can you replicate it across other. When the copying is happening have you seen any large memory spikes on the Windows host that may contribute to the failure?
from ansible.windows.
Are you finding this is failing when the task starts or after some time and some data has been transferred already.
Yes, after creating the zip file its failing. Its not able to start the copy activity.
Is it happening with just 1 Windows host or can you replicate it across other.
I tried with two systems in parallel and for both its failing at the same point with same error. And even for a single windows system also the same error at same stage. So I thought its the issue with NTLM. Because wen I am using CredSSP and WinRM, its working perfectly.
When the copying is happening have you seen any large memory spikes on the Windows host that may contribute to the failure?
No notable change in CPU & Memory utilization both at source and destination.
from ansible.windows.
Yes, after creating the zip file its failing. Its not able to start the copy activity.
How long does it take before it actually fails. Is it typically once it tries to start copying the zip and it's near the end of the copy (i.e. 2+GB has been copied)?
Can you update your ntlm-auth
and cryptography
Python libraries and try again. Can you run that playbook (with the fallocate
command beforehand) to see if that works for you. Can you slowly decrease the size until you find out when it starts to fail.
From my perspective I cannot replicate this problem on any of my hosts so it's going to be hard to figure out what's going wrong here. Until then there's not much I can do to try and fix the problem.
from ansible.windows.
Yes, after creating the zip file its failing. Its not able to start the copy activity.
How long does it take before it actually fails. Is it typically once it tries to start copying the zip and it's near the end of the copy (i.e. 2+GB has been copied)?
Usually it do create the dip properly of whatever size the actual content is. I have see it upto 8.5GiB. creating zip is never an issue. Its the copy the zip file that never worked.
Can you update your
ntlm-auth
andcryptography
Python libraries and try again. Can you run that playbook (with thefallocate
command beforehand) to see if that works for you. Can you slowly decrease the size until you find out when it starts to fail.
In my system both the packages are latest:
$ pip3 show ntlm-auth
Name: ntlm-auth
Version: 1.5.0
Summary: Creates NTLM authentication structures
Home-page: https://github.com/jborean93/ntlm-auth
Author: Jordan Borean
Author-email: [email protected]
License: MIT
Location: /usr/local/lib/python3.8/dist-packages
Requires:
$ pip3 show cryptography
Name: cryptography
Version: 3.1
Summary: cryptography is a package which provides cryptographic recipes and primitives to Python developers.
Home-page: https://github.com/pyca/cryptography
Author: The cryptography developers
Author-email: [email protected]
License: BSD or Apache License, Version 2.0
Location: /usr/local/lib/python3.8/dist-packages
Requires: cffi, six
Required-by: requests-ntlm, requests-credssp, pyspnego, paramiko, ansible
From my perspective I cannot replicate this problem on any of my hosts so it's going to be hard to figure out what's going wrong here. Until then there's not much I can do to try and fix the problem.
Yes, thats true. So may be you can close this as I am no longer going to use 5985 in my platform. I am using CredSSP with 5986 and thats working perfectly.
from ansible.windows.
I would also be curious if the problem with NTLM over port 5985 is also an issue when you use the psrp connection plugin. It also runs over WinRM/WSMan but in a protocol inside that with different deps.
I'm going to close the ticket for now as you've got a workaround. If you do come across any other key information please share it as we might be able to figure out what's going on from there.
from ansible.windows.
Related Issues (20)
- win_get_url does not respect content-disposition HOT 1
- win_update failed since ansible 7.7.0 HOT 3
- win_update show different trigger in Event Viewer HOT 1
- ansible.windows.win_powershell misinterprets block scalar (string block) HOT 2
- win_package: support checksum verification HOT 2
- intermittent winrm connection failures with large hosts count HOT 8
- intermittent "unable to delete temporary file" errors HOT 9
- Win_updates fail with "Exception from HRESULT: 0x80072EE2" HOT 2
- Windows Update Module not installing any updates HOT 4
- Windows update failes due to update loop HOT 3
- win_environment : Maybe add an option to read variable content ? HOT 5
- Error during machine sid retrieval: An error (1788) occurred while enumerating the group membership. The member's SID could not be resolved. HOT 8
- Access denied after renaming windows host : Server not found in Kerberos database HOT 10
- Failed to create temporary directory when running win_template module against Windows Server 2019 HOT 10
- win_copy doesnt work when folder name has special character HOT 2
- Add account_expires functionality from the Set-LocalUser PowerShell Cmdlet HOT 2
- Using Machine credentials from AAP passed to playbook with ansible.windows.win_copy fails HOT 2
- ERROR DURING WINRM SEND INPUT - attempting to recover: WinRMTransportError Bad HTTP response returned from server. Code 413 HOT 1
- win_copy module not handling an invalid path correctly. HOT 1
- Feature request: A better win_acl module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible.windows.