Web lists-archives.com

[Samba] samba 4.8.0 Time Machine crashes on Mac




Hello,

I've encountered recurring issue with samba crashes when creating initial
Time Machine backup on samba share from Mac. Whole scenario, details about
software and logs are below.

On Mac client: connected to smb share with "valid user" account; added smb
share as Time Machine disk.
Time machine has been set for automatic backup, I've selected Back Up Now.
Connection dies around 20%-30% of initial backup creation, samba share is
still on Finder list and can't be unmounted with an icon from gui. There
are no other Time Machine disks in use.


Server:
Linux debian 4.9.0-6-amd64 #1 SMP Debian 4.9.82-1+deb9u3 (2018-03-02)
x86_64 GNU/Linux
smbd/nmbd Version 4.8.0
Client:
macOS High Sierra
Version 10.13.3 (17D47)

Server:
smb.conf:
[global]
    workgroup = SAMBA
    security = user
    passdb backend = tdbsam
    durable handles = yes
    kernel oplocks = no
    kernel share modes = no
    posix locking = no
    fruit:time machine = yes
    invalid users = root
    encrypt passwords = yes

[TimeMachineD]
    path = /data
    browseable = yes
    fruit:time machine = yes
    vfs objects = catia fruit streams_xattr
    fruit:aapl = yes
    valid users = tmachine
    read only = No
    inherit acls = yes


Expected TimeMachine snapshot: 130GB
Samba share size: 950GB

smbd.log:
[2018/03/21 11:15:13.589109,  0]
../source3/locking/share_mode_lock.c:439(share_mode_data_destructor)
  store returned NT_STATUS_UNSUCCESSFUL
[2018/03/21 11:15:13.589216,  0] ../source3/lib/util.c:815(smb_panic_s3)
  PANIC (pid 933): could not store share mode entry: NT_STATUS_UNSUCCESSFUL
[2018/03/21 11:15:13.590549,  0] ../source3/lib/util.c:926(log_stack_trace)
  BACKTRACE: 43 stack frames:
   #0 /usr/lib/libsmbconf.so.0(log_stack_trace+0x1f) [0x7fc2eab63f65]
   #1 /usr/lib/libsmbconf.so.0(smb_panic_s3+0x6d) [0x7fc2eab63dc2]
   #2 /usr/lib/libsamba-util.so.0(smb_panic+0x28) [0x7fc2ecfd6849]
   #3 /usr/lib/samba/libsmbd-base-samba4.so(+0x26ad44) [0x7fc2ecc31d44]
   #4 /usr/lib/samba/libtalloc.so.2(+0x3414) [0x7fc2ec3b7414]
   #5 /usr/lib/samba/libtalloc.so.2(+0x462e) [0x7fc2ec3b862e]
   #6 /usr/lib/samba/libtalloc.so.2(+0x35cf) [0x7fc2ec3b75cf]
   #7 /usr/lib/samba/libtalloc.so.2(+0x462e) [0x7fc2ec3b862e]
   #8 /usr/lib/samba/libtalloc.so.2(+0x35cf) [0x7fc2ec3b75cf]
   #9 /usr/lib/samba/libtalloc.so.2(+0x3790) [0x7fc2ec3b7790]
   #10 /usr/lib/samba/libtalloc.so.2(_talloc_free+0x105) [0x7fc2ec3b8a58]
   #11 /usr/lib/samba/libsmbd-base-samba4.so(+0x1c3451) [0x7fc2ecb8a451]
   #12 /usr/lib/samba/libsmbd-base-samba4.so(+0x1c67d3) [0x7fc2ecb8d7d3]
   #13 /usr/lib/samba/libsmbd-base-samba4.so(create_file_default+0x2ba)
[0x7fc2ecb8e354]
   #14 /usr/lib/samba/libsmbd-base-samba4.so(+0xf1109) [0x7fc2ecab8109]
   #15 /usr/lib/samba/libsmbd-base-samba4.so(smb_vfs_call_create_file+0xa9)
[0x7fc2ecb9a052]
   #16 /usr/lib/samba/vfs/fruit.so(+0x1585f) [0x7fc2d8f0085f]
   #17 /usr/lib/samba/libsmbd-base-samba4.so(smb_vfs_call_create_file+0xa9)
[0x7fc2ecb9a052]
   #18 /usr/lib/samba/libsmbd-base-samba4.so(+0x216c7b) [0x7fc2ecbddc7b]
   #19
/usr/lib/samba/libsmbd-base-samba4.so(smbd_smb2_request_process_create+0x770)
[0x7fc2ecbdbacb]
   #20
