md5 checksum error

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)']

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.

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

Ok, sounds like you have it resolved.

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

Thanks!

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