maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Maemo 5 / Fremantle (https://talk.maemo.org/forumdisplay.php?f=40)
-   -   Open Groupware Server syncing with the N900? (https://talk.maemo.org/showthread.php?t=43594)

flya320 2010-02-06 22:11

Open Groupware Server syncing with the N900?
 
Hi there,

for the last days I was trying to find an open Groupware Server which syncs with the N900.

Unfortunately no joy until this time. The nearest I got was syncevolution with egroupware, My N900 contacts appeared in egroupware after the initial sync, however the sync ended in a failure.

I was unable to get useful information out of the apache/syncevolution logs.

Is there anybody out there who has a working solution?

I would appreciate muchmuchmuch!

tomster 2010-02-06 22:17

Re: Open Groupware Server syncing with the N900?
 
Did you try to set the EAS protocol on the N900 permanently to 2.5 as described in the MfE wiki?

DrWilken 2010-02-06 22:32

Re: Open Groupware Server syncing with the N900?
 
I've been thinking about setting up a sync server (on my Gentoo box) for syncing me and my girlfriend's N900's too, but haven't yet decided which solution to use... :)

Maybe I should give eGroupWare a go tomorrow...

DrWilken 2010-02-06 22:36

Re: Open Groupware Server syncing with the N900?
 
I was looking into Funambol too the other day but since it's a headless server and Funambol is java GUI based I decided not to use that...

eGroupWare might be a better alternative since it's web-based...

hstende 2010-02-06 22:39

Re: Open Groupware Server syncing with the N900?
 
I havn't tried it but maybe open xchange
http://www.open-xchange.com/oxpedia#OXHESECommunity

And then you could set up a funambol server with opem-xchange-connector to sync between syncevolution and open xchange.
I think funambol 7 got the connector.

If it's just for sync syncevolution and funambol-server should be enough.

DrWilken 2010-02-06 22:45

Re: Open Groupware Server syncing with the N900?
 
If using Funambol (or any other SyncML server) I don't think You need open-xchange...?

Why would You need two sync servers?

tomster 2010-02-06 22:50

Re: Open Groupware Server syncing with the N900?
 
Just for the records:
I've got Scalix (free) & Scalix' Active Sync (€ 200 for 5 users) up and running with my N900. Calendar, Contacts & Email get synced.

Haven't found a completely "free" setup though.

hstende 2010-02-06 22:53

Re: Open Groupware Server syncing with the N900?
 
yes it its only for sync you only need a syncserver. But if you want more of the groupware-functionality you maybe need to add some service between.
Like I have a domino server at work and to support the syncml I have to use funambol between my mobile and domino-server.

DrWilken 2010-02-06 22:55

Re: Open Groupware Server syncing with the N900?
 
Aaahhh... I see... :)

We use Domino too at work, but I believe there is a version of Notes for Armel somewhere... ;)

flya320 2010-02-06 23:18

Re: Open Groupware Server syncing with the N900?
 
Thanks for the real quick answers, guys!

Tomorrow I will try out the EAS Protocol setting and I think I will also have a go with funabol.

Keep you informed...

flya320 2010-02-08 11:24

Re: Open Groupware Server syncing with the N900?
 
Some Update here:

the EAS Protocol setting didn't help with egroupware, since egroupware is synced with the symcML Protocol.

I also tried a go with funambol, which as of now syncs with the N900 successfully! I now have to figure out, if just funambol is enough for what I need, or if I use funambol as a link between the n900 and a groupware server. Some work ahead!

DrWilken 2010-02-08 11:37

Re: Open Groupware Server syncing with the N900?
 
Maybe I should give Funambol a go again... Guess I could use port forwarding (in SSH) to display the Java GUI on my laptop during setup... :)

robbie 2010-02-08 12:55

Re: Open Groupware Server syncing with the N900?
 
I tried Zarafa (great system) with z-push but ran into some issues. I had some exhaustive irc sessions with one of the developers and it seems that there are some bugs in the Mfe software from Nokia. There are (at least) three issues:

1) on an initial sync, the N900 creates a second connection during the sync where it tries to sync the exact same items as the first connection. So you end up with a lot of duplicates. An ugly patch in z-push can prevent that but has to be disabled after initial sync.

2) the N900 doesn't follow the Activesync specifications with timezones. Full day events are not synced correct. An ugly patch in z-push can help but not when you travel across timezones.

3) Some pictures from N900 contacts aren't synced so they are empty on Zarafa. On the next sync they are removed some N900 too. The N900 doesn't see the pictures when syncing. I checked that in the N900 synclog.

These issues are reported to Vitaly of Nokia.

So unfortunaty the combination of Zarafa with N900 doesn't work well in firmware 1.0 and 1.1. This is not a problem of Zarafa but the Mfe implementation of the N900. The Zarafa developer was really helpfull and spent a couple of hours debugging the syncing.