/usr/lib/samba/libsmbd-base-samba4.so(smbd_smb2_request_dispatch+0x1184)
[0x7fc2ecbcf8d0]
   #21 /usr/lib/samba/libsmbd-base-samba4.so(+0x20c8c6) [0x7fc2ecbd38c6]
   #22 /usr/lib/samba/libsmbd-base-samba4.so(+0x20c9cc) [0x7fc2ecbd39cc]
   #23 /usr/lib/samba/libtevent.so.0(+0xe581) [0x7fc2ebfac581]
   #24 /usr/lib/samba/libtevent.so.0(+0xebb9) [0x7fc2ebfacbb9]
   #25 /usr/lib/samba/libtevent.so.0(+0xb8b5) [0x7fc2ebfa98b5]
   #26 /usr/lib/samba/libtevent.so.0(_tevent_loop_once+0x10f)
[0x7fc2ebfa3191]
   #27 /usr/lib/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7fc2ebfa34a8]
   #28 /usr/lib/samba/libtevent.so.0(+0xb957) [0x7fc2ebfa9957]
   #29 /usr/lib/samba/libtevent.so.0(_tevent_loop_wait+0x2b)
[0x7fc2ebfa354b]
   #30 /usr/lib/samba/libsmbd-base-samba4.so(smbd_process+0xb34)
[0x7fc2ecbb7a2f]
   #31 /usr/sbin/smbd(+0xbdf9) [0x5630c47dbdf9]
   #32 /usr/lib/samba/libtevent.so.0(+0xe581) [0x7fc2ebfac581]
   #33 /usr/lib/samba/libtevent.so.0(+0xebb9) [0x7fc2ebfacbb9]
   #34 /usr/lib/samba/libtevent.so.0(+0xb8b5) [0x7fc2ebfa98b5]
   #35 /usr/lib/samba/libtevent.so.0(_tevent_loop_once+0x10f)
[0x7fc2ebfa3191]
   #36 /usr/lib/samba/libtevent.so.0(tevent_common_loop_wait+0x25)
[0x7fc2ebfa34a8]
   #37 /usr/lib/samba/libtevent.so.0(+0xb957) [0x7fc2ebfa9957]
   #38 /usr/lib/samba/libtevent.so.0(_tevent_loop_wait+0x2b)
[0x7fc2ebfa354b]
   #39 /usr/sbin/smbd(+0xcad7) [0x5630c47dcad7]
   #40 /usr/sbin/smbd(main+0x189e) [0x5630c47dec64]
   #41 /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xf1)
[0x7fc2e92012e1]
   #42 /usr/sbin/smbd(_start+0x2a) [0x5630c47d5e0a]
[2018/03/21 11:15:13.591273,  0] ../source3/lib/dumpcore.c:315(dump_core)
  dumping core in /var/log/samba/cores/smbd

Client:
system.log
Mar 21 11:15:13 mac KernelEventAgent[128]: tid 54485244 received event(s)
VQ_DEAD (32)
Mar 21 11:15:13 mac KernelEventAgent[128]: tid 54485244 type 'smbfs',
mounted on '/Volumes/TimeMachineD-1', from '//
tmachine@192.168.233.10/TimeMachineD', dead
Mar 21 11:15:13 mac KernelEventAgent[128]: tid 54485244 force unmount //
tmachine@192.168.233.10/TimeMachineD from /Volumes/TimeMachineD-1
Mar 21 11:15:13 mac KernelEventAgent[128]: tid 54485244 found 1
filesystem(s) with problem(s)
Mar 21 11:15:14 mac kcm[7349]: DEPRECATED USE in libdispatch client:
Setting timer interval to 0 requests a 1ns timer, did you mean FOREVER (a
one-shot timer)?
Mar 21 11:15:15 mac KernelEventAgent[128]: tid 54485244 received event(s)
VQ_LOWDISK, VQ_VERYLOWDISK, VQ_NEARLOWDISK (8708)
Mar 21 11:15:15 mac KernelEventAgent[128]: tid 54485244 type 'hfs', mounted
on '/Volumes/Time Machine Backups', from '/dev/disk2s2', low disk, very low
disk
Mar 21 11:15:16 mac com.apple.xpc.launchd[1]
(com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for
integer: _DirtyJetsamMemoryLimit
Mar 21 11:15:16 mac CacheDeleteExtension[7354]: objc[7354]: Class
AMSupportURLConnectionDelegate is implemented in both
/System/Library/PrivateFrameworks/EmbeddedOSInstall.framework/Versions/A/EmbeddedOSInstall
(0x7fff9a79d748) and
/System/Library/PrivateFrameworks/MobileDevice.framework/Versions/A/MobileDevice
(0x1060c50d0). One of the two will be used. Which one is undefined.
Mar 21 11:15:16 mac com.apple.xpc.launchd[1]
(com.apple.imfoundation.IMRemoteURLConnectionAgent): Unknown key for
integer: _DirtyJetsamMemoryLimit
Mar 21 11:15:16 mac com.apple.xpc.launchd[1] (com.apple.quicklook[7356]):
Endpoint has been activated through legacy launch(3) APIs. Please switch to
XPC or bootstrap_check_in(): com.apple.quicklook
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba