Discussion:
Sync partnerships lost after recent Update - Ubuntu 10.10
Rob Hills
2011-02-24 05:06:41 UTC
Permalink
Hi,

I've had synce working well with my HTC TyTN II phone for some months
now. A few days ago, I noticed an update to SynCE come through via the
Ubuntu Update Manager and after that, SynCE stopped synchronising.
Looking into it more closely today via the SynCE Tray Icon app, I see that
there are no partnerships listed. In my ~/.synce/partnerships folder, I have
2 partnership folders, which appear to contain valid config and other files.

Does anyone know why my partnerships have disappeared from the SyncE
Tray Icon? Is there any way of restoring the existing partnerships apart
from recreating them from scratch?

TIA,
Rob Hills
Waikiki, Western Australia
Rob Hills
2011-03-03 04:56:36 UTC
Permalink
Hi All,

On 24 Feb 2011 at 13:06, Rob Hills wrote:

> I've had synce working well with my HTC TyTN II phone for some months
> now. A few days ago, I noticed an update to SynCE come through via the
> Ubuntu Update Manager and after that, SynCE stopped synchronising.
> Looking into it more closely today via the SynCE Tray Icon app, I see that
> there are no partnerships listed.

No takers on this one? I've had a bit of time to investigate further and it
*looks like* my syncengine.conf.xml file is a generic one as it seems to
have nothing in it that relates to my own configuration. I'm guessing the
recent update has somehow blatted my original configuration and
unfortunately not backed up the old file AFAICT.

As I mentioned, I still seem to have my old partnership information in the
~/.synce folder. I am guessing there may be something I can put in my
syncengine.conf.xml to resurrect those, but I've not been able to find any
docco on what is meant to go into that file. I've looked through the
comments in the file itself but nothing there tells me how a partnership is
added.

Can someone with a working sync setup look into their
~/.synce/syncengine.conf.xml file and tell me if there's any configuration
stuff in there related to partnerships?

Many thanks,
Rob Hills
Waikiki, Western Australia
Andrea Vai
2011-03-03 09:15:03 UTC
Permalink
Hi Rob,

Il giorno gio, 03/03/2011 alle 12.56 +0800, Rob Hills ha scritto:
> Can someone with a working sync setup look into their
> ~/.synce/syncengine.conf.xml file and tell me if there's any configuration
> stuff in there related to partnerships?
In my working synce environment (i-mate JasJar with WM5 and Ubuntu
Lucid) I don't have the ~/.synce/syncengine.conf.xml file.

I'm not an expert, so I can't presume anything about this difference
between our systems. But I can tell you the content of my .synce folder:

drwxr-xr-x 3 andrea andrea 4096 2011-01-18 12:05 partnerships
drwx------ 2 andrea andrea 4096 2011-01-18 11:59 scripts
-rw-r--r-- 1 andrea andrea 493401 2011-03-01 17:58 sync-engine.log

the scripts folder is empty, and the partnership folder contains only
one folder whose content is:

868 -rw-r--r-- 1 andrea andrea 886104 2011-03-01 17:58 IDB0
1328 -rw-r--r-- 1 andrea andrea 1358461 2011-03-01 17:58 IDB1
20 -rw-r--r-- 1 andrea andrea 17037 2011-02-25 11:57 IDB7
56 -rw-r--r-- 1 andrea andrea 57060 2011-03-01 17:58 IDB-FILE
4 -rw-r--r-- 1 andrea andrea 309 2011-01-18 12:05 psconfig.xml
4 -rw-r--r-- 1 andrea andrea 947 2011-03-01 17:50 psinfo.dat

the only text file is psconfig.xml file, and here is its content:

<?xml version="1.0" encoding="utf-8"?>
<syncpartner-config><General><SyncTimeToPc>0</SyncTimeToPc><LocalFilePath>Angus_Wk_Linux</LocalFilePath></General><DTPT><Enabled>1</Enabled><EnableM
ultihoming>0</EnableMultihoming><!-- "auto", "internet" or "work".
--><Network>auto</Network></DTPT></syncpartner-config>

But I can only guess that the IDB* files contain relevant data. I'm
sorry this can't help you.

Regards,
Andrea
Mark Ellis
2011-03-03 20:36:12 UTC
Permalink
On Thu, 2011-03-03 at 05:56 +0100, Rob Hills wrote:
> Hi All,
>
> On 24 Feb 2011 at 13:06, Rob Hills wrote:
>
> > I've had synce working well with my HTC TyTN II phone for some months
> > now. A few days ago, I noticed an update to SynCE come through via the
> > Ubuntu Update Manager and after that,

