Jump to content
  • [6.12.10] SMB issues when backing up files


    Jclendineng
    • Closed Minor

    Any time I try backing up files from my phone to a SMB share in Unraid it crashes SMB with the bellow error.  I have a stock SMB config, no changes. I create a public share, I mount it on my phone, and start backing up, it will crash very soon after.

     

    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448308,  0] ../../source3/smbd/fd_handle.c:39(fd_handle_destructor)
    May 16 22:59:05 Unraid smbd[30964]:   PANIC: assert failed at ../../source3/smbd/fd_handle.c(39): (fh->fd == -1) || (fh->fd == AT_FDCWD)
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448327,  0] ../../lib/util/fault.c:173(smb_panic_log)
    May 16 22:59:05 Unraid smbd[30964]:   ===============================================================
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448336,  0] ../../lib/util/fault.c:174(smb_panic_log)
    May 16 22:59:05 Unraid smbd[30964]:   INTERNAL ERROR: assert failed: (fh->fd == -1) || (fh->fd == AT_FDCWD) in pid 30964 (4.17.12)
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448340,  0] ../../lib/util/fault.c:178(smb_panic_log)
    May 16 22:59:05 Unraid smbd[30964]:   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
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448344,  0] ../../lib/util/fault.c:183(smb_panic_log)
    May 16 22:59:05 Unraid smbd[30964]:   ===============================================================
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448348,  0] ../../lib/util/fault.c:184(smb_panic_log)
    May 16 22:59:05 Unraid smbd[30964]:   PANIC (pid 30964): assert failed: (fh->fd == -1) || (fh->fd == AT_FDCWD) in 4.17.12
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448463,  0] ../../lib/util/fault.c:292(log_stack_trace)
    May 16 22:59:05 Unraid smbd[30964]:   BACKTRACE: 27 stack frames:
    May 16 22:59:05 Unraid smbd[30964]:    #0 /usr/lib64/libgenrand-samba4.so(log_stack_trace+0x2e) [0x1554b665d64e]
    May 16 22:59:05 Unraid smbd[30964]:    #1 /usr/lib64/libgenrand-samba4.so(smb_panic+0x9) [0x1554b665d8a9]
    May 16 22:59:05 Unraid smbd[30964]:    #2 /usr/lib64/libsmbd-base-samba4.so(+0x4d0fb) [0x1554b6a3f0fb]
    May 16 22:59:05 Unraid smbd[30964]:    #3 /usr/lib64/libtalloc.so.2(+0x44df) [0x1554b660c4df]
    May 16 22:59:05 Unraid smbd[30964]:    #4 /usr/lib64/libsmbd-base-samba4.so(file_free+0xd6) [0x1554b6a4c266]
    May 16 22:59:05 Unraid smbd[30964]:    #5 /usr/lib64/libsmbd-base-samba4.so(+0xc0781) [0x1554b6ab2781]
    May 16 22:59:05 Unraid smbd[30964]:    #6 /usr/lib64/libsmbd-base-samba4.so(smbd_smb2_request_process_close+0x211) [0x1554b6ab2f01]
    May 16 22:59:05 Unraid smbd[30964]:    #7 /usr/lib64/libsmbd-base-samba4.so(smbd_smb2_request_dispatch+0xdfa) [0x1554b6aa6bfa]
    May 16 22:59:05 Unraid smbd[30964]:    #8 /usr/lib64/libsmbd-base-samba4.so(+0xb5bc1) [0x1554b6aa7bc1]
    May 16 22:59:05 Unraid smbd[30964]:    #9 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x1554b661f8c1]
    May 16 22:59:05 Unraid smbd[30964]:    #10 /usr/lib64/libtevent.so.0(+0xee07) [0x1554b6625e07]
    May 16 22:59:05 Unraid smbd[30964]:    #11 /usr/lib64/libtevent.so.0(+0xcef7) [0x1554b6623ef7]
    May 16 22:59:05 Unraid smbd[30964]:    #12 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1554b661eba1]
    May 16 22:59:05 Unraid smbd[30964]:    #13 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1554b661ee7b]
    May 16 22:59:05 Unraid smbd[30964]:    #14 /usr/lib64/libtevent.so.0(+0xce97) [0x1554b6623e97]
    May 16 22:59:05 Unraid smbd[30964]:    #15 /usr/lib64/libsmbd-base-samba4.so(smbd_process+0x817) [0x1554b6a95be7]
    May 16 22:59:05 Unraid smbd[30964]:    #16 /usr/sbin/smbd(+0xb090) [0x556c16c06090]
    May 16 22:59:05 Unraid smbd[30964]:    #17 /usr/lib64/libtevent.so.0(tevent_common_invoke_fd_handler+0x91) [0x1554b661f8c1]
    May 16 22:59:05 Unraid smbd[30964]:    #18 /usr/lib64/libtevent.so.0(+0xee07) [0x1554b6625e07]
    May 16 22:59:05 Unraid smbd[30964]:    #19 /usr/lib64/libtevent.so.0(+0xcef7) [0x1554b6623ef7]
    May 16 22:59:05 Unraid smbd[30964]:    #20 /usr/lib64/libtevent.so.0(_tevent_loop_once+0x91) [0x1554b661eba1]
    May 16 22:59:05 Unraid smbd[30964]:    #21 /usr/lib64/libtevent.so.0(tevent_common_loop_wait+0x1b) [0x1554b661ee7b]
    May 16 22:59:05 Unraid smbd[30964]:    #22 /usr/lib64/libtevent.so.0(+0xce97) [0x1554b6623e97]
    May 16 22:59:05 Unraid smbd[30964]:    #23 /usr/sbin/smbd(main+0x1489) [0x556c16c03259]
    May 16 22:59:05 Unraid smbd[30964]:    #24 /lib64/libc.so.6(+0x236b7) [0x1554b64276b7]
    May 16 22:59:05 Unraid smbd[30964]:    #25 /lib64/libc.so.6(__libc_start_main+0x85) [0x1554b6427775]
    May 16 22:59:05 Unraid smbd[30964]:    #26 /usr/sbin/smbd(_start+0x21) [0x556c16c03b31]
    May 16 22:59:05 Unraid smbd[30964]: [2024/05/16 22:59:05.448514,  0] ../../source3/lib/dumpcore.c:315(dump_core)
    May 16 22:59:05 Unraid smbd[30964]:   dumping core in /var/log/samba/cores/smbd




    User Feedback

    Recommended Comments

    5 hours ago, JorgeB said:

    Do you see the same if you use a a disk share, or an exclusive share?

    Let me try that, I have not tried as exclusive share!

    Link to comment
    1 hour ago, Jclendineng said:

    Let me try that, I have not tried as exclusive share!

     

    6 hours ago, JorgeB said:

    Do you see the same if you use a a disk share, or an exclusive share?

    That seems to have worked. Thank you!

     

    I was also diagnosing a Time Machine issue but all my smb configs were stock so I followed the instructions in the MacOS thread and it seems to work on latest OS version.  For easier searches:

    smb-fruit: (Only changed values listed)

    vfs objects = catia fruit streams_xattr
    fruit:metadata = stream
    fruit:encoding = native
    fruit:posix_rename = yes
    readdir_attr:aapl_rsize = no
    readdir_attr:aapl_finder_info = no
    readdir_attr:aapl_max_access = no
    spotlight = yes

    smb-extra:

    [global]
       spotlight backend = tracker
       fruit:metadata = stream
       fruit:model = MacSamba
       fruit:posix_rename = yes 
       fruit:veto_appledouble = no
       fruit:nfs_aces = no
       fruit:wipe_intentionally_left_blank_rfork = yes 
       fruit:delete_empty_adfiles = yes 

    • Like 1
    Link to comment


    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.
    Note: Your post will require moderator approval before it will be visible.

    Guest
    Add a comment...

    ×   Pasted as rich text.   Restore formatting

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.


  • Status Definitions

     

    Open = Under consideration.

     

    Solved = The issue has been resolved.

     

    Solved version = The issue has been resolved in the indicated release version.

     

    Closed = Feedback or opinion better posted on our forum for discussion. Also for reports we cannot reproduce or need more information. In this case just add a comment and we will review it again.

     

    Retest = Please retest in latest release.


    Priority Definitions

     

    Minor = Something not working correctly.

     

    Urgent = Server crash, data loss, or other showstopper.

     

    Annoyance = Doesn't affect functionality but should be fixed.

     

    Other = Announcement or other non-issue.

×
×
  • Create New...