Ticket #400 (closed defect: fixed)

Opened 8 years ago

Last modified 4 years ago

Error message from kdepim-sync: "Unable to get save ticket"

Reported by: judaz Owned by: dgollub
Priority: normal Milestone:
Component: Plugin: kdepim Version: 0.20
Severity: normal Keywords:
Cc:

Description

I just want to report on an error I get when synchronizing my T610 using the svn version of opensync (see versions below). I synchronize using irmc-sync and kdepim-sync *always* get the following error:

~/opensynctest/bin/msynctool --sync kdepim-irmc --filter-objtype note
Synchronizing group "kdepim-irmc"
Member 1 of type kdepim-sync just connected
Member 2 of type irmc-sync just connected
All clients connected or error
Received an entry libkcal-1593840865.824 with data of size 4 from member 1 (kdepim-sync). Changetype ADDED
Member 1 of type kdepim-sync just sent all changes
Member 2 of type irmc-sync just sent all changes
All clients sent changes or error
All conflicts have been reported
Member 1 of type kdepim-sync committed all changes.
Sent an entry 0000B9100000 of size 310 to member 2 (irmc-sync). Changetype ADDED
Member 2 of type irmc-sync committed all changes.
All clients have written
Member 1 of type kdepim-sync had an error while disconnecting: Unable to get save ticket
Member 2 of type irmc-sync just disconnected
All clients have disconnected
The sync was successful

However, the data seems go get synced ok. If I repead the sync without changing anything on either side, I get:

...
Member 1 of type kdepim-sync had an error while disconnecting: Unable to get save ticket
Member 2 of type irmc-sync just disconnected
All clients have disconnected
The sync was successful

I started out with a wiped phone and a empty calendar and addressbook in Kontact.

What does the error mean? Should it be ignored? Sould it be removed?

Thanks :)

These are the versions of the kdepim files:

 769 abauer       src/kcal.h
 455 abauer       src/KNotesIface.h
1213 dgollub      src/kaddrbook.cpp
 815 tokoe        src/kdepim-sync
1544 mjahn        src/knotes.cpp
 672 ehabkost     src/kaddrbook.h
 815 tokoe        src/kdepim_sync.cpp
1434 mjahn        src/knotes.h
1472 dgollub      src/kcal.cpp
1035 ehabkost     src/kdepim_impl.cpp

Attachments

osync-trace-kdepim-vs-irmc-unable-to-get-save-ticket.tar.gz (231.2 KB) - added by judaz 7 years ago.
Trace of an kdepim-irmc sync (with no changes on either side)

Change History

comment:1 Changed 8 years ago by dgollub

Is your kaddressbook (contact) resource read-only or opened?

comment:2 Changed 8 years ago by judaz

My addressbook is not read-only (as reported by clicking the addressbook, "edit...", and confirming that "read only" is not checked in "general settings"). The actual file is also writeable for my user.

Hm, I just realized that the name of the file is "bookvcf" and not "book.vcf". I'll change that and report back shortly.

comment:3 Changed 8 years ago by judaz

I just did an export of the entire addresssbook (vcard 3.0), and added that new file (~/calendar/addressbook.vcf) as the only active and non-readonly addressbook. Then I did a sync, got alot of "MODIFIED" entries, everything worked fine (no duplicates), but I still got "Member 1 of type kdepim-sync had an error while disconnecting: Unable to get save ticket". I synced again, and got no changes (as expected) but still got the error message.

comment:4 Changed 8 years ago by buz

I'm seeing this too. Even with a totally virgin addressbook.

Weird thing is the first run I made it DID copy stuff to the KDE addressbook (once with existing entries, even), but ever since, I always get failures. No matter if kontact, kaddressbook, konversation, kopete are running or not.

comment:5 Changed 8 years ago by buz

I forgot to mention: for me, the data IS NOT correctly stored (i.e. does not show up in kaddressbook) but somehow gets found by the plugin upon next run????

Changed 7 years ago by judaz

Trace of an kdepim-irmc sync (with no changes on either side)

comment:6 Changed 7 years ago by judaz

I attached a trace (using export OSYNC_PRIVACY=1)

The svn build is from rev 1584.

The output was:

Synchronizing group "kdepim-irmc"
Member 1 of type kdepim-sync just connected
Member 2 of type irmc-sync just connected
All clients connected or error
Member 1 of type kdepim-sync just sent all changes
Member 2 of type irmc-sync just sent all changes
All clients sent changes or error
Member 2 of type irmc-sync committed all changes.
Member 1 of type kdepim-sync committed all changes.
All clients have written
Member 1 of type kdepim-sync had an error while disconnecting: Unable to get save ticket
Member 2 of type irmc-sync just disconnected
All clients have disconnected
The sync was successful

comment:7 Changed 7 years ago by judaz

Just upgraded to KDE 3.5.6 (Kontact: 1.2.4) and rebuilt from svn rev 1681, but still get the same error. Syncing sort of works, I had to delete my calendar on the phone in order to make a clean sync the first time after the upgrade (this is as expected - no problem).

