desktop couch service changes to zombieprocess

Bug #764931 reported by wimpunk
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
desktopcouch (Ubuntu)
Incomplete
Undecided
Chad Miller

Bug Description

Binary package hint: desktopcouch

After starting using the getPort method, desktopcouch gets started but after a few minutes one of the couchservices changes to a zombie process

Reproduction:
$ dbus-send --session --dest=org.desktopcouch.CouchDB --print-reply --type=method_call / org.desktopcouch.CouchDB.getPort

ps ax returns:
3035 ? S 0:01 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
 3055 ? S 0:00 /bin/sh -e /usr/bin/couchdb -n -a /etc/couchdb/default.ini -a /etc/xdg/desktop-couch/compulsory-auth.ini -a /home/wim/.config/desktop-couch/desktop-couchdb.ini -b -r 0 -p /home/wim/.cache/desktop-couch
 3062 ? S 0:00 /bin/sh -e /usr/bin/couchdb -n -a /etc/couchdb/default.ini -a /etc/xdg/desktop-couch/compulsory-auth.ini -a /home/wim/.config/desktop-couch/desktop-couchdb.ini -b -r 0 -p /home/wim/.cache/desktop-couch
 3063 ? Sl 0:01 /usr/lib/erlang/erts-5.7.4/bin/beam -Bd -K true -A 4 -- -root /usr/lib/erlang -progname erl -- -home /home/wim -- -noshell -noinput -sasl errlog_type error -couch_ini /etc/couchdb/default.ini /etc/xdg/
 3071 ? Ss 0:00 heart -pid 3063 -ht 11
 3074 ? SN 0:00 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
 3075 ? S 0:00 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
 3076 ? Ssl 0:00 /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js

After a few minutes it returns:
3035 ? S 0:02 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
 3055 ? S 0:00 /bin/sh -e /usr/bin/couchdb -n -a /etc/couchdb/default.ini -a /etc/xdg/desktop-couch/compulsory-auth.ini -a /home/wim/.config/desktop-couch/desktop-couchdb.ini -b -r 0 -p /home/wim/.cache/desktop-couch
 3062 ? S 0:00 /bin/sh -e /usr/bin/couchdb -n -a /etc/couchdb/default.ini -a /etc/xdg/desktop-couch/compulsory-auth.ini -a /home/wim/.config/desktop-couch/desktop-couchdb.ini -b -r 0 -p /home/wim/.cache/desktop-couch
 3063 ? Sl 0:03 /usr/lib/erlang/erts-5.7.4/bin/beam -Bd -K true -A 4 -- -root /usr/lib/erlang -progname erl -- -home /home/wim -- -noshell -noinput -sasl errlog_type error -couch_ini /etc/couchdb/default.ini /etc/xdg/
 3071 ? Ss 0:00 heart -pid 3063 -ht 11
 3074 ? SN 0:01 /usr/bin/python /usr/lib/desktopcouch/desktopcouch-service
 3075 ? Z 0:01 [desktopcouch-se] <defunct>
 3076 ? Ssl 0:00 /usr/lib/couchdb/bin/couchjs /usr/share/couchdb/server/main.js

As far as I see, it doesn't synchronise with ubuntu-one after it changed to zombie mode.

$ lsb_release -rd
Description: Ubuntu Natty (development branch)
Release: 11.04

$ apt-cache policy desktopcouch
desktopcouch:
  Installed: 1.0.7-0ubuntu2
  Candidate: 1.0.7-0ubuntu2
  Version table:
 *** 1.0.7-0ubuntu2 0
        500 http://ubuntu.mirrors.skynet.be/pub/ubuntu.com/ubuntu/ natty/main i386 Packages
        100 /var/lib/dpkg/status

Tags: u1-natty
wimpunk (wimpunk)
tags: added: u1-natty
Revision history for this message
Chad Miller (cmiller) wrote :

I need the contents of the log file ~/.cache/desktop-couch/log/desktop-couch-dbus.log , please. That should help me determine the problem.

Changed in desktopcouch (Ubuntu):
status: New → Incomplete
assignee: nobody → Chad Miller (cmiller)
Revision history for this message
wimpunk (wimpunk) wrote :
Download full text (6.2 KiB)

