rsync read errors

  • I am not sure what is going on with my rsync as of late but my i have 2 OMV servers and run a rsync between the two of them. For a good while now the rsync job was working with no issue.


    Then today i pulled the logs and found this


    rsync: read error: Connection reset by peer (104)

    rsync error: error in socket IO (code 10) at io.c(794) [receiver=3.1.2]

    rsync: connection unexpectedly closed (327642 bytes received so far) [generator]

    rsync error: error in rsync protocol data stream (code 12) at io.c(235) [generator=3.1.2]



    So the host is a 5.x and the client (receiver of the files) 4.x OMV and these logs are from the 4.x server.


    I run plex and other services on the 5.x and I dont see the network dropping out on other services so I am unsure what is causing this.

  • Looks like a network error or a crashed rsync / ssh process on the other side.

    Can you run this rsync job again?

    If you got help in the forum and want to give something back to the project click here and write up your solution for others.

  • Looks like a network error or a crashed rsync / ssh process on the other side.

    Can you run this rsync job again?

    funny thing is i am webGUI into the Host box while doing the rsync in the gui didn't die. Also when rsync dies I can just restart job from the client no issues.

    It just died again this time I kept SSH open on both boxes via putty on my win10 machine. I saw the GUI on the client side give this error again


    rsync: read error: Connection reset by peer (104)

    rsync error: error in socket IO (code 10) at io.c(794) [receiver=3.1.2]

    rsync: connection unexpectedly closed (327642 bytes received so far) [generator]

    rsync error: error in rsync protocol data stream (code 12) at io.c(235) [generator=3.1.2]


    So instead of waiting i just clicked on the run button again. now i get this error.


    rsync: failed to connect to 192.168.0.113 (192.168.0.113): Connection refused (111)

    rsync error: error in socket IO (code 10) at clientserver.c(125) [Receiver=3.1.2]


    BUT both webGUI's are up, and SSH is still open with HTOP running on the both showing now service spikes.


    I also ran this right after it died

    root@omv5:~# service rsync status

    ● rsync.service - fast remote file copy program daemon

    Loaded: loaded (/lib/systemd/system/rsync.service; enabled; vendor preset: enabled)

    Active: active (running) since Fri 2022-01-07 15:38:01 EST; 11min ago

    Docs: man:rsync(1)

    man:rsyncd.conf(5)

    Main PID: 24660 (rsync)

    Tasks: 1 (limit: 4915)

    Memory: 3.9G

    CGroup: /system.slice/rsync.service

    └─24660 /usr/bin/rsync --daemon --no-detach


    Jan 07 15:38:01 omv5 systemd[1]: Started fast remote file copy program daemon.

    Jan 07 15:38:01 omv5 rsyncd[24660]: rsyncd version 3.1.3 starting, listening on port 873

    Jan 07 15:38:19 omv5 rsyncd[24759]: name lookup failed for 192.168.0.237: Name or service not known

    Jan 07 15:38:19 omv5 rsyncd[24759]: connect from UNKNOWN (192.168.0.237)

    Jan 07 15:38:19 omv5 rsyncd[24759]: rsync on omvlarge/TV Shows from UNKNOWN (192.168.0.237)

    Jan 07 15:38:19 omv5 rsyncd[24759]: building file list

    Jan 07 15:46:02 omv5 rsyncd[24759]: rsync: read error: Connection reset by peer (104)

    Jan 07 15:46:02 omv5 rsyncd[24759]: rsync error: error in socket IO (code 10) at io.c(794) [sender=3.1.3]

    root@omv5:~#



    So i cant edit the /etc/rsyncd.conf file to add the disable reverse lookup flag.



    I also went into the rsync area of the gui and added the ip address under allowed hosts and its still kicking me out.

    this is the entry it put into my rsyncd.conf file


    [omvlarge]

    path = /srv/./dev-disk-by-uuid-1041347b-101a-4cd4-88e7-7492c379a4e6

    uid = nobody

    gid = users

    list = yes

    read only = no

    write only = no

    use chroot = yes

    hosts allow = 192.168.0.237

    lock file = /run/lock/rsyncd-omvlarge




    my OMV5.x box might be dying or something

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!