However, two subsequent syncs, without any changes on either side, somethimes gives "MODIFIED" indacators. I guess this is connected with the 'save ticket'.

Also, I noted that if I change e.g. the telephone number of a contact on the phone, then sync once, the change is propagated, but on the second sync the change is set back to the original number (on both sides).

If I can provide any more test, please let me know.

comment:8 Changed 7 years ago by dgollub

Are you sure there is no active KDE PIM process running.. which already opened one of the resources?

comment:9 Changed 7 years ago by dgollub

What does your default contact resource look like?

~/.kde/share/config/kresources/contact/stdrc

comment:10 Changed 7 years ago by dgollub

  • Owner changed from ehabkost to dgollub
  • Status changed from new to assigned

comment:11 Changed 7 years ago by judaz

I have tried to shut down all Kontact/knotes/kmail/knotify/etc. and done another sync, but I still get "Member 1 of type kdepim-sync had an error while disconnecting: Unable to get save ticket".

Here's my stdrc:

$ cat .kde/share/config/kresources/contact/stdrc
[General]
PassiveResourceKeys=q8eyyWGHZf,NPjneQfJOu,XDm7jqiY3h
ResourceKeys=G7OjeZDE5U
Standard=q8eyyWGHZf

[Resource_G7OjeZDE5U]
FileFormat=vcard
FileName=$HOME/calendar/addressbook.vcf
ResourceIdentifier=G7OjeZDE5U
ResourceIsActive=true
ResourceIsReadOnly=false
ResourceName=Judazs adresseliste
ResourceType=file

[Resource_NPjneQfJOu]
FileFormat=vcard
FileName=$HOME/.kde/share/apps/kabc/synctest.vcf
ResourceIdentifier=NPjneQfJOu
ResourceIsActive=false
ResourceIsReadOnly=false
ResourceName=synctest
ResourceType=file

[Resource_XDm7jqiY3h]
FileFormat=vcard
FileName=$HOME/.kde/share/apps/kabc/joakimvcf
ResourceIdentifier=XDm7jqiY3h
ResourceIsActive=false
ResourceIsReadOnly=false
ResourceName=file address book Joakim
ResourceType=file

[Resource_q8eyyWGHZf]
FileFormat=vcard
ResourceIdentifier=q8eyyWGHZf
ResourceIsActive=false
ResourceIsReadOnly=false
ResourceName=resource
ResourceType=file

(As you see, my default addressbook is not in ~/.kde/.... but in another directory.)

comment:12 Changed 7 years ago by dgollub

Standard=q8eyyWGHZf
[...]
[Resource_q8eyyWGHZf]
FileFormat=vcard
ResourceIdentifier=q8eyyWGHZf
ResourceIsActive=false
ResourceIsReadOnly=false
ResourceName=resource
ResourceType=file

Your default resource seems to be not active... can you change the default resource in the KDE Control Center..

comment:13 Changed 7 years ago by judaz

Oh my! You're right. Hm, strange this cannot be done in Kontact... I used kcontrol->KDE Components->KDE Resources->Contacts and changed it there. Now I don't get the "... Unable to get save ticket" any more. Thanks!

Also, changes made on the phone now seems to propagate just fine to Kontact - great!

But if Kontact is running, I get the "Member 1 of type kdepim-sync had an error while connecting: KOrganizer is running. Please finish it" error message - do you plan to make it possible to sync while Kontact is running? There must be some dcop lock functionality somewhere?

Anyway - this ticket can be closed (maybe edit the error message to suggest making the contacts active would be a good idea)

comment:14 Changed 7 years ago by pmarat

well the "Member 1 of type kdepim-sync had an error while connecting: KOrganizer is running. Please finish it" is a improvement.

we had dataloss without the check ..... because kontact uses a file lock and some backup stuff .... So i don`t think that we could solve this without this check for kde 3.x . ;-(

But if you have any suggestion how to work around ..... patches are wellcome.

comment:15 Changed 7 years ago by dgollub

  • Status changed from assigned to closed
  • Resolution set to fixed

Great. Thanks for testing... We hope we can improve the kdepim-sync plugin soon...

comment:16 Changed 6 years ago by add

about their apps in the first place. Both annotations and contributions will only clutter the interface by default as a design pattern rather than trying to put it all together. That way you can never create offline or print docs of high quality without again having the devs or current admins maintain the comments and annotations. Hopefully a small Wiki quality team will evolve (i am against ops or admins) to review and summarize the contributions. I hope this gives us more users as contributors than having the docs focused on the devs. Cheers, duns china tour Apparel shoes bags Kitchen Food and Wine Furniture) Flowers and Gifts Wall Art Computer Components I still prefer a wiki like approach since the php (or mysql) docs are very cluttered when you have to take their comments in account. On the other hand they are professionally maintained imho, since they are *much* better than KDE documentation.

comment:18 Changed 4 years ago by sim

decoration Changed 1 year ago by admin

bathtub Changed 1 year ago by admin

solar system Changed 1 year ago by admin

stair parts Changed 1 year ago by admin

solar supply Changed 1 year ago by admin

Note: See TracTickets for help on using tickets.