Lernid should handle gracefully when Desktop CouchDB does not start up
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Lernid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
As originally reported in [1]:
When you launch Lernid, it will wait for Desktop CouchDB to start up for your user. Apparently it didn't start after 7 "...waiting for couchdb to start...", so Lernid crashed.
Lernid should display some kind of error message and gracefully close, instead of just crashing.
=============
Desktop CouchDB is not running; starting it. Removing stale, deceptive pid file.
Apache CouchDB has started, time to relax.
...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...
...waiting for couchdb to start...
...waiting for couchdb to start...
Traceback (most recent call last):
File "/usr/bin/lernid", line 414, in <module>
window = NewLernidWindow()
File "/usr/bin/lernid", line 393, in NewLernidWindow
window.
File "/usr/bin/lernid", line 92, in finish_initializing
main_
File "/usr/lib/
klass = cls.get_instance()
File "/usr/lib/
cls._instance = cls()
File "/usr/lib/
self._database = CouchDatabase(
File "/usr/lib/
desktopcouc
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
=============
[1] https:/
Related branches
- John S. Gruber: Pending requested
-
Diff: 2983 lines (+636/-637)50 files modifiedbin/lernid (+7/-9)
debian/changelog (+22/-0)
etc/lernid-classrooms.d/ubuntu-classroom (+1/-1)
lernid.1 (+0/-3)
lernid/Sessions.py (+6/-7)
lernid/lernidconfig.py (+1/-1)
lernid/widgets/Browser.py (+225/-182)
lernid/widgets/Schedule.py (+1/-1)
lernid/widgets/WebChatroom.py (+0/-61)
lernid/widgets/__init__.py (+0/-1)
po/af.po (+8/-8)
po/ar.po (+10/-11)
po/ast.po (+8/-8)
po/ca.po (+9/-9)
po/cs.po (+8/-8)
po/da.po (+8/-8)
po/de.po (+11/-11)
po/el.po (+9/-9)
po/en_AU.po (+10/-10)
po/en_CA.po (+10/-10)
po/en_GB.po (+12/-11)
po/eo.po (+9/-9)
po/es.po (+13/-13)
po/es_AR.po (+8/-8)
po/eu.po (+9/-9)
po/fi.po (+8/-8)
po/fil.po (+12/-11)
po/fr.po (+12/-12)
po/he.po (+9/-9)
po/hr.po (+9/-9)
po/hu.po (+9/-9)
po/id.po (+8/-8)
po/it.po (+10/-10)
po/jbo.po (+8/-8)
po/ms.po (+10/-10)
po/nb.po (+8/-8)
po/nl.po (+12/-12)
po/oc.po (+9/-9)
po/pl.po (+11/-11)
po/pt.po (+8/-8)
po/pt_BR.po (+10/-10)
po/ro.po (+8/-8)
po/ru.po (+9/-9)
po/sl.po (+10/-10)
po/sv.po (+11/-11)
po/te.po (+8/-8)
po/tr.po (+9/-9)
po/uk.po (+10/-10)
po/zh_CN.po (+12/-11)
setup.py (+1/-1)
Changed in lernid: | |
status: | New → Triaged |
Thank you very much for filing this bug report. Does this still occur? When it does, does it crash Lernid or simply produce the messages above?