Bug 2196 - CouchBD crashes at startup
Summary: CouchBD crashes at startup
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 1
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact:
URL:
Whiteboard:
Keywords: Junior_job, validated_update
Depends on: 2317
Blocks:
  Show dependency treegraph
 
Reported: 2011-07-18 17:48 CEST by Thomas Bigot
Modified: 2011-12-31 23:00 CET (History)
7 users (show)

See Also:
Source RPM: couchdb
CVE:
Status comment:


Attachments

Description Thomas Bigot 2011-07-18 17:48:51 CEST
Description of problem:
When trying to launch couchdb, a crashing message is displayed. The couchdb server is unreachable.

Version-Release number of selected component (if applicable):
couchdb-1.1.0-1.mga2.src.rpm

How reproducible:
always

Steps to Reproduce:
1. install couchdb
2. su - couchdb
3. couchdb

You get this message:


-bash-4.2$ couchdb 

=CRASH REPORT==== 18-Jul-2011::17:45:28 ===
  crasher:
    initial call: application_master:init/4
    pid: <0.31.0>
    registered_name: []
    exception exit: {{app_would_not_start,ssl},
                     {couch_app,start,
                                [normal,
                                 ["/etc/couchdb/default.ini",
                                  "/etc/couchdb/local.ini"]]}}
      in function  application_master:init/4
    ancestors: [<0.30.0>]
    messages: [{'EXIT',<0.32.0>,normal}]
    links: [<0.30.0>,<0.7.0>]
    dictionary: []
    trap_exit: true
    status: running
    heap_size: 987
    stack_size: 24
    reductions: 155
  neighbours:

=INFO REPORT==== 18-Jul-2011::17:45:28 ===
    application: couch
    exited: {{app_would_not_start,ssl},
             {couch_app,start,
                        [normal,
                         ["/etc/couchdb/default.ini",
                          "/etc/couchdb/local.ini"]]}}
    type: temporary
Thomas Bigot 2011-07-18 17:49:32 CEST

CC: (none) => thomas.bigot

Comment 1 Thomas Bigot 2011-07-29 13:15:16 CEST
I found the solution:
Just install erlang-public_key package, and it works!

So, erlang-public_key should be required by couchDB.
Manuel Hiebel 2011-07-29 15:43:12 CEST

Assignee: bugsquad => misc

Manuel Hiebel 2011-07-29 15:44:57 CEST

CC: (none) => fundawang

Comment 2 D Morgan 2011-07-29 15:52:07 CEST
does it affect mga 1 too ?

CC: (none) => dmorganec

Comment 3 D Morgan 2011-07-29 15:52:19 CEST
fixed in cauldron
Comment 4 Thomas Bigot 2011-07-29 15:55:43 CEST
Yes, mga 1 is affected.
Comment 5 D Morgan 2011-07-29 16:09:33 CEST
ok so i backport the fix in testing
Manuel Hiebel 2011-09-08 22:15:46 CEST

Keywords: (none) => Junior_job

Manuel Hiebel 2011-11-01 00:57:23 CET

Version: Cauldron => 1
Assignee: misc => bugsquad
Source RPM: couchdb-1.1.0-1.mga2.src.rpm => couchdb

Comment 6 Marja Van Waes 2011-12-27 14:54:36 CET
(In reply to comment #4)
> Yes, mga 1 is affected.

(In reply to comment #5)
> ok so i backport the fix in testing

@ D Morgan

What happened since?

In the changelog, I see:

Sat Apr 16 2011 misc <misc> 1.0.2-1.mga1

+ Revision: 86162
- update to 1.0.2
Sat Mar 26 2011 dmorgan <dmorgan> 1.0.1-2.mga1

+ Revision: 77595
- imported package couchdb

CC: (none) => marja11

Comment 7 Marja Van Waes 2011-12-27 14:56:14 CET
(In reply to comment #6)

> 
> @ D Morgan
> 
> What happened since?
> 
Oops, it isn't your package

Assigning to maintainer

Assignee: bugsquad => misc

Comment 8 Michael Scherer 2011-12-29 23:04:56 CET
I submitted the package to updates_testing. ( 1.0.2-1.1 )
Here is the advisory :

Couchdb could not be started on Mageia 1, due to a missing requires on a erlang module. This update fix the problem by adding the missing information. 


For QA, to test, just install it, and do "service couchdb start"

Assignee: misc => qa-bugs

Comment 9 claire robinson 2011-12-30 15:45:57 CET
x86_64

I'm not able to reproduce the crash with "service couchdb start" but it shows as not running when attempting to stop it:

Before
------

# urpmi couchdb
To satisfy dependencies, the following packages are going to be installed:
   Package                        Version      Release       Arch   
(medium "Core Release")
  couchdb                        1.0.2        1.mga1        x86_64
  couchdb-bin                    1.0.2        1.mga1        x86_64
  erlang-base                    R14B         1.mga1        x86_64
  erlang-crypto                  R14B         1.mga1        x86_64
  erlang-inets                   R14B         1.mga1        x86_64
  erlang-ssl                     R14B         1.mga1        x86_64
  erlang-tools                   R14B         1.mga1        x86_64
  erlang-xmerl                   R14B         1.mga1        x86_64
24MB of additional disk space will be used.
8.5MB of packages will be retrieved.
Proceed with the installation of the 8 packages? (Y/n) y

# service couchdb start
Starting couchdb: Apache CouchDB has started, time to relax. [  OK  ]

# service couchdb stop
Stopping couchdb: Apache CouchDB is not running. [  OK  ]

Using Thomas's initial instructions in comment 0 it does show the crash information so the crash is reproducible.


After
-----

When updating with MageiaUpdate:

Sorry, the following package cannot be selected:

- couchdb-bin-1.0.2-1.1.mga1.x86_64 (due to unsatisfied erlang-public_key)

# urpmi erlang-public_key

Installs from core/release so this is affected by bug 2317 and will require this package to be linked to updates.

After installing and updating:

The following 2 packages are going to be installed:

- couchdb-1.0.2-1.1.mga1.x86_64
- couchdb-bin-1.0.2-1.1.mga1.x86_64

# su - couchdb
-bash-4.2$ couchdb
Apache CouchDB 1.0.2 (LogLevel=info) is starting.
Apache CouchDB has started. Time to relax.
[info] [<0.32.0>] Apache CouchDB has started on http://127.0.0.1:5984/


I'm not sure how to test beyond confirming it now starts without error.

Depends on: (none) => 2317

Comment 10 claire robinson 2011-12-30 16:06:56 CET
There appears to be a simple "Hello World!" here:

http://wiki.apache.org/couchdb/CouchIn15Minutes
Comment 11 claire robinson 2011-12-30 16:40:24 CET
Followed the 15 minutes and created a database with something in it and displayed the Hello World!

Testing complete x86_64.
Comment 12 Dave Hodgins 2011-12-31 00:05:34 CET
Thanks for the link Claire.  Successfully created the example database,
and confirmed it's contents are viewable on my i586 system.

Could someone from the sysadmin team push the srpm
couchdb-1.0.2-1.1.mga1.src.rpm
from Core Updates Testing to Core Updates
and, for bug 2317 link the rpm
erlang-public_key
from Core Releaes to Core Updates

Advisory:  This update adds erlang-public_key as a requirement for
the couchdb-bin package, as the database server will not start
if the package is not installed.

Keywords: (none) => validated_update
CC: (none) => davidwhodgins, sysadmin-bugs

Comment 13 Thomas Backlund 2011-12-31 23:00:13 CET
Update pushed.

Status: NEW => RESOLVED
CC: (none) => tmb
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.