[FIXED] Both rsync and scp timeout and needs reboot

I don’t have that much music so a 128GB sd card on my RPi can hold all of it.
I generally rip my music from CD on my Mac, and then try to keep the folders up to date with rsync.

However, rsync usually fails with an error, and the RPi needs a reboot

rsync error: error in rsync protocol data stream (code 12) at io.c(226) [sender=3.1.3]

Similar problem if I try to scp over a tar file with new content.

Any clues on why rsync and scp are both so unreliable on the volumio image?
I have several other RPi in use, running standard Debian and they don’t have this issue.
Thanks

Can you give some details please? For example, what is the path on the RPi that you are attempting to rsync to?

rsync -v -v -v -av --progress /Volumes/Seagate4TB/FLAC/ volumio@volumio:/data/INTERNAL/
rsync: connection unexpectedly closed (1389040 bytes received so far) [sender]
[sender] _exit_cleanup(code=12, file=io.c, line=226): entered
rsync error: unexplained error (code 255) at io.c(226) [sender=3.1.3]
[sender] _exit_cleanup(code=12, file=io.c, line=226): about to call exit(255)

Dry run completes without error, so maybe its to do with writes?

[code]recv_files phase=1
generate_files phase=2
send_files phase=2
send files finished
total: matches=0 hash_hits=0 false_alarms=0 data=0
recv_files phase=2
recv_files finished
generate_files phase=3
generate_files finished
client_run waiting on 31654

sent 200,005 bytes received 2,796,521 bytes 98,246.75 bytes/sec
total size is 58,557,434,453 speedup is 19,541.77 (DRY RUN)
[sender] _exit_cleanup(code=0, file=main.c, line=1209): entered
[sender] _exit_cleanup(code=0, file=main.c, line=1209): about to call exit(0) (DRY RUN)
[/code]

Anyone got any ideas on where to look at this?

Alternatively, anyone actually using rsync or similar to keep the media on Volumio up to date?

Thanks

Sorted it out myself!

The rsync doesn’t like all the spaces in the names (filenames and/or directories) so you must add the -s flag or --protect-args

It then works a treat! (If you are on a Mac you need to update to latest version of rsync. For example brew install rsync