2011-04-18 08:37:57,952 INFO Loaded Ubuntu One extension for desktopcouch.
2011-04-18 08:37:57,963 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-04-18 08:37:57,966 DEBUG starting dbus main loop
2011-04-18 08:37:58,704 DEBUG Not adding desktopcouch pairing since we are already paired
2011-04-18 08:37:58,705 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-04-18 08:42:55,888 DEBUG ending dbus main loop
2011-04-18 08:42:55,889 INFO exiting.
2011-04-18 08:42:55,890 WARNING shutting down personal couchdb.
2011-04-18 08:43:50,715 INFO Loaded Ubuntu One extension for desktopcouch.
2011-04-18 08:43:50,717 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-04-18 08:43:50,723 DEBUG starting dbus main loop
2011-04-18 08:43:52,512 DEBUG Not adding desktopcouch pairing since we are already paired
2011-04-18 08:43:52,513 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-04-18 08:46:58,444 INFO Loaded Ubuntu One extension for desktopcouch.
2011-04-18 08:46:58,449 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-04-18 08:46:58,453 DEBUG starting dbus main loop
2011-04-18 08:47:01,272 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-04-18 08:47:01,272 ERROR Exception in handler for D-Bus signal:
Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.7/dbus/connection.py", line 214, in maybe_handle_message
    self._handler(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/plugins/ubuntuone_pairing.py", line 97, in <lambda>
    *args)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/plugins/ubuntuone_pairing.py", line 84, in got_new_credentials
    pair_with_ubuntuone(couchdb_port, blocking_semaphores)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/plugins/ubuntuone_pairing.py", line 47, in pair_with_ubuntuone
    ctx=None)
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/server.py", line 75, in __init__
    oauth_tokens=oauth_tokens, ctx=ctx, views_factory=views_factory)
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/database.py", line 123, in __init__
    self._reconnect()
  File "/usr/lib/pymodules/python2.7/desktopcouch/application/server.py", line 85, in _reconnect
    super(DesktopDatabase, self)._reconnect(uri=uri)
  File "/usr/lib/pymodules/python2.7/desktopcouch/records/database.py", line 139, in _reconnect
    self._server.create(self._database_name)
  File "/usr/lib/pymodules/python2.7/couchdb/client.py", line 193, in create
    self.resource.put_json(validate_dbname(name))
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 405, in put_json
    status, headers, data = self.put(*a, **k)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 384, in put
    return self._request('PUT', path, body=body, headers=headers, **params)
  File "/usr/lib/pymodules/python2.7/couchdb/http.py", line 419, in _request
    credentials=self.credentials...

Read more...

Revision history for this message
wimpunk (wimpunk) wrote :

Is there any news about this issue? It seems to happen with all three pc's I upgraded to ubuntu Nanty. Is there anything more I can provide, I see the bug is still set as incomplete...

Revision history for this message
i1abnrk (i1abnrk) wrote :

I have this problem, too. Essentially I have two instances of couchdb running. One is a zombie called 'desktop-couch-se' that is zombie in 'do_exit()', the other is called 'desktop-couch-service' in do_wait() that is fine' couchdb itself has two instances as well, one is in 'do_wait()' the other is in 'pipe_wait()'. Also, when the thread becomes zombie my desktop wallpaper and fonts become garbled and CPU gets laggy (like a memory leak). I am using the rt overclock option for pulseaudio that can be installed with jackaudio and this problem started for me with Ubuntu 11.04.
Here is a log from ~/.cache

2011-09-20 08:46:46,669 INFO Loaded Ubuntu One extension for desktopcouch.
2011-09-20 08:46:46,669 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-09-20 08:46:46,670 DEBUG starting dbus main loop
2011-09-20 08:46:51,720 DEBUG Not adding desktopcouch pairing since we are already paired
2011-09-20 08:46:51,720 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-09-20 11:50:51,556 INFO Loaded Ubuntu One extension for desktopcouch.
2011-09-20 11:50:51,556 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-09-20 11:50:51,557 DEBUG starting dbus main loop
2011-09-20 11:50:59,862 DEBUG Not adding desktopcouch pairing since we are already paired
2011-09-20 11:50:59,862 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-09-20 20:42:34,964 INFO Loaded Ubuntu One extension for desktopcouch.
2011-09-20 20:42:35,010 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-09-20 20:42:35,011 DEBUG starting dbus main loop
2011-09-20 20:42:38,219 DEBUG Not adding desktopcouch pairing since we are already paired
2011-09-20 20:42:38,220 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing
2011-09-20 23:52:21,173 INFO Loaded Ubuntu One extension for desktopcouch.
2011-09-20 23:52:21,189 INFO adding desktopcouch.application.plugins.ubuntuone_pairing to to blocking semaphore list
2011-09-20 23:52:21,190 DEBUG starting dbus main loop
2011-09-20 23:52:23,881 DEBUG Not adding desktopcouch pairing since we are already paired
2011-09-20 23:52:23,882 INFO removing semaphore for desktopcouch.application.plugins.ubuntuone_pairing

attached is my desktop-couch-replication.log which seems to get frequent errors from SSL.

Revision history for this message
i1abnrk (i1abnrk) wrote :

I found the source of the zombie for me. It no longer happens now that I have disabled the bindwood extension for firefox. (The gui issues noted above are apparently unrelated to couchdb crashes, since that still happens).

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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