couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From CGS <cgsmcml...@gmail.com>
Subject Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
Date Tue, 17 Apr 2012 08:44:32 GMT
Hi, Mike,

You are welcome. I am glad I could help.

Good luck!
CGS





On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mkimber@kana.com> wrote:

> Ok, I've taken a different approach and now I have a working set of
> Couchdb test.
>
> Basically I installed Couchdb 1.1.1 and confirmed that it was working
> correctly. Then I downloaded Couch 1.2 and installed that over the top of
> my Couchdb 1.2. I then ran the tests and they are now working.
>
> Two possibilities for the original issue seem to me:
>
> 1. It's a permissions issue as GCS suggest and the way I install 1.1.1
> sets these correctly, but for the like of me I cant spot what they are!
> 2. This approach does not change curl, Erl, etc and there some issue with
> the later versions of these on Centos 5.8
>
> This approach suits my end goal i.e. I'm trying to upgrade anyway, so I'll
> probably never get to the bottom of it.
>
> GCS thanks for the help.
>
> Mike
>
>
>
> -----Original Message-----
> From: Mike Kimber [mailto:mkimber@kana.com]
> Sent: 12 April 2012 18:08
> To: user@couchdb.apache.org
> Subject: RE: Couchdb 1.2 installed on Centos 5.8 starts with File
> operation error and Test Suite fails
>
> 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
> reinstalled it using the same procedure as I used on the two servers above,
> but using sudo (it's a controlled env on a third party Virtualisation
> platform called 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
> started Futon which worked fine and clicked on verify installation, which
> then started 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
> (ulrunner-10.0.3-1.el5_8, xulrunner-devel-10.0.3-1.el5_8)
>
> So now I'm completely flummoxed!
>
> Help!
>
> Mike
>
>
>
> -----Original Message-----
> From: CGS [mailto:cgsmcmlxxv@gmail.com]
> 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 <mkimber@kana.com> 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.
> errors
> > 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 <user>:<group>
> > <couch_installation_directory>" command to ensure the same permissions.
> In
> > 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
> compiled
> > 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 <mkimber@kana.com> 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
> for
> > > its reduce part and, hence, not responding in the specified timeout. In
> > > that moment, the Erlang part of CouchDB interprets that as
> non-responsive
> > > process and it applies "let it crash" strategy (meaning, the monitor
> > > restarts the child). One solution would be to try to optimize your
> reduce
> > > 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 <mkimber@kana.com>
> 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 == {os_proc,"/usr/local/bin/couchjs
> > > > /usr/local/share/couchdb/server/main.js",
> > > >                                 #Port<0.2901>,
> > > >                                 #Fun<couch_os_process.2.132569728>,
> > > >
> #Fun<couch_os_process.3.35601548>,5000}
> > > > ** Reason for termination ==
> > > > ** {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=/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
> operation
> > > > 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.
> Target:
> > > > ./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
> between
> > > > 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
> seem
> > > to
> > > > be the same.
> > > >
> > > > Any help greatly appreciated!
> > > >
> > > > Thanks
> > > >
> > > > Mike
> > > >
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message