Recently set up more work folder syncs, seemed to work well then tragedy happened and it broke….well it broke for one sync share and all its users:
The Windows Sync Share service failed to setup a new sync partnership with a device. Database: \\?\H:\userfiles\SyncShareState\userfiles\Metadata; User folder name: \\?\H:\USERFILES\WORKFOLDERS\Kev.Man; Error code: (0x80070002) The system cannot find the file specified.
The disks on the server are setup as a cluster, so failed the disks to the second cluster which has worked in the past i.e. force the sync service to start again…no luck.
So next I found a reg setting that will allow Work Folders to support up to 16 Sync Shares per Work Folders server.
The default number of JET databases that can be opened simultaneously is 16 per server.
You can increase the number of JET databases by creating the EseParameterSettings registry value under the following key:
For JET_paramMaxInstances, the maximum value is 1024.
After creating the registry value, restart the Windows Sync Share (SyncShareSvc) service.
This is where I had some more issues. The service just said “Stopping”, so fix this looked at the service and its called “svchost.exe”:
Looking in task managed there’s loads of svchost.exe files so check what the service is running as and then end the task that is accosicated to that user:
Boom, service stopped.
Start it up again…..no luck.
So at this point I was irritated, so I renamed the sync share folder and deleted the syncshare:
Remove-SyncShare -name userfiles
After that I re-created the folder and setup the share, PAYING VERY CLOSE ATTENTION TO THE FOLDER PERMISSIONS!!!
Then created the share:
New-SyncShare -Name "userfiles" -Path "H:\userfiles\workfolders_root" -User "bohemiamgrove\Workfolders Users" -RequireEncryption $false -RequirePasswordAutoLock $false
Well it still wasnt working, so I logged on as one the users and manually created their folder in the share location and all of a sudden it started working….I’m going to test a new user shortly to see if it creates the folders itself.