Finder hangs on some SMB shares, requires force restart

We're seeing the same problem described here: https://discussions.apple.com/thread/250972230


Accessing some SMB shares Finder hangs. Force quitting Finder leaves a zombie process which prevents the machine from being restarted.


It's only with some Samba shares but it's reproducible on multiple Macs - both on Wifi and Ethernet. The Macs are all running 10.15.7.


Force quitting Finder leaves it in state "?E" - "The process is trying to exit"


$ ps ax | grep Finder
 1225   ??  ?E     0:00.00 (Finder)



Posted on Oct 28, 2020 9:26 AM

Reply
Question marked as Top-ranking reply

Posted on Dec 14, 2020 7:39 PM

Hi Andy Armstrong, is your SMB share running on a server with Samba? This may be related to a known bug where 0 bytes files are created and the connection to the share stops working. To fix this you have to explicitly set "fruit:zerofileid = yes" in your smb.conf even though it's supposed to be on by default (See https://bugzilla.samba.org/show_bug.cgi?id=14420). Make sure you have the Samba best practices for working with macOS configured (https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X).

6 replies
Question marked as Top-ranking reply

Dec 14, 2020 7:39 PM in response to Andy Armstrong

Hi Andy Armstrong, is your SMB share running on a server with Samba? This may be related to a known bug where 0 bytes files are created and the connection to the share stops working. To fix this you have to explicitly set "fruit:zerofileid = yes" in your smb.conf even though it's supposed to be on by default (See https://bugzilla.samba.org/show_bug.cgi?id=14420). Make sure you have the Samba best practices for working with macOS configured (https://wiki.samba.org/index.php/Configure_Samba_to_Work_Better_with_Mac_OS_X).

Dec 15, 2020 4:56 AM in response to Ben---

Ah - thank you very much!


The servers are running Ubuntu 18.04 with the packaged samba. I'd completely missed the best practices for OS X.


I've applied all the settings recommended by the best practices plus fruit:zerofield = yes:


# OSX client stuff

  vfs objects = fruit streams_xattr

  fruit:zerofileid = yes
  fruit:metadata = stream
  fruit:model = MacSamba
  fruit:veto_appledouble = no
  fruit:posix_rename = yes
  fruit:zero_file_id = yes
  fruit:wipe_intentionally_left_blank_rfork = yes
  fruit:delete_empty_adfiles = yes

So far it appears to have worked. Thanks again.

Nov 1, 2020 1:46 PM in response to Andy Armstrong

Hi Andy Armstrong,


It sounds like you are experiencing issues with Finder freezing while you are trying to access files. We can get you pointed in the right direction for support.


Just to make sure we're on the same page, did you get a chance to complete all the recommendations previously mentioned on the discussion? If not, we'd recommend starting there.


If you continue to experience issues, we'd recommend contacting us directly for further assistance. You can reach out here: Get Support


Take care!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Finder hangs on some SMB shares, requires force restart

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.