flya320 2010-02-08 15:01

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by DrWilken (Post 515997)
Maybe I should give Funambol a go again... Guess I could use port forwarding (in SSH) to display the Java GUI on my laptop during setup... :)

I have not tried it yet, but the funamboladmin tool *should* work from another computer via network. This will be an issue in my setup, too, since the server where I would like to run funambol is a non X, non monitor, no nothing server ;-)

I will play a bit and report back...

Well, I just installed funamboladmin on my windoofs laptop, and it is smoothly possible to setup my test funambol server on my debian box via network ! This is looking more and mor promising here...

DrWilken 2010-02-08 15:08

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by flya320 (Post 516327)
I have not tried it yet, but the funamboladmin tool *should* work from another computer via network. This will be an issue in my setup, too, since the server where I would like to run funambol is a non X, non monitor, no nothing server ;-)

I will play a bit and report back...

Same goes for my server except it does have a nice little 7-8'ish " monitor... :)

flya320 2010-02-08 15:12

Re: Open Groupware Server syncing with the N900?
 
config via network works for funambol, see my edited earlier post!

flya320 2010-02-08 15:45

Re: Open Groupware Server syncing with the N900?
 
In case someone is interested in setting up a funambol server on a linux box, some notes, what I did:

download funambol:

http://download.forge.objectweb.org/...mbol-8.0.2.bin

as root:
chmod +x funambol-8.0.2.bin
./funambol-8.0.2.bin

accept the license, install to somewere you like, /opt seems fine to me
do not start the server yet.

My suggestion here is to run the server as a dedicated user, so add a group funambol and a user funambol:

groupadd -g [some GID free you like] funambol
useradd -c 'Funambol Server User' -d /var/empty -g funambol -s /bin/bash -u [some free UID] funambol

chown -R funambol.funambol /opt/Funambol

change to user funambol:
su - funambol

and start the bugger:
/opt/Funambol/bin/funambol start

check with your browser:
http://localhost:8080/funambol/
if the server is responding.

you also can use the browser of another machine, substiuting localhost with the ip of the funambol server

Now with a user having access to a running X server, you can start the admin tool:

/opt/Funambol/admin/bin/funamboladmin

if nothing happens, try again with the user which you used for login on that box.

Now, create a testuser with the admintool and install syncevolution on n900:

install syncevolution via extras-devel repo on the n900, then open a console on n900

and configure like described here:

http://wiki.maemo.org/Sync#funambol

then try to sync with

syncevolution funambol

this worked for me quite nicely. Now I have to find out, how to get funambol to work on my real server... lets see

Hope, this helps someone. In case something does not work as I said, I wrote this from memory, so there might be mistakes... tell me, I will try to correct this little HOWTO...

vitaly_repin 2010-02-08 15:58

Re: Open Groupware Server syncing with the N900?
 
Quote:

1) on an initial sync, the N900 creates a second connection during the sync where it tries to sync the exact same items as the first connection. So you end up with a lot of duplicates. An ugly patch in z-push can prevent that but has to be disabled after initial sync.
Not correct. The N900 establishes connection to the server. Waits 90 seconds to receive a response. If the response is not received in this amount of time, the connection is dropped and new request to the server is sent. As no response from the server was received for the previous sync attempt, no dupe appears.


Quote:

2) the N900 doesn't follow the Activesync specifications with timezones. Full day events are not synced correct. An ugly patch in z-push can help but not when you travel across timezones.
This is something we are investigating currently.

Quote:

3) Some pictures from N900 contacts aren't synced so they are empty on Zarafa. On the next sync they are removed some N900 too. The N900 doesn't see the pictures when syncing. I checked that in the N900 synclog.
Looks like, these are jpeg pictures. Yes: http://talk.maemo.org/showpost.php?p...postcount=1114

DrWilken 2010-02-08 18:22

Re: Open Groupware Server syncing with the N900?
 
Wow... Funambol has a ALOT of listening ports...!

I have to open up the ones I need (only for my LAN)... Any idea which ones are needed?

Code:

mainframe scripts # netstat -pan --tcp | grep LISTEN | grep java
tcp        0      0 0.0.0.0:56804          0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 127.0.0.1:8005          0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 127.0.0.1:37381        0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 0.0.0.0:4101            0.0.0.0:*              LISTEN      13689/java         
tcp        0      0 0.0.0.0:8101            0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 127.0.0.1:48582        0.0.0.0:*              LISTEN      13689/java         
tcp        0      0 127.0.0.1:48359        0.0.0.0:*              LISTEN      13699/java         
tcp        0      0 0.0.0.0:8009            0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 0.0.0.0:4745            0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 10.13.20.1:5001        0.0.0.0:*              LISTEN      10627/java         
tcp        0      0 0.0.0.0:40237          0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 0.0.0.0:45455          0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 0.0.0.0:8080            0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 0.0.0.0:51762          0.0.0.0:*              LISTEN      13689/java         
tcp        0      0 0.0.0.0:44436          0.0.0.0:*              LISTEN      13699/java         
tcp        0      0 0.0.0.0:38581          0.0.0.0:*              LISTEN      13689/java         
tcp        0      0 0.0.0.0:56950          0.0.0.0:*              LISTEN      13699/java         
tcp        0      0 127.0.0.1:45335        0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 0.0.0.0:54586          0.0.0.0:*              LISTEN      13676/java         
tcp        0      0 0.0.0.0:7101            0.0.0.0:*              LISTEN      13651/java         
tcp        0      0 0.0.0.0:3101            0.0.0.0:*              LISTEN      13699/java         
tcp6      0      0 :::9001                :::*                    LISTEN      13646/java

Port 5001 is ps3mediaserver, but the rest are Funambol AFAIK...

robbie 2010-02-08 21:16

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by vitaly_repin (Post 516397)
Not correct. The N900 establishes connection to the server. Waits 90 seconds to receive a response. If the response is not received in this amount of time, the connection is dropped and new request to the server is sent. As no response from the server was received for the previous sync attempt, no dupe appears.

Well, i'm sorry if i offended you. Maybe it's Zarafa or the z-push component.

All i know is what i see in the Zarafa logs and that is that it is still adding items to the (Zarafa) calendar while i get a new connection from my N900. So for one reason, the N900 thinks it isn't connected but it is sending calendar items anyway. And after the second connect, Zarafa gets the same items as on the first connect. This only happens on initial sync. I have about 2200 old appointments that needs to be synced to the server.

So maybe z-push should send a message back earlier that it connected ok and that it is receiving items. I really don't know.

If you want, i can create some logs for you to investigate. I really hope this issue gets fixed and want to help where i can.

I understand that you received some information from Andreas from the z-push component on the timezone issue. If you want, i can provide you more info on that too.

I read that you fixed the jpeg issue in an internal build. Thats nice. Can't wait to test the new version :)

Thanks for replying on the issues.

vitaly_repin 2010-02-09 07:32

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by robbie (Post 516793)
Well, i'm sorry if i offended you. Maybe it's Zarafa or the z-push component.

Don't worry. This is just the logic of timeouts which is innovative :) but is not as good as it shall be.

Just to explain it in the simple way. Client sends the portion of the data to the server and waits for the response from the server. Zarafa processes them (adds the data into the database) and sends the reply to the client AFTER the processing is finished. And as processing of the data in your case takes significant amount of time, the client drops the connection because timeout logic starts to think that the connection to the server is not active anymore.

The idea was to address these "faked" connection which happen from time to time especially in mobile connectivity (GPRS etc). But it looks like it does not work as expected with the servers other than MS Exchange (It looks like, MS stuff starts to respond immediately regardless of amount of data the client sends to them).

So, we are now re-thinking the whole idea.

flya320 2010-02-10 10:19

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by DrWilken (Post 516599)
Wow... Funambol has a ALOT of listening ports...!

I havent tried it, but I assume to sync devices the only one you need is the 8080 port. That is the one syncevolution connects to. I would keep that one open with iptables, the other only for localhost connections.

DrWilken 2010-02-10 11:14

Re: Open Groupware Server syncing with the N900?
 
I'll try that... ;)

mlb 2010-02-26 09:50

Re: Open Groupware Server syncing with the N900?
 
It looks like it should possible to sync N900 with eGroupware using settings for Funambol and SyncML. However, I could not get that working...

http://www.egroupware.org/index.php?...SyncMLFunambol

http://messinet.com/trac/mss/wiki/SyncML

hillbicks 2010-08-10 17:05

Re: Open Groupware Server syncing with the N900?
 
Quote:

Originally Posted by tomster (Post 513696)
Just for the records:
I've got Scalix (free) & Scalix' Active Sync (€ 200 for 5 users) up and running with my N900. Calendar, Contacts & Email get synced.

Haven't found a completely "free" setup though.

Are you still satisfied with your setup? I'm thinking of purchasing the ActiveSync package (well, it depends what they want to charge for a single license), but I would like to here from someone who is using it already.

Thanks.

caco3 2011-04-13 15:58

Re: Open Groupware Server syncing with the N900?
 
Hi all
I just wrote a tutorial for egroupware and syncevolution: http://talk.maemo.org/showthread.php?t=72046
If somebody is interested, I also can offer a free egroupware account on my server!


All times are GMT. The time now is 05:38.

vBulletin® Version 3.8.8