Problems syncing with funambol clients

View: New views
10 Messages — Rating Filter:   Alert me  

Problems syncing with funambol clients

by Remko Muis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I use the latest stable cvs version of horde, framework libs and several
applications. On my pocket-pc, I installed the funambol plugin for
Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
the Funambol Mozilla Sync Client installed. Neither of these work,
although I followed the directions of the Wiki, have all the required
pear packages installed (as far as I can see), commented out the 'realm'
line in servers.php, disabled compress pages, etc. There are no logs in
/tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
because I use self-signed certificates.

The Win Mobile plugin simply says: Please wait: checking your
credentials... and then complains: Sync not completed, please try later.
If the error persists, contact Technical support. Syncing with
myFunambol works, however.

The Mozilla plugin is more informative, the log is attached. I tried
contacts, notes and tasks separately, but to no avail.

I also use the funambol plugin for Outlook, which works better (but
seems to crash when encountering recurring events), so the strange thing
is that I have a working combination of horde + one Funambol plugin, but
can't get other plugins to work!

Can anybody please help me out? Thanks in advance!

Remko


2009-08-05 21:22:46 GMT +1:00 - # Funambol Mozilla Sync Client Log

21:22:46 GMT +1:00 [DEBUG] - Creating SyncSources...
21:22:46 GMT +1:00 [DEBUG] - [contact] ContactSyncSource(): Contact folder: "abook.mab"
21:22:46 GMT +1:00 [DEBUG] - [contact] ContactSyncSource(): Contact folder found: "Persoonlijk adresboek"
21:22:46 GMT +1:00 [DEBUG] - [event] CalendarSyncSource(): Calendar folder: "moz-profile-calendar://"
21:22:46 GMT +1:00 [DEBUG] - [event] CalendarSyncSource(): Calendar found: 'Algemeen'
21:22:46 GMT +1:00 [DEBUG] - [task] CalendarSyncSource(): Calendar folder: "moz-profile-calendar://"
21:22:46 GMT +1:00 [DEBUG] - [task] CalendarSyncSource(): Calendar found: 'Algemeen'
21:22:46 GMT +1:00 [INFO] - Checking for contact sync...
21:22:46 GMT +1:00 [INFO] - Required sync mode: 'two way sync'
21:22:46 GMT +1:00 [INFO] - Checking for event sync...
21:22:46 GMT +1:00 [INFO] - The source event isn't set to be synced
21:22:46 GMT +1:00 [INFO] - Checking for task sync...
21:22:46 GMT +1:00 [INFO] - The source task isn't set to be synced
21:22:46 GMT +1:00 [DEBUG] - Set the synchronization listeners
21:22:46 GMT +1:00 [INFO] - --------------------> Begin SyncML Synchronization <--------------------
21:22:46 GMT +1:00 [DEBUG] - Synchronization URL: http://horde.familiemuis.net/rpc.php
21:22:46 GMT +1:00 [INFO] - Preparing synchronization of contact...
21:22:46 GMT +1:00 [DEBUG] - Checking devinfo...
21:22:46 GMT +1:00 [DEBUG] - devinfo hash: t9Km2TvOwxZ7kfZQ3oOlPg==
21:22:46 GMT +1:00 [DEBUG] - devinfo changed, retransmit
21:22:46 GMT +1:00 [DEBUG] - Initialization message:
21:22:46 GMT +1:00 [DEBUG] - User Agent = Funambol Mozilla Sync Client v0.9.1
21:22:46 GMT +1:00 [DEBUG] - <?xml version="1.0" encoding="UTF-8"?>
<SyncML>
<SyncHdr><VerDTD>1.2</VerDTD>
<VerProto>SyncML/1.2</VerProto>
<SessionID>1249500166</SessionID>
<MsgID>1</MsgID>
<Target><LocURI>http://horde.familiemuis.net/rpc.php</LocURI>
</Target>
<Source><LocURI>fmz-AeTklUUuMaVB6V6LRKek7w==</LocURI>
</Source>
<Cred><Meta><Format xmlns="syncml:metinf">b64</Format>
<Type xmlns="syncml:metinf">syncml:auth-basic</Type>
</Meta>
<Data>cmVta286cmVtdTA5MDQ=</Data>
</Cred>
<Meta><MaxMsgSize xmlns="syncml:metinf">250000</MaxMsgSize>
</Meta>
</SyncHdr>
<SyncBody><Alert><CmdID>1</CmdID>
<Data>200</Data>
<Item><Target><LocURI>contacts</LocURI>
</Target>
<Source><LocURI>contact</LocURI>
</Source>
<Meta><Anchor xmlns="syncml:metinf"><Last>0</Last>
<Next>1249500166</Next>
</Anchor>
</Meta>
</Item>
</Alert>
<Put><CmdID>2</CmdID>
<Meta><Type xmlns="syncml:metinf">application/vnd.syncml-devinf+xml</Type>
</Meta>
<Item><Source><LocURI>./devinf12</LocURI>
</Source>
<Data><DevInf xmlns="syncml:devinf"><VerDTD>1.2</VerDTD>
<Man>Funambol</Man>
<SwV>0.9.1</SwV>
<DevID>fmz-AeTklUUuMaVB6V6LRKek7w==</DevID>
<DevTyp>workstation</DevTyp>
<UTC/><DataStore><SourceRef>contact</SourceRef>
<Rx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
</Tx-Pref>
<CTCap><CTType>text/x-vcard</CTType>
<VerCT>2.1</VerCT>
<Property><PropName>BEGIN</PropName>
<PropParam><ParamName>VCARD</ParamName>
</PropParam>
</Property>
<Property><PropName>VERSION</PropName>
<PropParam><ParamName>2.1</ParamName>
</PropParam>
</Property>
<Property><PropName>N</PropName>
</Property>
<Property><PropName>FN</PropName>
</Property>
<Property><PropName>NICKNAME</PropName>
</Property>
<Property><PropName>TEL</PropName>
<PropParam><ParamName>HOME</ParamName>
</PropParam>
</Property>
<Property><PropName>TEL</PropName>
<PropParam><ParamName>WORK</ParamName>
</PropParam>
</Property>
<Property><PropName>TEL</PropName>
<PropParam><ParamName>CELL</ParamName>
</PropParam>
</Property>
<Property><PropName>TEL</PropName>
<PropParam><ParamName>PAGER</ParamName>
</PropParam>
</Property>
<Property><PropName>TEL</PropName>
<PropParam><ParamName>FAX</ParamName>
</PropParam>
</Property>
<Property><PropName>EMAIL</PropName>
<PropParam><ParamName>INTERNET</ParamName>
</PropParam>
</Property>
<Property><PropName>EMAIL</PropName>
<PropParam><ParamName>INTERNET</ParamName>
</PropParam>
<PropParam><ParamName>HOME</ParamName>
</PropParam>
</Property>
<Property><PropName>EMAIL</PropName>
<PropParam><ParamName>INTERNET</ParamName>
</PropParam>
<PropParam><ParamName>HOME</ParamName>
</PropParam>
<PropParam><ParamName>X-FUNAMBOL-INSTANTMESSENGER</ParamName>
</PropParam>
</Property>
<Property><PropName>ADR</PropName>
</Property>
<Property><PropName>ADR</PropName>
<PropParam><ParamName>HOME</ParamName>
</PropParam>
</Property>
<Property><PropName>ADR</PropName>
<PropParam><ParamName>WORK</ParamName>
</PropParam>
</Property>
<Property><PropName>ORG</PropName>
</Property>
<Property><PropName>TITLE</PropName>
</Property>
<Property><PropName>URL</PropName>
<PropParam><ParamName>HOME</ParamName>
</PropParam>
</Property>
<Property><PropName>URL</PropName>
<PropParam><ParamName>WORK</ParamName>
</PropParam>
</Property>
<Property><PropName>BDAY</PropName>
</Property>
<Property><PropName>NOTE</PropName>
</Property>
<Property><PropName>END</PropName>
<PropParam><ParamName>VCARD</ParamName>
</PropParam>
</Property>
</CTCap>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
<SyncType>6</SyncType>
<SyncType>4</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>event</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT>2.0</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT>2.0</VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
<SyncType>6</SyncType>
<SyncType>4</SyncType>
</SyncCap>
</DataStore>
<DataStore><SourceRef>task</SourceRef>
<Rx-Pref><CTType>text/calendar</CTType>
<VerCT>2.0</VerCT>
</Rx-Pref>
<Tx-Pref><CTType>text/calendar</CTType>
<VerCT>2.0</VerCT>
</Tx-Pref>
<SyncCap><SyncType>2</SyncType>
<SyncType>1</SyncType>
<SyncType>6</SyncType>
<SyncType>4</SyncType>
</SyncCap>
</DataStore>
</DevInf>
</Data>
</Item>
</Put>
<Final/></SyncBody>
</SyncML>
21:22:46 GMT +1:00 [DEBUG] - Connecting to horde.familiemuis.net:80
21:22:46 GMT +1:00 [DEBUG] - Requesting resource /rpc.php
21:23:22 GMT +1:00 [DEBUG] - Message sent
21:23:22 GMT +1:00 [DEBUG] - Data sent succesfully to server. Server responds OK
21:23:22 GMT +1:00 [DEBUG] - Header: HTTP/1.1 200 OK
Date: Wed, 05 Aug 2009 19:22:29 GMT
Server: Apache/2.2.8 (Fedora)
FFI-Control: Data
FFI-Mode: Content
X-Powered-By: PHP/5.2.4
Content-length: 228
Accept-Charset: UTF-8
Content-Type: text/xml


