Discussion:
[Help] synce-list-partnerships only works with sudo
SourceForge.net
2010-11-24 14:17:37 UTC
Permalink
The following forum message was posted by drgrumpy at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Hi all,

Been tearing my hair out for several days trying to sync my pocket pc (loox
n560) with evolution (Ubuntu 10.04). I am trying to migrate to linux but this
is going to be a major issue if can't get working.

So I have followed the instructions closely and installed from the ppa, etc.

synce-trayicon installed to enable password entry

I installed the patch at:
https://bugs.launchpad.net/ubuntu/+source/opensync/+bug/584997

synce-pls works and returns list of files on device
synce-pstatus works

I deleted on ppc all the partnerships

I created a new partnership in trayicon
this created the partnership on the device (but then it disconnected)

remove device and replug

now
pstatus and pls work,
but synce-list-partnerships returns error:

ERROR:dbus.proxies:Introspect error on :1.153:/org/synce/SyncEngine:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.NoReply: Did not receive
a reply. Possible causes include: the remote application did not send a reply,
the message bus security policy blocked the reply, the reply timeout expired,
or the network connection was broken.

if I try to sync using msynctool (groups and plugins all set up correctly)
..........
Member 2 of type evo2-sync just sent all changes
Member 1 of type synce-opensync-plugin had an error while getting changes: Error
during get_changeinfo() method
DEBUG:SynCE:disconnect() called
Member 1 of type synce-opensync-plugin just disconnected
Member 2 of type evo2-sync just disconnected
All clients have disconnected
The sync failed: Unable to read from one of the members
DEBUG:SynCE:finalize() called
Error while synchronizing: Unable to read from one of the members

It would seem that this is another symptom of the same problem with listing
the partnerships.

BUT I found that if I do:
sudo synce-list-partnerships

this correctly lists my partnerships, but of course I can't sync as sudo because
it will not pick up the configuration for the sync group.

following search I found an indication of a dbus bug, so added the following
file as synce.conf to /etc/dbus-1/system.d/
<!DOCTYPE busconfig PUBLIC
"-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>
<!-- This configuration file specifies the required security policies
for synce-hal to work. -->

<!-- Allow anyone to invoke methods on the Synce interface -->
<policy context="default">
<allow send_destination="org.freedesktop.Hal"
send_interface="org.freedesktop.Hal.Device.Synce"/>
</policy>
</busconfig>

reboot etc. with the same symptoms. So it seems that 'cos I can use sudo to
list partnerships there is some permsissions/access issue in accessing the device
(but then why do -pls and -pstatus work okay ?), any help/suggestions would
be very much appreciated or I am going to have to go back to windows and
outlook.

Thanks, Steve

P.S.
Also I have found that
sometimes it gets detected by trayicon and sometimes not,

I notice that with each removal/connection the device gets a new number, e.g.
[ 509.110111] usb 5-3: new full speed USB device using ohci_hcd and address 3

[ 509.307135] usb 5-3: configuration #1 chosen from 1 choice

[ 509.386873] rndis_host 5-3:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47

[ 509.396332] eth1: register 'rndis_host' at usb-0000:00:13.0-3, RNDIS device,
80:00:60:0f:e8:00

[ 520.301304] eth1: no IPv6 routers present

in this case it registered with trayicon, in the following 9 failed to register
and 10 registered okay.

