first startup failed
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
desktopcouch |
Confirmed
|
Critical
|
Chad Miller |
Bug Description
I'm trying to use desktopcouch 0.5 on Fedora 11.
I got this after creating an rpm and installing:
[thomas@otto desktopcouch-0.5]$ desktopcouch-pair
/usr/lib/
import md5
/usr/lib/
import sha
Apache CouchDB has started, time to relax.
Desktop CouchDB is not running; starting it. ...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
...waiting for couchdb to start...
Traceback (most recent call last):
File "/usr/bin/
desktopcouc
File "/usr/lib/
pid = find_pid()
File "/usr/lib/
pid = start_local_
File "/usr/lib/
write_
File "/usr/lib/
port = desktopcouch.
File "/usr/lib/
raise RuntimeError(
RuntimeError: Unable to find listening port
I also ran this:
[thomas@otto desktopcouch-0.5]$ ps auxw | grep couch
thomas 13359 0.1 0.1 12700 5532 pts/9 S+ 14:24 0:00 vim desktopcouch.otl
thomas 13660 0.0 0.0 4868 1212 pts/1 S 14:25 0:00 /bin/sh -e /usr/bin/couchdb -n -a \"/etc/
thomas 13701 0.0 0.0 4868 668 pts/1 S 14:25 0:00 /bin/sh -e /usr/bin/couchdb -n -a \"/etc/
thomas 13702 2.9 0.2 74784 8420 pts/1 Sl 14:25 0:00 /usr/lib/
thomas 13717 0.0 0.0 4200 724 pts/1 S+ 14:26 0:00 grep couch
After that I ran the same command again, and it worked:
[thomas@otto desktopcouch-0.5]$ desktopcouch-pair
/usr/lib/
import md5
/usr/lib/
import sha
2009-11-22 14:26:08,807 [13719] root:DEBUG: starting couchdb pairing tool
2009-11-22 14:26:08,896 [13719] root:INFO: This machine hasn't authorized itself to Ubuntu One; replication to the cloud isn't possible until it has. See 'ubuntuone-
2009-11-22 14:26:28,313 [13719] Listening:INFO: want to listen for invitations.
2009-11-22 14:26:28,449 [13719] root:DEBUG: found 0 self_identity records
2009-11-22 14:26:28,493 [13719] root:DEBUG: set new self-identity value: '4cf6b299-
2009-11-22 14:26:28,494 [13719] ListenForInvita
2009-11-22 14:26:28,521 [13719] PairAdvertiseme
2009-11-22 14:26:39,701 [13719] PairAdvertiseme
2009-11-22 14:26:50,799 [13719] root:DEBUG: found 1 self_identity records
2009-11-22 14:26:50,800 [13719] root:DEBUG: paired back-connecting machine count is 0
2009-11-22 14:26:50,800 [13719] root:DEBUG: exiting couchdb pairing tool
Because of the previous failure, it did not generate a couchdb.html file. Took a while to figure that out. I killed it with
/usr/lib/
but the desktopcouch-
killing the -service script cleaned up properly.
I think this is a timing error, which we have recently fixed.
We assume that having a PID file also means we have a valid port number. That isn't always the case. On some machines, we lose the race and get this error.