Error - can not enumerate directory

Get help for specific problems
Posts: 2
Joined: 24 Dec 2006

ggbal

I use FFS to sync between a win7 and a mac (10.9). I run FFS from win7 side. There is a shared directory in Mac which has 442 files. I mapped that directory as Y:. I run FFS. It gave me following error:

Cannot enumerate directory "Y:\".
Error code 58: The specified server cannot perform the requested operations. (FindNextFile)

I tried the direct network mapping as the path. It had the same error. Eventually I figured it out. If I can limit my files in that directory <=97, FFS will go through without any error. As soon as I make it 98, FFS showed that error.

This only happened if I run FFS from win7 side. If I run FFS from Mac side, I don't have any problem.

Is this a bug?
Posts: 3
Joined: 7 Dec 2013

peanutlasko

I have the same problem - running OS 10.9 and Win8 x64
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

I'm not able to reproduce this error between Win 7 x64 and OS X 10.8.2 with an OS X hosted Samba share. The "FindNextFile" is a standard Windows system call, therefore "The specified server cannot perform the requested operations" doesn't make any sense and is the classical misleading error message.

Anyway, I have some faint theory what could be the issue here and implemented a few changes accordingly. Let me know if it works with the following version:
[404, Invalid URL: http://freefilesync.sourceforge.net/FreeFileSync_6.1_beta_Windows_Setup.exe]
If not, does it help if you delete the `bin\FindFilePlus_x64.dll` in the FFS installation folder?
Posts: 2
Joined: 24 Dec 2006

ggbal

tried beta. It didn't work. Still had the same problem.

Deleted dll mentioned. The result was the same.

The interesting thing is that I moved both win32 and x64 dll to a different dir and run FFS, it still got that error.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

tried beta. It didn't work. Still had the same problem.

Deleted dll mentioned. The result was the same.

The interesting thing is that I moved both win32 and x64 dll to a different dir and run FFS, it still got that error.ggbal
In this case, it's not a FFS problem, but a bug in the Samba implementation since FFS's access is as canonical as it can get.
User avatar
Site Admin
Posts: 7211
Joined: 9 Dec 2007

Zenju

I have received the following workaround via email:

Hello Zenju,
Thank you for the FFS, it is a great tool. I have found a solution for this problem:
[[Cannot enumerate directory "Y:\".
Error code 58: The specified server cannot perform the requested operations. (FindNextFile)]]

I do not know how to post it to the page where the problem was reported to you. You are correct and has to do with the SMB. Apple changed the SMB1 to SMB2 in Mavericks, which causes the FFS give that error message mentioned above. The solution reverts the SMB to the old (on windows side) so that the FFS or other sync apps can communicate with the Mac. The "ggbal" who reported the problem is also correct that if the number of files are above certain number it fails. This is bug on the SMB in Mavericks, which we hope apple will correct at some point. here is the solution and also the webpages where i found it:
___________________________
tommi0
Re: Can't connect to SMB share after upgrade
Nov 4, 2013 11:26 PM (in response to Troy Sturgill)
I am using Synctoy on Windows to sync data across multiple Macs, PCs and NAS.
Synctoy fails and runs in "loops" when syncing to a MACOS Maverick machine.

I use this fix on the Windows PC to force SMB1. Start cmd (with admin privilege) and type these 2 commands:

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc.exe config mrxsmb20 start= disabled

Now you need to reboot.

This forces Windows to use SMB1 by disabling SMB2 and higher. It fixed my issue, syncing between MAC and PC works now, slower, but it works...

To revert back to SMB2 and higher use the 2 commands with ... start= auto
on the PC and reboot
__________________________
the webpage is at:
https://discussions.apple.com/thread/5467191?start=30&tstart=0


If you can post this i would appreciate it. Thank you for your kindness and generosity.

With gratitude.
Posts: 1
Joined: 14 Aug 2014

jeff8478

I've been using this excellent software for a long time to backup a PC and a USB drive without any problems. I just bought my wife a MacBook Air and ran into this exact problem when I set things up to backup her stuff. So I used the exact instructions above and got the exact same result - SUCCESS!

sc.exe config lanmanworkstation depend= bowser/mrxsmb10/nsi
sc.exe config mrxsmb20 start= disabled

Thanks very much.