Hi Congwu,

Thanks for the responses on this.  Some comments below.

J.

On Sat, 2009-12-19 at 23:13 +0800, Chen, Congwu wrote:
> Hi, Jason
> 
> No, it's not a Synthesis issue, it is likely a configuration or phone 
> compatibility issue. 
> The error basically means: when SyncEvolution sends it's first request 
> (Binary based, not XML! so not very useful for your debuging), the phone 
> rejects.
> Is there any error message on the phone? I suppose it should report some 
> error (although maybe not accurate but give us some hint on why it rejects).
> 

If I sync this phone using opensync or PC Suite, the phone display
provides visual feedback that a sync is in progress.  When I instead use
syncevolution, the display remains blank.  No error messages on the
phone.

My hunch is that any syncml handshake is not getting very far, which is
consistent with your explanation of the first request being rejected.

> To help us narrow down the problem, you might try to only sync with one 
> source type : contacts and sync mode two-way:
> 
> ./syncevolution --sync two-way phone addressbook
> 
> 

Thanks for the tip, however it did not help, and behaviour is the same;
i.e. I still get the 

"OBEX Request 2 got a failed response Forbidden"

in the log.

> Another try is change the your source type ("addressbook" -> "Contacts")
> $B --configure --source-property type=addressbook:text/x-vcard phone Contacts
> $B --configure --source-property uri=Contacts phone Contacts
> ./syncevolution --sync two-way phone Contacts
> 

I think you are on the right track, since I use "Contacts" as the remote
source name with opensync.

However I must be doing something stupid.  If I use the instructions
above, syncevolution produces an error:

[ERROR] no such source(s): Contacts

Here is what I used to configure syncevolution:

rm -fr */.config/syncevolution/default

export MacAddress=00:11:22:33:44:55+11
TEMPLATE=scheduleworld
L=/home/jas/local/se
B=$L/bin/syncevolution
export LD_LIBRARY_PATH=$L/lib
USERNAME=jas
PASSWORD=adg

$B --configure --sync-property syncURL="obex-bt://$MacAddress" --sync-property 
enableWBXML=1 --sync-property remoteIdentifier='PC Suite' --sync-property 
PeerIsClient=1 --sync-property username=$USERNAME --sync-property 
password=$PASSWORD --template $TEMPLATE phone

$B --configure --source-property type=addressbook:text/x-vcard phone Contacts

for i in Contacts ; do 
  $B --configure --source-property uri=$i phone $i
done


Then, if I do a grep for "Contacts", it does not appear in
syncevolutions's config:

egrep -vr '(^#|^$)' ~/.config/syncevolution/default/

/home/jas/.config/syncevolution/default/config.ini:deviceId = 
sc-pim-40354ad9-ba36-47a9-8e74-395795e60770
/home/jas/.config/syncevolution/default/sources/todo/config.ini:type = 
calendar:text/x-vcalendar
/home/jas/.config/syncevolution/default/sources/addressbook/config.ini:type = 
addressbook:text/vcard
/home/jas/.config/syncevolution/default/sources/calendar/config.ini:type = 
calendar:text/x-vcalendar
/home/jas/.config/syncevolution/default/sources/memo/config.ini:type = memo
/home/jas/.config/syncevolution/default/peers/phone/config.ini:syncURL = 
obex-bt://00:11:22:33:44:55+11 (not the real address)
/home/jas/.config/syncevolution/default/peers/phone/config.ini:username = jas
/home/jas/.config/syncevolution/default/peers/phone/config.ini:password = adg
/home/jas/.config/syncevolution/default/peers/phone/config.ini:remoteIdentifier 
= PC Suite
/home/jas/.config/syncevolution/default/peers/phone/config.ini:PeerIsClient = 1
/home/jas/.config/syncevolution/default/peers/phone/config.ini:enableWBXML = 1
/home/jas/.config/syncevolution/default/peers/phone/config.ini:WebURL = 
http://sync.scheduleworld.com
/home/jas/.config/syncevolution/default/peers/phone/config.ini:ConsumerReady = 1
/home/jas/.config/syncevolution/default/peers/phone/sources/todo/config.ini:sync
 = two-way
/home/jas/.config/syncevolution/default/peers/phone/sources/todo/config.ini:type
 = calendar:text/x-vcalendar
/home/jas/.config/syncevolution/default/peers/phone/sources/todo/config.ini:uri 
= super
/home/jas/.config/syncevolution/default/peers/phone/sources/addressbook/config.ini:sync
 = two-way
