Paul Heinlein
2021-Apr-13 19:09 UTC
[CentOS] rsync over ssh stalls after completing the job
On Tue, 13 Apr 2021, Frank Cox wrote:> Here's a weird one. > > I have two Centos 8 machines that use rsync-over-ssh to back up files between each other. (Each machine acts as a backup machine for the other one.) > > There's are nightly cronjobs that do the backing up, the commands look like this: > > rsync -av --delete /home/mydirectory jeff:/home/mydirectorybackup > > That command works fine when it's run through the cronjob. > > When I try to run a rsync command between mutt and jeff from the > commandline, that's where the problem starts. It worked a few days > ago but now when I log into jeff and do a rsync to or from mutt it > works fine. When I log into mutt and do a rsync to or from jeff it > works and does the job, but then it seems to stall afterward and I > have to hit ctrl-c to get my cursor back.Is there any chance that your shell is configured to emit anything to stderr or stdout when you logout of jeff? It's fairly rare, but I've seen logout messages mess up rsync before. -- Paul Heinlein heinlein at madboa.com 45.38? N, 122.59? W
On Tue, 13 Apr 2021 12:09:42 -0700 (PDT) Paul Heinlein wrote:> Is there any chance that your shell is configured to emit anything to > stderr or stdout when you logout of jeff? It's fairly rare, but I've > seen logout messages mess up rsync before.I don't think so. The only change from the default .bashrc on both machines is the addition of "unset command_not_found_handle", and in .bash_profile on mutt I have xmodmap -e "keycode 135 = 0x0000", which hasn't changed since 2016 according to the timestamp on the file. Other than that, the .bash* files are just the defaults. sshd_config has nothing other than the default settings for logout messages, and in any event none of these things have changed since last week and it did work then. I wonder if it's something to do with the last Centos 8 update. There was a fair amount of stuff updated including the kernel. I just rebooted both machines with the previous kernel and nothing changed, so that doesn't appear to be it either. -- MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com