ksmbd malfunction after upgrade to Proxmox 8.3.2

fowr0yl

Member
Mar 15, 2022
60
9
13
64
Braunschweig
Hello,
I provided a CIFS/Samba share directly on my Proxmox server via ksmbd. The directory that is shared is itself a mounted ZFS repository,
This worked perfectly under 7.4.
Under 8.3 the shares are provided as well but appear empty at client side. Strangely if you know names of directories or files, you can easily access them. It is also possible to create files or folders.
If a share points to a non zfs mounted directory like /tmp, everything works as expected ....

I verified this behaviour with windows and Linux clients. They all worked the same way.

Because I did not use any other debian based system, I sadly can not verify if this is a native proxmox, or a native debian problem.

Henning
 
I don't have experience with ksmbd - but I'll try to help.

* How does your ksmbd-tools config look like? (from a quick check it should be in /etc/ksmbd/
* did you add users, or is this a guest-mount
* do you see anything in the journal pointing to the issues?
* which kernel worked, which kernel is the first one to not work (you can try the proxmox-kernel-6.2, 6.5, 6.8 and 6.11 series to narrow down where the behavior changed)
* do you see any thing if you enable debug messages for ksmbd which might point to the issue - see:
https://docs.kernel.org/filesystems/smb/ksmbd.html

Under 8.3 the shares are provided as well but appear empty at client side. Strangely if you know names of directories or files, you can easily access them. It is also possible to create files or folders.
writing is possible as well?
(else this rings a bell - `hide unreadable` in smb.conf has the option to not list files/directories your user does not have read access to)

* finally - maybe check the ACLs of a directory and a file from a client with smbcacls (see the manpage)

I hope this helps!
 
Hello,
while looking around I have found this.

I followed the instructions of the workaround and upgraded ksmb-tools from 3.4.7 to 3.5.2
Code:
echo "deb http://deb.debian.org/debian/ bookworm-backports main" > /etc/apt/sources.list.d/debian-backports.list
apt update
apt install -t bookworm-backports ksmbd-tools

And voila, everything works as expected.

So everything with Proxmox, Kernel and config files and so on is ok. Its a pure debian problem while they are offering a old, more buggy ksmb-tools version in bookworm.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!