How do I sync my Windows Mobile-Powered Pocket PC with Kontact (KOrganizer) on Gutsy?

Asked by Allan Caeg

For months and months and months (6 months, I think), I have been trying to sync my Pocket PC with Kontact. Raki crashed on Feisty and I did not manage to make OpenSync work.

On Gutsy, I cannot even attempt to sync with Raki. Whenever I try to choose to set Raki to sync my appointments, contacts, and tasks, a window with an error message pops out. It says "Wrong library type for Appointment" whenever I tick the check box for syncing appointments, "Wrong library type for Contact" whenever I try to choose contact, and "Wrong library type for Task" for task.

On Gutsy again, I tried OpenSync. I am lucky to find a deb for the synce plugin because it was not in the official repo. When I tried to sync using OpenSync through Kitchensync as a frontend, the syncing started, but there were errors. When I started the syncing, the status of the "KDE PIM (1)" component (there were two components, KDE PIM and WinCE Devices) is "Error Broken Pipe." There was also a lot of "synce_file_getdata: could not find out file size (183): Unknown error"

How do I sync my Windows Mobile-Powered Pocket PC with Kontact (KOrganizer) on Gutsy? Any help would be GREATLY APPRECIATED.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
ffoletti (ffoletti) said :
#1

How funny... still working around the same thing, and still it's the same people around... I read throguh your post and I did the same things u did, included opensync, kitchensync and even multisync0.90, and got the same error messages.
Now I'm trying to find the right configuration for those programs, but I think the problem is somewhere else, that is in synce-kde itself.
What I cannot really understand is why it worked perfectly in Edgy, unperfectly in Feisty, and completely wrong in Gutsy, so nobody around here needs to sync a WinCE device with KDEPIM?
this is not a good improvement, anyway I still hope for a right fix of this, but I'm a bit tired... Gutsy's Gnome looks really interesting and charming.... :)
ffoletti - Trento - Italy

Revision history for this message
ffoletti (ffoletti) said :
#2

DONE! ! ! ! !
Great, my friend! tonight (here it's 1.28...tomorrow I'll have to wake up a 6.30, but it's been worth!) I DID IT!
sync between pocket pc and kitchensync! I went in adept-manager, looked for "kdepim" and installed them all (kdepim4, kdepim5...everything) , and selected
libopensync-plugin-kde which uninstalled opensync-plugin-kdepim.
Then went in kitchensync, with PDA connected via vdccm and sudo synce-serial-start, created a new group with kdePIM and synCE plugin, and then IT HAPPENED! all my calendar events came on my kontact Kalendar! Try it! if you need some more hints, contact me here!
ffoletti

Revision history for this message
Allan Caeg (allancaeg) said :
#3

Hmm... That is GREAT NEWS!

I tried it, but I failed though.

I installed every package found by searching "kdepim" except the documentations. I saw no kdepim5, btw. There is a kdepimlibs5, though.

Btw, how did you install the synce plugin? It's not in the Gutsy Repos. I used the opensync feisty repo for a while to intstall the package.

Also, are you on Gutsy? hehe. Just want to make sure. :)

THANKS AGAIN!! You have been a great companion! :)

Revision history for this message
Allan Caeg (allancaeg) said :
#4

When I rebooted, I got a step nearer to syncing. I ran kitchensync on the terminal. This time, the entry reading went on but there were a lot of complications on the way. While kitchensync was reading the changes, I got a lot of

[rapi_context_call:194] rapi_buffer_send failed
[rapi_buffer_send:560] writev failed, returned -1 and not 116
[rapi_buffer_send:586] synce_socket_write failed
[rapi_context_call:194] rapi_buffer_send failed
[rapi_buffer_send:560] writev failed, returned -1 and not 16
[rapi_buffer_send:586] synce_socket_write failed
[rapi_context_call:194] rapi_buffer_send failed
[rapi_buffer_send:560] writev failed, returned -1 and not 12
[rapi_buffer_send:586] synce_socket_write failed
[rapi_context_call:194] rapi_buffer_send failed

and a lot of

synce_file_getdata: could not find out file size (183): Unknown Error

that pop out of my screen

I even added a "File" component in the syncing in addition to the synce plugin and the kdepim plugin, but I still got the same error messages.

Revision history for this message
ffoletti (ffoletti) said :
#5

Hi again
well, first of all yes, I'm on Gutsy.
Then, here's my /etc/apt/sources.list file, so you can check for repositories. Maybe you'll have to add some key. I think I worked in a messy way, I don't know exactly all the things I went through... :D

deb cdrom:[Kubuntu 7.10 _Gutsy Gibbon_ - Release i386 (20071016.1)]/ gutsy main restricted
# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to

# newer versions of the distribution.

deb http://archive.ubuntu.com/ubuntu/ gutsy main restricted
deb-src http://archive.ubuntu.com/ubuntu/ gutsy main restricted

## Major bug fix updates produced after the final release of the
## distribution.
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates main restricted
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-updates main restricted

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## universe WILL NOT receive any review or updates from the Ubuntu security
## team.
deb http://archive.ubuntu.com/ubuntu/ gutsy universe
deb-src http://archive.ubuntu.com/ubuntu/ gutsy universe
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates universe
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-updates universe

## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu
## team, and may not be under a free licence. Please satisfy yourself as to
## your rights to use the software. Also, please note that software in
## multiverse WILL NOT receive any review or updates from the Ubuntu
## security team.
deb http://archive.ubuntu.com/ubuntu/ gutsy multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy multiverse
deb http://archive.ubuntu.com/ubuntu/ gutsy-updates multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-updates multiverse

## Uncomment the following two lines to add software from the 'backports'
## repository.
## N.B. software from this repository may not have been tested as
## extensively as that contained in the main release, although it includes
## newer versions of some applications which may provide useful features.
## Also, please note that software in backports WILL NOT receive any review
## or updates from the Ubuntu security team.
# deb http://it.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse
# deb-src http://it.archive.ubuntu.com/ubuntu/ gutsy-backports main restricted universe multiverse

## Uncomment the following two lines to add software from Canonical's
## 'partner' repository. This software is not part of Ubuntu, but is
## offered by Canonical and the respective vendors as a service to Ubuntu
## users.
deb http://archive.canonical.com/ubuntu gutsy partner
deb-src http://archive.canonical.com/ubuntu gutsy partner

deb http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security main restricted
deb http://archive.ubuntu.com/ubuntu/ gutsy-security universe
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security universe
deb http://archive.ubuntu.com/ubuntu/ gutsy-security multiverse
deb-src http://archive.ubuntu.com/ubuntu/ gutsy-security multiverse
deb http://packages.medibuntu.org/ gutsy free non-free
deb-src http://packages.medibuntu.org/ gutsy free non-free
deb http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
deb-src http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main

I added the last repos this way (see http://opensync.gforge.punktart.de/repo/opensync-0.21/):

deb http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main
deb-src http://opensync.gforge.punktart.de/repo/opensync-0.21/ feisty main

and added the key

gpg --keyserver hkp://subkeys.pgp.net/ --recv-keys CB210090B029CB84
gpg --export CB210090B029CB84 | sudo apt-key add -

then in adept if you search "kdepim" you have to have the following installed:

kdepim; kdepim-dbg; kdepim-dev; kdepim-doc; kdepim-doc-html; kdepim-kfile-plugins; kdepim-kio-plugins; kdepim-kresources; kdepim-wizards; kdepimlibs-data; kdepimlibs5; kdepimlibs5-dev; libkdepim1-dev ; libkdepim1a ;libopensync-plugin-kdepim ;

if you search "pim" you also have to see installed the following:
multisync0.90 multisync-tools multisync libvpim-ruby1.8 libkpimidentities1; libkpimexchange1-dev libkpimexchange1 libkdepim1a libkdepim1a-dev kontact (of course... :D) kde4pim kde4pim-data kde4pim-dev

I really don't think they're all necessary, but this is how is my configuration, and it seems to work, even if it still looks quite unperfect, but it works....
let me know!
bye

Revision history for this message
thajacabela (luisalberto-herrero) said :
#6

I've follow your info but when I will sync I receive an error:

  $ msynctool --sync pda
  Synchronizing group "pda"
  [synce_socket_listen:206] bind failed, error: 98 "Dirección ya está en uso"
  Member 1 of type synce-plugin had an error while connecting: can't connect
  Member 2 of type kdepim-sync just connected
  Member 2 of type kdepim-sync just disconnected
  All clients have disconnected
  The sync failed: Unable to connect one of the members
  Error synchronizing: Unable to connect one of the members
  Pipe closed! Exiting.
  Pipe closed! Exiting.

But I've got my pocket-pc already connected and working with RAKI : I can see the directories, the kce-mirror works perfectly, ... for example:
  $ synce-pstatus
  Version
  =======
  Version: 4.20.0 (Unknown)
  Platform: 3 (Windows CE)
  Details: ""

  System
  ======
  Processor architecture: 5 (ARM)
  Processor type: 2577 (StrongARM)
  Page size: 0x10000

Could you help me? What means "address already in use" (in spanish "Dirección ya está en uso") ?

Revision history for this message
ffoletti (ffoletti) said :
#7

Il Wednesday 07 November 2007 17:24:30 thajacabela ha scritto:
> Question #15091 on Ubuntu changed:
> https://answers.launchpad.net/ubuntu/+question/15091
>
> thajacabela proposed the following answer:
> I've follow your info but when I will sync I receive an error:
>
> $ msynctool --sync pda
> Synchronizing group "pda"
> [synce_socket_listen:206] bind failed, error: 98 "Dirección ya está en
> uso" Member 1 of type synce-plugin had an error while connecting: can't
> connect Member 2 of type kdepim-sync just connected
> Member 2 of type kdepim-sync just disconnected
> All clients have disconnected
> The sync failed: Unable to connect one of the members
> Error synchronizing: Unable to connect one of the members
> Pipe closed! Exiting.
> Pipe closed! Exiting.
>
> But I've got my pocket-pc already connected and working with RAKI : I can
> see the directories, the kce-mirror works perfectly, ... for example: $
> synce-pstatus
> Version
> =======
> Version: 4.20.0 (Unknown)
> Platform: 3 (Windows CE)
> Details: ""
>
> System
> ======
> Processor architecture: 5 (ARM)
> Processor type: 2577 (StrongARM)
> Page size: 0x10000
>
> Could you help me? What means "address already in use" (in spanish
> "Dirección ya está en uso") ?

Oh well I also had all of these problems, and sometimes it looks still full of
bugs.The best sequence of commands I found is the following:
1) connect PDA (well... obvious... :D)
2)type dmesg, to check that it has been seen... you should see something
like "pocket pc now connected to ttyUSB0"
3) type vdccm (not as sudo)
3) start synce typing sudo synce-serial-start
4)when the pocket pc has managed connection ( a few seconds), type:
msynctools --sync [NAME] --conflict n
"--conflict n" means that in conflicts msynctools will use the newest entry.

[NAME] is the name of the sync pair, you should see it using
msynctools --listgroups
else, follow instructions tyoing
man msynctools, I found it useful.
Anyway, it's not a flawless process....

By the way, recently I tried Ubuntu (with Gnome, I mean...), and tried to
connect my PDA, using multisync and evolution, and it took me ... er.... let
me think .... 3 minutes? So what's wrong with KDEPIM? If I had time, I'd
learn programming just to fix this... :) but unfortunately I can't by now, so
I have to hope that someone wiser will do that for me....
bye

Revision history for this message
thajacabela (luisalberto-herrero) said :
#8

Hello another time,

I've tried your steps and I've found that it works but only if I quit RAKI. If I use Raki to automate the vdccm launch then it doesn't work.

Thanks a lot for your help and your time.

I will try more things and If I found a solution I will write here.

Revision history for this message
lorubenet (lorubenet) said :
#9

Hello there,

first of all thanks for discussing this issue. There are 10000 different ways in the net that didn't work for me. Opensync using the repositories ffoletti commented is working.
Raki crashes, or otherwise it complains: Wrong library type, so you can't synchronize. With evolution is easier as commented, but I had to have the (I guess, since I installed other stuff as well) evolution-plugins installed, otherwise multisync was basically ignoring my clicks on the Sync or ReSync button.

Still I had trouble synchronizing with my Acer n35 (which actually sucks! but I have no other) because the kdepim plugin was crashing. The reason was that the pda has some files in /My Documents/ which opensync tries to synchronize. It seems that kdepim does not like that and crashes. I took out the line <file> stuff in the config file of the synce:
<config>
<contact></contact>
<todos></todos>
<calendar></calendar>
</config>

and now it's working. I still have to see how stable it is, but I transferred 50 contacts without a flaw.

By the way, I'm on Kubuntu Gusty as well.

Revision history for this message
ffoletti (ffoletti) said :
#10

Try this

http://ubuntuforums.org/showthread.php?t=608599&highlight=synce

it worked for me about the "wrong library type" problem.
But raki still crashes for calendar sync.

Sync or die!

Revision history for this message
Alexia Death (alexiade) said :
#11
Revision history for this message
Alexia Death (alexiade) said :
#12

removing syncekonnector for gutsy/hardy should fix the issue.

Revision history for this message
Alexia Death (alexiade) said :
#13

More accurately, you wont get the "wrong library type" message but you wont get to synchronize either:P

Revision history for this message
Ashwani Sinha (ashwanisinha) said :
#14

i am a complete novice and want to changeover to Ubuntu from Windows XP. I have a iMate JAM which works on Windows Mobile 2003 (SE). It synchronises perfectly with Microsoft Outlook using Activesync 4.5. Is there any way to sync my PDA with the PIM of Ubuntu with the same ease?

Revision history for this message
Nico (nick-eresmas) said :
#15

Felicitation to ffoletti and Allan Caeg, great job.
If some how you could write it down in some order so a newby could sincronize a Dell Axim X5 (windows CE) with Kontact in Kubuntu Gutsy Gibon, nerds like me will be very happy and greatfull.
Thanks

Revision history for this message
ffoletti (ffoletti) said :
#16

Hi all
well by now, my "best choice", after trying to get msynctool work properly, is an extension of what Allan suggested long ago: I installed evolution, synced it through multisync, and made a new file resource under kontact, telling to "look" at evolution calendar file, excluding the standar k-resource file. Now it works in both directions (changes made in korganizer are synced on PDA and viceversa.
Of course this is if you want to use kontact. Easier way: use evolution. Everything works...

Anyway, the howto should be like this:
sudo apt-get install synce-dccm synce-kde synce-kde-dev synce-multisync-plugin synce-serial syncekonnector syncekonnector-dev usb-rndis-source librra0 librra0-tools librapi2 librapi2-tools librapi2-dev python-rapi2 libsynce0 vdccm multisync libmultisync-plugin-evolution

I think this should be enough. Then connect your PDA.
Type dmesg
If in the last lines there is something like "pocket pc now connected to ttyUSB0, then type
sudo synce-serial-config ttyUSB0
dccm
sudo synce-serial-start

here you'll read something like "synce serial is now waiting for your device to connect" . If it doesn't, retype sudo synce-serial-start a couple of times, it will work...
then look at your pda, it should connect. If it does, then
multisync

Add new couple, first device Evolution plugin, second device Synce plugin. Configure them to sync calendar, contacts and events. Then press on "sync" button. If it doesn't work, try resync (for the first connection I had to).
Then here you are. Evolution is synced with your PDA.
If you want to sync with Kontact, do what I wrote above.

If you need to do different things (add programs, explore your pda), use syncekonncetor (RAKI). remember that if you start raki, you have to choose "vdccm". And remember also that if you want to use raki, instead of typing "dccm" in the above instructions, type "raki": it will start vdccm by itself.

Sorry for my unperfect english, I hope this will be useful for someone... if I have been not enough clear, tell me and I'll try to explain better
greetings to you all!
ffoletti
ffoletti

Can you help with this problem?

Provide an answer of your own, or ask Allan Caeg for more information if necessary.

To post a message you must log in.