# Downloading corrupt file from Artifactory

**URL:** <https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 30, 2019, 5:19pm UTC](https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572 "2019-10-30T17:19:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vikrant](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Post date:** [October 30, 2019, 5:19pm UTC](https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572/1 "2019-10-30T17:19:54Z")

</div>

Hi Team,

I’m writing the playbook for the Notepad++ installation of the 50k servers but while running the playbook I’ve found the downloaded file from Jfrog artifactory is corrupt. can you please advise where I’m doing wrong, I tried to run manually and found the same error, moreover file size is 3 KB only rather it should be 3 MB +.

- name: Download Notepad++  
win\_get\_url:  
url: ‘{{ notepadpp\_download\_url }}’  
dest: ‘{{ tempdir.path }}\notepad-setup.exe’  
username: ‘XXXXX’  
password: ‘XXXXX’

Playbook output:

TASK [notepadplus : Download Notepad++] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/_ **/workspace/** _\*/roles/notepadplus/tasks/main.yml:16  
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/windows/win\_get\_url.ps1  
Pipelining is enabled.  
\<XYZ.abc.local\> ESTABLISH WINRM CONNECTION FOR USER: 123456@abc.LOCAL on PORT 5985 TO XYZ.abc.local  
calling kinit with subprocess for principal 12345@abc.LOCAL  
EXEC (via pipeline wrapper)  
changed: [100.100.1000.1000] =\> {  
“changed”: true,  
“checksum\_dest”: “598f5089d9e6b7319d638bdf56a9ac35d25ff19e”,  
“checksum\_src”: “598f5089d9e6b7319d638bdf56a9ac35d25ff19e”,  
“dest”: “C:\Users\12345\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe”,  
“elapsed”: 0.3128724,  
“invocation”: {  
“module\_args”: {  
“checksum”: null,  
“checksum\_algorithm”: “sha1”,  
“checksum\_url”: null,  
“dest”: “C:\Users\12345\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe”,  
“force”: true,  
“force\_basic\_auth”: false,  
“headers”: {},  
“password”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“proxy\_password”: null,  
“proxy\_url”: null,  
“proxy\_username”: null,  
“timeout”: 10,  
“url”: “[http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe](http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe)”,  
“url\_password”: “VALUE\_SPECIFIED\_IN\_NO\_LOG\_PARAMETER”,  
“url\_username”: “XXXXX”,  
“use\_proxy”: true,  
“username”: “XXXXX”,  
“validate\_certs”: true  
}  
},  
“msg”: “OK”,  
“size”: 2725,  
“status\_code”: 200,  
“url”: “[http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe](http://artifactory.org.local/artifactory/webapp/#/artifacts/browse/tree/General/thirdpartysoftware-generic-local/notepad++/npp.7.8.Installer.x64.exe)”

TASK [notepadplus : Install Notepad++] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
task path: /home/ /workspace/Application PEN Test/roles/notepadplus/tasks/main.yml:23  
Using module file /usr/local/lib/python3.6/site-packages/ansible/modules/windows/win\_package.ps1  
Pipelining is enabled.  
\< . .local\> ESTABLISH WINRM CONNECTION FOR USER: cccccc@EXPDAGDEV.LOCAL on PORT 5985 TO dfdsfsdf.sdfsfsd.local  
calling kinit with subprocess for principal fsdfsdfdsfS@fsdfsdf.LOCAL  
EXEC (via pipeline wrapper)  
fatal: [100.100.100.100]: FAILED! =\> {  
“changed”: false,  
“msg”: “failed to run install process (C:\Users\xxx\AppData\Local\Temp\ansible.lfwbtus3.xojnotepadpp\notepad-setup.exe /S): Exception calling "CreateProcess" with "5" argument(s): "CreateProcessW() failed (The file or directory is corrupted and unreadable, Win32ErrorCode 1392)"”,  
“reboot\_required”: false  
}

---

<div class="post-metadata">

**Author:** ![Vikrant](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Post date:** [October 31, 2019, 12:28pm UTC](https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572/2 "2019-10-31T12:28:30Z")

</div>

I found the problem as there is some issue with Artifactory Url.

regards

Vikrant

---

<div class="post-metadata">

**Author:** ![CORLEONE](https://avatars.discourse-cdn.com/v4/letter/c/9f8e36/32.png) [@CORLEONE](https://forum.ansible.com/u/CORLEONE)\
**Post date:** [November 1, 2019, 4:30am UTC](https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572/3 "2019-11-01T04:30:58Z")

</div>

Hi ,  
Can you try win\_chocolatey…

---

<div class="post-metadata">

**Author:** ![Vikrant](https://avatars.discourse-cdn.com/v4/letter/v/cc9497/32.png) [@Vikrant](https://forum.ansible.com/u/Vikrant)\
**Post date:** [November 1, 2019, 4:34am UTC](https://forum.ansible.com/t/downloading-corrupt-file-from-artifactory/31572/4 "2019-11-01T04:34:19Z")

</div>

Hi,

Thank you for a response but in my org, e used to go with any installation with Artifactory only.

regards

Vikrant