21:23:22 GMT +1:00 [DEBUG] - Reading response...
21:23:22 GMT +1:00 [DEBUG] - Content-length: 228
21:23:22 GMT +1:00 [DEBUG] - Response read:
<?xml version="1.0"?><disco:discovery xmlns:disco="http://schemas.xmlsoap.org/disco/" xmlns:scl="http://schemas.xmlsoap.org/disco/scl/">
<scl:contractRef ref="http://www.familiemuis.net/horde/rpc.php?wsdl" />
</disco:discovery>

21:23:22 GMT +1:00 [ERROR] - Error processing SyncHdr Status
21:23:22 GMT +1:00 [ERROR] - Error in preparing sync: Error reading status code of command 'SyncHdr'
21:23:22 GMT +1:00 [DEBUG] - ===========================================================
================   SYNCHRONIZATION REPORT   ===============
===========================================================
Last error code = 700
Last error msg  = Error reading status code of command 'SyncHdr'

----------|--------CLIENT---------|--------SERVER---------|
  Source  |  NEW  |  MOD  |  DEL  |  NEW  |  MOD  |  DEL  |
----------|-----------------------------------------------|
   contact|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|
----------|-----------------------------------------------|
     event|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|
----------|-----------------------------------------------|
      task|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|  0/  0|
