Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sync problems with mobile account #40

Open
ftestuz opened this issue May 10, 2015 · 6 comments
Open

Sync problems with mobile account #40

ftestuz opened this issue May 10, 2015 · 6 comments

Comments

@ftestuz
Copy link

ftestuz commented May 10, 2015

With Yosemite, I installed the Server version on my MacMini and my account on my MBPro is a mobile account.
For a new project, I decided to use BSManagedDocument. I want to use CoreData and image file for my document, so the package format is good for me.
I'm in the first step and, for now, my program don't save anything inside the package. I almost did no subclassing of BSManagedDocument.
But, when I change the document on my MB, I get a sync problem message when the mobile account try to synchronize with the MacMini. I don't have this problem when I change the document on the server, the change is correctly synchronized to the MB.
I never encounter this problem elsewhere. I don't think it's a problem with my code as:

  • if I change the superclass of my document class to NSPersistentDocument, the problem go away
  • I have the same problem with the Sandvox package document.

Below is the error window message and the sync log (I also have the verbose sync log, but it's quite long).

syncwindow-mydocument

[15/04/25 11:20:02.348] *****************************************************************************
[15/04/25 11:20:02.348] FileSyncAgent-608 (r?, BUILT:?, PID:3725, OS:14D136, ARCH:x86_64-64) starting
[15/04/25 11:20:02.348] LA: FileSyncAgent -launchedByLaunchd -PHDPlist
[15/04/25 11:20:02.348] *****************************************************************************
[15/04/25 11:20:04.335] Starting manual sync of "HomeSync_Mirror".
[15/04/25 11:20:21.155] EXCEPTION: Resource temporarily unavailable
[15/04/25 11:20:21.192] EXCEPTION: !IF
[15/04/25 11:20:21.193] network: MODIFY ./StoreContent (-SNode contentsPartiallyUpdated: "'((!self.isDirectory))'")
[15/04/25 11:20:21.193] EXCEPTION: NilPtr
[15/04/25 11:20:21.194] network: PACKAGE MODIFY "Documents/BD/Test.bibd" {(Priority=1, EXECUTING)} (-SNode contentsPartiallyUpdated: "'((!self.isDirectory))'")
[15/04/25 11:20:21.644] EXCEPTION: [data writeToFile:'/Volumes/Users/username/.FileSync/PHD-R--7MwNOOVoM2-ftestuz.FileSyncHistory' options:0 error:&error](Cocoa error 512)
[15/04/25 11:20:22.746] EXCEPTION: Resource busy
[15/04/25 11:20:22.804] Sync of "HomeSync_Mirror" encountered errors. (-SNode contentsPartiallyUpdated: "'((!self.isDirectory))'")
[15/04/25 11:20:22.804] Last successful sync completed at 2015-04-22 21:31:37 +0000.
[15/04/25 11:20:22.804] Finished sync of "HomeSync_Mirror".
[15/04/25 11:20:41.963] SInt32 SendCallbackMessage(int, CFPropertyListRef): _SFSendMessage(port=0x7fd338f00bb0, msgID=1, msgData=0x7fd33db229f0): warning: unexpected return value: -4
[15/04/25 11:21:02.899] Bye (PID:3725)

@mikeabdullah
Copy link
Collaborator

Hi @ftestuz, iCloud sync is not something I've attempted to support so far in BSManagedDocument, but I know others have. Hopefully someone else will be able to chime in with some help; there's not really anything else I can do.

@ftestuz
Copy link
Author

ftestuz commented May 11, 2015

It is not about the iCloud sync. iCloud Drive is not activated on my MB.
With OS X Server, you can have network account. On the client machine, you can make those account "mobile" so you can access them even without access to the server.
When the client has access to the server, it synchronizes. This sync is launch automatically or manually.

It's when the document is modified on the client machine that there is an error on sync.

@mikeabdullah
Copy link
Collaborator

Ah, I was unaware of this setup having any special handling. Are you able to make a sample app I can look at that reproduces the issue?

@ftestuz
Copy link
Author

ftestuz commented May 11, 2015

I made a sample app with the problem on my macs. I send it to you ? How ? (Sorry if it's obvious)

@mikeabdullah
Copy link
Collaborator

Ah, good point. Can you make a Github Gist perhaps?

@ftestuz
Copy link
Author

ftestuz commented May 12, 2015

I think I did right :
https://github.com/ftestuz/TestSync/tree/master/TestSync

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants