[Samba] share creates core-dump
Stefan Kania
stefan at kania-online.de
Thu May 20 11:47:44 UTC 2021
Hi to all,
I have a Proplem with a CTDB-Cluster with GlusterFS. Several times users
cant access there profile. When I take a look at the directory, there is
a core-file. As soon as I delete the core-files with:
find /glusterfs -name core -type f -exec rm -rv {} \;
everything is working again.
I see the following messages in the log:
---------------------
===============================================================
[2021/05/20 05:48:47.308898, 0] ../../lib/util/fault.c:170(smb_panic_log)
PANIC (pid 3133648): unable to get back to old directory
in 4.13.7-SerNet-Ubuntu-11.focal
[2021/05/20 05:48:47.385760, 0] ../../lib/util/fault.c:274(log_stack_trace)
BACKTRACE: 33 stack frames:
#0
/usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(log_stack_trace+0x34)
[0x7f6059d71c59]
#1
/usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(smb_panic_log+0x5f)
[0x7f6059d71d8f]
#2 /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(smb_panic+0x27)
[0x7f6059d71ef5]
#3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1ab6aa)
[0x7f6059ba16aa]
#4
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(fd_open+0x67)
[0x7f6059ba2a6d]
#5
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(fd_openat+0x88)
[0x7f6059ba2cc8]
#6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1ad62a)
[0x7f6059ba362a]
#7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1b2531)
[0x7f6059ba8531]
#8
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(create_file_default+0x32f)
[0x7f6059baa7c6]
#9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x144e27)
[0x7f6059b3ae27]
#10
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smb_vfs_call_create_file+0x74)
[0x7f6059bb150d]
#11
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_smb2_request_process_create+0x1156)
[0x7f6059be4d3a]
#12
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_smb2_request_dispatch+0x14fd)
[0x7f6059bd9d61]
#13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1e5b80)
[0x7f6059bdbb80]
#14
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_invoke_fd_handler+0x85)
[0x7f60599d850d]
#15 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xdcd4)
[0x7f60599decd4]
#16 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb8af)
[0x7f60599dc8af]
#17
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_once+0xa6)
[0x7f60599d7cd0]
#18
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7f60599d7ed7]
#19 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb859)
[0x7f60599dc859]
#20
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_wait+0xe)
[0x7f60599d7f37]
#21
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_process+0x9af)
[0x7f6059bc809c]
#22 /usr/sbin/smbd(+0xdf97) [0x559603ddef97]
#23
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_invoke_fd_handler+0x85)
[0x7f60599d850d]
#24 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xdcd4)
[0x7f60599decd4]
#25 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb8af)
[0x7f60599dc8af]
#26
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_once+0xa6)
[0x7f60599d7cd0]
#27
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7f60599d7ed7]
#28 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb859)
[0x7f60599dc859]
#29
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_wait+0xe)
[0x7f60599d7f37]
#30 /usr/sbin/smbd(main+0x1973) [0x559603de0a8c]
#31 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
[0x7f60593180b3]
#32 /usr/sbin/smbd(_start+0x2e) [0x559603dd90ce]
[2021/05/20 05:48:47.386307, 0] ../../source3/lib/util.c:838(smb_panic_s3)
smb_panic(): calling panic action
[/usr/share/samba/scripts/panic-action 3133648]
mail: cannot stat `/glusterfs/home/w008_/.mail': Permission denied
mail: Cannot open `/glusterfs/home/w008_/.mailrc': Permission denied
[2021/05/20 05:48:47.609018, 0] ../../source3/lib/util.c:845(smb_panic_s3)
smb_panic(): action returned status 0
[2021/05/20 05:48:47.609126, 0] ../../source3/lib/dumpcore.c:317(dump_core)
coredump is handled by helper binary specified at
/proc/sys/kernel/core_pattern
[2021/05/20 05:48:48.609979, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=202296, gid=100515, 5 groups:
202296 100515 10003 10004 10006
[2021/05/20 05:49:21.701302, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=203773, gid=100515, 5 groups:
203773 100515 10003 10004 10006
[2021/05/20 05:50:26.390966, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/allg_verkauf)
failed: Permission denied. Current token: uid=103036, gid=100513, 7
groups: 103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:50:26.391469, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/cad) failed:
Permission denied. Current token: uid=103036, gid=100513, 7 groups:
103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:50:26.391711, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/e_technik)
failed: Permission denied. Current token: uid=103036, gid=100513, 7
groups: 103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:50:26.392287, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/entwicklung)
failed: Permission denied. Current token: uid=103036, gid=100513, 7
groups: 103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:50:26.392680, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/qm) failed:
Permission denied. Current token: uid=103036, gid=100513, 7 groups:
103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:50:26.392941, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/admin-share/install)
failed: Permission denied. Current token: uid=103036, gid=100513, 7
groups: 103036 100513 107007 10003 10004 10006 10001
[2021/05/20 05:54:24.841494, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=203293, gid=100515, 5 groups:
203293 100515 10003 10004 10006
[2021/05/20 05:54:24.843205, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=203293, gid=100515, 5 groups:
203293 100515 10003 10004 10006
[2021/05/20 06:15:22.372151, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/home) failed: Permission
denied. Current token: uid=203290, gid=100515, 5 groups: 203290 100515
10003 10004 10006
[2021/05/20 06:15:22.372634, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/home) failed: Permission
denied. Current token: uid=203290, gid=100515, 5 groups: 203290 100515
10003 10004 10006
[2021/05/20 06:15:22.410049, 0] ../../lib/util/fault.c:159(smb_panic_log)
===============================================================
[2021/05/20 06:15:22.410132, 0] ../../lib/util/fault.c:160(smb_panic_log)
INTERNAL ERROR: unable to get back to old directory
in pid 3144131 (4.13.7-SerNet-Ubuntu-11.focal)
[2021/05/20 06:15:22.410189, 0] ../../lib/util/fault.c:164(smb_panic_log)
If you are running a recent Samba version, and if you think this
problem is not yet fixed in the latest versions, please consider
reporting this bug, see https://wiki.samba.org/index.php/Bug_Reporting
[2021/05/20 06:15:22.410225, 0] ../../lib/util/fault.c:169(smb_panic_log)
===============================================================
[2021/05/20 06:35:46.178550, 0] ../../lib/util/fault.c:170(smb_panic_log)
PANIC (pid 3152237): unable to get back to old directory
in 4.13.7-SerNet-Ubuntu-11.focal
[2021/05/20 06:35:46.179395, 0] ../../lib/util/fault.c:274(log_stack_trace)
BACKTRACE: 33 stack frames:
#0
/usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(log_stack_trace+0x34)
[0x7f6059d71c59]
#1
/usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(smb_panic_log+0x5f)
[0x7f6059d71d8f]
#2 /usr/lib/x86_64-linux-gnu/samba/libsamba-util.so.0(smb_panic+0x27)
[0x7f6059d71ef5]
#3 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1ab6aa)
[0x7f6059ba16aa]
#4
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(fd_open+0x67)
[0x7f6059ba2a6d]
#5
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(fd_openat+0x88)
[0x7f6059ba2cc8]
#6 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1ad62a)
[0x7f6059ba362a]
#7 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1b2531)
[0x7f6059ba8531]
#8
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(create_file_default+0x32f)
[0x7f6059baa7c6]
#9 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x144e27)
[0x7f6059b3ae27]
#10
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smb_vfs_call_create_file+0x74)
[0x7f6059bb150d]
#11
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_smb2_request_process_create+0x1156)
[0x7f6059be4d3a]
#12
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_smb2_request_dispatch+0x14fd)
[0x7f6059bd9d61]
#13 /usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(+0x1e5b80)
[0x7f6059bdbb80]
#14
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_invoke_fd_handler+0x85)
[0x7f60599d850d]
#15 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xdcd4)
[0x7f60599decd4]
#16 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb8af)
[0x7f60599dc8af]
#17
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_once+0xa6)
[0x7f60599d7cd0]
#18
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7f60599d7ed7]
#19 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb859)
[0x7f60599dc859]
#20
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_wait+0xe)
[0x7f60599d7f37]
#21
/usr/lib/x86_64-linux-gnu/samba/libsmbd-base-samba4.so(smbd_process+0x9af)
[0x7f6059bc809c]
#22 /usr/sbin/smbd(+0xdf97) [0x559603ddef97]
#23
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_invoke_fd_handler+0x85)
[0x7f60599d850d]
#24 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xdcd4)
[0x7f60599decd4]
#25 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb8af)
[0x7f60599dc8af]
#26
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_once+0xa6)
[0x7f60599d7cd0]
#27
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7f60599d7ed7]
#28 /usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(+0xb859)
[0x7f60599dc859]
#29
/usr/lib/x86_64-linux-gnu/samba/libtevent.so.0(_tevent_loop_wait+0xe)
[0x7f60599d7f37]
#30 /usr/sbin/smbd(main+0x1973) [0x559603de0a8c]
#31 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf3)
[0x7f60593180b3]
#32 /usr/sbin/smbd(_start+0x2e) [0x559603dd90ce]
[2021/05/20 06:35:46.179923, 0] ../../source3/lib/util.c:838(smb_panic_s3)
smb_panic(): calling panic action
[/usr/share/samba/scripts/panic-action 3152237]
mail: cannot stat `/glusterfs/home/w141_/.mail': Permission denied
mail: Cannot open `/glusterfs/home/w141_/.mailrc': Permission denied
[2021/05/20 06:35:46.301704, 0] ../../source3/lib/util.c:845(smb_panic_s3)
smb_panic(): action returned status 0
[2021/05/20 06:35:46.301833, 0] ../../source3/lib/dumpcore.c:317(dump_core)
coredump is handled by helper binary specified at
/proc/sys/kernel/core_pattern
[2021/05/20 06:35:47.104243, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=203302, gid=100515, 5 groups:
203302 100515 10003 10004 10006
[2021/05/20 06:40:41.021829, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/home) failed: Permission
denied. Current token: uid=203285, gid=100515, 5 groups: 203285 100515
10003 10004 10006
[2021/05/20 06:53:13.351134, 0]
../../source3/smbd/service.c:166(chdir_current_service)
chdir_current_service: vfs_ChDir(/glusterfs/profiles) failed:
Permission denied. Current token: uid=203778, gid=100515, 5 groups:
203778 100515 10003 10004 10006
[2021/05/20 06:54:06.087034, 0] ../../lib/util/fault.c:159(smb_panic_log)
---------------------
As you can see in thr look it's a 4.13.7 from Sernet. Here is the smb.conf.
--------------
global]
workgroup = NTD
realm = NTD.TEST
netbios name = fs1
security = ads
winbind use default domain = yes
winbind refresh tickets = yes
idmap config * : range = 10000-19999
idmap config NTD : backend = rid
idmap config NTD : range = 100000-199999999999999
inherit acls = yes
vfs objects = acl_xattr
template homedir = /glusterfs/home/%U
[profiles]
comment = Benutzerprofile
read only = no
browseable = no
path = /glusterfs/profiles
vfs objects = acl_xattr glusterfs_fuse
[users]
comment = Basisverzeichnisse
path = /glusterfs/home
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
browseable = no
read only = no
shadow:snapdir = /glusterfs/home/.snaps
shadow:basedir = /glusterfs/home
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[admin-share]
comment = Nur fuer admins
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share
shadow:snapdir = /glusterfs/admin-share/.snaps
shadow:basedir = /glusterfs/admin-share
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[allg_werk]
comment = Qualitaetsmanegement
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/allg_werk
shadow:snapdir = /glusterfs/admin-share/allg_werk/.snaps
shadow:basedir = /glusterfs/admin-share/allg_werk
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[allg_verkauf]
comment = Qualitaetsmanegement
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/allg_verkauf
shadow:snapdir = /glusterfs/admin-share/allg_verkauf/.snaps
shadow:basedir = /glusterfs/admin-share/allg_verkauf
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[install]
comment = Installationsfreigabe
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/install
shadow:snapdir = /glusterfs/admin-share/install/.snaps
shadow:basedir = /glusterfs/admin-share/install
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[e_technik]
comment = E-Technik
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/e_technik
shadow:snapdir = /glusterfs/admin-share/e_technik/.snaps
shadow:basedir = /glusterfs/admin-share/e_technik
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[entwicklung]
comment = Entwicklung
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/entwicklung
shadow:snapdir = /glusterfs/admin-share/entwicklung/.snaps
shadow:basedir = /glusterfs/admin-share/entwicklung
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[vorlagen]
comment = Vorlagen
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/vorlagen
shadow:snapdir = /glusterfs/admin-share/vorlagen/.snaps
shadow:basedir = /glusterfs/admin-share/vorlagen
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[qm]
comment = Qualitaetsmanegement
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/qm
shadow:snapdir = /glusterfs/admin-share/qm/.snaps
shadow:basedir = /glusterfs/admin-share/qm
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[bilder_werk]
comment = Bilder Werk
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/bilder_werk
shadow:snapdir = /glusterfs/admin-share/bilder_werk/.snaps
shadow:basedir = /glusterfs/admin-share/bilder_werk
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[bilder_verkauf]
comment = Bilder Verkauf
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/bilder_verkauf
shadow:snapdir = /glusterfs/admin-share/bilder_verkauf/.snaps
shadow:basedir = /glusterfs/admin-share/bilder_verkauf
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[daten_access]
comment = Daten Access
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/daten_access
shadow:snapdir = /glusterfs/admin-share/daten_access/.snaps
shadow:basedir = /glusterfs/admin-share/daten_access
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
[cad]
comment = Daten CAD
guest ok = no
read only = no
vfs objects = acl_xattr shadow_copy2 glusterfs_fuse
path = /glusterfs/admin-share/cad
shadow:snapdir = /glusterfs/admin-share/cad/.snaps
shadow:basedir = /glusterfs/admin-share/cad
shadow:sort = desc
shadow:snapprefix = ^s[A-Za-z0-9]*p1$
shadow:format = _GMT-%Y.%m.%d-%H.%M.%S
--------------
Any idea?
More information about the samba
mailing list