Smb file transfer stuck since Stable Update 2024-11-30

All my smb file transfers (Ctrl-X/Ctrl-V from/to network share using dolphin) get stuck after a few MB. Only very small files (few KB) get transferred successfully but when opening the file, dolphin just gets stuck: file not opening, dolphin UI not responding. Then Dolphin can’t be closed and trying to open “System Monitor” does not work: Icon just disappears from task manager after a moment. Same happens with any other app: no program can be started at this point.

After smb gets stuck, trying to start a program in Yakuake: after pressing enter, a new line with a rectangle appears, nothing else.

After smb gets stuck, rebooting the computer also does not work: it gets stuck after closing the task manager, keeps showing the desktop with widgets, tty can’t be opened so I have to use Reset.

Rebooting the remote pc did not help.

May be same issue that was reported here without solution [Stable Update] 2024-11-30 - Kernels, Plasma, GNOME, COSMIC, LXQT, SYSTEMD - #113 by Riquez

Please help.

System:
  Kernel: 6.12.1-4-MANJARO arch: x86_64 bits: 64 compiler: gcc v: 14.2.1
    clocksource: tsc
  Desktop: KDE Plasma v: 6.2.4 tk: Qt v: N/A wm: kwin_x11 vt: 2 dm: SDDM
    Distro: Manjaro base: Arch Linux
Machine:
  Type: Desktop System: Gigabyte product: Z690 AORUS MASTER v: -CF
  Mobo: Gigabyte model: Z690 AORUS MASTER
CPU:
  Info: 24-core (8-mt/16-st) model: 13th Gen Intel Core i9-13900K bits: 64
Audio:
  Device-1: Intel Alder Lake-S HD Audio vendor: Gigabyte driver: snd_hda_intel
    v: kernel bus-ID: 00:1f.3 chip-ID: 8086:7ad0 class-ID: 0403
  Device-2: NVIDIA AD102 High Definition Audio driver: snd_hda_intel
    v: kernel pcie: speed: 16 GT/s lanes: 16 bus-ID: 01:00.1 chip-ID: 10de:22ba
    class-ID: 0403
  API: ALSA v: k6.12.1-4-MANJARO status: kernel-api with: aoss
    type: oss-emulator
  Server-1: sndiod v: N/A status: off
  Server-2: JACK v: 1.9.22 status: off
  Server-3: PipeWire v: 1.2.7 status: off with: pipewire-media-session
    status: off
  Server-4: PulseAudio v: 17.0 status: active with: 1: pulseaudio-alsa
    type: plugin 2: pulseaudio-jack type: module
Network:
  Device-1: Intel Alder Lake-S PCH CNVi WiFi driver: iwlwifi v: kernel
    bus-ID: 00:14.3 chip-ID: 8086:7af0 class-ID: 0280
  IF: wlo1 state: down mac: <filter>
  Device-2: Aquantia AQC113C NBase-T/IEEE 802.3an Ethernet [Marvell
    Scalable mGig] vendor: Gigabyte driver: atlantic v: kernel pcie:
    speed: 8 GT/s lanes: 2 port: N/A bus-ID: 02:00.0 chip-ID: 1d6a:14c0
    class-ID: 0200 temp: 42.0 C
  IF: enp2s0 state: up speed: 1000 Mbps duplex: full mac: <filter>
Swap:
  Alert: No swap data was found.

Info:
  Memory: total: 32 GiB available: 31.16 GiB used: 7.98 GiB (25.6%)
  Processes: 469 Power: uptime: 33m states: freeze,mem,disk suspend: deep
    wakeups: 0 hibernate: platform Init: systemd v: 256 default: graphical

I cannot reproduce your issue.

I just copied a 3.3G iso from my network -using smb - to a test laptop running Manjaro Plasma stable branch.

It is impossibly to suggest anything when not easily reproduced.

One would suspect anything from a custom package to a network driver issue.

Please provide some system info

 inxi -Fxxx

Copy the textual output and paste it into your original topic - then mark the pasted text and click the button </> in the topic toolbar.

Tried it on a second manjaro computer on update 2024-11-30 and after one successful file transfer, the issue is present there, too.

You might consider checking the destination filesystem for consistency.

Good idea, but SMART was ok and chkdsk found no problems.

Since the share can’t be unmounted in Dolphin (“target busy” despite cancelled transfer), I had to use umount -l /path/to/share . But even after that, new programs can’t be started and shutdown/logout will hang, so I always have to use Reset.

The issue also occurs when transferring files between the manjaro computers, so it isn’t a windows issue. In one case, the transfer was stuck at 60%, after pressing F5 in Dolphin, I got the message Information - Dolphin “Could not read file /path/to/file”, I selected “Retry” and the transfer ran to completion.

To check if the network switch was going bad, I ran ping and started the data transfer, assuming that if the transfer got stuck and the ping time became longer, it would point to a network issue but every time the transfer slowed down, the ping time got shorter. To my understanding that would indicate that the packages are not sent for some reason.

Please sync your system to the latest version.

I already am on stable update 2024-12-06.

The issue persists, switching to an older kernel did also not help. Stable internet speeds seem to further prove that the hardware works correctly.
What can I do?

You might try using CIFS instead;

sudo pacman -S cifs-utils

and mounting the shares via fstab; similar to this mentioned in the Arch Forum. Adding noauto as suggsted in that thread might provide smoother sailing.

cifs is an implementation of smb (between smb1 and smb2) and no longer developed and should definately not be used in any serious environment.

You issue is a local issue and not reproducable.

I may be caused by apparmor, see → [root tip] [How To] Basic Samba Setup and Troubleshooting

So I used
sudo aa-complain /etc/apparmor.d/usr.sbin.smbd, tried moving some files and it seemed to work, but then I moved some more and it got stuck again.

On one occasion, there was an error notification when trying to start a program after file transfer got stuck:

Launching Add/Remove Software (Failed)
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broken.

To rule out apparmor, I removed the apparmor=1 security=apparmor (assuming this disables it) from GRUB_CMDLINE_LINUX_DEFAULT= in /etc/default/grub, but after update-grub and reboot, file transfers still get stuck.

Applying Stable Update 2024-12-16 did not help as well.

Unless you use snap you can safely remove appmor

I have no idea what conditions on your local system which interferes with network file transfers.

What I can say - samba works on a default Manjaro installation - without any issues.

This means - frustrating for your as it is - it is a local issue - I have no means of suplying information which may help you resolve your issue.

I don’t. But I might, and if I do, I won’t remember to turn it on :wink:
It should be disabled without the grub entry, so uninstalling it would not make a difference, right?

I think I used that sudo aa-complain /etc/apparmor.d/usr.sbin.smbd command once in the past when there was an apparmor error in systemctl status smb.service and it fixed it back then. Does the current output seem okay?

systemctl status smb.service
○ smb.service - Samba SMB Daemon
     Loaded: loaded (/usr/lib/systemd/system/smb.service; disabled; preset: disabled)
     Active: inactive (dead)
       Docs: man:smbd(8)
             man:samba(7)
             man:smb.conf(5)

The smb.service is for running a fileserver - you don’t need the samba package on the client.

The only thing you need for the smbclient to function is an empty /etc/samba/smb.conf

You have only mentioned client side connection - no mention of how you have configured the server - a mention that may not be applicable if you do not run a Manjaro Samba Fileservice.

Exactly what kind of fileserver is this remote pc?

It is quite possible that you should look into the configuration of this file service.