[ 4094.918976] eth1: unregister 'rndis_host' usb-0000:00:13.0-3, RNDIS device
[ 4138.510103] usb 5-3: new full speed USB device using ohci_hcd and address 9
[ 4138.707825] usb 5-3: configuration #1 chosen from 1 choice
[ 4138.776571] rndis_host 5-3:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 4138.786049] eth1: register 'rndis_host' at usb-0000:00:13.0-3, RNDIS device,
80:00:60:0f:e8:00
[ 4148.970064] eth1: no IPv6 routers present
[ 4623.290818] usb 5-3: USB disconnect, address 9
[ 4623.292320] eth1: unregister 'rndis_host' usb-0000:00:13.0-3, RNDIS device
[ 6354.340099] usb 5-3: new full speed USB device using ohci_hcd and address 10
[ 6355.960386] usb 5-3: configuration #1 chosen from 1 choice
[ 6356.039105] rndis_host 5-3:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 6356.048601] eth1: register 'rndis_host' at usb-0000:00:13.0-3, RNDIS device,
80:00:60:0f:e8:00
[ 6367.060044] eth1: no IPv6 routers present
[ 6546.172159] usb 5-3: USB disconnect, address 10
[ 6546.173375] eth1: unregister 'rndis_host' usb-0000:00:13.0-3, RNDIS device
[ 6552.430100] usb 5-3: new full speed USB device using ohci_hcd and address 11
[ 6552.647804] usb 5-3: configuration #1 chosen from 1 choice
[ 6552.718549] rndis_host 5-3:1.0: RNDIS_MSG_QUERY(0x00010202) failed, -47
[ 6552.728017] eth1: register 'rndis_host' at usb-0000:00:13.0-3
SourceForge.net
2010-12-01 16:25:21 UTC
Permalink
The following forum message was posted by mark_ellis at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Plug in the device, test synce-pstatus works, run synce-sync-engine in one terminal
window, open another terminal window and runs synce-list-partnerships, what
happens ? Send the outoput from both terminal windows
SourceForge.net
2010-12-01 17:00:23 UTC
Permalink
The following forum message was posted by drgrumpy at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Hi Mark,

Really appreciate your help.

Plugged in and detected by trayicon

synce-pstatus:
reports everything fine as expected...

Open 2nd term run synce-sync-engine, output:

SynCE sync-engine starting up
2010-12-01 16:50:37,957 DEBUG syncengine : running main loop
2010-12-01 16:50:37,957 DEBUG syncengine : creating SyncEngine object
2010-12-01 16:50:37,972 INFO engine.syncengine.kernel : __init__: connected
device found
2010-12-01 16:50:37,977 INFO engine.syncengine.kernel : _CBHalDeviceConnected:
device connected at udi /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
2010-12-01 16:50:37,978 INFO engine.config.Config : UpdateConfig - unable to
open config file /etc/syncengine.conf.xml ([Errno 2] No such file or directory:
'/etc/syncengine.conf.xml') - using defaults
2010-12-01 16:50:37,995 INFO engine.syncengine.kernel : device SJR04 connected
2010-12-01 16:50:37,996 INFO engine.syncengine.kernel : ProcessAuth : processing
authorization for device 'SJR04'
2010-12-01 16:50:37,998 INFO engine.syncengine.kernel : ProcessAuth: authorization
not required for device 'SJR04'
2010-12-01 16:50:37,998 DEBUG engine.syncengine.kernel : OnConnect: setting
up RAPI session
2010-12-01 16:50:38,018 DEBUG engine.syncengine.kernel : OnConnect: Attempting
to bind partnerships
2010-12-01 16:50:38,019 INFO engine.partnerships.Partnerships : AttemptToBind:
Reading partnerships and looking for host binding
2010-12-01 16:50:38,019 INFO engine.partnerships.Partnerships
: ClearDevicePartnerships: clearing all device partnership info
2010-12-01 16:50:38,019 DEBUG engine.partnerships.Partnerships
: ReadDevicePartnerships: reading partnerships from device registry
2010-12-01 16:50:38,039 DEBUG engine.partnerships.Partnerships
: ReadDevicePartnerships: read partnership ID = 2604651, Hostname = sjr06x
2010-12-01 16:50:38,040 DEBUG engine.partnerships.Partnerships : _read_device:
Adding entry
2010-12-01 16:50:38,051 WARNING engine.partnerships.Partnerships :
ReadDevicePartnerships: Error getting partnership key 2 from device registry:
2: The system cannot find the file specified.
2010-12-01 16:50:38,057 DEBUG engine.partnerships.Partnerships
: ReadDevicePartnerships: querying synchronization source information from
device
2010-12-01 16:50:38,058 DEBUG engine.xmlutil : _config_query: CeProcessConfig
request is
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic-query recursive="false" type="Sources"/>
</characteristic>
</wap-provisioningdoc>
2010-12-01 16:50:39,126 DEBUG engine.xmlutil : _config_query: CeProcessConfig
response is
<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic recursive="false" type="Sources">
<characteristic type="{6BEDA8BE-FA56-E004-C2E6-2E478034E57F}"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

