Kevin Hilton
2021-Feb-24 13:21 UTC
[Samba] Smb daemon on Arch Linux dies after running for about 7-10 days - `SAMBA_4.13.4' not found
Compared to most the posts on this lists, I have a smbd setup on an Arch Linux install used for home use acting in conjunction for a Time Machine backup solution for users around the household. The smb daemon will run for about 7-10 days before not being reachable but the MacOS time machine clients. Logs from the Arch linux server for the smb daemon reveal the following:> Error loading module '/usr/lib/samba/vfs/streams_xattr.so': /usr/lib/samba/libsamba-debug-samba4.so: version `SAMBA_4.13.4' not found (required by /usr/lib/samba/vfs/streams_xattr.so) > Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.071512, 0] ../../source3/smbd/vfs.c:185(vfs_init_custom) > Feb 24 00:31:43 arch-TM smbd[2061291]: error probing vfs module 'streams_xattr': NT_STATUS_UNSUCCESSFUL > Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.071817, 0] ../../source3/smbd/vfs.c:397(smbd_vfs_init) > Feb 24 00:31:43 arch-TM smbd[2061291]: smbd_vfs_init: vfs_init_custom failed for streams_xattr > Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.072051, 0] ../../source3/smbd/service.c:645(make_connection_snum) > Feb 24 00:31:43 arch-TM smbd[2061291]: make_connection_snum: vfs_init failed for service IPC$ > Feb 24 01:37:02 arch-TM smbd[2064532]: [2021/02/24 01:37:02.461245, 0] ../../lib/util/modules.c:49(load_module)My smb daemon version is:> # sudo smbstatus > > Samba version 4.13.4 > > Service pid Machine Connected at Encryption Signing > --------------------------------------------------------------------------------------------- > TimeMachine 2081796 10.0.1.184 Wed Feb 24 06:48:41 AM 2021 CST AES-128-CCM AES-128-CMAC > IPC$ 2081796 10.0.1.184 Wed Feb 24 06:48:41 AM 2021 CST AES-128-CCM AES-128-CMAC > TimeMachine 2079958 10.0.1.184 Wed Feb 24 06:40:07 AM 2021 CST AES-128-CCM AES-128-CMACIf I restart the service, the smb daemon will again accept connections ? for about 7-10 days prior to the daemon then then failing to log the streams_xattr.so module. Is this a smb problem or more of an Arch implementation problem? How further to debug? -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 861 bytes Desc: Message signed with OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20210224/5c282f03/signature.sig>
Rowland penny
2021-Feb-24 13:55 UTC
[Samba] Smb daemon on Arch Linux dies after running for about 7-10 days - `SAMBA_4.13.4' not found
On 24/02/2021 13:21, Kevin Hilton via samba wrote:> Compared to most the posts on this lists, I have a smbd setup on an Arch Linux install used for home use acting in conjunction for a Time Machine backup solution for users around the household. The smb daemon will run for about 7-10 days before not being reachable but the MacOS time machine clients. > > Logs from the Arch linux server for the smb daemon reveal the following: > >> Error loading module '/usr/lib/samba/vfs/streams_xattr.so': /usr/lib/samba/libsamba-debug-samba4.so: version `SAMBA_4.13.4' not found (required by /usr/lib/samba/vfs/streams_xattr.so) >> Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.071512, 0] ../../source3/smbd/vfs.c:185(vfs_init_custom) >> Feb 24 00:31:43 arch-TM smbd[2061291]: error probing vfs module 'streams_xattr': NT_STATUS_UNSUCCESSFUL >> Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.071817, 0] ../../source3/smbd/vfs.c:397(smbd_vfs_init) >> Feb 24 00:31:43 arch-TM smbd[2061291]: smbd_vfs_init: vfs_init_custom failed for streams_xattr >> Feb 24 00:31:43 arch-TM smbd[2061291]: [2021/02/24 00:31:43.072051, 0] ../../source3/smbd/service.c:645(make_connection_snum) >> Feb 24 00:31:43 arch-TM smbd[2061291]: make_connection_snum: vfs_init failed for service IPC$ >> Feb 24 01:37:02 arch-TM smbd[2064532]: [2021/02/24 01:37:02.461245, 0] ../../lib/util/modules.c:49(load_module) > My smb daemon version is: > >> # sudo smbstatus >> >> Samba version 4.13.4 >> >> Service pid Machine Connected at Encryption Signing >> --------------------------------------------------------------------------------------------- >> TimeMachine 2081796 10.0.1.184 Wed Feb 24 06:48:41 AM 2021 CST AES-128-CCM AES-128-CMAC >> IPC$ 2081796 10.0.1.184 Wed Feb 24 06:48:41 AM 2021 CST AES-128-CCM AES-128-CMAC >> TimeMachine 2079958 10.0.1.184 Wed Feb 24 06:40:07 AM 2021 CST AES-128-CCM AES-128-CMAC > > If I restart the service, the smb daemon will again accept connections ? for about 7-10 days prior to the daemon then then failing to log the streams_xattr.so module. Is this a smb problem or more of an Arch implementation problem? How further to debug?I think we need more info, you refer to a 'smbd' setup, yet you seem to be using kerberos, so can you post your smb.conf file. Rowland
Kevin Hilton
2021-Feb-24 14:08 UTC
[Samba] Smb daemon on Arch Linux dies after running for about 7-10 days - `SAMBA_4.13.4' not found
I?m not running Kerberos that I?m aware of: smb.conf [global] workgroup = WORKGROUP server string = Arch-TM-SMB server role = standalone server hosts allow = 10.0.1. 127. log file = /var/log/samba/%m.log max log size = 50 dns proxy = no netbios name = archTM_Xen create mask = 0644 directory mask = 2755 force create mode = 0644 force directory mode = 2755 server min protocol = SMB2_02 smb encrypt = desired load printers = no printing = bsd printcap name = /dev/null disable spoolss = yes show add printer wizard = no delete veto files = true #Following was added based on recommendations here: https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X min protocol = SMB2 vfs objects = catia fruit streams_xattr ea support = yes fruit:metadata = stream fruit:model = MacSamba fruit:veto_appledouble = yes fruit:posix_rename = yes fruit:zero_file_id = yes fruit:wipe_intentionally_left_blank_rfork = yes fruit:delete_empty_adfiles = yes [TimeMachine] comment = Time Machine SMB shares vfs objects = catia fruit streams_xattr fruit:time machine = yes path = /mnt/timemachine valid users = kevdog @timemachine force group = +timemachine public = no writeable = yes -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 861 bytes Desc: Message signed with OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20210224/80bf808e/signature.sig>
L.P.H. van Belle
2021-Feb-24 14:15 UTC
[Samba] Smb daemon on Arch Linux dies after running for about 7-10 days - `SAMBA_4.13.4' not found
Disallowed Characters in NetBIOS Names You cannot use the following characters in a NetBIOS name: period (.) backslash (\) forward slash (/) colon (:) asterisk (*) question mark (?) quotation mark (?) less than sign (<) greater than sign (>) vertical bar (|) Disallowed Characters in Hostnames The NetBIOS name and hostname are the same by default. This means you need to make sure that your NetBIOS name is using characters that are allowed in DNS hostnames. This is an important concept to grasp. The following characters are not allowed in the DNS hostnames, therefore you should not use them in NetBIOS names. Yes, if you use these characters you may get away by using them on LAN, but your computer won?t be able to communicate on the Internet. comma (,) tilde (~) colon (:) exclamation point (!) at sign (@) number sign (#) dollar sign ($) percent (%) caret (^) ampersand (&) apostrophe (?) period (.) parentheses (()) braces ({}) underscore (_) <<<<<<< netbios name = archTM_Xen white space (blank) changing it might help. on this : `SAMBA_4.13.4' not found, your sure all needed packages are installed? like samba-dsdb-modules and samba-vfs-modules greetz,> -----Oorspronkelijk bericht----- > Van: samba [mailto:samba-bounces at lists.samba.org] Namens Kevin Hilton via > samba > Verzonden: woensdag 24 februari 2021 15:08 > Aan: samba at lists.samba.org > Onderwerp: Re: [Samba] Smb daemon on Arch Linux dies after running for > about 7-10 days - `SAMBA_4.13.4' not found > > I?m not running Kerberos that I?m aware of: > > smb.conf > > [global] > > workgroup = WORKGROUP > > server string = Arch-TM-SMB > > server role = standalone server > > hosts allow = 10.0.1. 127. > > log file = /var/log/samba/%m.log > > max log size = 50 > > dns proxy = no > > netbios name = archTM_Xen > create mask = 0644 > directory mask = 2755 > force create mode = 0644 > force directory mode = 2755 > server min protocol = SMB2_02 > smb encrypt = desired > load printers = no > printing = bsd > printcap name = /dev/null > disable spoolss = yes > show add printer wizard = no > delete veto files = true > > #Following was added based on recommendations here: > https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_O > S_X > min protocol = SMB2 > vfs objects = catia fruit streams_xattr > ea support = yes > fruit:metadata = stream > fruit:model = MacSamba > fruit:veto_appledouble = yes > fruit:posix_rename = yes > fruit:zero_file_id = yes > fruit:wipe_intentionally_left_blank_rfork = yes > fruit:delete_empty_adfiles = yes > > [TimeMachine] > comment = Time Machine SMB shares > vfs objects = catia fruit streams_xattr > fruit:time machine = yes > path = /mnt/timemachine > valid users = kevdog @timemachine > force group = +timemachine > public = no > writeable = yes > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba
Kevin Hilton
2021-Feb-24 14:39 UTC
[Samba] Smb daemon on Arch Linux dies after running for about 7-10 days - `SAMBA_4.13.4' not found
I wasn?t aware of the NetBios problem, however this server is only accessible on the LAN. In terms of the various packages, samba installed via pacman via the official Arch Linux repositories (https://archlinux.org/packages/extra/x86_64/samba/ <https://archlinux.org/packages/extra/x86_64/samba/>) Looking at the packages included in the distribution there seems to be a number of vfs-modules. In terms of the ddb-modules, the only references to dsdb are: usr/lib/python3.9/site-packages/samba/dsdb.cpython-39-x86_64-linux-gnu.so usr/lib/python3.9/site-packages/samba/dsdb_dns.cpython-39-x86_64-linux-gnu.so usr/lib/python3.9/site-packages/samba/tests/audit_log_dsdb.py usr/lib/python3.9/site-packages/samba/tests/dsdb.py usr/lib/python3.9/site-packages/samba/tests/dsdb_lock.py usr/lib/python3.9/site-packages/samba/tests/dsdb_schema_attributes.py usr/lib/samba/ldb/dsdb_notification.so usr/lib/samba/ldb/samba_dsdb.so I?m assuming the installation has to work in some fashion since the daemon will accept connections for many days prior to failing, which I?m not sure why this happens. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 861 bytes Desc: Message signed with OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20210224/2de911c2/signature.sig>