[Pkg-samba-maint] Bug#1006475: samba-ad-dc: samba-ad-dc got Panic on reboot

Tomoo Nomura nomura at tmo.co.jp
Sat Feb 26 00:47:04 GMT 2022


Package: samba
Version: 2:4.13.13+dfsg-1~deb11u3
Severity: important
File: samba-ad-dc
X-Debbugs-Cc: team at security.debian.org

Dear Maintainer,

Samba-ad-dc always failes to run at booting time.
Hereis the status
-----------------------------------------------------------
file at root:~# systemctl status samba-ad-dc.service
● samba-ad-dc.service - Samba AD Daemon
Loaded: loaded (/lib/systemd/system/samba-ad-dc.service; enabled; vendor 
preset: enabled)
Active: failed (Result: exit-code) since Sat 2022-02-26 08:47:07 JST; 
22min ago
Docs: man:samba(8)
man:samba(7)
man:smb.conf(5)
Process: 594 ExecStart=/usr/sbin/samba --foreground --no-process-group 
$SAMBAOPTIONS (code=exited, status=1/FAILURE)
Main PID: 594 (code=exited, status=1/FAILURE)
Status: "samba: ready to serve connections..."
CPU: 8.923s

2月 26 08:47:01 file samba[915]: #21 
/usr/lib/x86_64-linux-gnu/samba/libservice.so.0(server_service_startup+0x96) 
[0x7ffa4b11bdf6]
2月 26 08:47:01 file samba[915]: #22 samba: task[kdc] pre-fork 
master(+0x596e) [0x55b5019d396e]
2月 26 08:47:01 file samba[915]: #23 
/lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xea) [0x7ffa4abb6d0a]
2月 26 08:47:01 file samba[915]: #24 samba: task[kdc] pre-fork 
master(_start+0x2a) [0x55b5019d27ca]
2月 26 08:47:01 file samba[915]: [2022/02/26 08:47:01.974710, 0] 
../../lib/util/fault.c:139(smb_panic_default)
2月 26 08:47:01 file samba[915]: smb_panic(): calling panic action 
[/usr/share/samba/panic-action 915]
2月 26 08:47:07 file samba[915]: [2022/02/26 08:47:07.595386, 0] 
../../lib/util/fault.c:146(smb_panic_default)
2月 26 08:47:07 file samba[915]: smb_panic(): action returned status 0
2月 26 08:47:07 file systemd[1]: samba-ad-dc.service: Failed with result 
'exit-code'.
2月 26 08:47:07 file systemd[1]: samba-ad-dc.service: Consumed 8.923s CPU 
time.

----------------------------------------------------------------------------
After failed, however, it can restart and work fine.


-- Package-specific info:
* /etc/samba/smb.conf present, and attached
* /var/lib/samba/dhcp.conf present, and attached

