How Do You Troubleshoot the Error “rsync mkdir failed… rsync error in rsync protocol data stream (code 12)”?

Problem scenario
You try to use rsync or you use Ansible's synchronize module.  It fails with this message: "rsync mkdir failed... rsync error in rsync protocol data stream (code 12)"

Solution
Is the destination directory writable?  Verify that the destination exists and has the correct permissions for being able to write to it with the user the Ansible playbook uses.

Leave a comment

Your email address will not be published.