----------|-----------------------------------------------|

contact:
----------
   Source State    = 0
   Last error code = 0
   Last error msg  = (null)
event:
----------
   Source State    = 0
   Last error code = 0
   Last error msg  = (null)
task:
----------
   Source State    = 0
   Last error code = 0
   Last error msg  = (null)


21:23:22 GMT +1:00 [INFO] - --------------------> End SyncML Synchronization <--------------------
21:23:22 GMT +1:00 [DEBUG] - Saving configuration settings...
21:23:22 GMT +1:00 [DEBUG] - Saving configuration...
21:23:22 GMT +1:00 [DEBUG] - Writing configuration settings to the management tree
21:23:22 GMT +1:00 [DEBUG] - Configuration saved.
21:23:26 GMT +1:00 [DEBUG] - Unset listeners

--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

Re: Problems syncing with funambol clients

by Rashid N. Achilov-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Thursday 06 August 2009, Remko Muis wrote:
>
> The Win Mobile plugin simply says: Please wait: checking your
> credentials... and then complains: Sync not completed, please try later.
> If the error persists, contact Technical support. Syncing with
> myFunambol works, however.

Funambol does a "strange" thing - it has renamed their databases, used in sync
to non-standard names, so sync with non-Funambol servers simply does not
work - nothing to sync, databases are different.

Deinstall latest Funambol and install Funambol 6.5 for WinMobile - I had
installed it at cheap corporate PDA Mitac MIO DigiWalker (someone) witn WM
5.x - all worked

In spite of this, Funambol for MS Outlook works :-) In Mozilla plugin try to
rename databases, if it is possible
--
   With Best Regards.
   Rashid N. Achilov (RNA1-RIPE), JID: citycat4@...
   OOO "ACK" telecommunications administrator, e-mail: achilov-rn [at] askd.ru
   PGP: 83 CD E2 A7 37 4A D5 81 D6 D6 52 BF C9 2F 85 AF 97 BE CB 0A
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

Re: Problems syncing with funambol clients

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Remko Muis <remko@...>:

> Hi all,
>
> I use the latest stable cvs version of horde, framework libs and several
> applications. On my pocket-pc, I installed the funambol plugin for
> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
> the Funambol Mozilla Sync Client installed. Neither of these work,
> although I followed the directions of the Wiki, have all the required
> pear packages installed (as far as I can see), commented out the 'realm'
> line in servers.php, disabled compress pages, etc. There are no logs in
> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
> because I use self-signed certificates.
>
> The Win Mobile plugin simply says: Please wait: checking your
> credentials... and then complains: Sync not completed, please try later.
> If the error persists, contact Technical support. Syncing with
> myFunambol works, however.
>
> The Mozilla plugin is more informative, the log is attached. I tried
> contacts, notes and tasks separately, but to no avail.
>
> I also use the funambol plugin for Outlook, which works better (but
> seems to crash when encountering recurring events), so the strange thing
> is that I have a working combination of horde + one Funambol plugin, but
> can't get other plugins to work!
>
> Can anybody please help me out? Thanks in advance!
The server thinks this is a SOAP request. This could only happen if  
the client is sending the request with an incorrect MIME type. To  
correctly determine SyncML requests, the incoming MIME type must be  
either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If  
the clients send something different, it's broken.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

attachment0 (204 bytes) Download Attachment

Re: Problems syncing with funambol clients

by Remko Muis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jan,

Thanks for your help. I already have both mime types in my
/etc/mime.types. However, I doubt that the clients themselves are
broken, since I tried the mozilla plugin on two different machines, and
the WinMobile plugin on my phone. That makes three independent
instances. Might it be that Apache is forwarding the request somehow in
the wrong mime type? But then, why is the Outlook plugin working? What
happens when rpc.php is loaded? Does it have to do with the required
pear packages?

By the way: pear list gives:

>
> Installed packages, channel pear.php.net:
> =========================================
> Package            Version  State
> Archive_Tar        1.3.3    stable
> Auth_SASL          1.0.2    stable
> Cache              1.5.5    stable
> Console_Getopt     1.2.3    stable
> DB                 1.7.13   stable
> Date               1.4.7    stable
> File               1.3.0    stable
> File_PDF           0.3.2    beta
> HTTP_Request       1.4.4    stable
> HTTP_WebDAV_Server 1.0.0RC4 beta
> Log                1.11.4   stable
> MDB2               2.4.1    stable
> MDB2_Driver_mysql  1.4.1    stable
> Mail               1.1.14   stable
> Mail_Mime          1.5.2    stable
> Mail_mimeDecode    1.5.0    stable
> Net_FTP            1.3.7    stable
> Net_IMAP           1.1.0    stable
> Net_SMS            0.2.0    beta
> Net_SMTP           1.3.2    stable
> Net_Socket         1.0.9    stable
> Net_URL            1.0.15   stable
> PEAR               1.8.1    stable
> SOAP               0.12.0   beta
> Services_Weather   1.4.4    stable
> Structures_Graph   1.0.2    stable
> Text_Diff          1.1.1    stable
> VFS                0.3.0    beta
> XML_Parser         1.3.2    stable
> XML_RPC            1.5.1    stable
> XML_Serializer     0.20.0   beta
> XML_Util           1.2.1    stable
pear list -c pear.horde.org gives:

> Installed packages, channel pear.horde.org:
> ===========================================
> Package              Version State
> Argv                 0.1.0   beta
> Auth                 0.1.1   beta
> DOM                  0.2.0   beta
> Date                 0.1.0   beta
> Feed                 0.2.1   beta
> File_CSV             0.1.1   beta
> Group                0.1.0   beta
> Horde_Alarm          0.1.0   beta
> Horde_Block          0.0.2   alpha
> Horde_Browser        0.0.2   alpha
> Horde_CLI            0.1.0   alpha
> Horde_Cache          0.1.0   beta
> Horde_Cipher         0.0.2   alpha
> Horde_Compress       0.0.2   alpha
> Horde_Crypt          0.0.2   alpha
> Horde_Data           0.0.3   beta
> Horde_DataTree       0.0.3   alpha
> Horde_Editor         0.0.2   alpha
> Horde_Form           0.0.2   alpha
> Horde_Framework      0.0.2   beta
> Horde_History        0.0.2   alpha
> Horde_IMAP           0.0.3   beta
> Horde_Image          0.0.2   alpha
> Horde_LDAP           0.0.2   alpha
> Horde_Lens           0.1.0   beta
> Horde_Loader         0.1.0   alpha
> Horde_Lock           0.0.1   alpha
> Horde_MIME           0.0.2   alpha
> Horde_Maintenance    0.0.2   alpha
> Horde_Memcache       0.1.0   beta
> Horde_Mobile         0.0.2   alpha
> Horde_NLS            0.0.2   alpha
> Horde_Notification   0.0.2   alpha
> Horde_Prefs          0.0.3   alpha
> Horde_RPC            0.0.2   beta
> Horde_Rampage        0.1.3   alpha
> Horde_Reflection     0.1.0   alpha
> Horde_SQL            0.0.2   alpha
> Horde_Scheduler      0.0.2   alpha
> Horde_Secret         0.0.2   alpha
> Horde_Serialize      0.0.2   alpha
> Horde_SessionHandler 0.0.3   alpha
> Horde_SessionObjects 0.0.3   alpha
> Horde_Share          0.0.3   beta
> Horde_SpellChecker   0.0.2   alpha
> Horde_Template       0.0.2   alpha
> Horde_Text_Filter    0.0.2   alpha
> Horde_Text_Textile   0.1.0   beta
> Horde_Token          0.0.4   beta
> Horde_Tree           0.0.2   alpha
> Horde_UI             0.0.2   alpha
> Horde_Util           0.0.2   alpha
> Horde_Xml_Element    0.1.0   beta
> Http_Client          0.3.0   beta
> Kolab                0.0.6   alpha
> Kolab_Filter         0.1.6   alpha
> Kolab_Format         1.0.1   stable
> Kolab_FreeBusy       0.1.5   alpha
> Kolab_Server         0.5.0   alpha
> Kolab_Storage        0.4.0   alpha
> Kolab_Test           0.1.0   alpha
> Log                  0.1.0   beta
> Net_IMSP             0.0.6   beta
> Perms                0.1.0   beta
> Rdo                  0.3.0   beta
> Routes               0.1.0   beta
> SyncML               0.7.0   beta
> Text_Diff            1.1.0   stable
> Text_Flowed          0.0.2   alpha
> Util                 0.1.0   beta
> VC                   0.0.4   beta
> VFS_ISOWriter        0.0.2   alpha
> View                 0.2.1   beta
> XML_WBXML            0.5.1   beta
> Yaml                 1.0.1   stable
> admintools           0.2.0   beta
> devtools             0.1.0   beta
> iCalendar            0.1.0   beta



Jan Schneider schreef:

> Zitat von Remko Muis <remko@...>:
>
>> Hi all,
>>
>> I use the latest stable cvs version of horde, framework libs and several
>> applications. On my pocket-pc, I installed the funambol plugin for
>> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
>> the Funambol Mozilla Sync Client installed. Neither of these work,
>> although I followed the directions of the Wiki, have all the required
>> pear packages installed (as far as I can see), commented out the 'realm'
>> line in servers.php, disabled compress pages, etc. There are no logs in
>> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
>> because I use self-signed certificates.
>>
>> The Win Mobile plugin simply says: Please wait: checking your
>> credentials... and then complains: Sync not completed, please try later.
>> If the error persists, contact Technical support. Syncing with
>> myFunambol works, however.
>>
>> The Mozilla plugin is more informative, the log is attached. I tried
>> contacts, notes and tasks separately, but to no avail.
>>
>> I also use the funambol plugin for Outlook, which works better (but
>> seems to crash when encountering recurring events), so the strange thing
>> is that I have a working combination of horde + one Funambol plugin, but
>> can't get other plugins to work!
>>
>> Can anybody please help me out? Thanks in advance!
>
> The server thinks this is a SOAP request. This could only happen if
> the client is sending the request with an incorrect MIME type. To
> correctly determine SyncML requests, the incoming MIME type must be
> either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If
> the clients send something different, it's broken.
>
> Jan.
>
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

Re: Problems syncing with funambol clients

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Remko Muis <remko@...>:

> Hi Jan,
>
> Thanks for your help. I already have both mime types in my
> /etc/mime.types. However, I doubt that the clients themselves are
> broken, since I tried the mozilla plugin on two different machines, and
> the WinMobile plugin on my phone. That makes three independent
> instances. Might it be that Apache is forwarding the request somehow in
> the wrong mime type?

This is unlikely, but the only explanation I have right now. Or maybe  
your PHP installation doesn't populate the $_SERVER['CONTENT_TYPE']  
variable correctly.

> But then, why is the Outlook plugin working?

No idea.

> What
> happens when rpc.php is loaded?

Take a look at the code. It basically runs several tests against the  
incoming request to determine which RPC backend is supposed to answer  
the call.
SyncML is being used if the mentioned variable has one of the SyncML  
mime types.
You can try adding Horde::logMessage() calls in rpc.php to see what  
the values are and what the code path is.

> Does it have to do with the required
> pear packages?

No.

> Jan Schneider schreef:
>> Zitat von Remko Muis <remko@...>:
>>
>>> Hi all,
>>>
>>> I use the latest stable cvs version of horde, framework libs and several
>>> applications. On my pocket-pc, I installed the funambol plugin for
>>> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
>>> the Funambol Mozilla Sync Client installed. Neither of these work,
>>> although I followed the directions of the Wiki, have all the required
>>> pear packages installed (as far as I can see), commented out the 'realm'
>>> line in servers.php, disabled compress pages, etc. There are no logs in
>>> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
>>> because I use self-signed certificates.
>>>
>>> The Win Mobile plugin simply says: Please wait: checking your
>>> credentials... and then complains: Sync not completed, please try later.
>>> If the error persists, contact Technical support. Syncing with
>>> myFunambol works, however.
>>>
>>> The Mozilla plugin is more informative, the log is attached. I tried
>>> contacts, notes and tasks separately, but to no avail.
>>>
>>> I also use the funambol plugin for Outlook, which works better (but
>>> seems to crash when encountering recurring events), so the strange thing
>>> is that I have a working combination of horde + one Funambol plugin, but
>>> can't get other plugins to work!
>>>
>>> Can anybody please help me out? Thanks in advance!
>>
>> The server thinks this is a SOAP request. This could only happen if
>> the client is sending the request with an incorrect MIME type. To
>> correctly determine SyncML requests, the incoming MIME type must be
>> either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If
>> the clients send something different, it's broken.
>>
>> Jan.
>>
>


Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

attachment0 (204 bytes) Download Attachment

Parent Message unknown Re: Problems syncing with funambol clients

by Remko Muis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jan,

Thanks for your suggestions. I added the following line after the first
if-then-else statement in rpc.php:
Horde::logMessage('Mime type is ' . $serverType , __FILE__, __LINE__,
PEAR_LOG_DEBUG);
But -ehm- in which log file should I look to find the resulting message?

I also tried to force the rpc backend to think the request was in syncml
format (by setting $serverType to syncml). If I then try to sync, I do
get log files and xml files in /tmp/sync, but the request (client) files
are empty and the server files only have one line:
<?xml version="1.0" encoding="UTF-8"?>
That's all. When syncing, an error occurs (of course, because the
response is empty).

 From the logs in the Mozilla plugin, I guess that the request is done in
text/xml, so you might be right after all that the client sends the
requests in the wrong mime-type.
So I tried to install an older version of the plugin, but now TB crashes
everytime I restart after adding whichever version of the plugin. Nice
piece of software...

I got the impression that many people have it working, so why wouldn't
it work for me? Maybe I have to look for another solution to sync:
1. Thunderbird/Lightning addressbook and calendar
2. WinMobile contacts and calendar
3. MS Outlook calendar
with Horde or the MySQL DB behind it. Any suggestions other than Funambol?

Best,
Remko




Jan Schneider schreef:

> Zitat von Remko Muis <remko@...>:
>
>> Hi Jan,
>>
>> Thanks for your help. I already have both mime types in my
>> /etc/mime.types. However, I doubt that the clients themselves are
>> broken, since I tried the mozilla plugin on two different machines, and
>> the WinMobile plugin on my phone. That makes three independent
>> instances. Might it be that Apache is forwarding the request somehow in
>> the wrong mime type?
>
> This is unlikely, but the only explanation I have right now. Or maybe
> your PHP installation doesn't populate the $_SERVER['CONTENT_TYPE']
> variable correctly.
>
>> But then, why is the Outlook plugin working?
>
> No idea.
>
>> What
>> happens when rpc.php is loaded?
>
> Take a look at the code. It basically runs several tests against the
> incoming request to determine which RPC backend is supposed to answer
> the call.
> SyncML is being used if the mentioned variable has one of the SyncML
> mime types.
> You can try adding Horde::logMessage() calls in rpc.php to see what
> the values are and what the code path is.
>
>> Does it have to do with the required
>> pear packages?
>
> No.
>
>> Jan Schneider schreef:
>>> Zitat von Remko Muis <remko@...>:
>>>
>>>> Hi all,
>>>>
>>>> I use the latest stable cvs version of horde, framework libs and
>>>> several
>>>> applications. On my pocket-pc, I installed the funambol plugin for
>>>> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
>>>> the Funambol Mozilla Sync Client installed. Neither of these work,
>>>> although I followed the directions of the Wiki, have all the required
>>>> pear packages installed (as far as I can see), commented out the
>>>> 'realm'
>>>> line in servers.php, disabled compress pages, etc. There are no
>>>> logs in
>>>> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
>>>> because I use self-signed certificates.
>>>>
>>>> The Win Mobile plugin simply says: Please wait: checking your
>>>> credentials... and then complains: Sync not completed, please try
>>>> later.
>>>> If the error persists, contact Technical support. Syncing with
>>>> myFunambol works, however.
>>>>
>>>> The Mozilla plugin is more informative, the log is attached. I tried
>>>> contacts, notes and tasks separately, but to no avail.
>>>>
>>>> I also use the funambol plugin for Outlook, which works better (but
>>>> seems to crash when encountering recurring events), so the strange
>>>> thing
>>>> is that I have a working combination of horde + one Funambol
>>>> plugin, but
>>>> can't get other plugins to work!
>>>>
>>>> Can anybody please help me out? Thanks in advance!
>>>
>>> The server thinks this is a SOAP request. This could only happen if
>>> the client is sending the request with an incorrect MIME type. To
>>> correctly determine SyncML requests, the incoming MIME type must be
>>> either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If
>>> the clients send something different, it's broken.
>>>
>>> Jan.
>>>
>>
>
>
>
> Jan.
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.

--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

Re: Problems syncing with funambol clients

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Remko Muis <remko@...>:

> Hi Jan,
>
> Thanks for your suggestions. I added the following line after the first
> if-then-else statement in rpc.php:
> Horde::logMessage('Mime type is ' . $serverType , __FILE__, __LINE__,
> PEAR_LOG_DEBUG);

You want to know the mime type, not the server type. We already know  
that the server type is "soap".
Log $_SERVER['CONTENT_TYPE'] instead of $serverType.

> But -ehm- in which log file should I look to find the resulting message?

Depends on how you configured logging in Horde. Usually  
/tmp/horde.log, but DEBUG messages are not logged by default, so check  
your config.

> I also tried to force the rpc backend to think the request was in syncml
> format (by setting $serverType to syncml). If I then try to sync, I do
> get log files and xml files in /tmp/sync, but the request (client) files
> are empty and the server files only have one line:
> <?xml version="1.0" encoding="UTF-8"?>
> That's all. When syncing, an error occurs (of course, because the
> response is empty).

There are more things to set, see rpc.php.

