Crash dump on 'couchdb' invocation

Bug #424023 reported by Jamie Bennett
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
desktopcouch
Won't Fix
Medium
Unassigned
couchdb (Ubuntu)
Invalid
Undecided
Unassigned
Nominated for Karmic by Elliot Murphy

Bug Description

Binary package hint: couchdb

Using a fresh Karmic Alpha 5 install starting couchdb from the command line ('couchdb') results in the following crash dump.

CouchDB is 0.10.0a.

Revision history for this message
Jamie Bennett (jamiebennett) wrote :
Revision history for this message
Elliot Murphy (statik) wrote :

Thanks for the bug report, I'll try to figure this out.

Revision history for this message
Elliot Murphy (statik) wrote :

Loading this dump in the erlang dump viewer doesn't seem to be showing anything useful just yet.

I did:

$ erl
1> crashdump_viewer:start().

and then started the crashdump viewer from my browser and loaded the file. It seemed to load ok.

I'll try reproducing in a vm to see if I can find any more descriptive information about what is making couchdb unhappy.

Revision history for this message
Elliot Murphy (statik) wrote :

I can reproduce this on an upgrade also.

sudo /etc/init.d/couchdb start works fine, and gives me a running couchdb on http://127.0.0.1:5984/_utils/

sudo /etc/init.d/couchdb stop works fine, and shuts down couchdb.

emurphy@detox:~$ couchdb -i
Erlang R13B01 (erts-5.7.2) [source] [smp:2:2] [rq:2] [async-threads:0] [kernel-poll:true]

Eshell V5.7.2 (abort with ^G)
1> Apache CouchDB 0.10.0a (LogLevel=info) is starting.
{"init terminating in do_boot",{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{erl_eval,do_apply,5},{erl_eval,exprs,5},{init,start_it,1},{init,start_em,1}]}}

Crash dump was written to: erl_crash.dump
init terminating in do_boot ()

Revision history for this message
Elliot Murphy (statik) wrote :

If I become the couchdb user before running /usr/bin/couchdb, it works fine. If I sudo /usr/bin/couchdb it works fine. Looks like a permissions thing, I need to check whether any user should be able to run /usr/bin/couchdb, or if we should move it somewhere else or change permissions on a file/dir somewhere.

Changed in couchdb (Ubuntu):
assignee: nobody → Elliot Murphy (statik)
status: New → Confirmed
Changed in desktopcouch:
milestone: none → w23-karmic-beta
importance: Undecided → Medium
status: New → In Progress
tags: added: ubuntuone-karmic
Changed in desktopcouch:
assignee: nobody → Elliot Murphy (statik)
tags: added: review
Revision history for this message
Elliot Murphy (statik) wrote :

So couchdb could provide a nicer error message, but this is expected that you have to be running as couchdb or using sudo in order to run /usr/bin/couchdb directly.

Changed in desktopcouch:
status: In Progress → Won't Fix
Changed in couchdb (Ubuntu):
status: Confirmed → Invalid
assignee: Elliot Murphy (statik) → nobody
Changed in desktopcouch:
assignee: Elliot Murphy (statik) → nobody
tags: removed: review ubuntuone-karmic
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.