# Tracking the progress of a file being uploaded from local to remote machine

**URL:** <https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756>\
**Category:** Ansible Project\
**Created:** [May 2, 2013, 3:15pm UTC](https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756 "2013-05-02T15:15:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David\_Wu1](https://avatars.discourse-cdn.com/v4/letter/d/b38774/32.png) [@David\_Wu1](https://forum.ansible.com/u/David_Wu1)\
**Post date:** [May 2, 2013, 3:15pm UTC](https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756/1 "2013-05-02T15:15:35Z")

</div>

Hi,

In my playbook I have a task that copies a large file from local machine to the remote host:

> - name: Upload a large file that is roughly 10MB  
> copy: src=/a\_large\_file dest=/tmp/a\_large\_file

The task can be completed in a reasonable time only one out of 10 times. 90% of the time it usually takes forever to upload and there is no progress update while it is running. Is there a way to track the upload progress of this task as it runs? Also, how would I go about debugging to see what went wrong?

David

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [May 2, 2013, 4:19pm UTC](https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756/2 "2013-05-02T16:19:10Z")

</div>

Currently there is no file upload progress tracking.

---

<div class="post-metadata">

**Author:** ![David\_Wu](https://avatars.discourse-cdn.com/v4/letter/d/5f9b8f/32.png) [@David\_Wu](https://forum.ansible.com/u/David_Wu)\
**Post date:** [May 2, 2013, 4:30pm UTC](https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756/3 "2013-05-02T16:30:25Z")

</div>

Hi Michael,

Thanks for answering. What about ways of debugging? Is there a place where I can check to see if there are any error logs?

---

<div class="post-metadata">

**Author:** ![Michael\_DeHaan2](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@Michael\_DeHaan2](https://forum.ansible.com/u/Michael_DeHaan2)\
**Post date:** [May 2, 2013, 4:45pm UTC](https://forum.ansible.com/t/tracking-the-progress-of-a-file-being-uploaded-from-local-to-remote-machine/12756/4 "2013-05-02T16:45:09Z")

</div>

If it failed in the middle of a file transfer that is regular SFTP/SCP kind of stuff.

You may wish to consider -c ssh vs paramiko to try that.
