[sync] Sync Error

Karsten Fourmont fourmont at gmx.de
Sun Oct 29 06:57:39 PST 2006


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?

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
>>



More information about the sync mailing list