After boot Samba server doesn´t announce himself and offers the shares

since some UCS versions backwards I had a problem with the Samby server (version 4.4-2 errata 298).

When the server reboot (or new boot), the samba server didn´t annouce himself in the network and offers no shares.
After restart “smbd” manually, problem solved.

I increased the debug level to 5 to get more infos in the log.smbd (… grep fail):

interpret_string_addr_internal: getaddrinfo failed for name ens192 (flags 32) [Der Name oder der Dienst ist nicht bekannt]
pid_to_procid: messaging_dgm_get_unique failed: Datei oder Verzeichnis nicht gefunden
saf_fetch: failed to find server for “MY.DOMAIN” domain
saf_fetch: failed to find server for “MY.DOMAIN” domain
saf_fetch: failed to find server for “MY.DOMAIN” domain
saf_fetch: failed to find server for “MY.DOMAIN” domain
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
pid_to_procid: messaging_dgm_get_unique failed: Datei oder Verzeichnis nicht gefunden
failed to retrieve printer list: NT_STATUS_UNSUCCESSFUL
receive_smb_raw_talloc failed for client ipv4:192.168.x.xxx:58372 read error = NT_STATUS_END_OF_FILE.
(info: the last line comes up from the client who want to connect to the server)

The message " interpret_string_addr_internal: getaddrinfo" is incomprehensible because “en192” is the (working) network interface.

Same log with “grep error”:

[2019/10/06 12:47:03.052374, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[1] status[NT_STATUS_OBJECT_NAME_NOT_FOUND] || at …/…/source3/smbd/smb2_create.c:296
[2019/10/06 12:47:03.143638, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.330759, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.332738, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.338399, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.547299, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.568836, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:03.573531, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
[2019/10/06 12:47:04.030544, 3] …/…/source3/smbd/smb2_server.c:3194(smbd_smb2_request_error_ex)
smbd_smb2_request_error_ex: smbd_smb2_request_error_ex: idx[5] status[NT_STATUS_NO_SUCH_FILE] || at …/…/source3/smbd/smb2_query_directory.c:159
pdb_getsampwnam (TDB): error fetching database.
pdb_getsampwnam (TDB): error fetching database.

This server is part of a domain (primary & secondary UCS domain controller).
I checked der krb.conf but it seems that all ok.
All domain- und dns-names are correct and working properly. Nothing manually changed in the UCS variables.

I do not know where to look further.
Maybe someone can point me to the right way …

it seems like the network interface is not yet available while Samba is already starting:

[2019/10/16 13:29:54.980340, 2] …/…/source3/lib/interface.c:345(add_interface)
added interface lo ip=::1 bcast= netmask=ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff
[2019/10/16 13:29:54.980360, 2] …/…/source3/lib/interface.c:345(add_interface)
added interface lo ip=127.0.0.1 bcast=127.255.255.255 netmask=255.0.0.0
[2019/10/16 13:29:54.980578, 3] …/…/lib/util/util_net.c:255(interpret_string_addr_internal)
interpret_string_addr_internal: getaddrinfo failed for name ens192 (flags 32) [Der Name oder der Dienst ist nicht bekannt]
[2019/10/16 13:29:54.980615, 2] …/…/source3/lib/interface.c:470(interpret_interface)
interpret_interface: Can’t find address for ens192

[2019/10/16 13:42:21.600014, 5] …/…/libcli/security/security_token.c:53(security_token_debug)
Security token: (NULL)
[2019/10/16 13:42:21.600019, 5] …/…/source3/auth/token_util.c:866(debug_unix_user_token)
UNIX token of user 0
Primary group is 0 and contains 0 supplementary groups
[2019/10/16 13:42:21.600029, 5] …/…/source3/smbd/uid.c:504(smbd_change_to_root_user)
change_to_root_user: now uid=(0,0) gid=(0,0)
[2019/10/16 13:42:21.600149, 3] …/…/source3/smbd/server_exit.c:236(exit_server_common)
Server exit (failed to receive smb request)

But create /etc/rc.local with

/etc/init.d/smbd restart

doesn´t work either.

Using this command after (re)boot is finished, clients could connect to the samba server :frowning: