Skip to content
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

stat hangs on large files #14516

Closed
rokka-n opened this issue Feb 17, 2016 · 3 comments
Closed

stat hangs on large files #14516

rokka-n opened this issue Feb 17, 2016 · 3 comments

Comments

@rokka-n
Copy link

rokka-n commented Feb 17, 2016

Issue Type: Bug Report
Ansible Version: 2.0.0.2
Ansible Configuration:
cat ansible.cfg
[defaults]
host_key_checking = False
Environment:

Amazon Linux, both server and remote host

Summary:

Ansible hangs on stat.

- name: Check if file was already downloaded from s3
  stat: path=/db-restore/{{ filename_gz }}
  register: s3_target_file
Steps To Reproduce:

Create a file 10-100G and check its stat

Expected Results:

Step should pass without delay

Actual Results:

Step hangs forever

@sivel
Copy link
Member

sivel commented Feb 17, 2016

The default for the stat module is to calculate the sha1 and md5 of the file. You should supply get_md5=false get_checksum=false to prevent this from happening. Otherwise it will take time to calculate those hashes.

List Information

Hi!

Thanks very much for your interest in Ansible. It sincerely means a lot to us.

This appears to be a user question, and we'd like to direct these kinds of things to either the mailing list or the IRC channel.

If you can stop by there, we'd appreciate it. This allows us to keep the issue tracker for bugs, pull requests, RFEs and the like.

Thank you once again and we look forward to seeing you on the list or IRC. Thanks!

@sivel sivel closed this as completed Feb 17, 2016
@rokka-n
Copy link
Author

rokka-n commented Feb 17, 2016

Thanks!

@rishibamba
Copy link

Thanks sivel :)

@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants