Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#78583 - smb-mount error triggered by rsync

Attached to Project: Arch Linux
Opened by Raphael (RJGarch) - Wednesday, 24 May 2023, 09:00 GMT
Last edited by Toolybird (Toolybird) - Tuesday, 27 June 2023, 22:49 GMT
Task Type Bug Report
Category Kernel
Status Closed
Assigned To No-one
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:

rsync error: error in socket IO (code 10) at io.c(848) [sender=3.2.7]

Additional info:
* uname -a
Linux xxx 6.3.2-arch1-1 #1 SMP PREEMPT_DYNAMIC Thu, 11 May 2023 16:40:42 +0000 x86_64 GNU/Linux
* command
gnome-session-inhibit rsync -av --delete /home/xxx/Bilder /sicherung_fritzbox/XXX_Daten/xxx
* rsync --version
rsync version 3.2.7 protocol version 31
Copyright (C) 1996-2022 by Andrew Tridgell, Wayne Davison, and others.
Web site: https://rsync.samba.org/
Capabilities:
64-bit files, 64-bit inums, 64-bit timestamps, 64-bit long ints,
socketpairs, symlinks, symtimes, hardlinks, hardlink-specials,
hardlink-symlinks, IPv6, atimes, batchfiles, inplace, append, ACLs,
xattrs, optional secluded-args, iconv, prealloc, stop-at, no crtimes
Optimizations:
SIMD-roll, no asm-roll, openssl-crypto, no asm-MD5
Checksum list:
xxh128 xxh3 xxh64 (xxhash) md5 md4 sha1 none
Compress list:
zstd lz4 zlibx zlib none
Daemon auth list:
sha512 sha256 sha1 md5 md4
* rsync from local disk to Fritzbox/SMB-Mount via fstab

Steps to reproduce:

gnome-session-inhibit rsync -av --delete /home/XXX/Bilder /sicherung_fritzbox/XXX_Daten/xxx

sending incremental file list
Bilder/Fotos von YYY/im Fotobuch/
Bilder/Fotos von YYY/im Fotobuch/13 DSCF4056.jpg
rsync: [sender] write error: Broken pipe (32)
rsync error: error in socket IO (code 10) at io.c(848) [sender=3.2.7]
rsync error: received SIGUSR1 (code 19) at main.c(1609) [generator=3.2.7]
This task depends upon

Closed by  Toolybird (Toolybird)
Tuesday, 27 June 2023, 22:49 GMT
Reason for closing:  Upstream
Additional comments about closing:  If still happening with latest linux 6.4.arch1-1 in [core-testing] please report upstream as requested. It's not an Arch packaging issue.
Comment by Toolybird (Toolybird) - Thursday, 25 May 2023, 05:26 GMT
Doesn't seem like an rsync issue...but rather an SMB mount problem. Can you test with cp instead of rsync? Anything useful in the journal? What happens if you take gnome-session-inhibit out of the equation? I assume this is using kernel cifs so can you post the fstab line or equiv' output from mount? What happens if you try an earlier or LTS kernel?
Comment by Raphael (RJGarch) - Thursday, 25 May 2023, 09:58 GMT
Thanks for the infos.

# rsync

gnome-session-inhibit rsync -av --delete /home/xxx/nextcloud /sicherung_fritzbox/XXX_Daten/xxx

sending incremental file list
nextcloud/
nextcloud/.sync_6913602e8188.db
rsync: [sender] write error: Broken pipe (32)
rsync error: error in socket IO (code 10) at io.c(848) [sender=3.2.7]
rsync error: received SIGUSR1 (code 19) at main.c(1609) [generator=3.2.7]

rsync -av --delete /home/xxx/nextcloud /sicherung_fritzbox/XXX_Daten/xxx

sending incremental file list
nextcloud/
nextcloud/.sync_6913602e8188.db
rsync: [sender] write error: Broken pipe (32)
rsync error: error in socket IO (code 10) at io.c(848) [sender=3.2.7]
rsync error: received SIGUSR1 (code 19) at main.c(1609) [generator=3.2.7]

# cp

gnome-session-inhibit cp -r -u -v /home/xxx/nextcloud /sicherung_fritzbox/XXX_Daten/xxx

cp -r -u -v /home/xxx/nextcloud /sicherung_fritzbox/XXX_Daten/xxx

--> no problem

# fstab

old:

//192.168.180.1/fritz.nas /sicherung_fritzbox cifs noauto,x-systemd.automount,x-systemd.mount-timeout=30,_netdev,defaults,nounix,credentials=/home/xxx/.fritz,uid=1000,gid=1000,vers=3.11,noserverino 0 0

new:

//192.168.180.1/fritz.nas /sicherung_fritzbox cifs _netdev,nounix,credentials=/home/xxx/.fritz,uid=1000,gid=1000,vers=3.11,noserverino,file_mode=0660,dir_mode=0770 0 0

# journal -kf

CIFS: VFS: bogus file nlink value 0
cifs_open_info_to_fattr: 707 callbacks suppressed
Comment by Toolybird (Toolybird) - Thursday, 25 May 2023, 22:56 GMT
Thanks for all of that.

> CIFS: VFS: bogus file nlink value 0

That error has come up before  FS#72377   FS#76939 . It definitely seems like an upstream kernel issue. Did you end up trying a different kernel? You might have to contact the upstream kernel folks for this one. General advice for debugging kernel regressions [1]. Please let us know what you find out.

[1] https://wiki.archlinux.org/title/Kernel#Debugging_regressions
Comment by Raphael (RJGarch) - Sunday, 28 May 2023, 09:58 GMT
Sorry, at the moment I can not downgrade the kernel.

rsync via a second system (raspberry), on the same smb-share works fine.

uname -a
Linux server 5.15.0-1028-raspi #30-Ubuntu SMP PREEMPT Thu Apr 20 01:21:34 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

Loading...