<div dir="ltr"><div>Hi SMEs,</div><div><br></div><div>I have been working on a geo replication solution and it uses rsync internally. Recently when I was running the utility in RHEL 8, I started facing seeing the following message :</div><div><br></div><div><div><br></div><div><span style="color:rgb(66,66,66);font-family:"Roboto Mono",monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none">Popen: command returned error     cmd=rsync -aR0 --inplace --files-from=- --super --stats --numeric-ids --no-implied-dirs --existing --xattrs --acls --ignore-missing-args . -e ssh -oPasswordAuthentication=no -oStrictHostKeyChecking=no -i /var/lib/glusterd/geo-replication/secret.pem -p 22 -oControlMaster=auto -S /tmp/gsyncd-aux-ssh-i1jbmu2r/89283d9f33e5cfb2abacb855f2e1242e.sock 10.70.41.231:/proc/5886/cwd   error=12</span></div></div><div><br></div><div>On checking the logs, I find that I'm receiving the following error : <br></div><div><br></div><div>2020/10/04 21:28:15 [2861944] rsync: connection unexpectedly closed (0 bytes received so far) [sender]<br>2020/10/04 21:28:15 [2861944] rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]</div><div><span style="color:rgb(66,66,66);font-family:"Roboto Mono",monospace;font-size:12.8px;font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;white-space:pre-wrap;word-spacing:0px;background-color:rgb(248,249,250);text-decoration-style:initial;text-decoration-color:initial;display:inline;float:none"></span><br></div><div>Now I have tried all the steps such as</div><div>1. Checking if the disk space if full ( it wasn't)</div><div>2. Recreate the key value pair and setup the password-less ssh scenario.</div><div><br></div><div>One observation I had was when I disabled the selinux enforcing, it started to work. But even if it had been enforced, I did add an exception for rsync_client and rsync_full_access which should have taken care of the rsync operations.</div><div><br></div><div>I've tried the remedies mentioned in the manpages and even the internet but the actual root cause still eludes me as to why it doesn't work in selinux enforced mode if I had set the access.</div><div><br></div><div>Thank you in advance to anyone taking their time to answer this query :)<br></div><div><div><br>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Thanks and Regards,<br><p style="font-weight:bold;margin:0px;padding:0px;font-size:14px;text-transform:uppercase"><span>SRIJAN SIVAKUMAR</span><span></span></p>
<p style="font-weight:normal;font-size:10px;margin:0px 0px 4px;text-transform:uppercase"><span>Associate Software Engineer</span></p>
<p style="font-weight:normal;margin:0px;font-size:10px;color:rgb(153,153,153)"><a style="color:rgb(0,136,206);font-size:10px;margin:0px;text-decoration:none;font-family:"overpass",sans-serif" href="https://www.redhat.com" target="_blank">Red Hat <span><br></span></a></p><p style="font-weight:normal;margin:0px;font-size:10px;color:rgb(153,153,153)"><a style="color:rgb(0,136,206);font-size:10px;margin:0px;text-decoration:none;font-family:"overpass",sans-serif" href="https://www.redhat.com" target="_blank"><span><br></span></a></p>


<p style="font-weight:normal;margin:0px 0px 6px;font-size:10px;color:rgb(153,153,153)">
<span href="tel:+91-8067935170">T: <a href="http://redhatemailsignature-marketing.itos.redhat.com/" style="color:rgb(0,136,206);font-size:10px;margin:0px;text-decoration:none;font-family:"overpass",sans-serif" target="_blank">+91-9727532362</a>    </span>
</p>
<a href="https://red.ht/sig" target="_blank"> <img src="https://www.redhat.com/profiles/rh/themes/redhatdotcom/img/logo-red-hat-black.png" width="90" height="auto"></a> 

<div><a href="https://redhat.com/trusted" style="text-decoration:none;color:rgb(204,0,0);font-weight:bold" target="_blank">TRIED. TESTED. TRUSTED.</a></div></div></div></div></div></div>