Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2370E988E for ; Thu, 12 Apr 2012 17:09:07 +0000 (UTC) Received: (qmail 96285 invoked by uid 500); 12 Apr 2012 17:09:05 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 96230 invoked by uid 500); 12 Apr 2012 17:09:05 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 96222 invoked by uid 99); 12 Apr 2012 17:09:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 17:09:05 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of mkimber@kana.com designates 64.95.72.241 as permitted sender) Received: from [64.95.72.241] (HELO mxout.myoutlookonline.com) (64.95.72.241) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 12 Apr 2012 17:09:00 +0000 Received: from mxout.myoutlookonline.com (localhost [127.0.0.1]) by mxout.myoutlookonline.com (Postfix) with ESMTP id 82E7C8BEF78 for ; Thu, 12 Apr 2012 13:08:38 -0400 (EDT) X-Virus-Scanned: by SpamTitan at mail.lan Received: from HUB015.mail.lan (unknown [10.110.2.1]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mxout.myoutlookonline.com (Postfix) with ESMTPS id 3ECBF8BEBDB for ; Thu, 12 Apr 2012 13:08:28 -0400 (EDT) Received: from BE259.mail.lan ([10.110.32.159]) by HUB015.mail.lan ([10.110.17.15]) with mapi; Thu, 12 Apr 2012 13:08:27 -0400 From: Mike Kimber To: "user@couchdb.apache.org" Date: Thu, 12 Apr 2012 13:08:26 -0400 Subject: RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails Thread-Topic: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails Thread-Index: Ac0X8R1PeHp9+hvhQK+9Ic11YzBwKwA28FeQ Message-ID: References: In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Virus-Checked: Checked by ClamAV on apache.org So I've installed Couchdb 1.2 using the root account on two Centos 5.8 VM's= (VirtualBox and Vmware) and have them running no issue. I then de-installed the server I have had the errors on below and reinstall= ed it using the same procedure as I used on the two servers above, but usin= g sudo (it's a controlled env on a third party Virtualisation platform call= ed applogic). Once it was installed I started it using "sudo /usr/local/bin/couchdb" i.e.= it should run as root and everything should be owned by root. I then start= ed Futon which worked fine and clicked on verify installation, which then s= tarted generating the following output: [error] [<0.251.0>] OS Process Error <0.1726.0> :: {os_process_error, {exit_status,139}} Assertion failure: rt->onOwnerThread(), at /builddir/build/BUILD/xulrunner-= 10.0.3/mozilla-esr10/js/src/jsapi.cpp:6316 In couch.log the jsapi.cpp:6316 is not present. I have spider monkey (js-devel-1.70-8.el5) installed and xulrunnwer (ulrunn= er-10.0.3-1.el5_8, xulrunner-devel-10.0.3-1.el5_8) So now I'm completely flummoxed! Help! Mike=20 -----Original Message----- From: CGS [mailto:cgsmcmlxxv@gmail.com]=20 Sent: 11 April 2012 15:40 To: user@couchdb.apache.org Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation= error and Test Suite fails Your points 5 and 6 say it all: you installed CouchDB with root privileges, but you try to run it with the couchdb user privileges. Perhaps you should try chown to give all the privileges to user couchdb or make CouchDB to run as a system process (for example, check this out to know where you need to put it: http://www.yolinux.com/TUTORIALS/LinuxTutorialInitProcess.html - and don't forget to restart your system). You cannot ask under Linux for an user to access the admin files or you will face a security nightmare. CGS On Wed, Apr 11, 2012 at 3:25 PM, Mike Kimber wrote: > From what I can tell it does look like it might be a permission issue, > however doing a chown does not resolve it. Observations are: > > I have to install this server using sudo using a specific account (kana), > company policy: > > 1. If I run ./configure as kana it runs successfully > 2. If I run ./configure as sudo it cant find Curl or elc > 3. If I run ./configure as kana and then sudo make install it installs > 4. I then create couchdb user and grant persimmons etc > 5. If I then run coudhdb using sudo /sbin/service couchdb start then I > don't get any "File operation error: eacces. Target: > ./couch_db_updater.beam..... errors > 6. However if I stop coudhdb and run it using su -u couchdb coudhdb then = I > get "File operation error: eacces. Target: ./couch_db_updater.beam. error= s > 7. Which either way I start couchdb I get exit_status,139 errors when I > run the test suite. > > What I suspect might be the issue is PATH differences between running as > Kana and running as couchdb or sudo. > > I suspect this is because I have de-installed curl and erlang that came > with the centos image and then re-installed them from source, however it > looks like they may have put them in a different spot: > > /usr/bin/erlc moved to /usr/local/bin/erlc > /usr/bin/curl moved to /usr/local/bin/erlc > /usr/include/curl to /usr/local/include/curl > etc > > So I created symbolic links to /usr/bin, re-ran configure using sudo and > it ran through with out error as did the install. > > However When I ran the test suite I still get the exit_status,139 errors > as listed in my previous e-mail > > What makes it even more confusing is > http://wiki.apache.org/couchdb/Installing_SpiderMonkey > > Which infers that coudhdb 1.1 upwards needs spider monkey 1.8.5, however = I > have install Couchdb 1.1.1 no problem with 1.7 > > Is there a minimum set of pre-requisites that are required for Couchdb 1.= 2 > (i.e spidermonkey, curl, Erlang) > > Beginning to get a bit desperate! > > Thanks > > Mike > > > -----Original Message----- > From: CGS [mailto:cgsmcmlxxv@gmail.com] > Sent: 11 April 2012 11:54 > To: user@couchdb.apache.org > Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File > operation error and Test Suite fails > > I admit I skipped your first message. Sorry about that. Here is what I > think the problem may be. > > There are 3 possibilities: > 1. you compiled CouchDB with one user and running it from another user > (permissions problem); > 2. you had problems at the compilation and that module wasn't compiled > (file not existing); > 3. when you downgraded your Erlang version, you didn't clean CouchDB > compilation before (Erlang compatibility - less probable, but not > impossible). > > In the first case, just use "chown -R : > " command to ensure the same permissions. I= n > the second case, check if you have the file couch_secondary_sup.beam in > your CouchDB ebin directory (or check your installation log if it compile= d > it; if not compiled, try to see why - Erlang not properly installed or a > CouchDB compilation error before that step). Finally, for the third case, > you can start a new clean installation after erasing the old installation > (make clean may be tricky sometimes). > > If still errors, could you come with a log for your installation? > > CGS > > > > > On Wed, Apr 11, 2012 at 12:23 PM, Mike Kimber wrote: > > > Thanks for getting back to me, but this does not add up. > > > > The Errors below start immediately I try and refresh the view, it does > > not explain why the I get the other errors referenced in my original > e-mail > > on start up and I get the same errors as I placed in my 2nd e-mail when= I > > run the couchdb test suite. > > > > If I can't run the test suite then to me my install is hosed :-) > > > > Mike > > > > -----Original Message----- > > From: CGS [mailto:cgsmcmlxxv@gmail.com] > > Sent: 11 April 2012 10:44 > > To: user@couchdb.apache.org > > Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File > > operation error and Test Suite fails > > > > Hi, > > > > Not necessary a bug. It looks like your view function takes too long fo= r > > its reduce part and, hence, not responding in the specified timeout. In > > that moment, the Erlang part of CouchDB interprets that as non-responsi= ve > > process and it applies "let it crash" strategy (meaning, the monitor > > restarts the child). One solution would be to try to optimize your redu= ce > > function, split the tasks in more views or limit the search range to a > > lower number of documents. But, of course, this is just a suggestion as= I > > have no knowledge about your project. > > > > I hope this will help. > > > > CGS > > > > > > > > > > > > On Wed, Apr 11, 2012 at 11:26 AM, Mike Kimber wrote: > > > > > Looking at this further my installation of Couchdb 1.2 is definitely > > > hosed, When I try and build a view I get: > > > > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.224.0>] OS Process Error > > > <0.665.0> :: {os_process_error, > > > {exit_status,139}} > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.224.0>] OS Process Error > > > <0.668.0> :: {os_process_error, > > > {exit_status,139}} > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.671.0>] OS Process died > with > > > status: 139 > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.671.0>] ** Generic server > > > <0.671.0> terminating > > > ** Last message in was {#Port<0.2901>,{exit_status,139}} > > > ** When Server state =3D=3D {os_proc,"/usr/local/bin/couchjs > > > /usr/local/share/couchdb/server/main.js", > > > #Port<0.2901>, > > > #Fun, > > > #Fun,500= 0} > > > ** Reason for termination =3D=3D > > > ** {exit_status,139} > > > > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.671.0>] > > {error_report,<0.32.0>, > > > {<0.671.0>,crash_report, > > > > > > [[{initial_call,{couch_os_process,init,['Argument__1']}}, > > > {pid,<0.671.0>}, > > > {registered_name,[]}, > > > {error_info, > > > {exit, > > > {exit_status,139}, > > > [{gen_server,terminate,6}, > > > {proc_lib,init_p_do_apply,3}]}}, > > > {ancestors, > > > [couch_query_servers,couch_secondary_services= , > > > couch_server_sup,<0.33.0>]}, > > > {messages, > > > [{'$gen_call', > > > {<0.224.0>,#Ref<0.0.0.2757>}, > > > {prompt, > > > [<<"reset">>, > > > {[{<<"reduce_limit">>,true}, > > > {<<"timeout">>,5000}]}]}}]}, > > > {links,[<0.119.0>]}, > > > {dictionary,[]}, > > > {trap_exit,false}, > > > {status,running}, > > > {heap_size,987}, > > > {stack_size,24}, > > > {reductions,796}], > > > []]}} > > > [Wed, 11 Apr 2012 08:56:22 GMT] [error] [<0.224.0>] OS Process Error > > > <0.674.0> :: {os_process_error, > > > {exit_status,139}} > > > > > > Googling around this seems to be related to couchdb javascript server > and > > > spider monkey, although I seem to have the correct version of spider > > monkey > > > js-devel-1.70-8.el5. > > > > > > Pre-req wise I used: > > > > > > SpiderMonkey: js-devel-1.70-8.el5 > > > Erlang: R13B04 > > > CouchDb: apache-couchdb-1.2.0 (./configure > > > --with-erlang=3D/usr/local/lib/erlang/erts-5.7.5/include > --enable-js-trunk) > > > > > > Does anyone have any idea if I done something wrong or is this a bug? > > > > > > Thanks > > > > > > Mike > > > > > > > > > -----Original Message----- > > > From: Mike Kimber [mailto:mkimber@kana.com] > > > Sent: 10 April 2012 16:44 > > > To: user@couchdb.apache.org > > > Subject: Couchdb 1.2 installed on Centos 5.8 starts with File operati= on > > > error and Test Suite fails > > > > > > I have installed Couchdb 1.2 on Centos 5.8. However when I start it, = it > > > generates a bunch of errors like: > > > > > > [Tue, 10 Apr 2012 15:25:49 GMT] [error] [<0.21.0>] > {error_report,<0.9.0>, > > > {<0.21.0>,std_error, > > > "File operation error: eacces. Targe= t: > > > ./couch_secondary_sup.beam. Function: get_file. Process: > code_server."}} > > > > > > Additionally when I try to run the test suite ort verify Installation > > > these seem to fail with a similar set of errors. > > > > > > However Futon works and I have been able to set up replication betwee= n > > > this server and its pulled documents across > > > > > > I'm assuming this is some form of permissions issue, but I've checked > the > > > file system permissions against our Couchdb 1.1.1 install and they se= em > > to > > > be the same. > > > > > > Any help greatly appreciated! > > > > > > Thanks > > > > > > Mike > > > > > >