openzfsonosx / zfs

OpenZFS on OS X
https://openzfsonosx.org/
Other
824 stars 72 forks source link

Notability iCloud sync unable to turn on #309

Open kenthinson opened 9 years ago

kenthinson commented 9 years ago

Hello. I am unable to turn on Notability iCloud sync when my home folder is on ZFS. When it is on HFS it works fine. I get the error. iCloud isn't Responding. Notability couldn't turn iCloud on because iCloud is taking too long to reply. Please restart your iMac. However restarting does not resolve the issue.

screen shot 2015-05-14 at 12 50 52 am

brendonhumphrey commented 9 years ago

Please provide configuration, o3x version etc etc. Not enough information supplied.

ilovezfs commented 9 years ago

Please give this version a try: https://www.dropbox.com/s/n9k9a07yng2x0nh/kenthinson.pkg It's the current HEAD of spl (openzfsonosx/spl@54857586823c75d4df389f952b6993738d407a6e) and of zfs (e8725c3149091cf8e50596482d0ad5094135141e).

kenthinson commented 9 years ago

Ok sorry here is more information. I was running the newest master using the compile instructions on the wiki. This allowed iCloud drive to log in and I was able to save with text edit to it. However, I was unable to activate iCloud drive for Notability.

I uninstalled the build I had made and installed the pkg provided. Now I am unable to access iCloud drive with any app.

Attached is a screen shot of how it looks now that I am running the pkg. It's turned on but thinks it needs to be upgraded however I have already upgraded my account to iCloud drive. screen shot 2015-05-14 at 1 49 05 pm

kenthinson commented 9 years ago

I have uninstalled the pkg file provided and reinstalled from source using wiki instructions. Now I get this: screen shot 2015-05-14 at 1 59 47 pm

As you can see I am able to actually use iCloud drive now. However not with all apps just some.

ilovezfs commented 9 years ago

With your own source install re-installed, what is the output of

sysctl -a | grep kext_
kenthinson commented 9 years ago

spl.kext_version: 1.3.1-12_g5485758 zfs.kext_version: 1.3.1-24_ge8725c3

brendonhumphrey commented 9 years ago

have you ever managed to have iCloud drive share files into the cloud.

kenthinson commented 9 years ago

@brendonhumphrey Great question. In fact I had not tested it on HFS in awhile even though I knew it worked. So i created a new user on HFS too see if it would sync all the same data. I dont usually use the "drive" feature in finder I use other iCloud enabled apps like notability so I had to look in Mobile Documents with terminal to see what was syncing. The HFS volume showed alot of iCloud data. The ZFS user shows very little data. If i had to guess none of the data on the ZFS user was actually pulled down from iCloud instead it was created by the account.

So long story short no it seems I can place documents in the "iCloud Drive" but nothing is syncing when on ZFS.

brendonhumphrey commented 9 years ago

Thats consistent with what I have observed.

I appear to be able to sync photos, notes, maybe some other things, but thats about it.

On 16 May 2015, at 5:24 pm, kenthinson notifications@github.com wrote:

@brendonhumphrey https://github.com/brendonhumphrey Great question. In fact I had not tested it on HFS in awhile even though I knew it worked. So i created a new user on HFS too see if it would sync all the same data. I dont usually use the "drive" feature in finder I use other iCloud enabled apps like notability so I had to look in Mobile Documents with terminal to see what was syncing. Long story short the HFS volume showed alot of iCloud data. The ZFS user shows very little data. If i had to guess none of the data on the ZFS user was actually pulled down from iCloud instead it was created by the account.

So long story short no it seems I can place documents in the "iCloud Drive" but nothing is syncing when on ZFS.

— Reply to this email directly or view it on GitHub https://github.com/openzfsonosx/zfs/issues/309#issuecomment-102583357.

claui commented 6 years ago

Very late to the party; I’d still like to share my experience though as I ran into this issue earlier today on 10.12.6 using ZFS 1.6.1 – right after I had migrated my home directory to a new drive, zpool, and dataset.

Not only did all my iCloud Drive apps fail to sync my documents but those apps also started to freeze erratically; notably, Console.app reported that the bird process (which is part of CloudDocsDaemon.framework) kept crashing several times per minute with the following message:

Assertion failed: (Still unable to open account after attempted reset: <NSError:0x7fe76f5363b0(NSPOSIXErrorDomain:19) - {
    NSDescription = "Operation not supported by device";
}> (underlying: (null), sql: (null))

The usual remedies wouldn’t help, such as clearing iCloud’s cache, disabling/re-enabling iCloud Drive, and rebooting.

Turns out that unlike my old dataset, the new dataset didn’t have the com.apple.mimic_hfs property set to on. The moment I ran sudo zfs set com.apple.mimic_hfs=on<rootdataset>, everything worked again.

I’ve added iCloud Drive to the list of misbehaving software in the FAQ.

lundman commented 6 years ago

Cheers - there are a few other bits also broken in 1.6.1 wrt to cloud. But we've had some success with those after commit afff6a36366b7be2f13054e50b3d27a81b026419 which will be in the (very soon) next release.