[sync] Sync Error

Han Spruyt han.spruyt at ijsselgroep.nl
Sun Oct 29 14:40:20 PST 2006


Hi,

With the latest and greatest Funambol client(3.0.31), there is an  
intrance in Apache's access log. But nothing else happens and it dies  
after a few minutes with a network error.

I finally downloaded the Synthesis client, that worked without a problem.

Han.

Quoting Han Spruyt <han.spruyt at ijsselgroep.nl>:

> Hi,
>
>>
>> Well, and what does the apache_log say when you use the sync4j client?
>
> Nothing.
>>
>> Looks like a Sync4j network problem to me.
>> I think, Sync4j sends a http request even when specifying https://.  
>> This gets the the webserver confused of course.
>>
> I think you're right, there seems to be a newer version of the  
> client where they claim to have added https support. I'll try that  
> one.
>
> Strange thing remainig is that it worked untill a few days ago...
>
> Thanks for the support.
>
> Han.
>
>> Karsten
>>
>>
>> Han Spruyt wrote:
>>> Hi,
>>>
>>> Quoting Karsten Fourmont <fourmont at gmx.de>:
>>>
>>>> Hi,
>>>>
>>>> strange. Can you try the following:
>>>>
>>>> save the xml data from the Sync4J log to a file "file.xml".
>>>> That's everything starting <?xml until </SyncML>
>>>>
>>>> Then run
>>>>
>>>> curl -k -H "Content-Type: application/vnd.syncml+xml"  
>>>> --data-binary @file.xml  
>>>> "https://myserver.nl:443/pathtohorde/rpc.php"
>>>>
>>>> Maybe trying without http is better for debugging.
>>>>
>>>> What do you see?
>>>> Does the request show up in your apache access_log?
>>>
>>> Yes, it does:
>>> [29/Oct/2006:16:10:03 +0100] "POST /Nieuw/horde/rpc.php HTTP/1.1"  
>>> 200 1336 "-" "curl/7.15.4 (i486-pc-linux-gnu) libcurl/7.15.4  
>>> OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.3"
>>>
>>> And files are created now in /tmp/sync
>>>
>>> Han.
>>>>
>>>> Cheers,
>>>> Karsten
>>>>
>>>> Han Spruyt wrote:
>>>>> Hi,
>>>>>
>>>>> I have a somewhat similar problem at the moment with the sync4j client.
>>>>> It used to work earlier.
>>>>> All Horde and apps is cvs of 15:17 today.
>>>>> This is the client log:
>>>>>
>>>>> 2006-10-29 15:29:55:000 - # SyncClient API Native Log
>>>>> 15:29:55:000 [INFO] - Initializing
>>>>> 15:29:56:000 [INFO] - Preparing sync...
>>>>> 15:29:56:000 [DEBUG] - initialization-message:
>>>>> 15:29:56:000 [DEBUG] - <?xml version="1.0" encoding="UTF-8"?><SyncML>
>>>>> <SyncHdr>
>>>>> <VerDTD>1.1</VerDTD>
>>>>> <VerProto>SyncML/1.1</VerProto>
>>>>> <SessionID>1</SessionID>
>>>>> <MsgID>1</MsgID>
>>>>> <Target><LocURI>https://myserver.nl:443</LocURI></Target>
>>>>> <Source><LocURI>sc-pim-ppc</LocURI></Source>
>>>>> <Cred>
>>>>> <Meta><Format xmlns='syncml:metinf'>b64</Format><Type  
>>>>> xmlns='syncml:metinf'>syncml:auth-basic</Type></Meta>
>>>>> <Data>aHNwcnV5dDpEb2dmMDBk</Data>
>>>>> </Cred>
>>>>> </SyncHdr>
>>>>> <SyncBody>
>>>>> <Alert>
>>>>> <CmdID>1</CmdID>
>>>>> <Data>200</Data>
>>>>> <Item>
>>>>> <Target><LocURI>calendar</LocURI></Target>
>>>>> <Source><LocURI>calendar</LocURI></Source>
>>>>> <Meta><Anchor xmlns="syncml:metinf">
>>>>> <Last>29775469</Last>
>>>>> <Next>29817702</Next>
>>>>> </Anchor></Meta>
>>>>> </Item>
>>>>> </Alert>
>>>>>
>>>>> <Final/>
>>>>> </SyncBody>
>>>>> </SyncML>
>>>>> 15:29:56:000 [DEBUG] - Establish connection: test internet  
>>>>> connection status...
>>>>> 15:29:56:000 [DEBUG] - Not connected: try to connect...
>>>>> 15:29:56:000 [DEBUG] - Try to establish connection...
>>>>> 15:29:56:000 [DEBUG] - Start internet connection process...
>>>>> 15:29:58:000 [DEBUG] - Internet connection succesfully completed.
>>>>> 15:29:58:000 [DEBUG] - Connecting to myserver.nl:443
>>>>> 15:29:58:000 [DEBUG] - InternetConnect success!!
>>>>> 15:29:58:000 [DEBUG] - Requesting resource /Nieuw/horde/rpc.php
>>>>> 15:29:58:000 [DEBUG] - HttpOpenRequest success!!
>>>>> 15:29:58:000 [DEBUG] - InternetWriteFile success...
>>>>> 15:29:59:000 [DEBUG] - Message sent
>>>>> 15:35:01:000 [ERROR] - HTTP request error: -1
>>>>> 15:35:01:000 [ERROR] - Error code: 2003
>>>>> error message: HTTP request error: -1
>>>>> 15:35:01:000 [INFO] - Sync ended.
>>>>>
>>>>> On the server side nothing in horde log on DEBUG, no files  
>>>>> created in /tmp/sync.
>>>>>
>>>>> I do not have curl installed on this machine.
>>>>> Anything else I can check?
>>>>>
>>>>> cheers,
>>>>>
>>>>> Han Spruyt.
>>>>>
>>>>>
>>>>> Quoting Karsten Fourmont <fourmont at gmx.de>:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> strange. What do you see when you type
>>>>>>
>>>>>> ---%<----
>>>>>> curl -H "Content-Type: application/vnd.syncml+xml" -d  
>>>>>> "<Syncml><SyncHdr></SyncHdr></SyncML>"
>>>>>> http://domain.info/horde/rpc.php
>>>>>> ---%<----
>>>>>> As one line, entered on the command line.
>>>>>>
>>>>>> There's been an error in the Sync4j class a few days ago.  
>>>>>> Please make sure you have a cvs snapshot of at least Oct 26th.
>>>>>>
>>>>>> Cheers,
>>>>>> Karsten
>>>>>>
>>>
>
>
> -- 
> sync mailing list - Join the hunt: http://horde.org/bounties/#sync
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: sync-unsubscribe at lists.horde.org




More information about the sync mailing list