/home/jas/.config/syncevolution/default/peers/phone/sources/addressbook/config.ini:type
 = addressbook:text/vcard
/home/jas/.config/syncevolution/default/peers/phone/sources/addressbook/config.ini:uri
 = card3
/home/jas/.config/syncevolution/default/peers/phone/sources/calendar/config.ini:sync
 = two-way
/home/jas/.config/syncevolution/default/peers/phone/sources/calendar/config.ini:type
 = calendar:text/x-vcalendar
/home/jas/.config/syncevolution/default/peers/phone/sources/calendar/config.ini:uri
 = super
/home/jas/.config/syncevolution/default/peers/phone/sources/memo/config.ini:sync
 = two-way
/home/jas/.config/syncevolution/default/peers/phone/sources/memo/config.ini:type
 = memo
/home/jas/.config/syncevolution/default/peers/phone/sources/memo/config.ini:uri 
= memo

So for some reason, the commands issued above are not persisting information 
under ~/.config/syncevolution.

Any ideas?

> Just did a quick google, there some setup hint for 6300:
> 1) Clean screen [1]: 
> # his means that the mobile phone will not accept a synchronization request 
> when there is another application is running. Even the previous 
> synchronization status report avoid a sync request.
> # In short: Make sure no application or dialog is visible and the "screen is 
> clean". 
> 
> 2) Use a username/password [2] (Just set that in your phone, and let's see 
> whether something different happens).
> 
> [1] http://en.opensuse.org/OpenSync/SyncML-OBEX-Client
> [2] https://libsyncml.opensync.org/ticket/123
> 

Haha.  I am actually the same person who discovered the fix
(logularjason in that opensync ticket).  I don't think it's any of these
things getting in the way of syncevolution, since I can still sync using
opensync.