2010-12-01 16:50:39,127 DEBUG engine.xmlutil : _config_query: CeProcessConfig
request is
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Sources">
<characteristic-query type="{6BEDA8BE-FA56-E004-C2E6-2E478034E57F}"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
2010-12-01 16:50:39,764 DEBUG engine.xmlutil : _config_query: CeProcessConfig
response is
<?xml version="1.0" encoding="utf-8"?>
<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Sources">
<characteristic type="{6BEDA8BE-FA56-E004-C2E6-2E478034E57F}">
<characteristic type="Engines">
<characteristic type="{176F4FFD-F20C-4BD4-BDD7-01D0726C567B}">
<characteristic type="CarrierConnectorList"/>
<characteristic type="Providers">
<characteristic type="{7E29B5F7-C686-4B0C-9892-FD8BAD8E0D08}">
<parm name="Enabled" value="0"/>
<parm name="Name" value="Favorites"/>
<parm name="ReadOnly" value="1"/>
</characteristic>
<characteristic type="{0DD8685C-E272-4FCB-9ECF-2EAD7EA2497B}">
<parm name="Enabled" value="1"/>
<parm name="Name" value="Contacts"/>
<parm name="ReadOnly" value="0"/>
</characteristic>
<characteristic type="{89768ABD-D173-18E3-16EC-98034F67B775}">
<parm name="Enabled" value="0"/>
<parm name="Name" value="WorldMate"/>
<parm name="ReadOnly" value="0"/>
</characteristic>
<characteristic type="{C6D47067-6E92-480E-B0FC-4BA82182FAC7}">
<parm name="Enabled" value="1"/>
<parm name="Name" value="E-mail"/>
<parm name="ReadOnly" value="0"/>
</characteristic>
<characteristic type="{8E98CB51-85A4-4777-8DEB-A0298DF8899F}">
SourceForge.net
2010-12-02 16:36:41 UTC
Permalink
The following forum message was posted by mark_ellis at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Looks like a dbus problem. What's the output of

ps ax|grep dbus
SourceForge.net
2010-12-02 17:08:12 UTC
Permalink
The following forum message was posted by drgrumpy at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Thanks for looking Mark, here is the output below. I am a relative linux newbie
and would like to learn - what makes you think it is a dbus problem ? And what
does this output tell us ? I have my suspicions about dbus - it seems like
a lot has changed in the last couple of versions of ubuntu.

Steve

***@sjr06x:~$ ps ax|grep dbus
1285 ? Ss 0:01 dbus-daemon --system --fork
1697 ? S 0:00 /usr/bin/dbus-launch --exit-with-session
2120 ? Ss 0:00 /usr/bin/ssh-agent /usr/bin/dbus-launch
--exit-with-session gnome-session
2123 ? S 0:00 /usr/bin/dbus-launch --exit-with-session
gnome-session
2124 ? Ss 0:03 /bin/dbus-daemon --fork --print-pid 5 --print-address
7 --session
3344 ? S 0:00 dbus-launch --autolaunch 6d17f0f7d272cb2f4d9613f54c880c87
--binary-syntax --close-stderr
3345 ? Ss 0:00 /bin/dbus-daemon --fork --print-pid 5 --print-address
7 --session
21259 pts/0 S+ 0:00 grep --color=auto dbus
SourceForge.net
2010-12-12 10:06:48 UTC
Permalink
The following forum message was posted by mark_ellis at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

It's a dbus problem because sync-engine is doing exactly what it's supposed
to, but you can't get anything from it over dbus.

You are running all these things as your normal user aren't you ?
SourceForge.net
2010-12-12 16:39:49 UTC
Permalink
The following forum message was posted by drgrumpy at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

Yes, running as normal user.

Presume then because
sudo synce-list-partnerships
gives the expected result that it is more specifically a dbus permissions problem
?
SourceForge.net
2010-12-19 10:10:37 UTC
Permalink
The following forum message was posted by mark_ellis at http://sourceforge.net/projects/synce/forums/forum/96106/topic/3959766:

I suppose that's what the problem is, but I have no idea why. I've never seen
dbus behave that way before.

Loading...