[opensuse] Debug remote side of Rsync
My Rsnapshot setup often stops in the middle of remote backups. Rsnapshot is not important here. Rsnapshop wraps normal Rsync commands. $ rsnapshot daily Write failed: Broken pipe rsync: connection unexpectedly closed (3070981 bytes received so far) [receiver] rsync error: error in rsync protocol data stream (code 12) at io.c(235) [receiver=3.1.1] rsync: connection unexpectedly closed (3065148 bytes received so far) [generator] rsync error: unexplained error (code 255) at io.c(235) [generator=3.1.1] ---------------------------------------------------------------------------- rsnapshot encountered an error! The program was invoked with these options: /usr/bin/rsnapshot daily ---------------------------------------------------------------------------- ERROR: /usr/bin/rsync returned 255 while processing root@remoteserver:/ WARNING: Rolling back "remoteserver/" So probably something triggers the connection closing on the remote side (here "remoteserver"). How can I get the Rsync debug messages on the remote side? "rsync --debug=ALL" only shows the debug messages on the local side. There are no Syslog messages about Rsync on "remoteserver". Local system is openSUSE 13.2. Remote system is Ubuntu 14.04. The connection is made by SSH. Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Tuesday 24 November 2015 21:30:48 Bjoern Voigt wrote:
My Rsnapshot setup often stops in the middle of remote backups. Rsnapshot is not important here. Rsnapshop wraps normal Rsync commands. […] So probably something triggers the connection closing on the remote side (here "remoteserver"). How can I get the Rsync debug messages on the remote side? "rsync --debug=ALL" only shows the debug messages on the local side. There are no Syslog messages about Rsync on "remoteserver". Local system is openSUSE 13.2. Remote system is Ubuntu 14.04. The connection is made by SSH.
rsnapshot should tell you the command line with which it starts rsync. At least you can come one step closer to the problem if you can call rsync manually to reproduce the problem. Take a look into the rsync man page for option "--remote-option=OPTION" as well as "--protect-args". These might help you to add some debug info or log file to the remote side. Oliver -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Oliver Kurz wrote:
My Rsnapshot setup often stops in the middle of remote backups. Rsnapshot is not important here. Rsnapshop wraps normal Rsync commands. […] So probably something triggers the connection closing on the remote side (here "remoteserver"). How can I get the Rsync debug messages on the remote side? "rsync --debug=ALL" only shows the debug messages on the local side. There are no Syslog messages about Rsync on "remoteserver". Local system is openSUSE 13.2. Remote system is Ubuntu 14.04. The connection is made by SSH. rsnapshot should tell you the command line with which it starts rsync. At least you can come one step closer to the problem if you can call rsync manually to reproduce the problem. Take a look into the rsync man page for
On Tuesday 24 November 2015 21:30:48 Bjoern Voigt wrote: option "--remote-option=OPTION" as well as "--protect-args". These might help you to add some debug info or log file to the remote side. Thanks. I added the options
--remote-option=--debug=send,io,backup,connect --remote-option=--log-file=/var/log/rsnapshot-rsync.log to the rsync options in rsnapshot configuration file. Now I have the messages locally and on the remote side in /var/log/rsnapshot-rsync.log. Greetings, Björn -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (2)
-
Bjoern Voigt
-
Oliver Kurz