> Finally, you can always first try to use Nokia PC Suite to see whether your 
> configuration works with the official software.
> 
> I will add a debug facility later to log the first Binary based message 
> request, so that you may later send the Binary to me and help us identify.
> ________________________________________
> 发件人: [email protected] 
> [[email protected]] 代表 Jason Grant 
> [[email protected]]
> 发送时间: 2009年12月19日 12:42
> 收件人: SyncEvolution
> 主题: [SyncEvolution] First trial with nokia 6300: sync failed
> 
> Hi All,
> 
> I'm trying to sync with my Nokia 6300 (S40) using syncevolution-0.9.2
> +1.0alpha1, but am encountering:
> 
> invalid tag <client> at line 1392 col 2
> 
> as shown in [1] below.  I configured syncevolution using the bash logic
> shown at [2] below.  The log is given at [3].
> 
> I will happily troubleshoot or test further, but thought I would mail
> the list first to seek guidance on things like:
> 
> * is this a familiar issue?
> * does my config look OK? (I used a real mac not the one shown)
> * is 0.9.2+1.0alpha1 still OK for phone testing?
> * does this sound like a synthesis issue?
> * Sounds like an XML issue: can I turn up logging somewhere to see the
> XML over obex?
> 
> etc.  Suggestions appreciated.
> 
> Jason.
> 
> ------------------------------------
> [1] Sync stdout
> [...@talby syncevolution]$ ~/local/se/bin/syncevolution phone
> invalid tag <client> at line 1392 col 2
> Local data changes to be applied to server during synchronization:
> *** todo ***
> no changes
> *** addressbook ***
> no changes
> *** calendar ***
> no changes
> *** memo ***
> no changes
> 
> [INFO] Server sending SAN 1
> [ERROR] OBEX Request 2 got a failed response Forbidden
> [ERROR] TransportException while sending SAN package
> [ERROR] Server Alerted Sync init failed
> 
> Synchronization failed, see 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/syncevolution-log.html 
> for details.
> 
> Changes applied during synchronization:
> +---------------|-------ON CLIENT-------|-------ON SERVER-------|-CON-+
> |               |   rejected / total    |   rejected / total    | FLI |
> |        Source |  NEW  |  MOD  |  DEL  |  NEW  |  MOD  |  DEL  | CTS |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> |   addressbook |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0  |
> |   item(s) in database backup: 47 before sync, 47 after it           |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> |      calendar |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0  |
> |      item(s) in database backup: 40 before sync, 40 after it        |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> |          memo |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0  |
> |          item(s) in database backup: 12 before sync, 12 after it    |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> |          todo |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0/0  |  0  |
> |          item(s) in database backup: 40 before sync, 40 after it    |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> |          start Sat Dec 19 15:18:42 2009, duration 0:01min           |
> |              synchronization failed (status code 500)               |
> +---------------+-------+-------+-------+-------+-------+-------+-----+
> 
> Changes applied to client during synchronization:
> *** todo ***
> no changes
> *** addressbook ***
> no changes
> *** calendar ***
> no changes
> *** memo ***
> no changes
> 
> ------------------------------------
> [2] Setup
> export MacAddress="stripped for this email"
> TEMPLATE=scheduleworld
> L=/home/jas/local/se
> B=$L/bin/syncevolution
> export LD_LIBRARY_PATH=$L/lib
> 
> $B --configure --sync-property syncURL="obex-bt://$MacAddress" 
> --sync-property enableWBXML=1 --sync-property remoteIdentifier='PC Suite' 
> --sync-property PeerIsClient=1 --sync-property username= --sync-property 
> password= --template $TEMPLATE phone
> 
> $B --configure --source-property type=addressbook:text/x-vcard phone 
> addressbook
> $B --configure --source-property type=calendar:text/x-vcalendar  phone 
> calendar
> $B --configure --source-property type=calendar:text/x-vcalendar phone todo
> 
> for i in calendar addressbook todo memo; do
>   $B --configure --source-property uri=$i phone $i
> done
> 
> $B --configure --source-property type=virtual:text/x-vcalendar 
> --source-property evolutionsource=calendar,todo phone super
> 
> for i in calendar todo; do
>   $B --configure --source-property uri=super phone $i
> done
> 
> ------------------------------------
> [3] Log
> [2009-12-18 23:18:42.111] CreateContext SyncEvolution// => 0
> [2009-12-18 23:18:42.111] Module_Capabilities:
> PLATFORM:Linux
> DLL:true
> MINVERSION:V1.0.6.0
> MANUFACTURER:SyncEvolution
> DESCRIPTION:SyncEvolution Synthesis DB Plugin
> plugin_datastore_str:no
> plugin_datastore_key:yes
> ITEM_AS_KEY:yes
> plugin_datablob:no
> [2009-12-18 23:18:42.112] Module_PluginParams
> Engine=01060100
> [2009-12-18 23:18:42.112] SyncML server account:
> [2009-12-18 23:18:42.112] client: SyncEvolution 0.9.2+1.0alpha1 for 
> workstation
> [2009-12-18 23:18:42.112] device ID: 
> sc-pim-4cef1bd7-f3d6-4d7b-9e96-7df72a2e7821
> [2009-12-18 23:18:42.235] creating 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/todo.before
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas-a86888f8
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas-282828a8
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas-2828a868
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas-a8688878
> [2009-12-18 23:18:42.235] ** (process:7462): WARNING **: Wrong permissions 
> for /tmp/orbit-jas
> [2009-12-18 23:18:42.265] 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/todo.before created
> [2009-12-18 23:18:42.265] creating 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/addressbook.before
> [2009-12-18 23:18:42.289] 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/addressbook.before 
> created
> [2009-12-18 23:18:42.290] creating 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/calendar.before
> [2009-12-18 23:18:42.318] 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/calendar.before created
> [2009-12-18 23:18:42.318] creating 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/memo.before
> [2009-12-18 23:18:42.324] 
> /home/jas/.cache/syncevolution/phone-2009-12-19-15-18/memo.before created
> [2009-12-18 23:18:43.353] Connecting Bluetooth device with address "stripped 
> for this email" and channel 11
> [2009-12-18 23:18:43.353] ObexTransportAgent: creating obex event 8
> [2009-12-18 23:18:43.572] OBEX progress
> [2009-12-18 23:18:43.613] OBEX Transport: get header who from connect 
> response with value SYNCML-SYNC
> [2009-12-18 23:18:43.613] ObexTransportAgent: removing obex event 8
> [2009-12-18 23:18:43.613] Server sending SAN 1
> [2009-12-18 23:18:43.613] ObexTransport send is called
> [2009-12-18 23:18:43.613] ObexTransportAgent: creating obex event 9
> [2009-12-18 23:18:43.614] OBEX progress
> [2009-12-18 23:18:43.900] OBEX Request 2 got a failed response Forbidden
> [2009-12-18 23:18:43.901] ObexTransportAgent: removing obex event 9
> [2009-12-18 23:18:43.901] TransportException while sending SAN package
> [2009-12-18 23:18:43.901] Server Alerted Sync init failed
> 
> 
> _______________________________________________
> SyncEvolution mailing list
> [email protected]
> http://lists.syncevolution.org/listinfo/syncevolution

_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution

Reply via email to