← Back to team overview

papercuts-ninja team mailing list archive

[Bug 1165104] Re: oneconf is only showing the pc you are on in raring and isn't sharing to other machines

 

I have been poking a bit in the code. In the file
'/usr/share/pyshared/oneconf/networksync/infraclient_pristine.py' there
is a methode 'list_machines' that is called at the start of the oneconf-
query service to return the list of machines that are synced by the USC.
The list is retrieved by calling the URL
'https://apps.staging.ubuntu.com/cat/api/1.0/list-machines/' (needs
authentication).

On my machine, the above call only returns 1 machine (the local one),
although when checking Ubuntu One (locally from within Settings Manager
> Ubuntu One, or from the web page https://one.ubuntu.com/account/) I
find my other device also listed as Ubuntu One @ ... and Ubuntu Software
Center @ ...

So, big question is:  why is the call to
https://apps.staging.ubuntu.com/cat/api/1.0/list-machines/ only
returning my local machine ???

I traced this by adding a way to log some information from the code in the file infraclient_pristine.py (as root):
I added on
    line 04:        import logging
    line 21:        LOG = logging.getLogger(__name__)
    line 45:        LOG.debug(self._get('list-machines/', scheme=AUTHENTICATED_API_SCHEME))

then in a terminal on the command line I stopped the service with
    $ oneconf-query --stop
and restarted it again with
    $ oneconf-query --debug
I got some debugging log (give it some time), and after the lines 
    DEBUG:oneconf.networksync:Start processing sync
    DEBUG:oneconf.networksync.infraclient_pristine:
it showed me what ubuntu.com was returning, i.e. only the information of the local device.

I hope this bug can be solved rapidly. It's such a usefull feature, but
without this aspect running well, it becomes really crippled.

PS. working with Ubuntu 12.10 and 13.10.  I did not use the patches
attached in previous comments. I don't think they can resolve my problem
as to me, there seems to be a bug with the API on the server ubuntu.com.

-- 
You received this bug notification because you are a member of Papercuts
Ninjas, which is a bug assignee.
https://bugs.launchpad.net/bugs/1165104

Title:
  oneconf is only showing the pc you are on in raring and isn't sharing
  to other machines

Status in One Hundred Papercuts:
  Triaged
Status in “oneconf” package in Ubuntu:
  Triaged

Bug description:
  In Raring I see only the machince I'm on.  In the precise box beside
  it I see a couple of boxes but not this one.  Please see the
  screenshots attached.

  I have a feeling that some how the sync has broken but I'm not sure
  what technology it is use on the backend.

  ProblemType: Bug
  DistroRelease: Ubuntu 13.04
  Package: oneconf 0.3.3
  ProcVersionSignature: Ubuntu 3.8.0-16.26-generic 3.8.5
  Uname: Linux 3.8.0-16-generic x86_64
  ApportVersion: 2.9.2-0ubuntu5
  Architecture: amd64
  Date: Fri Apr  5 18:18:24 2013
  InstallationDate: Installed on 2013-04-02 (3 days ago)
  InstallationMedia: Ubuntu 13.04 "Raring Ringtail" - Alpha amd64 (20130402)
  MarkForUpload: True
  PackageArchitecture: all
  SourcePackage: oneconf
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/hundredpapercuts/+bug/1165104/+subscriptions