From mildm8nnered at gmail.com Thu Dec 1 09:46:50 2005 From: mildm8nnered at gmail.com (Martin Redington) Date: Thu Dec 1 09:46:55 2005 Subject: [sync-services-developers] Sync Services deleting all data unexpectedly. In-Reply-To: <9f38cd3c0511210903p63041e39sa83f7a66e8421615@mail.gmail.com> References: <9f38cd3c0511200304i1f74c807m9aab84be000d23e6@mail.gmail.com> <729683CC-AEE5-4E29-930D-201C7D1BD2EB@markspace.com> <9f38cd3c0511210903p63041e39sa83f7a66e8421615@mail.gmail.com> Message-ID: <9f38cd3c0512010946s585fde30i3cfe1a542d18d7e2@mail.gmail.com> Hi all, I've got a few more cases of this now (spontaneous slow sync mode causing any records which aren't pushed to be deleted). I'm still looking into it, but as far as I can make out, in some circumstances the sync engine will "spontaneously" decide to request a slow sync. As mentioned by Brian in previous posts, records that aren't pushed in the slow sync will be deleted. The spontaneous request for slow sync mode seems to be the "documented" behaviour. The docs for ISyncSessions -shouldPushAllRecordsForEntityName: method say: "For example, returns YES if you previously sent clientWantsToPushAllRecordsForEntityNames: or clientDidResetEntityNames:to the session to force a slow sync. This method also returns YES if the ***sync engine decides to slow sync entityName***. If this method returns NO, the client should only push changes made since the last sync. You can invoke this method at any time." One question I have is, why does the sync engine "decide" to slow sync? My other question is: is the slow sync behaviour (delete any records that aren't pushed) the expected (and hopefully documented) behaviour for a slow sync. I think I can work around this (and will have to anyway), but it would be nice to know if this is what I'm supposed to be doing. cheers, Martin On 11/21/05, Martin Redington wrote: > I think I've got some good data on this, and, if it keep happening > (grrr) I'll be collecting even better data with my next release. > > When I get a chance, I'll sit down and analyse what I've got so far. > > cheers, > m. > > On 11/21/05, Brian M. Criscuolo wrote: > > Martin, > > > > I've seen it in slow sync mode a few times. If the entire data set > > isn't pushed into the truth whatever is missing is flagged as a > > delete. I've quickly deleted entire groups of calendars in iCal that > > way - along with all the events! > > > > I've heard the anecdotal reports as well. Here's one from a customer > > of ours. I'm sure that we're involved in some way, but this isn't > > something that I can reproduce: > > > > "I decided to try a little more testing (nothing better to do on a > > sunny Saturday afternoon apparently). On the handheld I created a > > fake contact and did a (contacts only) sync. I was initially happy > > because the fake contact was in my Address Book on the Mac! Yikes, I > > then noticed that most (but not all) of the groups that I had created > > (weeks ago on the Mac) were GONE from Address Book. So I reverted to > > the Address Book database that I had saved this morning before using > > 5.0.2. Sure enough, they were still there. So I synced again, > > assuming that the contact that had been added to the Palm would once > > again be added to the Address Book and I'd watch and see what > > happened to my groups. The groups were fine this time (what the heck > > is going on?) but the contact on the Palm was not added to Addy Book. > > Hmmm, so I checked the Palm, it wasn't there anymore either. OK...So > > I created the Fake Contact on the Palm again and synced again. Now > > the groups are still there in the Addy Book and so is the Fake > > Contact. So I deleted the Fake Contact on the Mac and synced again. > > Now it's gone on the Mac and on the Palm and my groups seem OK. So > > everything is now OK....right? I wish I knew." > > > > I'll try to pay more attention to things like this and maybe we can > > work out a pattern. > > > > b > > > > On Nov 20, 2005, at 6:04 AM, Martin Redington wrote: > > > > > Has anyone else seen Sync Services delete all their data unexpectedly? > > > > > > I've had three user reports of this now - the symptoms seem to be that > > > one machine suddenly decides that it doesn't need its data any more, > > > and then propagates the deletes via sync services to other sync > > > clients, but I'm still collecting more detailed diagnostics to send to > > > Apple. > > > > > > I've heard some anecdotal reports of data loss when people moved to > > > Tiger, but these were all end-user reports IIRC. > > > > > > I always sync in default (fast sync) mode, so its hard to see how all > > > of the data could get trashed ... > > > > > > cheers, > > > Martin > > > > > > _______________________________________________ > > > sync-services-developers mailing list > > > sync-services-developers@lists.markspace.com > > > http://lists.markspace.com/mailman/listinfo/sync-services-developers > > > > > > ******************** > > Brian M. Criscuolo > > Senior Software Engineer > > Mark/Space, Inc. > > bcriscuolo@markspace.com > > > > > > > > > > _______________________________________________ > > sync-services-developers mailing list > > sync-services-developers@lists.markspace.com > > http://lists.markspace.com/mailman/listinfo/sync-services-developers > > > From mildm8nnered at gmail.com Sun Dec 11 07:38:17 2005 From: mildm8nnered at gmail.com (Martin Redington) Date: Sun Dec 11 07:38:19 2005 Subject: [sync-services-developers] mixing sync modes within a single session Message-ID: <9f38cd3c0512110738w59fc30e5meef98d38911ebd0d@mail.gmail.com> Can I safely mix sync modes for different entity types within a single session? i.e. can I slow sync some entities, fast sync another set, and refresh sync a third set. cheers, m. From kcat_the_great at hotmail.com Mon Dec 19 13:51:08 2005 From: kcat_the_great at hotmail.com (KCat TheGreat) Date: Mon Dec 19 13:51:14 2005 Subject: [sync-services-developers] synching problems Message-ID: I am having a problem with lost data. People have told me there is no way to retrieve it and there probably isn't, but I wanted to ask the developers before I give up. If nothing else, maybe you can tell me how the synchronization through iCal works. My brother changed my mom's PDA from regular Palm OS software to iCal. Mom was wiping some keys on her keyboard and accidentally erased a couple of calendars. The info was still in her PDA and, when I synchronized it, the calendar erased everything on her PDA. (Yes, I tried to take a precaution before I synched it, but it didn't work.) She has "The Missing Synch" installed, but I don't know anything about it. Is there ANY way to retrieve the data that you know of? I keep thinking that normally, when you erase files, you can get them back with an unerase utility (because the data's not really gone yet). Is there any chance this data is still on the computer somewhere? Also, can her computer be set to automatically back up her data to a data file every week? And one final synchronization question: when you use iCal, how does the synchronization work? Does it synchronize directly with iCal or does it go through some other database... I mean... does the data synch to Palm software and then go to iCal, or does it go directly from the PDA to iCal? _________________________________________________________________ Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 From bcriscuolo at markspace.com Tue Dec 20 05:12:34 2005 From: bcriscuolo at markspace.com (Brian M. Criscuolo) Date: Tue Dec 20 05:12:49 2005 Subject: [sync-services-developers] synching problems In-Reply-To: References: Message-ID: <1CA69C89-7C69-4686-BD14-B85A103152DA@markspace.com> On Dec 19, 2005, at 4:51 PM, KCat TheGreat wrote: > I am having a problem with lost data. People have told me there is > no way to retrieve it and there probably isn't, but I wanted to ask > the developers before I give up. If nothing else, maybe you can > tell me how the synchronization through iCal works. > > My brother changed my mom's PDA from regular Palm OS software to iCal. > > Mom was wiping some keys on her keyboard and accidentally erased a > couple of calendars. The info was still in her PDA and, when I > synchronized it, the calendar erased everything on her PDA. (Yes, > I tried to take a precaution before I synched it, but it didn't > work.) She has "The Missing Synch" installed, but I don't know > anything about it. > > Is there ANY way to retrieve the data that you know of? I keep > thinking that normally, when you erase files, you can get them back > with an unerase utility (because the data's not really gone yet). > Is there any chance this data is still on the computer somewhere? > > Also, can her computer be set to automatically back up her data to > a data file every week? > > And one final synchronization question: when you use iCal, how does > the synchronization work? Does it synchronize directly with iCal or > does it go through some other database... I mean... does the data > synch to Palm software and then go to iCal, or does it go directly > from the PDA to iCal? > KCat, The synchronization of data happens with a service of Tiger called Sync Services. The Missing Sync, as well as iCal, are clients of the sync system. Changes that one client makes are reflected in the others when they synchronize. Other clients include .Mac, Address Book, the line of Missing Sync products, Chronos SOHO Organizer and MySync (I'm probably missing some others). Each of those clients only knows about the sync system, and none of the other clients. I don't think there is any way you can get your data back, unless some client also has it (.Mac, perhaps) and you can make sure that the other client does not synchronize. b > _________________________________________________________________ > Is your PC infected? Get a FREE online computer virus scan from > McAfee? Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp? > cid=3963 > > _______________________________________________ > sync-services-developers mailing list > sync-services-developers@lists.markspace.com > http://lists.markspace.com/mailman/listinfo/sync-services-developers ******************** Brian M. Criscuolo Senior Software Engineer Mark/Space, Inc. bcriscuolo@markspace.com From kcat_the_great at hotmail.com Tue Dec 20 14:29:13 2005 From: kcat_the_great at hotmail.com (KCat TheGreat) Date: Tue Dec 20 14:29:19 2005 Subject: [sync-services-developers] synching problems In-Reply-To: <1CA69C89-7C69-4686-BD14-B85A103152DA@markspace.com> Message-ID: OK. Well thanks for responding! >From: "Brian M. Criscuolo" >Reply-To: Mailing list for developers developing Sync Services >applications >To: Mailing list for developers developing Sync Services >applications >Subject: Re: [sync-services-developers] synching problems >Date: Tue, 20 Dec 2005 08:12:34 -0500 > > >On Dec 19, 2005, at 4:51 PM, KCat TheGreat wrote: > >>I am having a problem with lost data. People have told me there is no way >>to retrieve it and there probably isn't, but I wanted to ask the >>developers before I give up. If nothing else, maybe you can tell me how >>the synchronization through iCal works. >> >>My brother changed my mom's PDA from regular Palm OS software to iCal. >> >>Mom was wiping some keys on her keyboard and accidentally erased a couple >>of calendars. The info was still in her PDA and, when I synchronized it, >>the calendar erased everything on her PDA. (Yes, I tried to take a >>precaution before I synched it, but it didn't work.) She has "The >>Missing Synch" installed, but I don't know anything about it. >> >>Is there ANY way to retrieve the data that you know of? I keep thinking >>that normally, when you erase files, you can get them back with an >>unerase utility (because the data's not really gone yet). Is there any >>chance this data is still on the computer somewhere? >> >>Also, can her computer be set to automatically back up her data to a data >>file every week? >> >>And one final synchronization question: when you use iCal, how does the >>synchronization work? Does it synchronize directly with iCal or does it >>go through some other database... I mean... does the data synch to Palm >>software and then go to iCal, or does it go directly from the PDA to >>iCal? >> > >KCat, > >The synchronization of data happens with a service of Tiger called Sync >Services. The Missing Sync, as well as iCal, are clients of the sync >system. Changes that one client makes are reflected in the others when >they synchronize. Other clients include .Mac, Address Book, the line of >Missing Sync products, Chronos SOHO Organizer and MySync (I'm probably >missing some others). > >Each of those clients only knows about the sync system, and none of the >other clients. > >I don't think there is any way you can get your data back, unless some >client also has it (.Mac, perhaps) and you can make sure that the other >client does not synchronize. > >b > >>_________________________________________________________________ >>Is your PC infected? Get a FREE online computer virus scan from McAfee® >>Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp? cid=3963 >> >>_______________________________________________ >>sync-services-developers mailing list >>sync-services-developers@lists.markspace.com >>http://lists.markspace.com/mailman/listinfo/sync-services-developers > > >******************** >Brian M. Criscuolo >Senior Software Engineer >Mark/Space, Inc. >bcriscuolo@markspace.com > > > > > >_______________________________________________ >sync-services-developers mailing list >sync-services-developers@lists.markspace.com >http://lists.markspace.com/mailman/listinfo/sync-services-developers _________________________________________________________________ Don’t just search. Find. Check out the new MSN Search! http://search.msn.click-url.com/go/onm00200636ave/direct/01/