PDA

View Full Version : Multisync, GPE & nsqld/gpesyncd


fresta
2006-01-01, 21:57
Hi,

I cannot make multisync work with the GPE pim suite on my Nokia 770.

I first tried multisync 0.82 with the multisync-gpe plugin on my linux box, but it needs the nsqld daemon and I cannot find a port of it to the Nokia 770.

I then upgraded to multisync 0.90 + opensync with libopensync-plugin-gpe. It needs gpesyncd on the Nokia 770 which I found on <http://dominion.kabel.utwente.nl/koen/maemo/gpesyncd>. Unfortunately it needs libmimedir-0.2.so.0 which is missing.

Any hints?

aflegg
2006-01-01, 23:07
There's a 0.2 branch of libmimedir here:

http://www.kernelconcepts.de/~fuchs/nokia770/experimental/

HTH,

Andrew

acidburn
2006-01-02, 23:32
i had the same problems

here is what i did (i write this from my mind - so i hope its correct ;-):

- become root
- add to the file "/etc/ld.so.conf" the line "/var/lib/install/usr/lib/" and save the file. so the system looks for the libs also in this path.

i think thats it....

i tried the same as you with gpesyncd, but i hadn't much success :-(
at first, all worked fine - i could sync my todo list, my calendar and my addressbook, but only one time. the other syncs failed...

i read, that the developers are still working on it... (thank you to the people who do this work...)

but if you have more luck - please tell me.

so good luck

fresta
2006-01-03, 07:25
Thanks for the replies.

acidburn - it is not a path problem since I have set LD_LIBRARY_PATH=/var/lib/install/usr/lib. There is a version mismatch since library present on my Nokia 770 is libmimedir-0.3.so.0. The best solution would probably be a recompile of gpesyncd with the newer version.

Andrew - thanks for the link, I'll give it a try with libmimedir0_0.2.1cvs200501114-1 and report back later.

/Fredrik

fresta
2006-01-05, 13:33
OK, it's not working but I have learnt a few things in the process.

It's not sufficient to set LD_LIBRARY_PATH, one has to add the path in /etc/ld.so.conf and run ldconfig.

Installing libmimedir0_0.2.1cvs200501114-1 did not work since then gpesyncd sais that it needs libmimedir-0.3.so.0!

I missed that in the instructions at http://maemo.org/maemowiki/HowToSyncGPE770withLinux a link is created from libmimedir-0.2.so.0 to libmimedir-0.3.so.0. I tried that and ran gpesyncd in the terminal on the 770 just to test it. It worked fine the first time but subsequent times it gives a segmentation fault.

The same thing happens if I install both versions of libmimedir (by some copying since the installer removes the other version when installing).

I guess I'll have to leave the rest in the hands of the programmers.

acidburn
2006-01-11, 10:59
have you tried it with the latest version of gpe?

i saw there is a new version on
http://oss.kernelconcepts.de/maemo/app-install.shtml

eg: gpe-calendar_0.67-2

thank you for the link to the sync howto - i haven't seen it. maybe i will try it on weekend.
if i find out more i will post it...

fresta
2006-01-22, 18:37
I just tried it with the latest version of gpe, but gpesyncd still segfaults. Probably a new version of gpesyncd is needed. :-(

hayao
2006-10-06, 08:54
Hello I bought my Nokia 770 on Monday and was interested in evolution sync.

I compiled gpesyncd for OS 2006 and packaged it in a .deb file.
I have no segfault but still some problems to sync.

Here is the package :
http://hayao.free.fr/gpesyncd_1.5_armel.deb

Can someone test it ?

fresta
2006-10-09, 20:44
Thanks a lot!!!

I installed it and synced to file using opensync on my laptop running Ubuntu (I found 0.19-dapper2 packages at http://www.in.fh-merseburg.de/~jahn/opensync/).

Connection now works and some of the events are transferred correctly. But then there are a lot of errors like "invalid character", "vformat began without a BEGIN", "Error flushing string: No space left on device", etc.

But now I can at least start to find out what the problems are! Great!!

Christaxi
2006-11-06, 12:32
Your last post sounded promising on the sync part. I was wondering whether you have made any progress with syncing the GPE pim suite you would like to share...

MoxFulder
2006-11-14, 11:43
how does gpesyncd is integreted with gpe-calendar ? Do we have to use the cmdline interface to sync ?

Graham Cobb
2006-11-16, 22:48
gpesyncd reads and writes the underlying database that gpe-calendar, gpe-contact, etc. use. It does have a local command mode (run it and type "help") but it is normally, in my experience, used remotely.

GPE support is integrated in Opensync (www.opensync.org). I use it to synchronise my Internet Tablet calendar and contacts with my Outlook data (see my OWA Sync page: http://www.cobb.uk.net/OWA/owasync.html).

I had this working well with IT2005. I have now upgraded to the latest IT2006 release and am using the gpesyncd from hayao (thanks very much!). This is synchronising with Opensync without major problems but only gpe-contacts seems to see the data. The GPE Contacts app sees my contacts and works fine but GPE Calendar comes up with no events shown.

The events are present in the database (I can read them using gpesyncd local commands), and gpe-calendar has a channel open to the (correct) database file but it is as though it is empty: nothing appears in the calendar display. This is strange as it all worked correctly with the older GPE and older operating system. I will investigate further and see if I can work out what is going wrong.

Edit: fixed URL formatting

Graham Cobb
2006-11-17, 00:35
By the way, the solution to the "No space left on device" error is to have TMPDIR=/var/tmp in the environment when gpesyncd --remote is invoked using ssh.

The easiest way to do that is to use an xterm on your Internet Tablet and gain root. Then issue the following commands:

cd /usr/bin
mv gpesyncd gpesyncd.real
cat <<EOD >gpesyncd
#!/bin/sh
export TMPDIR=/var/tmp
/usr/bin/gpesyncd.real "\$@"
EOD
chmod +x gpesyncd

This replaces gpesyncd with a shell script which defines the necessary environment variable and then invokes the real gpesyncd program.

hayao: any chance of updating your gpesyncd package to do this?

Graham

klohmann
2006-11-17, 11:21
I've been hoping to be able to sync GPE with evolution for a while; when I saw this post, I was intrigued. When I tried the link www.opensync.org, all I got was an error. Any help would be appreciated. Thanks, K.

Graham Cobb
2006-11-17, 14:08
The URLs got the closing parentheses included by mistake. Now fixed -- please try them again.

Graham Cobb
2006-11-21, 11:19
Unfortunately, the current GPE SVN is inconsistent: the database formats have changed and gpesyncd is incompatible. So, hayao's gpesyncd does not work with the IT2006 GPE PIM available from the http://downloads.kernelconcepts.de/maemo2 repository.

I am trying to see if I can create a new gpesyncd which is compatible. I will post an update here if/when I get anywhere.

Graham

cjackiewicz
2006-11-21, 13:53
Unfortunately, the current GPE SVN is inconsistent: the database formats have changed and gpesyncd is incompatible. So, hayao's gpesyncd does not work with the IT2006 GPE PIM available from the http://downloads.kernelconcepts.de/maemo2 repository.

I am trying to see if I can create a new gpesyncd which is compatible. I will post an update here if/when I get anywhere.

Graham
http://maemo.org/maemowiki/ApplicationCatalog2006#head-6685cb8cb4d2a3eb56555e154c90c1a5a2ec0add

Working without problem with IT2006 GPE.
--
Cezary

Graham Cobb
2006-11-22, 18:47
Cezary,

Working without problem with IT2006 GPE.


Interesting. I tried that version as well as hayao's version. It didn't work for me (with the version of GPE from Maemo Application Catalog 2006 (http://maemo.org/maemowiki/ApplicationCatalog2006#head-4e95f76331e779cd8277eb663de6ef73a88c90ec)) . Calendar events from opensync were never appearing in my gpe-calendar.

Looking at the code I would not expect it to work, as the database formats have changed.

Graham

cjackiewicz
2006-11-22, 18:55
Cezary,
Interesting. I tried that version as well as hayao's version. It didn't work for me (with the version of GPE from Maemo Application Catalog 2006 (http://maemo.org/maemowiki/ApplicationCatalog2006#head-4e95f76331e779cd8277eb663de6ef73a88c90ec)) . Calendar events from opensync were never appearing in my gpe-calendar.

Looking at the code I would not expect it to work, as the database formats have changed.

Graham
Code taken from svn gpe. I didn't try to synchronize calendar events; only contacts.
--
Cezary

Graham Cobb
2006-11-22, 20:24
Code taken from svn gpe. I didn't try to synchronize calendar events; only contacts.

Ah, yes, it works with contacts. But not with calendar events.

I am making good progress on a replacement gpesyncd to fix this. I will be posting an update to the Gpe-list@linuxtogo.org list later tonight, probably.

When it is working, would you be willing to make it available through your repository (I hope it will eventually go into GPE but that may not happen immediately)?

Graham

cjackiewicz
2006-11-22, 20:57
When it is working, would you be willing to make it available through your repository (I hope it will eventually go into GPE but that may not happen immediately)?
No problem.

Graham Cobb
2006-11-30, 00:19
Cezary,

The new gpesyncd is now in the GPE SVN (see the announcement earlier today on the gpe-list@linuxtogo.org list). This new version is compatible with the GPE PIM packages avaiable through the Maemo Application Directory. Synchronising using opensync is now working again for me.

Would it be possible for you to build a new package and make it available through your repository?

If anyone finds any problems with this new gpesyncd please log a bug report against gpesyncd in the GPE bugzilla (http://bugs.linuxtogo.org/).

Graham

coyote4til7
2006-11-30, 06:32
Is anyone using gpe with OS X? Any pointers on how to make GPE work with Addressbook and iCal?

cjackiewicz
2006-11-30, 07:40
Would it be possible for you to build a new package and make it available through your repository?
Yes, wait for this packages.
--
Cezary

cjackiewicz
2006-11-30, 20:33
Thx Graham, working well.

Install new version from my repository:
http://eko.one.pl/index.php?page=Nokia770_software#Application%20Rep ository
and read small howto synchronize gpe-calendar with Google Calendar (for linux users):
http://eko.one.pl/index.php?page=GPECalendarSync
--
Cezary

idiotprogrammer
2006-12-06, 02:18
a stupid question:

how does the desktop communicate/sync with the Nokia?

Do you need SSH/root access? Or can you do some kind of USB syncing?

Graham Cobb
2006-12-06, 03:04
Not a stupid question at all.

You need some sort of (TCP/IP) network connection between the desktop and the tablet. Normally this is done by having the tablet and the desktop connect to the same WiFi access point, although other topologies are perfectly possible.

Although software exists to run IP over a USB connection that is not a standard configuration (and I do not know of a package for the 770).

Opensync on the desktop will need to be told the IP address of the tablet. You can then either use SSH to connect (which is what I do) or you can run gpesyncd by hand on the tablet and it will listen out for connections. In this latter case, you need to log in to an Xterm window and type: gpesyncd --daemon
You also need to add the IP address of the desktop to the file ~//.gpe/gpesyncd.allow on the tablet.

Some thought has been given to creating an applet which will do these two steps without the need for an Xterm, but it doesn't exist yet.

Graham

pem
2006-12-18, 21:42
I tried to use the directions (http://eko.one.pl/index.php?page=GPECalendarSync) on Ubuntu Edgy, but got errors during sync with Google Calendar:

Traceback (most recent call last):
File "/usr/lib/opensync/google-cal-helper", line 402, in ?
sys.exit(main(sys.argv))
File "/usr/lib/opensync/google-cal-helper", line 394, in main
Received an entry http%3a%2f%2fwww%2egoogle%2ecom%2fcalendar%2ffeeds %2fpederm%2540gmail%2ecom%2fprivate%2ffull%2fftcfo p0n6vf8tjhdd9u6ibk4ks with data of size 88 from member 2 (google-calendar). Changetype ADDED
return fn(argv)
File "/usr/lib/opensync/google-cal-helper", line 286, in oper_get_all
data = e.dumpOsync()
File "/usr/lib/opensync/google-cal-helper", line 200, in dumpOsync
self.addElementContent(doc, event, 'DateStarted', xsdateToOsync(self.dtstart))
File "/usr/lib/opensync/google-cal-helper", line 118, in xsdateToOsync
raise DateConversionError("Invalid date/time: %s" % (s))
__main__.DateConversionError: Invalid date/time:
Received an entry http%3a%2f%2fwww%2egoogle%2ecom%2fcalendar%2ffeeds %2fpederm%2540gmail%2ecom%2fprivate%2ffull%2fbl31j kl28agjrhhf4pp9g08fjs with data of size 88 from member 2 (google-calendar). Changetype ADDED

Anybody tried this?

Regards pem

Graham Cobb
2006-12-19, 23:40
I don't use Google Calendar. It looks like the error is in that plugin so you may be best to ask about it on the Opensync mailing list -- see https://lists.sourceforge.net/lists/listinfo/opensync-users

Graham

cjackiewicz
2006-12-20, 07:41
File "/usr/lib/opensync/google-cal-helper", line 118, in xsdateToOsync
raise DateConversionError("Invalid date/time: %s" % (s))
__main__.DateConversionError: Invalid date/time:
Received an entry http%3a%2f%2fwww%2egoogle%2ecom%2fcalendar%2ffeeds %2fpederm%2540gmail%2ecom%2fprivate%2ffull%2fbl31j kl28agjrhhf4pp9g08fjs with data of size 88 from member 2 (google-calendar). Changetype ADDED
Regards pem
Problem with date format? Change locale to en and try again.

pem
2006-12-21, 17:56
It turned out the problem was due to a recurring event, which is not supported. A little more informative error-text would have been nice, but now it works and I am happy.

Two-way synchronization with Google Calendar is a major milestone for me and since Graham Cobb works on getting the msynctool to work on the N770 (please include the google-calendar plugin, Graham) I might some day be able to skip the Ubuntu-box and synchronize directly.

Anyway, thanks for your advices.

Regards pem

fpp
2006-12-21, 18:31
Two-way synchronization with Google Calendar is a major milestone for me and since Graham Cobb works on getting the msynctool to work on the N770 (please include the google-calendar plugin, Graham) I might some day be able to skip the Ubuntu-box and synchronize directly.

That would be way cool ! Does msynctool "speak" syncML or is it some other protocol ?

cjackiewicz
2006-12-21, 21:58
That would be way cool ! Does msynctool "speak" syncML or is it some other protocol ?

Yes, no problem with my n6630 (N770 (gpe) <-> linux (file - local backup) <-> (syncml) N6630)
--
Cezary

Graham Cobb
2006-12-21, 23:58
I have, indeed, been experimenting with running Opensync directly on the 770: so far I have the framework, the command line tool and the file, SyncML and GPE plug-ins working. I can sync directly between GPE on my N770 and my Nokia 6230i phone using bluetooth, for example. For more information see my message to the opensync-devel mailinglist: http://sourceforge.net/mailarchive/forum.php?thread_id=31244769&forum_id=44498

There is also discussion happening on the GPE mailing list and you can find info on my repository of ported packages at http://www.cobb.uk.net/770/index.html.

pem: Unfortunately I will be very busy until New Year but I will try to take a look at the google-calendar plugin after New Year.

Graham