-- System Information:
Debian Release: 11.2
APT prefers stable-security
APT policy: (101, 'stable-security'), (101, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-11-amd64 (SMP w/4 CPU threads)
Locale: LANG=ja_JP.UTF-8, LC_CTYPE=ja_JP.UTF-8 (charmap=UTF-8), 
LANGUAGE=ja_JP.UTF-8
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages samba depends on:
ii adduser 3.118
ii dpkg 1.20.9
ii init-system-helpers 1.60
ii libbsd0 0.11.3-1
ii libc6 2.31-13+deb11u2
ii libgnutls30 3.7.1-5
ii libldb2 2:2.2.3-2~deb11u1
ii libpam-modules 1.4.0-9+deb11u1
ii libpam-runtime 1.4.0-9+deb11u1
ii libpopt0 1.18-2
ii libpython3.9 3.9.2-1
ii libtalloc2 2.3.1-2+b1
ii libtasn1-6 4.16.0-2
ii libtdb1 1.4.3-1+b1
ii libtevent0 0.10.2-1
ii libwbclient0 2:4.13.13+dfsg-1~deb11u3
ii lsb-base 11.1.0
ii procps 2:3.3.17-5
ii python3 3.9.2-3
ii python3-dnspython 2.0.0-1
ii python3-samba 2:4.13.13+dfsg-1~deb11u3
ii samba-common 2:4.13.13+dfsg-1~deb11u3
ii samba-common-bin 2:4.13.13+dfsg-1~deb11u3
ii samba-libs 2:4.13.13+dfsg-1~deb11u3
ii tdb-tools 1.4.3-1+b1

Versions of packages samba recommends:
ii attr 1:2.4.48-6
ii logrotate 3.18.0-2
ii python3-markdown 3.3.4-1
ii samba-dsdb-modules 2:4.13.13+dfsg-1~deb11u3
ii samba-vfs-modules 2:4.13.13+dfsg-1~deb11u3

Versions of packages samba suggests:
ii bind9 1:9.16.22-1~deb11u1
ii bind9-utils [bind9utils] 1:9.16.22-1~deb11u1
ii bind9utils 1:9.16.22-1~deb11u1
pn ctdb <none>
pn ldb-tools <none>
pn ntp | chrony <none>
ii smbldap-tools 0.9.11-2
pn ufw <none>
ii winbind 2:4.13.13+dfsg-1~deb11u3

-- debconf information:
samba/run_mode: daemons
samba-common/title:
samba/generate_smbpasswd: true
samba/tdbsam: false
-------------- next part --------------
# Global parameters
[global]
	netbios name = FILE
	realm = TAG-MAIN.COM
	server role = active directory domain controller
	server services = s3fs, rpc, nbt, wrepl, ldap, cldap, kdc, drepl, winbindd, ntp_signd, kcc, dnsupdate
	workgroup = TAG
	password server = *
	security = AUTO

	idmap_ldb:use rfc2307 = yes
	idmap config * : range = 1000 - 99999

        winbind separator = @
        winbind use default domain = yes
        winbind cache time = 10

	dns update command = /usr/sbin/samba_dnsupdate --use-samba-tool
        template shell = /bin/bash
        template homedir = /home/%U

        kerberos method = secrets only

	# network access restriction
	hosts deny = 192.168.111.160/255.255.255.248

   	log file = /var/log/samba/log.%m
   	max log size = 1000
	panic action = /usr/share/samba/panic-action %d


[netlogon]
	path = /var/lib/samba/sysvol/tag-main.com/scripts
	read only = No

[sysvol]
	path = /var/lib/samba/sysvol
	read only = No
[homes]
   comment = Home Directories
   path = /public/home/%U
   browseable = yes

   writable = yes
   create mask = 0740
   directory mask = 0740

# note: valid user is valid only in [homes]
   valid users = %S
   nt acl support = no

# Un-comment the following and create the netlogon directory for Domain Logons
# (you need to configure Samba to act as a domain controller too.)
;[netlogon]
;   comment = Network Logon Service
;   path = /home/samba/netlogon
;   guest ok = yes
;   writable = no
;   share modes = no

# Un-comment the following and create the profiles directory to store
# users profiles (see the "logon path" option above)
# (you need to configure Samba to act as a domain controller too.)
# The path below should be writable by all users so that their
# profile directory may be created the first time they log on
;[profiles]
;   comment = Users profiles
;   path = /home/samba/profiles
;   guest ok = no
;   browseable = no
;   create mask = 0600
;   directory mask = 0700

# printer drivers
;[print$]
;   comment = Printer Drivers
;   path = /var/lib/samba/printers
;   browseable = yes
;   read only = yes
;   guest ok = no
# Uncomment to allow remote administration of Windows print drivers.
# Replace 'ntadmin' with the name of the group your admin users are
# members of.
;   write list = root, @ntadmin
;[printers]
;   comment = All Printers
;   browseable = no
;   path = /var/spool/samba
;   printable = yes
;   public = no
;   writable = no
;   create mode = 0700


[tag-only]
   comment = Tag-only
   path = /public/storage/tag-only
   directory mask = 0770
   force create mode = 0770
   create mask = 0770
   writable = yes
   public = no
   valid users = @manager
   force group = manager
   nt acl support = no

[testmanager]
   comment = Testmanager
   path = /public/storage/testmanager
   directory mask = 0770
   force create mode = 0770
   create mask = 0770
   browseable = no
   writable = yes
   valid users = @tag @manager
   nt acl support = no

[share]
   comment = Share
   path = /public/storage/share
   directory mask = 0775
   force create mode = 0770
   create mask = 0770
   writable = yes
   public = no
   valid users = @tag @manager
   force group = tag
   nt acl support = no

[temp]
   comment = Temp
   path = /public/storage/temp
   directory mask = 0775
   force create mode = 0775
   writable = yes
   public = yes
   force group = tag
   nt acl support = no

# A sample share for sharing your CD-ROM with others.
[cdrom]
   comment = Samba server's CD-ROM
   writable = no
   locking = no
   path = /media/cdrom
   public = yes

# The next two parameters show how to auto-mount a CD-ROM when the
#	cdrom share is accesed. For this to work /etc/fstab must contain
#	an entry like this:
#
#       /dev/scd0   /cdrom  iso9660 defaults,noauto,ro,user   0 0
#
# The CD-ROM gets unmounted automatically after the connection to the
#
# If you don't want to use auto-mounting/unmounting make sure the CD
#	is mounted on /cdrom
#
   preexec = /bin/mount /media/cdrom
   postexec = /bin/umount /media/cdrom




More information about the Pkg-samba-maint mailing list