desktopcouch pairing broken

Bug #634396 reported by Joshua Hoover
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
desktopcouch
Fix Released
Critical
Manuel de la Peña
desktopcouch (Ubuntu)
Fix Released
Medium
Ubuntu One Client Engineering team

Bug Description

Running Maverick Beta with the latest & greatest as of 2010-09-09 18:30 UTC and desktopcouch from trunk (r171). Already have computer setup with Ubuntu One.

Steps to reproduce:

1. $ PYTHONPATH=/path/to/desktopcouch/ ubuntuone-preferences

Result:
Apache CouchDB has started, time to relax.
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/bin/ubuntuone-preferences", line 1036, in got_newcredentials
    self.present()
  File "/usr/bin/ubuntuone-preferences", line 1016, in present
    self.dialog.connect_desktopcouch_exclusion()
  File "/usr/bin/ubuntuone-preferences", line 692, in connect_desktopcouch_exclusion
    self.dcouch = dcouch.ReplicationExclusion()
  File "/home/jhoover/dev/desktopcouch/desktopcouch/replication_services/ubuntuone.py", line 157, in __init__
    ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/records/server.py", line 56, in __init__
    server_class=server_class, oauth_tokens=oauth_tokens, ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/records/server_base.py", line 153, in __init__
    self._reconnect()
  File "/home/jhoover/dev/desktopcouch/desktopcouch/records/server.py", line 60, in _reconnect
    port = desktopcouch.find_port(ctx=self.ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 106, in find_port
    return _direct_access_find_port(pid=pid, ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 131, in __find_port__linux
    pid = find_pid(start_if_not_running=True, ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 89, in find_pid
    pid = start_local_couchdb.start_couchdb(ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/start_local_couchdb.py", line 230, in start_couchdb
    pid, port = run_couchdb(ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/start_local_couchdb.py", line 101, in run_couchdb
    port = desktopcouch.find_port(pid=pid, ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 106, in find_port
    return _direct_access_find_port(pid=pid, ctx=ctx)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 193, in __find_port__linux
    return __find_port__linux(pid, ctx, retries_left - 1)
  File "/home/jhoover/dev/desktopcouch/desktopcouch/__init__.py", line 150, in __find_port__linux
    "we could read it. " % (dirent_path,))
TypeError: not all arguments converted during string formatting

Expected result: No error, pairing works :-)

Related branches

Changed in desktopcouch (Ubuntu):
status: New → Triaged
importance: Undecided → Medium
assignee: nobody → Ubuntu One Desktop+ team (ubuntuone-desktop+)
milestone: none → ubuntu-10.10
Changed in desktopcouch:
status: Triaged → In Progress
Changed in desktopcouch (Ubuntu):
status: Triaged → In Progress
dobey (dobey)
Changed in desktopcouch:
status: In Progress → Fix Committed
Revision history for this message
Colin Watson (cjwatson) wrote :

desktopcouch (0.6.8-0ubuntu1) maverick; urgency=low

  * Add Ubuntu One pairing to desktopcouch, the code looks for
    credentials at start time and will listen to them while the dbus
    service is running.
  * On couchdb failure, reconnect with logic that starts up the
    couchdb server again and uses the new port. Instead of giving
    python-couchdb view objects to the user, give an object we own
    that implements reconnecting to the server on errors, and proxies
    commands otherwise. (LP: #522538)
  * Support new Basic auth for HTTP that our bookmark file
    requires. Make Basic-auth part of compulsory INI file. (LP:
    #599745)
  * When a stored record exists and is marked as deleted, and a user
    tries to store a new record with the same ID, do some ugly work to
    make the user's record be the deleted-record's successor. (LP:
    #462245)
  * Removed debian/patches/lp_599745.patch since it was included in
    upstream.
  * Fix errors in parameters in new code. (LP: #634396 #634784)

 -- Eric Casteleijn <email address hidden> Fri, 10 Sep 2010 10:44:04 -0400

Changed in desktopcouch (Ubuntu):
status: In Progress → Fix Released
Changed in desktopcouch:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.