Error loading module '/usr/lib/x86_64-linux-gnu/samba/vfs/zfsacl.so'
Description
Problem/Justification
Impact
Activity
Andrew Walker August 11, 2021 at 3:09 AM
Default vfs modules changed in 11.3. In 12.0 the vfs objects parameter was removed entirely and if the existing VFS objects did not match the default in 11.3 they were migrated into auxiliary parameters. This is documented in release notes. Auxiliary parameters in general are very minimally validated and there is absolutely no guarantee of consistent or correct behavior between versions when they are configured. That said, I can probably auto-disable shares with unsupported VFS objects enabled via auxiliary parameters and raise an alert.
Aaron Ellis August 10, 2021 at 4:00 AM
For fun, I went and created a vm running FreeNAS 11.1 and created a smb share only filling in the required boxes. I can see that those advanced options causing this error are inserted into the advanced parameters... I do not think they were visible in the GUI until it was updated in 11.2. But they do persist through all of the upgrades and then the CORE -> SCALE migration. Not sure if that can be handled by the migration utility or if it can be called out in the migration notes so people can have working SMB shares
Aaron Ellis August 9, 2021 at 3:05 PM
Debug attached. It also appeared I was conversing with a staff member on the forums around this issue.
https://www.truenas.com/community/threads/core-to-scale-migration-smb-no-access-any-account.94574/
Bonnie Follweiler August 9, 2021 at 1:46 PM
Thank you for the report, @Aaron Ellis .
Can you please attach a debug file to this ticket? To generate a debug file on TrueNAS SCALE, log in to the TrueNAS web interface, go to System Settings > Advanced, then click Save Debug and wait for the file to download to your local system.
Shares show up in explorer but none of them are accessable.
TrueNAS-SCALE-21.08-MASTER-20210806-152920
Following message from log.smbd seems to be a likely culprit. Let me know if you need more infomation.
[2021/08/06 17:44:32.624236, 0] ../../lib/util/modules.c:49(load_module)
Error loading module '/usr/lib/x86_64-linux-gnu/samba/vfs/zfsacl.so': /usr/lib/x86_64-linux-gnu/samba/vfs/zfsacl.so: cannot open shared object file: No such file or directory
[2021/08/06 17:44:32.624431, 0] ../../source3/smbd/vfs.c:185(vfs_init_custom)
error probing vfs module 'zfsacl': NT_STATUS_UNSUCCESSFUL
[2021/08/06 17:44:32.624674, 0] ../../source3/smbd/vfs.c:397(smbd_vfs_init)
smbd_vfs_init: vfs_init_custom failed for zfsacl
[2021/08/06 17:44:32.624851, 0] ../../source3/smbd/service.c:637(make_connection_snum)
make_connection_snum: vfs_init failed for service tv
root@gerald/var/log/samba4# ll /usr/lib/x86_64-linux-gnu/samba/vfs/ | grep zfs
rw-rr- 1 root 39792 Aug 5 13:39 shadow_copy_zfs.so
rw-rr- 1 root 31600 Aug 5 13:39 zfs_core.so
rw-rr- 1 root 15216 Aug 5 13:39 zfs_fsrvp.so
root@gerald/var/log/samba4#