Bug 57852 - dhclient on managed node shows error message: systemctl reload smbd fails
Summary: dhclient on managed node shows error message: systemctl reload smbd fails
Status: NEW
Alias: None
Product: UCS
Classification: Unclassified
Component: Samba
Version: UCS 5.2
Hardware: Other Linux
: P5 normal
Target Milestone: ---
Assignee: Samba maintainers
QA Contact: Samba maintainers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-01-13 18:04 CET by Arvid Requate
Modified: 2025-01-13 18:48 CET (History)
0 users

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Customer ID:
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Arvid Requate univentionstaff 2025-01-13 18:04:16 CET
root@managed:~# dhclient eth0
Job for smbd.service failed.
See "systemctl status smbd.service" and "journalctl -xeu smbd.service" for details.
[...]


And journalctl shows:
===
Jan 13 17:58:45 managed systemd[1]: Reloading smbd.service - LSB: Samba SMB/CIFS daemon (smbd)...
   Subject: A reload job for unit smbd.service has begun execution
   Defined-By: systemd
   Support: https://www.debian.org/support
   
   A reload job for unit smbd.service has begun execution.
   
   The job identifier is 3026.
Jan 13 17:58:45 managed smbd[43661]: Reloading Samba SMB/CIFS daemon: smbd failed!
Jan 13 17:58:45 managed systemd[1]: smbd.service: Control process exited, code=exited, status=1/FAILURE
   Subject: Unit process exited
   Defined-By: systemd
   Support: https://www.debian.org/support
   
   An ExecReload= process belonging to unit smbd.service has exited.
   
   The process' exit code is 'exited' and its exit status is 1.
Jan 13 17:58:45 managed systemd[1]: Reload failed for smbd.service - LSB: Samba SMB/CIFS daemon (smbd).
   Subject: A reload job for unit smbd.service has finished
   Defined-By: systemd
   Support: https://www.debian.org/support
   
   A reload job for unit smbd.service has finished.
   
   The job identifier is 3026 and the job result is failed.
===

The `systemctl restart smbd.service` works, but the `systemctl reload smbd.service` doesn't. `/etc/init.d/smbd reload` works though. Looks like some inconsistency in the `samba-common` package?
Comment 1 Arvid Requate univentionstaff 2025-01-13 18:48:26 CET
Looks a bit legacy though: /etc/dhcp/dhclient-enter-hooks.d/samba attempts the reload,
probably because it wrote /var/lib/samba/dhcp.conf to add these options:

   wins server = eth0:10.200.8.70
   netbios scope = FOO

These are example settings I assigned in the DHCP server via UDM DHCP netbios policy.