Repository: apache/couchdb

Issue #1293: RHEL / CentOS 7 `js-1.8.5-20` package breaks couchjs
Created: 2018-04-26T21:53:11Z
I have received 2 reports by email that this is failing. One follows below.

Hello,
I've noticed your message in couchdb-usr mailing list, unfortunately didn't figure out how to get old messages in my mailbox so can reply.
We had to rollback for our server to js-1.8.5-19 and server works fine.
yum changelog all js returns following
====================AvailablePackages====================
1:js-1.8.5-20.el7.i686nfs_rhel_updates
*ThuApr614:00:002017YaakovSelkowitz<yselkowi@redhat.com>-1:1.8.5-20
-Fixfor48-bitVAonaarch64
-Resolves:#1423015

*TueAug2614:00:002014YaakovSelkowitz<yselkowi@redhat.com>-1:1.8.5-19
-Rebaseaarch64patch
-Resolves:#1134124

The error in couchdb is
[info]2018-04-26T12:19:44.675788Zcouchdb@127.0.0.1<0.213.0>--------couch_proc_manager<0.2783.0>diednormal
[error]2018-04-26T12:19:44.675886Zcouchdb@127.0.0.1<0.2781.0>--------OSProcessError<0.2783.0>::{parse_error,bad_token}

Couchdb seems to work fine if disabling javascript query server
I've did a lookup on CentOS GIT repos and found following
https://git.centos.org/commit/rpms!js.git/4eb227977009db1c3df47a2283a85b3150ea223f
Hope this helps

The workaround is to temporarily revert to the js-1.8.5-19 package.

Duplicate issue #1340: View creation failed on CentOS 7 - CouchDB 2.1.1
Created: 2018-05-24T18:28:37Z
CouchDB failed to create views on fresh and updated server with CentOS 7.
Expected Behavior
Verification of the setup should work .
Current Behavior
I've first seen the issue in a CentOS 7 server where the packages where updated.
I reproduced the error in a fresh server.
Steps to Reproduce (for bugs)

Install CentOS 7 and update it.
Setup repo as described in http://docs.couchdb.org/en/latest/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages
Install couchdb package and run the setup.
Launch the verification in the web interface and the problem appears at the "Create view" steps.

Output of logs :
[notice] 2018-05-24T18:05:41.461809Z couchdb@127.0.0.1 <0.1522.0> e3ce237828 10.50.50.130:5984 10.50.50.70 undefined GET /verifytestdb 404 ok 3
[notice] 2018-05-24T18:05:41.464446Z couchdb@127.0.0.1 <0.1521.0> 079947299c 10.50.50.130:5984 10.50.50.70 undefined GET /verifytestdb_replicate 404 ok 5
[notice] 2018-05-24T18:05:41.514311Z couchdb@127.0.0.1 <0.1521.0> f2f1464e89 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb 201 ok 41
[notice] 2018-05-24T18:05:41.537452Z couchdb@127.0.0.1 <0.1522.0> 14d27f1fbf 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb/test_doc_1 201 ok 14
[notice] 2018-05-24T18:05:41.554945Z couchdb@127.0.0.1 <0.1522.0> 3063dde463 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb/test_doc_1 201 ok 9
[notice] 2018-05-24T18:05:41.571887Z couchdb@127.0.0.1 <0.1522.0> 7a159de3e1 10.50.50.130:5984 10.50.50.70 admin DELETE /verifytestdb/test_doc_1?rev=2-d588d3e93ee155c5afffdf0247a2c5ef 200 ok 9
[notice] 2018-05-24T18:05:41.602334Z couchdb@127.0.0.1 <0.1522.0> bf8be929af 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb/test_doc_10 201 ok 21
[notice] 2018-05-24T18:05:41.604973Z couchdb@127.0.0.1 <0.1524.0> 1e62a52beb 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb/test_doc_20 201 ok 21
[notice] 2018-05-24T18:05:41.612475Z couchdb@127.0.0.1 <0.2903.0> f116ca8328 10.50.50.130:5984 10.50.50.70 admin PUT /verifytestdb/test_doc_30 201 ok 29
[info] 2018-05-24T18:05:41.639492Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3043.0> died normal
[error] 2018-05-24T18:05:41.639645Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3043.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.660287Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3046.0> died normal
[error] 2018-05-24T18:05:41.660387Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3046.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.675095Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3049.0> died normal
[error] 2018-05-24T18:05:41.675173Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3049.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.694356Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3052.0> died normal
[error] 2018-05-24T18:05:41.694441Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3052.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.708698Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3055.0> died normal
[error] 2018-05-24T18:05:41.708790Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3055.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.731796Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3058.0> died normal
[error] 2018-05-24T18:05:41.731895Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3058.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.748254Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3077.0> died normal
[error] 2018-05-24T18:05:41.748351Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3077.0> :: {os_process_error,{exit_status,1}}
[info] 2018-05-24T18:05:41.762309Z couchdb@127.0.0.1 <0.212.0> -------- couch_proc_manager <0.3080.0> died normal
[error] 2018-05-24T18:05:41.762387Z couchdb@127.0.0.1 <0.3041.0> -------- OS Process Error <0.3080.0> :: {os_process_error,{exit_status,1}}
...

Environment

Version used: 2.1.1 (installed from repo)
Operating System: CentOS 7 server
Kernel: 3.10.0-862.3.2.el7.x86_64

If you need more informations let me know and if you have a solution I would be happy to test it.
Thanks!

Closing comment (2018-05-24T19:11:39Z): Duplicate of #1293.