Be more specific, what version of the tools are you using ?

> SynCE stopped synchronising.
> > Looking into it more closely today via the SynCE Tray Icon app, I see that
> > there are no partnerships listed.
>

What's the output of synce-list-partnerships

> No takers on this one? I've had a bit of time to investigate further and it
> *looks like* my syncengine.conf.xml file is a generic one as it seems to
> have nothing in it that relates to my own configuration. I'm guessing the
> recent update has somehow blatted my original configuration and
> unfortunately not backed up the old file AFAICT.
>

No, that file doesn't contain partnership info, it's in
~/.synce/partnerships
Mark Ellis
2011-03-04 09:13:24 UTC
Permalink
To the list please.


On Fri, 2011-03-04 at 00:40 +0100, Rob Hills wrote:
> Hi Mark, thanks for the reply.
>
>
> On 3 Mar 2011 at 20:36, Mark Ellis wrote:
>
>
> > On Thu, 2011-03-03 at 05:56 +0100, Rob Hills wrote:
> > > On 24 Feb 2011 at 13:06, Rob Hills wrote:
> > >
> > > > I've had synce working well with my HTC TyTN II phone for some
> months
> > > > now. A few days ago, I noticed an update to SynCE come through
> via the
> > > > Ubuntu Update Manager and after that,
> >
> > Be more specific, what version of the tools are you using ?
>
>
> Not sure what version was installed previously, but here's the current
> output of
> dpkg-query -W -f='${package;-20} ${version;-30} ${status}\n' *synce*
>

> synce-sync-engine 0.15.1-0ubuntu0~ppa1~maverick1 install ok
> installed

>
> > > SynCE stopped synchronising.
> > > > Looking into it more closely today via the SynCE Tray Icon app,
> I see that
> > > > there are no partnerships listed.
> >
> > What's the output of synce-list-partnerships
>
>
> It just lists the headers, no partnerships shown.

Ok, run synce-list-partnerships and send the file
~/.synce/sync-engine.log


>
> OK, thanks for that info. Here's the output of
> ls -alR ~/.synce/partnerships/
> /home/rob/.synce/partnerships/:
> total 16
> drwxr-xr-x 4 rob rob 4096 2010-09-19 23:49 .
> drwx------ 4 rob rob 4096 2011-03-04 00:53 ..
> drwxr-xr-x 2 rob rob 4096 2010-07-29 11:12
> PS-169027245-{C91A5123-7282-AB94-E44A-70F07A95502F}
> drwxr-xr-x 2 rob rob 4096 2010-09-19 23:49
> PS-251491247-{455D2302-63CE-E03E-7695-2F0B8EE8EFF9}
>
>
> /home/rob/.synce/partnerships/PS-169027245-{C91A5123-7282-AB94-E44A-70F07A95502F}:
> total 900
> drwxr-xr-x 2 rob rob 4096 2010-07-29 11:12 .
> drwxr-xr-x 4 rob rob 4096 2010-09-19 23:49 ..
> -rw-r--r-- 1 rob rob 198346 2011-02-17 09:39 IDB0
> -rw-r--r-- 1 rob rob 701162 2011-02-17 09:44 IDB1
> -rw-r--r-- 1 rob rob 311 2010-07-29 11:09 psconfig.xml
> -rw-r--r-- 1 rob rob 940 2011-02-17 09:38 psinfo.dat
>
>
> /home/rob/.synce/partnerships/PS-251491247-{455D2302-63CE-E03E-7695-2F0B8EE8EFF9}:
> total 16
> drwxr-xr-x 2 rob rob 4096 2010-09-19 23:49 .
> drwxr-xr-x 4 rob rob 4096 2010-09-19 23:49 ..
> -rw-r--r-- 1 rob rob 301 2010-09-19 23:49 psconfig.xml
> -rw-r--r-- 1 rob rob 934 2010-09-19 23:49 psinfo.dat
>
>
>
>
> The contents of the 2 psconfig.xml files are as follows:
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <syncpartner-config><General><SyncTimeToPc>0</SyncTimeToPc><LocalFilePath>Robs HTC-TyTn-II</LocalFilePath></General><DTPT><Enabled>1</Enabled><EnableMultihoming>0</EnableMultihoming><!-- "auto", "internet" or "work". --><Network>auto</Network></DTPT></syncpartner-config>
>
>
> <?xml version="1.0" encoding="utf-8"?>
> <syncpartner-config><General><SyncTimeToPc>0</SyncTimeToPc><LocalFilePath>ubuntu</LocalFilePath></General><DTPT><Enabled>1</Enabled><EnableMultihoming>0</EnableMultihoming><!-- "auto", "internet" or "work". --><Network>auto</Network></DTPT></syncpartner-config>
>
>
> Thanks,
> Rob Hills
> Waikiki, Western Australia
>
Rob Hills
2011-03-04 12:31:01 UTC
Permalink
Hi Mark,

