You are not logged in.

#1 2018-12-26 18:25:07

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 36

couchdb {os_process_error,{exit_status,139}}

Hi there,
I installed couchdb (2.3.0) via pacman and played along with it.
My problem is, that I cannot do certain actions, e.g. to create new _design/-Dokuments or Views.

I get this error while trying to create a new view:

{os_process_error,{exit_status,139}}

I get this error on 3 different arch-machines (laptop, desktop, server)

I found an old thread at apache org, blaiming SELinux for this error: http://docs.couchdb.org/en/2.3.0/instal … oting.html

but I don't know what to do on arch.

Can anyone confirm this?

Greetings
Joe

Offline

#2 2018-12-30 10:20:59

rEnr3n
Member
Registered: 2012-07-25
Posts: 30

Re: couchdb {os_process_error,{exit_status,139}}

I'm not sure if this is related but I'm getting a different error. How do you run couchdb? Do you use the systemd service?

I use that and this is the error I get:

Dec 30 17:59:35 server systemd[1]: Started CouchDB Server.
Dec 30 17:59:36 server couchdb[3034]: /usr/lib/couchdb/bin/couchdb: line 35: /usr/lib/couchdb/bin/../erts-/bin/erlexec: No such file or directory
Dec 30 17:59:36 server systemd[1]: couchdb.service: Main process exited, code=exited, status=127/n/a
Dec 30 17:59:36 server systemd[1]: couchdb.service: Failed with result 'exit-code'.
Dec 30 17:59:38 server systemd[1]: couchdb.service: Service RestartSec=2s expired, scheduling restart.
Dec 30 17:59:38 server systemd[1]: couchdb.service: Scheduled restart job, restart counter is at 54.

However when I run it like this, it works:

$ sudo -u couchdb "ERL_FLAGS=-couch_ini /usr/lib/couchdb/etc/default.ini /usr/lib/couchdb/etc/datadirs.ini /etc/couchdb/local.ini" /usr/lib/couchdb/bin/couchdb

My issue lies somewhere in the systemd service provided. Is it the same with yours?

Online

#3 2018-12-30 10:31:21

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 36

Re: couchdb {os_process_error,{exit_status,139}}

i use

systemctl start couchdb

and I can reach couchdb via browser hat

/_utils

I can create new dbs and I can put "normal" documents into them

If I try to create a view or if I try to put anything into

/_replicator/

   I get error 139 and I need to restart couchdb via 

systemctl restart couchdb

Offline

#4 2018-12-31 17:35:23

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 36

Re: couchdb {os_process_error,{exit_status,139}}

dies ist mein logfile:

Dez 31 16:18:06 Elrond couchdb[4172]: [info] 2018-12-31T15:18:06.479165Z couchdb@127.0.0.1 <0.223.0> -------- Apache CouchDB 2.3.0 is starting.
Dez 31 16:18:06 Elrond couchdb[4172]: [info] 2018-12-31T15:18:06.479807Z couchdb@127.0.0.1 <0.224.0> -------- Starting couch_sup
Dez 31 16:18:06 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:06.483586Z couchdb@127.0.0.1 <0.106.0> -------- config: [features] pluggable-storage-engines set to true for reason nil
Dez 31 16:18:06 Elrond couchdb[4172]: [info] 2018-12-31T15:18:06.520449Z couchdb@127.0.0.1 <0.223.0> -------- Apache CouchDB has started. Time to relax.
Dez 31 16:18:06 Elrond couchdb[4172]: [info] 2018-12-31T15:18:06.520558Z couchdb@127.0.0.1 <0.223.0> -------- Apache CouchDB has started on http://127.0.0.1:5986/
Dez 31 16:18:06 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:06.532090Z couchdb@127.0.0.1 <0.286.0> -------- rexi_server : started servers
Dez 31 16:18:06 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:06.533801Z couchdb@127.0.0.1 <0.291.0> -------- rexi_buffer : started servers
Dez 31 16:18:06 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:06.573703Z couchdb@127.0.0.1 <0.106.0> -------- config: [features] scheduler set to true for reason nil
Dez 31 16:18:11 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:11.562159Z couchdb@127.0.0.1 <0.369.0> -------- couch_replicator_clustering : cluster stable
Dez 31 16:18:11 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:11.568297Z couchdb@127.0.0.1 <0.421.0> -------- Started replicator db changes listener <0.521.0>
Dez 31 16:18:21 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:21.533217Z couchdb@127.0.0.1 <0.286.0> -------- rexi_server : cluster stable
Dez 31 16:18:21 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:21.533575Z couchdb@127.0.0.1 <0.291.0> -------- rexi_buffer : cluster stable
Dez 31 16:18:25 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:25.191992Z couchdb@127.0.0.1 <0.889.0> 69320659c9 127.0.0.1:5984 127.0.0.1 produnis GET /verifytestdb 200 ok 18
Dez 31 16:18:25 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:25.192104Z couchdb@127.0.0.1 <0.891.0> 072221a8ac 127.0.0.1:5984 127.0.0.1 produnis GET /verifytestdb_replicate 404 ok 7
Dez 31 16:18:25 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:25.231098Z couchdb@127.0.0.1 <0.889.0> c63494a27d 127.0.0.1:5984 127.0.0.1 produnis DELETE /verifytestdb 200 ok 28
Dez 31 16:18:25 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:25.541853Z couchdb@127.0.0.1 <0.889.0> 9cbcdc8d15 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb 201 ok 131
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.005692Z couchdb@127.0.0.1 <0.891.0> af7ce69780 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb/test_doc_1 201 ok 34
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.355983Z couchdb@127.0.0.1 <0.891.0> bb791918f4 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb/test_doc_1 201 ok 14
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.402736Z couchdb@127.0.0.1 <0.891.0> ba33f2a14e 127.0.0.1:5984 127.0.0.1 produnis DELETE /verifytestdb/test_doc_1?rev=2-d588d3e93ee155c5afffdf0247a2c5ef 200 ok 15
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.449777Z couchdb@127.0.0.1 <0.891.0> 87a28053ac 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb/test_doc_10 201 ok 28
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.459226Z couchdb@127.0.0.1 <0.890.0> 4f8b4807b5 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb/test_doc_20 201 ok 37
Dez 31 16:18:26 Elrond couchdb[4172]: [notice] 2018-12-31T15:18:26.477647Z couchdb@127.0.0.1 <0.892.0> d70366474f 127.0.0.1:5984 127.0.0.1 produnis PUT /verifytestdb/test_doc_30 201 ok 51
Dez 31 16:18:26 Elrond couchdb[4172]: [info] 2018-12-31T15:18:26.836534Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1072.0> died normal
Dez 31 16:18:26 Elrond couchdb[4172]: [error] 2018-12-31T15:18:26.836603Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1072.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:27 Elrond couchdb[4172]: [info] 2018-12-31T15:18:27.098445Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1105.0> died normal
Dez 31 16:18:27 Elrond couchdb[4172]: [error] 2018-12-31T15:18:27.098559Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1105.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:27 Elrond couchdb[4172]: [info] 2018-12-31T15:18:27.321895Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1108.0> died normal
Dez 31 16:18:27 Elrond couchdb[4172]: [error] 2018-12-31T15:18:27.322010Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1108.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:27 Elrond couchdb[4172]: [info] 2018-12-31T15:18:27.557800Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1113.0> died normal
Dez 31 16:18:27 Elrond couchdb[4172]: [error] 2018-12-31T15:18:27.557958Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1113.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:27 Elrond couchdb[4172]: [info] 2018-12-31T15:18:27.780737Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1116.0> died normal
Dez 31 16:18:27 Elrond couchdb[4172]: [error] 2018-12-31T15:18:27.780836Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1116.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:28 Elrond couchdb[4172]: [info] 2018-12-31T15:18:28.032640Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1119.0> died normal
Dez 31 16:18:28 Elrond couchdb[4172]: [error] 2018-12-31T15:18:28.032745Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1119.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:28 Elrond couchdb[4172]: [info] 2018-12-31T15:18:28.283102Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1122.0> died normal
Dez 31 16:18:28 Elrond couchdb[4172]: [error] 2018-12-31T15:18:28.283144Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1122.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:28 Elrond couchdb[4172]: [info] 2018-12-31T15:18:28.503788Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1125.0> died normal
Dez 31 16:18:28 Elrond couchdb[4172]: [error] 2018-12-31T15:18:28.503898Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1125.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:28 Elrond couchdb[4172]: [info] 2018-12-31T15:18:28.720950Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1131.0> died normal
Dez 31 16:18:28 Elrond couchdb[4172]: [error] 2018-12-31T15:18:28.721074Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1131.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:28 Elrond couchdb[4172]: [info] 2018-12-31T15:18:28.968368Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1161.0> died normal
Dez 31 16:18:28 Elrond couchdb[4172]: [error] 2018-12-31T15:18:28.968477Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1161.0> :: {os_process_error,{exit_status,139}}
Dez 31 16:18:29 Elrond couchdb[4172]: [info] 2018-12-31T15:18:29.153334Z couchdb@127.0.0.1 <0.238.0> -------- couch_proc_manager <0.1164.0> died normal
Dez 31 16:18:29 Elrond couchdb[4172]: [error] 2018-12-31T15:18:29.153449Z couchdb@127.0.0.1 <0.1070.0> -------- OS Process Error <0.1164.0> :: {os_process

und im kernel.log findet sich

Dec 31 17:24:50 archlinux kernel: couchjs[12088]: segfault at 10 ip 00007f3dc292c244 sp 00007ffc68a4d778 error 4 in libpthread-2.28.so[7f3dc2928000+f000]

Offline

#5 2019-01-05 15:40:02

produnis
Member
From: Germany
Registered: 2014-09-29
Posts: 36

Re: couchdb {os_process_error,{exit_status,139}}

a workaround is described here: https://github.com/apache/couchdb/issue … -451531877

editing

/usr/lib/systemd/system/couchdb.service

removing the line

MemoryDenyWriteExecute=true

then

systemctl daemon-reload

systemctl restart couchdb

  and couchdb runs smooth without segfaulting...

Offline

Board footer

Powered by FluxBB