> From the logs in the Mozilla plugin, I guess that the request is done in
> text/xml, so you might be right after all that the client sends the
> requests in the wrong mime-type.
> So I tried to install an older version of the plugin, but now TB crashes
> everytime I restart after adding whichever version of the plugin. Nice
> piece of software...
>
> I got the impression that many people have it working, so why wouldn't
> it work for me? Maybe I have to look for another solution to sync:
> 1. Thunderbird/Lightning addressbook and calendar
> 2. WinMobile contacts and calendar
> 3. MS Outlook calendar
> with Horde or the MySQL DB behind it. Any suggestions other than Funambol?
>
> Best,
> Remko
>
>
>
>
> Jan Schneider schreef:
>> Zitat von Remko Muis <remko@...>:
>>
>>> Hi Jan,
>>>
>>> Thanks for your help. I already have both mime types in my
>>> /etc/mime.types. However, I doubt that the clients themselves are
>>> broken, since I tried the mozilla plugin on two different machines, and
>>> the WinMobile plugin on my phone. That makes three independent
>>> instances. Might it be that Apache is forwarding the request somehow in
>>> the wrong mime type?
>>
>> This is unlikely, but the only explanation I have right now. Or maybe
>> your PHP installation doesn't populate the $_SERVER['CONTENT_TYPE']
>> variable correctly.
>>
>>> But then, why is the Outlook plugin working?
>>
>> No idea.
>>
>>> What
>>> happens when rpc.php is loaded?
>>
>> Take a look at the code. It basically runs several tests against the
>> incoming request to determine which RPC backend is supposed to answer
>> the call.
>> SyncML is being used if the mentioned variable has one of the SyncML
>> mime types.
>> You can try adding Horde::logMessage() calls in rpc.php to see what
>> the values are and what the code path is.
>>
>>> Does it have to do with the required
>>> pear packages?
>>
>> No.
>>
>>> Jan Schneider schreef:
>>>> Zitat von Remko Muis <remko@...>:
>>>>
>>>>> Hi all,
>>>>>
>>>>> I use the latest stable cvs version of horde, framework libs and
>>>>> several
>>>>> applications. On my pocket-pc, I installed the funambol plugin for
>>>>> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v. 0.9.1 of
>>>>> the Funambol Mozilla Sync Client installed. Neither of these work,
>>>>> although I followed the directions of the Wiki, have all the required
>>>>> pear packages installed (as far as I can see), commented out the
>>>>> 'realm'
>>>>> line in servers.php, disabled compress pages, etc. There are no
>>>>> logs in
>>>>> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
>>>>> because I use self-signed certificates.
>>>>>
>>>>> The Win Mobile plugin simply says: Please wait: checking your
>>>>> credentials... and then complains: Sync not completed, please try
>>>>> later.
>>>>> If the error persists, contact Technical support. Syncing with
>>>>> myFunambol works, however.
>>>>>
>>>>> The Mozilla plugin is more informative, the log is attached. I tried
>>>>> contacts, notes and tasks separately, but to no avail.
>>>>>
>>>>> I also use the funambol plugin for Outlook, which works better (but
>>>>> seems to crash when encountering recurring events), so the strange
>>>>> thing
>>>>> is that I have a working combination of horde + one Funambol
>>>>> plugin, but
>>>>> can't get other plugins to work!
>>>>>
>>>>> Can anybody please help me out? Thanks in advance!
>>>>
>>>> The server thinks this is a SOAP request. This could only happen if
>>>> the client is sending the request with an incorrect MIME type. To
>>>> correctly determine SyncML requests, the incoming MIME type must be
>>>> either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If
>>>> the clients send something different, it's broken.
>>>>
>>>> Jan.
>>>>
>>>
>>
>>
>>
>> Jan.
>>
>
>
>
> ----------------------------------------------------------------
> This message was sent using IMP, the Internet Messaging Program.
>


Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

attachment0 (204 bytes) Download Attachment

Re: Problems syncing with funambol clients

by Remko Muis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jan,

If I add a line

Horde::logMessage('Mime type is ' . $_SERVER['CONTENT_TYPE'] , __FILE__,
__LINE__, PEAR_LOG_DEBUG);

to rpc.php, I get php errors, saying: Undefined index:  CONTENT_TYPE in
/var/www/html/horde/rpc.php.

If I put the logMessage command in an if-else clause, then no errors appear:

if (!empty($_SERVER['CONTENT_TYPE'])) {
Horde::logMessage('Mime type is ' . $_SERVER['CONTENT_TYPE'] , __FILE__,
__LINE__, PEAR_LOG_DEBUG);
//Logging does not result in anything in log.txt or horde.log: where
does it log to?
} else {
Horde::logMessage('Mime type is leeg!!', __FILE__, __LINE__,
PEAR_LOG_DEBUG);
}

So it seems that the variable CONTENT_TYPE is not set at all. This
explains why $serverType is set to 'Soap', which is the default.
By the way: no log messages appear in horde.log, even though de log
level has been set to PEAR_LOG_DEBUG in Horde's config. Neither are
there any client or server XML messages in /tmp/sync.

As to manually setting $serverType: I know that there are more things to
set (read rpc.php carefully), and I did that, but unfortunately to no avail.

So: unless you can explain of why CONTENT_TYPE is not set to some mime
type, I'm stuck...

Thanks for your help so far anyway!

Best,
Remko


Jan Schneider schreef:

> Zitat von Remko Muis <remko@...>:
>
>> Hi Jan,
>>
>> Thanks for your suggestions. I added the following line after the first
>> if-then-else statement in rpc.php:
>> Horde::logMessage('Mime type is ' . $serverType , __FILE__, __LINE__,
>> PEAR_LOG_DEBUG);
>
> You want to know the mime type, not the server type. We already know
> that the server type is "soap".
> Log $_SERVER['CONTENT_TYPE'] instead of $serverType.
>
>> But -ehm- in which log file should I look to find the resulting message?
>
> Depends on how you configured logging in Horde. Usually
> /tmp/horde.log, but DEBUG messages are not logged by default, so check
> your config.
>
>> I also tried to force the rpc backend to think the request was in syncml
>> format (by setting $serverType to syncml). If I then try to sync, I do
>> get log files and xml files in /tmp/sync, but the request (client) files
>> are empty and the server files only have one line:
>> <?xml version="1.0" encoding="UTF-8"?>
>> That's all. When syncing, an error occurs (of course, because the
>> response is empty).
>
> There are more things to set, see rpc.php.
>
>> From the logs in the Mozilla plugin, I guess that the request is done in
>> text/xml, so you might be right after all that the client sends the
>> requests in the wrong mime-type.
>> So I tried to install an older version of the plugin, but now TB crashes
>> everytime I restart after adding whichever version of the plugin. Nice
>> piece of software...
>>
>> I got the impression that many people have it working, so why wouldn't
>> it work for me? Maybe I have to look for another solution to sync:
>> 1. Thunderbird/Lightning addressbook and calendar
>> 2. WinMobile contacts and calendar
>> 3. MS Outlook calendar
>> with Horde or the MySQL DB behind it. Any suggestions other than
>> Funambol?
>>
>> Best,
>> Remko
>>
>>
>>
>>
>> Jan Schneider schreef:
>>> Zitat von Remko Muis <remko@...>:
>>>
>>>> Hi Jan,
>>>>
>>>> Thanks for your help. I already have both mime types in my
>>>> /etc/mime.types. However, I doubt that the clients themselves are
>>>> broken, since I tried the mozilla plugin on two different machines,
>>>> and
>>>> the WinMobile plugin on my phone. That makes three independent
>>>> instances. Might it be that Apache is forwarding the request
>>>> somehow in
>>>> the wrong mime type?
>>>
>>> This is unlikely, but the only explanation I have right now. Or maybe
>>> your PHP installation doesn't populate the $_SERVER['CONTENT_TYPE']
>>> variable correctly.
>>>
>>>> But then, why is the Outlook plugin working?
>>>
>>> No idea.
>>>
>>>> What
>>>> happens when rpc.php is loaded?
>>>
>>> Take a look at the code. It basically runs several tests against the
>>> incoming request to determine which RPC backend is supposed to answer
>>> the call.
>>> SyncML is being used if the mentioned variable has one of the SyncML
>>> mime types.
>>> You can try adding Horde::logMessage() calls in rpc.php to see what
>>> the values are and what the code path is.
>>>
>>>> Does it have to do with the required
>>>> pear packages?
>>>
>>> No.
>>>
>>>> Jan Schneider schreef:
>>>>> Zitat von Remko Muis <remko@...>:
>>>>>
>>>>>> Hi all,
>>>>>>
>>>>>> I use the latest stable cvs version of horde, framework libs and
>>>>>> several
>>>>>> applications. On my pocket-pc, I installed the funambol plugin for
>>>>>> Windows Mobile Pocket PC's, v. 7.2. In Thunderbird, I have v.
>>>>>> 0.9.1 of
>>>>>> the Funambol Mozilla Sync Client installed. Neither of these work,
>>>>>> although I followed the directions of the Wiki, have all the
>>>>>> required
>>>>>> pear packages installed (as far as I can see), commented out the
>>>>>> 'realm'
>>>>>> line in servers.php, disabled compress pages, etc. There are no
>>>>>> logs in
>>>>>> /tmp/sync and nothing reported in /tmp/horde.log. I don't use SSL,
>>>>>> because I use self-signed certificates.
>>>>>>
>>>>>> The Win Mobile plugin simply says: Please wait: checking your
>>>>>> credentials... and then complains: Sync not completed, please try
>>>>>> later.
>>>>>> If the error persists, contact Technical support. Syncing with
>>>>>> myFunambol works, however.
>>>>>>
>>>>>> The Mozilla plugin is more informative, the log is attached. I tried
>>>>>> contacts, notes and tasks separately, but to no avail.
>>>>>>
>>>>>> I also use the funambol plugin for Outlook, which works better (but
>>>>>> seems to crash when encountering recurring events), so the strange
>>>>>> thing
>>>>>> is that I have a working combination of horde + one Funambol
>>>>>> plugin, but
>>>>>> can't get other plugins to work!
>>>>>>
>>>>>> Can anybody please help me out? Thanks in advance!
>>>>>
>>>>> The server thinks this is a SOAP request. This could only happen if
>>>>> the client is sending the request with an incorrect MIME type. To
>>>>> correctly determine SyncML requests, the incoming MIME type must be
>>>>> either application/vnd.syncml+xml or application/vnd.syncml+wbxml. If
>>>>> the clients send something different, it's broken.
>>>>>
>>>>> Jan.
>>>>>
>>>>
>>>
>>>
>>>
>>> Jan.
>>>
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>
>
>
> Jan.
>
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

Re: Problems syncing with funambol clients

by Jan Schneider :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Zitat von Remko Muis <remko@...>:

> So: unless you can explain of why CONTENT_TYPE is not set to some  
> mime type, I'm stuck...

No idea, but this has nothing to do with Horde then. This is either a  
problem of  or your web server.

Jan.

--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/


--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...

attachment0 (204 bytes) Download Attachment

Re: Problems syncing with funambol clients

by Remko Muis :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Jan,

The problem is solved. I used the wrong URL as Location. I have Apache
set to rewrite horde.mydomain.com to www.mydomain.com/horde. Using the
first as the location of rpc.php in the Funambol plugins does not work,
whereas the second does. So basically my problem is solved.

Any idea why I can't get anything logged?

Best,
Remko

Jan Schneider schreef:

> Zitat von Remko Muis <remko@...>:
>
>> So: unless you can explain of why CONTENT_TYPE is not set to some
>> mime type, I'm stuck...
>
> No idea, but this has nothing to do with Horde then. This is either a
> problem of  or your web server.
>
> Jan.
>
--
sync mailing list - Join the hunt: http://horde.org/bounties/#sync
Frequently Asked Questions: http://horde.org/faq/
To unsubscribe, mail: sync-unsubscribe@...