On 4 Mar 2011 at 9:13, Mark Ellis wrote:

> To the list please.

Sorry, all the other lists I'm on have the list as the "reply-to" address in the mail envelope so I guess I've got a bit slack about checking
the addresses.

> On Fri, 2011-03-04 at 00:40 +0100, Rob Hills wrote:
> > Hi Mark, thanks for the reply.
> >
> >
> > On 3 Mar 2011 at 20:36, Mark Ellis wrote:
> >
> >
> > > On Thu, 2011-03-03 at 05:56 +0100, Rob Hills wrote:
> > > > On 24 Feb 2011 at 13:06, Rob Hills wrote:
> > > >
> > > > > I've had synce working well with my HTC TyTN II phone for some
> > months
> > > > > now. A few days ago, I noticed an update to SynCE come through
> > via the
> > > > > Ubuntu Update Manager and after that,

<..>

> Ok, run synce-list-partnerships and send the file
> ~/.synce/sync-engine.log

2011-03-04 20:17:07,492 DEBUG syncengine : running main loop
2011-03-04 20:17:07,494 DEBUG syncengine : creating SyncEngine object
2011-03-04 20:17:07,515 INFO engine.syncengine.kernel : _UdevConnect: failed to connect to dccm:
org.freedesktop.DBus.Error.ServiceUnknown: The name org.synce.dccm was not provided by any .service files
2011-03-04 20:17:08,318 DEBUG syncengine : installing signal handlers
2011-03-04 20:17:29,428 INFO engine.syncengine.kernel : _CBHalDeviceConnected: device connected at udi
/org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
2011-03-04 20:17:29,429 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
2011-03-04 20:17:29,437 INFO engine.syncengine.kernel : device HTC76 connected
2011-03-04 20:17:29,439 INFO engine.syncengine.kernel : ProcessAuth : processing authorization for device 'HTC76'
2011-03-04 20:17:29,446 INFO engine.syncengine.kernel : ProcessAuth: authorization not required for device 'HTC76'
2011-03-04 20:17:29,446 DEBUG engine.syncengine.kernel : OnConnect: setting up RAPI session
** Message: dccm is not running, ignoring
2011-03-04 20:17:29,452 ERROR dbus.connection : Exception in handler for D-Bus signal:
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 214, in maybe_handle_message
self._handler(*args, **kwargs)
File "/usr/lib/python2.6/dist-packages/SyncEngine/kernel.py", line 390, in _CBHalDeviceConnected
self.OnConnect()
File "/usr/lib/python2.6/dist-packages/SyncEngine/kernel.py", line 562, in OnConnect
self.rapi_session = rapicontext.RapiContext(None, pyrapi2.SYNCE_LOG_LEVEL_DEFAULT)
File "pyrapi2.pyx", line 1069, in pyrapi2.RAPISession.__cinit__
RAPIError: 2147500037: An unspecified failure has occurred

"unspecified failure" doesn't sound too helpful to me, but hopefully it'll mean more to you!

Thanks,
Rob Hills
Waikiki, Western Australia
Mark Ellis
2011-03-04 13:49:47 UTC
Permalink
On Fri, 2011-03-04 at 13:31 +0100, Rob Hills wrote:
> Hi Mark,
>
> On 4 Mar 2011 at 9:13, Mark Ellis wrote:
>
> > To the list please.
>
> Sorry, all the other lists I'm on have the list as the "reply-to" address in the mail envelope so I guess I've got a bit slack about checking
> the addresses.
>
> > On Fri, 2011-03-04 at 00:40 +0100, Rob Hills wrote:
> > > Hi Mark, thanks for the reply.
> > >
> > >
> > > On 3 Mar 2011 at 20:36, Mark Ellis wrote:
> > >
> > >
> > > > On Thu, 2011-03-03 at 05:56 +0100, Rob Hills wrote:
> > > > > On 24 Feb 2011 at 13:06, Rob Hills wrote:
> > > > >
> > > > > > I've had synce working well with my HTC TyTN II phone for some
> > > months
> > > > > > now. A few days ago, I noticed an update to SynCE come through
> > > via the
> > > > > > Ubuntu Update Manager and after that,
>
> <..>
>
> > Ok, run synce-list-partnerships and send the file
> > ~/.synce/sync-engine.log
>
> 2011-03-04 20:17:07,492 DEBUG syncengine : running main loop
> 2011-03-04 20:17:07,494 DEBUG syncengine : creating SyncEngine object
> 2011-03-04 20:17:07,515 INFO engine.syncengine.kernel : _UdevConnect: failed to connect to dccm:
> org.freedesktop.DBus.Error.ServiceUnknown: The name org.synce.dccm was not provided by any .service files
> 2011-03-04 20:17:08,318 DEBUG syncengine : installing signal handlers
> 2011-03-04 20:17:29,428 INFO engine.syncengine.kernel : _CBHalDeviceConnected: device connected at udi
> /org/freedesktop/Hal/devices/net_80_00_60_0f_e8_00
> 2011-03-04 20:17:29,429 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
> 2011-03-04 20:17:29,437 INFO engine.syncengine.kernel : device HTC76 connected
> 2011-03-04 20:17:29,439 INFO engine.syncengine.kernel : ProcessAuth : processing authorization for device 'HTC76'
> 2011-03-04 20:17:29,446 INFO engine.syncengine.kernel : ProcessAuth: authorization not required for device 'HTC76'
> 2011-03-04 20:17:29,446 DEBUG engine.syncengine.kernel : OnConnect: setting up RAPI session
> ** Message: dccm is not running, ignoring
> 2011-03-04 20:17:29,452 ERROR dbus.connection : Exception in handler for D-Bus signal:
> Traceback (most recent call last):
> File "/usr/lib/pymodules/python2.6/dbus/connection.py", line 214, in maybe_handle_message
> self._handler(*args, **kwargs)
> File "/usr/lib/python2.6/dist-packages/SyncEngine/kernel.py", line 390, in _CBHalDeviceConnected
> self.OnConnect()
> File "/usr/lib/python2.6/dist-packages/SyncEngine/kernel.py", line 562, in OnConnect
> self.rapi_session = rapicontext.RapiContext(None, pyrapi2.SYNCE_LOG_LEVEL_DEFAULT)
> File "pyrapi2.pyx", line 1069, in pyrapi2.RAPISession.__cinit__
> RAPIError: 2147500037: An unspecified failure has occurred
>
> "unspecified failure" doesn't sound too helpful to me, but hopefully it'll mean more to you!
>

It's not particularly helpful to me either, but at least it explains why
you don't see any partnerships. Sync-engine is dying before it can
return anything, when it tries to connect to the device.

Does everything else work ok, eg synce-pls ?
Mark Ellis
2011-03-04 19:58:24 UTC
Permalink
On Fri, 2011-03-04 at 17:54 +0100, Rob Hills wrote:
> Hi Mark,
>
> On 4 Mar 2011 at 13:49, Mark Ellis wrote:
>
> > On Fri, 2011-03-04 at 13:31 +0100, Rob Hills wrote:
>
> <..>
>
> > > "unspecified failure" doesn't sound too helpful to me, but hopefully it'll mean more to you!
> >
> > It's not particularly helpful to me either, but at least it explains why
> > you don't see any partnerships. Sync-engine is dying before it can
> > return anything, when it tries to connect to the device.
> >
> > Does everything else work ok, eg synce-pls ?
>
> ~$ synce-pls
> ** Message: dccm is not running, ignoring
> synce-pls: Could not find configuration at path '(Default)'
>

Ok, that's obvious now I see it. The new packages are built for
synce-connector, and I've disabled support for hal, odccm and vdccm
because its all obsolete.

Your solution is install synce-connector, which will replace synce-hal.
I need to fix the dependencies somehow so that can't happen.

> Hmmm, what does "path '(Default)'" refer to?
>
> What other commands should I try running? I've not used synce via the
> CLI since I had it installed and synchronising about 8 months ago.
>
> Thanks,
> Rob Hills
> Waikiki, Western Australia
>
Rob Hills
2011-03-05 02:08:48 UTC
Permalink
Hi Mark,

On 4 Mar 2011 at 19:58, Mark Ellis wrote:

> Your solution is install synce-connector, which will replace synce-hal.
> I need to fix the dependencies somehow so that can't happen.

OK, that worked, but not before I rebooted the OS. Maybe I could have got away with restarting the
syncengine itself, but I've long forgotten how to do that. Stupidly, I didn't make a copy of the log file before I
rebooted.

Anyway, my SynCE Tray Icon app now works as it used to and I have my 2 partnerships back so thanks for
that.

