Macs can't lock files on UCS 4.2.x


#1

I’ve been having a problem where some applications (like Google Chrome) cannot lock files on the network home folder when hosted over SMB. It affects macOS versions 10.10 through 10.13

I have tried setting locking on/off as well as trying out kernel locks, oplocks, and level 2 oplocks and posix locking is set to yes. The default locking has also been toggled to auto, yes, and no and it has not affected this error in the slightest. Client side caching has been enabled and disabled to no effect. Yes, Samba was restarted after each config change. Also of note VFS_Fruit, catia, and ea support were enabled for the network home shares to make them more compatible with Apple’s SMBX implementation. That has helped a little in general Finder related woes but file locking is my last thing to fix.

Any help would be greatly appreciated.

This is the share configuration for the Network Home location on the UCS server.

[users]
path = /users
vfs objects = acl_xattr catia fruit streams_xattr
msdfs root = no
writeable = yes
browseable = no
public = no
dos filemode = yes
hide unreadable = no
create mode = 0744
directory mode = 0755
force create mode = 00
force directory mode = 00
locking = 1
blocking locks = 0
strict locking = Auto
oplocks = 0
level2 oplocks = 0
fake oplocks = 0
csc policy = disable
nt acl support = 0
inherit acls = 0
inherit owner = yes
inherit permissions = no
fruit:resource = file
fruit:metadata = netatalk
fruit:locking = netatalk
fruit:encoding = native
ea support = yes
posix locking = yes

These are the errors Chrome throws when it can’t lock.

$ /Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --enable-local-sync-backend
GVA info: Successfully connected to the Intel plugin, offline Gen75 
2017-12-11 12:37:19.871 Google Chrome[12716:2094462] *** Owner supplied to -[NSTrackingArea initWithRect:options:owner:userInfo:] referenced a deallocating object. Tracking area behavior is undefined. Break on NSTrackingAreaDeallocatingOwnerError to debug.
[12716:28675:1211/123720.135398:ERROR:component_installer.cc(309)] Failed to read manifest or verify installation for Signed Tree Heads (/home/myusername/Library/Application Support/Google/Chrome/CertificateTransparency/592).: No such file or directory (2)
[12716:29187:1211/123720.732539:ERROR:data_store_impl.cc(130)] Failed to open Data Reduction Proxy DB: 3
[12716:29443:1211/123721.824711:ERROR:gcm_store_impl.cc(309)] Failed to open database /home/myusername/Library/Application Support/Google/Chrome/Default/GCM Store: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/GCM Store/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:29443:1211/123722.831298:ERROR:gcm_store_impl.cc(419)] Destroy failed: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/GCM Store/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:86531:1211/123722.831372:ERROR:gcm_client_impl.cc(828)] Failed to reset GCM store
[12716:775:1211/123728.367878:ERROR:device_info_sync_bridge.cc(344)] Device Info datatype error was encountered: ModelTypeStore creation failed.
[12716:56835:1211/123728.835967:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:775:1211/123729.381335:ERROR:user_event_sync_bridge.cc(203)] User Events datatype error was encountered: ModelTypeStore creation failed.
[12716:33027:1211/123729.627595:ERROR:leveldb_database.cc(311)] Failed to open LevelDB database from /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_drive.google.com_0.indexeddb.leveldb,IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_drive.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:33027:1211/123729.627838:ERROR:indexed_db_backing_store.cc(951)] Unable to open backing store, not trying to recover - IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_drive.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:56835:1211/123729.912741:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:86531:1211/123729.949246:ERROR:service_manager_context.cc(201)] Attempting to run unsupported native service: /Applications/Google Chrome.app/Contents/Versions/63.0.3239.84/Google Chrome Framework.framework/Versions/A/content_utility.service
[12716:56835:1211/123731.449729:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:86531:1211/123731.546337:ERROR:service_manager.cc(157)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface: blink::mojom::ReportingServiceProxy exposed by: content_browser
[12716:56835:1211/123732.519475:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:56835:1211/123733.545524:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:86531:1211/123734.202799:ERROR:service_manager.cc(157)] Connection InterfaceProviderSpec prevented service: content_renderer from binding interface: blink::mojom::ReportingServiceProxy exposed by: content_browser
[12716:56835:1211/123734.610887:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:72963:1211/123734.984778:ERROR:leveldb_database.cc(311)] Failed to open LevelDB database from /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb,IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:72963:1211/123734.984994:ERROR:indexed_db_backing_store.cc(951)] Unable to open backing store, not trying to recover - IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:72963:1211/123736.004183:ERROR:leveldb_database.cc(311)] Failed to open LevelDB database from /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb,IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:72963:1211/123736.004384:ERROR:indexed_db_backing_store.cc(951)] Unable to open backing store, not trying to recover - IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/IndexedDB/https_docs.google.com_0.indexeddb.leveldb/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:56835:1211/123736.831193:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)
[12716:56835:1211/123737.899585:ERROR:sandbox_origin_database.cc(195)] SandboxOriginDatabase failed at: Init@../../storage/browser/fileapi/sandbox_origin_database.cc:94 with error: IO error: /home/myusername/Library/Application Support/Google/Chrome/Default/File System/Origins/LOCK: No further details. (ChromeMethodBFE: 15::LockFile::1)