# md5 checksum error

**URL:** <https://forum.ansible.com/t/md5-checksum-error/13712>\
**Category:** Ansible Project\
**Created:** [October 18, 2013, 7:05am UTC](https://forum.ansible.com/t/md5-checksum-error/13712 "2013-10-18T07:05:32Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [October 18, 2013, 7:05am UTC](https://forum.ansible.com/t/md5-checksum-error/13712/1 "2013-10-18T07:05:32Z")

</div>

This was part of an ansible-play error printout

warning: md5sum command failed unusually, please report this to the list so it can be fixed  
command: [u’(/usr/bin/md5sum ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/sbin/md5sum -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/usr/bin/digest -a md5 ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/sbin/md5 -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/usr/bin/md5 -n

ansible-playbook -i hosts site.yml --tags=accumulo\_cluster --skip-tags=bootstrap -vvvv

It’s part of a large playbook, but if you can let me know what aspects might be of interest, i can post that.

PLAY [accumulo] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*

TASK: [ubuntu\_common | Copy jdk installer script] \*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*\*  
 EXEC [‘/bin/sh’, ‘-c’, ‘mkdir -p $HOME/.ansible/tmp/ansible-1382078536.5-250962007619059 && chmod a+rx $HOME/.ansible/tmp/ansible-1382078536.5-250962007619059 && echo $HOME/.ansible/tmp/ansible-1382078536.5-250962007619059’]  
 EXEC /bin/sh -c ‘sudo -k && sudo -H -S -p “[sudo via ansible, key=zgkejpkfwancelcpvyztvuzwyrkhgvmd] password: " -u root /bin/sh -c '”’“‘rc=0; [-r “ansible\_installer\_scripts/install\_oracle\_jdk.sh”] || rc=2; [-f “ansible\_installer\_scripts/install\_oracle\_jdk.sh”] || rc=1; [-d “ansible\_installer\_scripts/install\_oracle\_jdk.sh”] && rc=3; (/usr/bin/md5sum ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/sbin/md5sum -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/usr/bin/digest -a md5 ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/sbin/md5 -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/usr/bin/md5 -n ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/bin/md5 -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (/usr/bin/csum -h MD5 ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null) || (echo “${rc} ansible\_installer\_scripts/install\_oracle\_jdk.sh”)’”‘"’’  
warning: md5sum command failed unusually, please report this to the list so it can be fixed  
command: [u’(/usr/bin/md5sum ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/sbin/md5sum -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/usr/bin/digest -a md5 ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/sbin/md5 -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/usr/bin/md5 -n ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/bin/md5 -q ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)‘, u’(/usr/bin/csum -h MD5 ansible\_installer\_scripts/install\_oracle\_jdk.sh 2\>/dev/null)']

---

<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:** [October 18, 2013, 12:46pm UTC](https://forum.ansible.com/t/md5-checksum-error/13712/2 "2013-10-18T12:46:00Z")

</div>

Sounds like you have some sudo failures in there with supplying the wrong failure to --ask-sudo-pass.

I would agree the output (not including the debug) is not super optimal as it could probably detect this and just tell you about the sudo error.

If you would like to open a ticket on the error message I think we can improve the messaging, but I think you should check your --ask-sudo-pass data.

---

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [October 18, 2013, 2:46pm UTC](https://forum.ansible.com/t/md5-checksum-error/13712/3 "2013-10-18T14:46:35Z")

</div>

The error reported was being caused by the “{{item}}.j2”  
applied to a file in my templates dir  
install\_oracle\_jdk.j2

I was attempting to use the format strings to change it from .j2 on my controller to .sh on the target.  
I get the error even when I copy the files directly without name chages, and using the alternate file shown below.

- name: Copy jdk installer script  
template: dest=“ansible\_installer\_scripts/{{item}}.sh”  
src=“{{item}}.j2”  
with\_items:  
#- install\_oracle\_jdk
- network\_interfaces.j2

---

<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:** [October 18, 2013, 2:56pm UTC](https://forum.ansible.com/t/md5-checksum-error/13712/4 "2013-10-18T14:56:52Z")

</div>

Ok, sounds like you have it resolved.

Would like to see the original playbook that triggered it though. Just curious.

Thanks!

---

<div class="post-metadata">

**Author:** ![Kesten\_Broughton2](https://avatars.discourse-cdn.com/v4/letter/k/ecc23a/32.png) [@Kesten\_Broughton2](https://forum.ansible.com/u/Kesten_Broughton2)\
**Post date:** [October 18, 2013, 7:52pm UTC](https://forum.ansible.com/t/md5-checksum-error/13712/5 "2013-10-18T19:52:00Z")

</div>

It was simple actually.  
The problem was that i had a playbook running as user accumulo, and then called a local\_action.  
My local box has no user named accumulo. Hence the error on trying to write to a .bashrc file.

kesten