In the log there are still a couple of errors when the process starts up after an OS reboot:

------------ Start Enclosed Document--------------------

2011-03-05 09:52:52,739 DEBUG syncengine : running main loop
2011-03-05 09:52:52,741 DEBUG syncengine : creating SyncEngine object
2011-03-05 09:52:52,760 ERROR dbus.proxies : Introspect error on :1.57:/org/synce/dccm/DeviceManager:
dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1
matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2078 comm="/usr/bin/python)
interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)"
requested_reply=0 destination=":1.57" (uid=0 pid=2071 comm="/usr/lib/synce-connector/dccm))
2011-03-05 09:52:52,760 DEBUG dbus.proxies : Executing introspect queue due to error
2011-03-05 09:52:52,762 INFO engine.syncengine.kernel : _UdevConnect: connected device found
2011-03-05 09:52:52,762 INFO engine.syncengine.kernel : _CBUdevDeviceConnected: device connected at
path /org/synce/dccm/Device/_devices_pci0000_00_0000_00_1d_7_usb2_2_1_2_1_2_2_1_2_1_0_net_eth1
2011-03-05 09:52:52,762 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
2011-03-05 09:52:52,767 ERROR dbus.proxies : Introspect error on
:1.57:/org/synce/dccm/Device/_devices_pci0000_00_0000_00_1d_7_usb2_2_1_2_1_2_2_1_2_1_0_net_eth
1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1
matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2078 comm="/usr/bin/python)
interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)"
requested_reply=0 destination=":1.57" (uid=0 pid=2071 comm="/usr/lib/synce-connector/dccm))
2011-03-05 09:52:52,767 DEBUG dbus.proxies : Executing introspect queue due to error

------------- End Enclosed Document---------------------

These errors don't seem to affect the functionality of the sync process AFAICT, should I be concerned about
them? Do I need to configure/install/uninstall anything else?

Many thanks for your prompt assistance,
Rob Hills
Waikiki, Western Australia
Mark Ellis
2011-03-05 18:23:55 UTC
Permalink
On Sat, 2011-03-05 at 03:08 +0100, Rob Hills wrote:
> Hi Mark,
>
> On 4 Mar 2011 at 19:58, Mark Ellis wrote:
>
> > Your solution is install synce-connector, which will replace synce-hal.
> > I need to fix the dependencies somehow so that can't happen.
>
> OK, that worked, but not before I rebooted the OS. Maybe I could have got away with restarting the
> syncengine itself, but I've long forgotten how to do that. Stupidly, I didn't make a copy of the log file before I
> rebooted.
>
> Anyway, my SynCE Tray Icon app now works as it used to and I have my 2 partnerships back so thanks for
> that.
>
> In the log there are still a couple of errors when the process starts up after an OS reboot:
>
> ------------ Start Enclosed Document--------------------
>

> 2011-03-05 09:52:52,760 ERROR dbus.proxies : Introspect error on :1.57:/org/synce/dccm/DeviceManager:
> dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1
> matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2078 comm="/usr/bin/python)
> interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)"
> requested_reply=0 destination=":1.57" (uid=0 pid=2071 comm="/usr/lib/synce-connector/dccm))
> 2011-03-05 09:52:52,760 DEBUG dbus.proxies : Executing introspect queue due to error

> 2011-03-05 09:52:52,767 ERROR dbus.proxies : Introspect error on
> :1.57:/org/synce/dccm/Device/_devices_pci0000_00_0000_00_1d_7_usb2_2_1_2_1_2_2_1_2_1_0_net_eth
> 1: dbus.exceptions.DBusException: org.freedesktop.DBus.Error.AccessDenied: Rejected send message, 1
> matched rules; type="method_call", sender=":1.58" (uid=1000 pid=2078 comm="/usr/bin/python)
> interface="org.freedesktop.DBus.Introspectable" member="Introspect" error name="(unset)"
> requested_reply=0 destination=":1.57" (uid=0 pid=2071 comm="/usr/lib/synce-connector/dccm))
> 2011-03-05 09:52:52,767 DEBUG dbus.proxies : Executing introspect queue due to error
>
> ------------- End Enclosed Document---------------------
>
> These errors don't seem to affect the functionality of the sync process AFAICT, should I be concerned about
> them? Do I need to configure/install/uninstall anything else?
>

Slightly odd, it's python saying it doesn't have permission to look at
the interface of dccm. If it works ok then that's fine, but since mine
doesn't do that it implies there is a difference in the dbus setup,
which is odd.
Loading...