All the systems that are facing the following issue are running Xubuntu 22.04.4 LTS.
I am using the following command to connect to samba shares:
sudo mount.cifs //192.168.../shareName mountPath -o rw,vers=default,uid=1000,forceuid,gid=1000,forcegid,username="username",password="password" --verbose
This command used to work flawlessly before the latest 6.5.0-27-generic kernel update.
Now, although it creates a successful connection, whenever I'm accessing files from the client computer's thunar
I see at least a dozen messages like the ones below, in the server's journal.log:
pam_unix(samba:session): session opened for user xxxxxxx(uid=xxx) by (uid=0)
pam_unix(samba:session): session closed for user xxxxxxx
The samba session is closed and reopened continuously for as long as I keep accessing files from the client computer.
Also, the following message appeared on the client computer's journal.log once:
CIFS: reconnect tcon failed rc=-11
The messages above do not appear if I make the initial share connection using thunar
instead of mount.cifs
.
How can this be fixed please?
Thank you.
After the installation of the new 6.5.0-28-generic kernel that was just released, the log messages do not appear any more.
It looks like the error has been corrected.
i have the same problem that i described here
unresponding cp between two remote cifs share, both on the same distant machine
for the moment, waiting the kernel correction, i follow this to downgrade kernel ; Version 6.5.0-26 is working well
https://www.groovypost.com/howto/how-to-downgrade-the-kernel-in-ubuntu/
I've got a similar problem on Kernel 6.5.0-27-lowlatency (64-bit) too.
I can copy data from other drives to the cifs drive or from the cifs drive to other drives using Dolphin. But if I copy something from a cifs drive to the same drive, the copy process stops with an unexpected problem. The new file is there, but with a size of 0. The files with size 0 can be deleted, but SOMETIMES the files are still there. In this case another deletion says, that the files are not existing, but these are displayed in Dolphin, also in the console with the ls command, or even on the NAS with it's filemanager. After a reboot and a deletion with the NAS filemanager the file is gone. After trying to rename another file on the cifs drive, Dolphin hangs. The drive becomes unaccessable, even after a restart of the whole system. The NAS shows the correct drive content. The file to rename (the PDF in the last picture) has not been renamed.
This is a serious issue. 80% of my work is done on cifs drives. So the state of this problem becomes very URGENT for me. The LINUX system itself seems to be very unstable and unreliable, if such things can happen. Unfortunately there is no kernel update on my Discover application.
I will try to do a downgrade. Thanks to @neeqkowlhas for the link. I'm happy to have a dual boot system, so I can continue to work on Windows, if this will not work.
...
So, after a few hours ... I had to reconfigure the graphics driver in recovery mode. Otherwise the earlier kernel was not able to boot. I've done this by booting the 6.5.0-26 kernel (1024 x 768 on a 4k screen) and reinstalling the graphics driver manually in the console.
My system before downgrading: Operating System: Ubuntu Studio 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 6.5.0-27-lowlatency (64-bit) Graphics Platform: X11 Processors: 16 × 13th Gen Intel® Core™ i7-13700K Memory: 62.5 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
My system now: Operating System: Ubuntu Studio 22.04 KDE Plasma Version: 5.24.7 KDE Frameworks Version: 5.92.0 Qt Version: 5.15.3 Kernel Version: 6.5.0-26-lowlatency (64-bit) Graphics Platform: X11 Processors: 16 × 13th Gen Intel® Core™ i7-13700K Memory: 62.5 GiB of RAM Graphics Processor: NVIDIA GeForce RTX 3060/PCIe/SSE2
The issue has gone! I can work again ...