Problem setting up sync

I have decided to set up iCloud sync again (I forgot the encryption key for one of mu devices).

I have set up a new CloudKit sync location, having domed the previous one.

The databases appear in the right hand sync window but nothing seems to be happening. There is a line beneath the database saying “Not yet synchronised, upload database”. There is nothing to suggest any activity and after leaving it for a while nothing seems to have changed. I have checked the handbook but I can’t see anything about uploading the database. How do I sort this out?

Thanks

I suppose that you did not select the database(s) for sync?

As you can see, the message you mentioned appears for “Bücher”, because I did not select that one (no need to sync it). All the other databases are synchronised.

There is, BTW, a whole chapter on sync in the manual. All steps are detailed there. Worth reading, like the rest of this document. Quoting:

And every sync is conceptually the same, following the same essential pattern shown here:

  • Enable a location (with or without an encryption key) on Mac A.
  • Upload a database to the sync location.
  • Enable the same location in DEVONthink on Mac B, making sure to use the same encryption key, if specified.
  • Import the database or merge with the existing sync data.
1 Like

They are selected (I did read the manual) but nothing is happening.

Bill

Perhaps you could post a screenshot of your settings? That could avoid unnecessary back-and-forth trips.

Good idea!

Here you are (I am starting with one database)

I tried to reproduce that:

  • created an iCloud Cloudkit sync store
  • selected a single database
  • DT started immidiately uploading it (showing a spinning wheel to the right of the database)
  • the activity window also showed this database being synchronized (this message went away when the sync was finished)

So:

  • Perhaps DT is synchronizing, but the process needs some time?
  • Does the activity window or the log window say anything about it?

Otherwise, @bluefrog might have better ideas.

Could be something going on with Apple’s iCloud (CloudKit). Some people report fantastic and reliable sync … whereas other reports less reliability than that.

Do you need third part internet synching. Perhaps also setup Bonjour sync between/amongst your devices which is recognised as being the quickest and most reliable. Then work to debug Apple’s service.

And what is reported in Window > Log (also documented as where you should look) ?

Invalid encryption key!

Can’t understand that as I have only just set the encryption key up having cleaned & deleted the previous sync store.

Did you have other devices syncing to the CloudKit location?

Yes, but I have deleted the sync stores

Easy to reproduce:

  • Create a CloudKit sync location with key “foo”
  • sync a single database
  • delete the sync store
  • create a new CloudKit sync location with key “bar”
  • boom – invalid encryption key.

Now clean that sync store. Then delete it. Then recreate it with key “bar”. Sync a single database – no problem.

I had to type in foobar as foo has too few characters.

Unfortunately the same problem recurs, the log again advises invalid encryption key.I am wondering if the previous sync store is still in situ and thus blocking any attempt to create a new one.

I tried it several times now (with a password of 4 and more characters ;-): The sequence

  • create with one password
  • sync
  • empty
  • delete
  • create with another password

works reliably for me. Did you use Cloud Legacy before?

You deleted them from where? If you are syncing multiple devices to a sync location, those devices will continue to sync unless those syncs are disabled or removed.

I have decided to set up iCloud sync again (I forgot the encryption key for one of mu devices).

I’m not understanding why you deleted the location because you forgot the key. That does not clean the location nor does it have any effect on the encryption key in use. You should have disabled the sync on all but one device then cleaned the sync location on one, often a Mac. After a successful clean is reported, you could open the sync location info and modify the encryption key. After that, you’d enable syncing the desired databases. Once that’s accomplished, you’d need to modify the encryption key for the sync location on the other devices, then enable the sync locations.

2 Likes

That’s what I did.

Anyway, I did eventually get everything cleaned and it all seems to be set up and working now thanks.

Glad to hear it. If you do run into an issue in the future: in DEVONthink, hold the Option key and select Help > Report Bug. Cheers!