Bug 32481 - couchdb does not start (Erlang crash)
Summary: couchdb does not start (Erlang crash)
Status: NEW
Alias: None
Product: Mageia
Classification: Unclassified
Component: RPM Packages (show other bugs)
Version: 9
Hardware: x86_64 Linux
Priority: Normal normal
Target Milestone: ---
Assignee: David GEIGER
QA Contact:
URL:
Whiteboard:
Keywords: feedback
: 32808 (view as bug list)
Depends on:
Blocks:
 
Reported: 2023-11-02 16:49 CET by Daniel Tartavel
Modified: 2024-02-11 01:57 CET (History)
6 users (show)

See Also:
Source RPM: couchdb-3.2.2-2.mga9.src.rpm
CVE:
Status comment:


Attachments
logs when systemd start couchdb (2.39 KB, text/plain)
2023-11-02 16:51 CET, Daniel Tartavel
Details
specimen advisory (319 bytes, text/plain)
2024-02-06 20:06 CET, Len Lawrence
Details
Update to suggested advisory (360 bytes, text/plain)
2024-02-08 09:39 CET, Len Lawrence
Details

Description Daniel Tartavel 2023-11-02 16:49:56 CET
Description of problem:
couchdb crash on startup with error.
cf join file

Version-Release number of selected component (if applicable):
couchdb 3.2.2-2.mga9

How reproducible:
install couchdb
systemctl start couchdb
Comment 1 Daniel Tartavel 2023-11-02 16:51:26 CET
Created attachment 14121 [details]
logs when systemd start couchdb
Comment 2 Lewis Smith 2023-11-02 20:39:27 CET
Thank you for the report.

Our current version 3.2.2 is 17mth old. There is an update:
 CouchDB 3.2.3 : https://couchdb.apache.org/#download
Perhaps we should start with that.
+ a separate version CouchDB 3.3.2

But the error in the journal indicates Erlang, for which we have version 24.3.4.7. The same page makes reference to "Erlang/OTP 23.3.4.18".

Installing the pkg gave:
"/usr/lib/tmpfiles.d/couchdb.conf:1: Line references path below legacy directory /var/run/, updating /var/run/couchdb → /run/couchdb; please update the tmpfiles.d/ drop-in file accordingly."
which means nothing to me, so I did nothing.

$ sudo systemctl start couchdb
$ sudo systemctl status couchdb.service
× couchdb.service - CouchDB Server
     Loaded: loaded (/usr/lib/systemd/system/couchdb.service; disabled; preset:>
     Active: failed (Result: exit-code) since Thu 2023-11-02 20:17:22 CET; 1min>
   Duration: 226ms
    Process: 88226 ExecStart=/usr/bin/erl +Bd -noinput -sasl errlog_type error >
   Main PID: 88226 (code=exited, status=1/FAILURE)
        CPU: 359ms

Tach 02 20:17:22 localhost.localdomain systemd[1]: couchdb.service: Scheduled r>
Tach 02 20:17:22 localhost.localdomain systemd[1]: Stopped couchdb.service.
Tach 02 20:17:22 localhost.localdomain systemd[1]: couchdb.service: Start reque>
Tach 02 20:17:22 localhost.localdomain systemd[1]: couchdb.service: Failed with>
Tach 02 20:17:22 localhost.localdomain systemd[1]: Failed to start couchdb.serv
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                        vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
stem/couchdb.service; disabled; preset: disabled)
since Thu 2023-11-02 20:17:22 CET; 1min 38s ago

l +Bd -noinput -sasl errlog_type error +K true +A 4 -couch_ini /etc/couchdb/def>
1/FAILURE)


ystemd[1]: couchdb.service: Scheduled restart job, restart counter is at 5.
ystemd[1]: Stopped couchdb.service.
ystemd[1]: couchdb.service: Start request repeated too quickly.
ystemd[1]: couchdb.service: Failed with result 'exit-code'.
ystemd[1]: Failed to start couchdb.service.
                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
CouchDB has been the same for a long time except many "rebuild for icuxx".
So the problem could be there, or Erlang?

Summary: couchdb crash on startup => couchdb does not start (Erlang crash)
Assignee: bugsquad => pkg-bugs

Comment 3 David GEIGER 2023-11-03 06:37:21 CET
Please test couchdb-3.2.2-2.1.mga9 in Core/Updates_testing repo! Maybe a rebuild against current erlang 24.3.4.7 should fix this crash.

Packages in 9/Core/Updates_testing:
======================
couchdb-3.2.2-2.1.mga9

From SRPMS:
couchdb-3.2.2-2.1.mga9.src.rpm

CC: (none) => geiger.david68210

David GEIGER 2023-11-03 06:37:32 CET

Assignee: pkg-bugs => qa-bugs

Comment 4 Daniel Tartavel 2023-11-03 18:05:54 CET
tested couchdb after update, exactly the same error, no amelioration.
Comment 5 Marja Van Waes 2023-11-04 10:22:48 CET
(In reply to Daniel Tartavel from comment #4)
> tested couchdb after update, exactly the same error, no amelioration.

Thanks for the test.

Setting the feedback keyword (so that we can see in https://madb.mageia.org/tools/updates that further testing is not yet needed and that the advisory doesn't yet need to be uploaded)

Keywords: (none) => feedback
CC: (none) => marja11

Comment 6 Brian Rockwell 2024-01-13 23:32:41 CET
I banged on this a little bit.  Never used or built couchdb.   Unable to get his working, seems like it needs a lot of configuration to make it work.

CC: (none) => brtians1

PC LX 2024-01-14 20:05:01 CET

CC: (none) => mageia

Comment 7 Len Lawrence 2024-01-20 23:34:45 CET
The current erlang seems to be later than 7:
$ rpm -q erlang
erlang-24.3.4.15-1.mga9

CC: (none) => tarazed25

Comment 8 Stig-Ørjan Smelror 2024-02-06 09:49:53 CET
*** Bug 32808 has been marked as a duplicate of this bug. ***

CC: (none) => smelror

Comment 9 Len Lawrence 2024-02-06 20:06:52 CET
Created attachment 14340 [details]
specimen advisory

This may cover the current state of the bug.
Comment 10 Marja Van Waes 2024-02-07 23:56:18 CET
(In reply to Len Lawrence from comment #9)
> Created attachment 14340 [details]
> specimen advisory
> 
> This may cover the current state of the bug.

I didn't dig into it, I assume you described the issue well.
However, please consider replacing the subject with e.g.:

  Updated couchdb package fixes a crash

and starting the description with:

  This update fixes the following issue:

So that the advisory doesn't sound like it's a bugcreate advisory ;-)
Comment 11 Len Lawrence 2024-02-08 09:39:31 CET
Created attachment 14345 [details]
Update to suggested advisory

Attachment 14340 is obsolete: 0 => 1

Comment 12 Stig-Ørjan Smelror 2024-02-10 11:08:00 CET
I've tried the updated version from updates_testing and still am not able to start couchdb. I've also compiled version 3.3.3 for mga9 and it's still crashing.
katnatek 2024-02-11 01:55:32 CET

Assignee: qa-bugs => geiger.david68210

Comment 13 katnatek 2024-02-11 01:57:16 CET
David this not works return to you because you send the current testing version

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