You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Mike Kimber <mk...@kana.com> on 2012/04/10 17:44:20 UTC
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
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
Dave,
Apologies, new set of log files attached
Mike
-----Original Message-----
From: Dave Cottlehuber [mailto:dave@muse.net.nz]
Sent: 21 April 2012 13:51
To: user@couchdb.apache.org
Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
On 20 April 2012 12:12, Mike Kimber <mk...@kana.com> wrote:
> Output from 1.2.0.
>
> ./configure --enable-js-trunk
>
> Is attached.
>
> Spider Monkey appears to be the same on all my servers:
>
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ rpm -qa | grep js-dev
> js-devel-1.70-8.el5
>
> Thanks
>
> Mike
>
> -----Original Message-----
> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
> Sent: 19 April 2012 19:42
> To: user@couchdb.apache.org
> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>
> On 19 April 2012 19:07, Robert Newson <rn...@apache.org> wrote:
>> "Nice"? I have to disagree. Overwriting an existing install with a new
>> install code is very likely to go wrong. We've added modules, removed
>> modules, so your overwrite will give you an unknown (and obviously
>> unsupported) blend of old and new. Don't do this.
>>
>> I recommend you fix this first by stopping couchdb, uninstalling all
>> but your databases and configuration files, and then installing 1.2.0
>> again. Even better would be to use a package which would automate this
>> but I don't think there's an RPM for 1.2.0 yet.
>>
>> B.
>
> +1 to all of that.
>
>>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>>
>>> If I run ./configure without --with-js-trunk I get:
>>>
>>>
>>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>>> configure: error: Your SpiderMonkey library is too new.
>>>>
>>>> NOTE: Check above for an error about NSPR
>>>>
>>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>>> enforcement of preventing anonymous functions in a statement context. This
>>>> will most likely break your existing JavaScript code as well as render all
>>>> example code invalid.
>>>>
>>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>
> One would think this is pretty clear :-)
>
>>> I got this on 1.1.1 also.
>
> Can you post (full) output of ./configure script, and config.log?
>
> I'm wondering how your hodge-podge of builds and binaries actually runs at all.
>
> A+
> Dave
Hey Mike, thanks for that but I'm keen to see the failed configure
(i.e. without --js-trunk) so we can see why configure isn't picking up
1.7.0, and why it requires being forced to a newer version.
Something's fishy!
> Can you post the output from below, & resulting config.log somewhere?
>
> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
A+
Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 20 April 2012 12:12, Mike Kimber <mk...@kana.com> wrote:
> Output from 1.2.0.
>
> ./configure --enable-js-trunk
>
> Is attached.
>
> Spider Monkey appears to be the same on all my servers:
>
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ rpm -qa | grep js-dev
> js-devel-1.70-8.el5
>
> Thanks
>
> Mike
>
> -----Original Message-----
> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
> Sent: 19 April 2012 19:42
> To: user@couchdb.apache.org
> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>
> On 19 April 2012 19:07, Robert Newson <rn...@apache.org> wrote:
>> "Nice"? I have to disagree. Overwriting an existing install with a new
>> install code is very likely to go wrong. We've added modules, removed
>> modules, so your overwrite will give you an unknown (and obviously
>> unsupported) blend of old and new. Don't do this.
>>
>> I recommend you fix this first by stopping couchdb, uninstalling all
>> but your databases and configuration files, and then installing 1.2.0
>> again. Even better would be to use a package which would automate this
>> but I don't think there's an RPM for 1.2.0 yet.
>>
>> B.
>
> +1 to all of that.
>
>>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>>
>>> If I run ./configure without --with-js-trunk I get:
>>>
>>>
>>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>>> configure: error: Your SpiderMonkey library is too new.
>>>>
>>>> NOTE: Check above for an error about NSPR
>>>>
>>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>>> enforcement of preventing anonymous functions in a statement context. This
>>>> will most likely break your existing JavaScript code as well as render all
>>>> example code invalid.
>>>>
>>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>
> One would think this is pretty clear :-)
>
>>> I got this on 1.1.1 also.
>
> Can you post (full) output of ./configure script, and config.log?
>
> I'm wondering how your hodge-podge of builds and binaries actually runs at all.
>
> A+
> Dave
Hey Mike, thanks for that but I'm keen to see the failed configure
(i.e. without --js-trunk) so we can see why configure isn't picking up
1.7.0, and why it requires being forced to a newer version.
Something's fishy!
> Can you post the output from below, & resulting config.log somewhere?
>
> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
A+
Dave
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
Output from 1.2.0.
./configure --enable-js-trunk
Is attached.
Spider Monkey appears to be the same on all my servers:
[kana@KCEngCI200 apache-couchdb-1.2.0]$ rpm -qa | grep js-dev
js-devel-1.70-8.el5
Thanks
Mike
-----Original Message-----
From: Dave Cottlehuber [mailto:dave@muse.net.nz]
Sent: 19 April 2012 19:42
To: user@couchdb.apache.org
Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
On 19 April 2012 19:07, Robert Newson <rn...@apache.org> wrote:
> "Nice"? I have to disagree. Overwriting an existing install with a new
> install code is very likely to go wrong. We've added modules, removed
> modules, so your overwrite will give you an unknown (and obviously
> unsupported) blend of old and new. Don't do this.
>
> I recommend you fix this first by stopping couchdb, uninstalling all
> but your databases and configuration files, and then installing 1.2.0
> again. Even better would be to use a package which would automate this
> but I don't think there's an RPM for 1.2.0 yet.
>
> B.
+1 to all of that.
>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>
>> If I run ./configure without --with-js-trunk I get:
>>
>>
>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>> configure: error: Your SpiderMonkey library is too new.
>>>
>>> NOTE: Check above for an error about NSPR
>>>
>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>> enforcement of preventing anonymous functions in a statement context. This
>>> will most likely break your existing JavaScript code as well as render all
>>> example code invalid.
>>>
>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
One would think this is pretty clear :-)
>> I got this on 1.1.1 also.
Can you post (full) output of ./configure script, and config.log?
I'm wondering how your hodge-podge of builds and binaries actually runs at all.
A+
Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Dave Cottlehuber <da...@muse.net.nz>.
On 19 April 2012 19:07, Robert Newson <rn...@apache.org> wrote:
> "Nice"? I have to disagree. Overwriting an existing install with a new
> install code is very likely to go wrong. We've added modules, removed
> modules, so your overwrite will give you an unknown (and obviously
> unsupported) blend of old and new. Don't do this.
>
> I recommend you fix this first by stopping couchdb, uninstalling all
> but your databases and configuration files, and then installing 1.2.0
> again. Even better would be to use a package which would automate this
> but I don't think there's an RPM for 1.2.0 yet.
>
> B.
+1 to all of that.
>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>
>> If I run ./configure without --with-js-trunk I get:
>>
>>
>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>> configure: error: Your SpiderMonkey library is too new.
>>>
>>> NOTE: Check above for an error about NSPR
>>>
>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>> enforcement of preventing anonymous functions in a statement context. This
>>> will most likely break your existing JavaScript code as well as render all
>>> example code invalid.
>>>
>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
One would think this is pretty clear :-)
>> I got this on 1.1.1 also.
Can you post (full) output of ./configure script, and config.log?
I'm wondering how your hodge-podge of builds and binaries actually runs at all.
A+
Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Robert Newson <rn...@apache.org>.
"Nice"? I have to disagree. Overwriting an existing install with a new
install code is very likely to go wrong. We've added modules, removed
modules, so your overwrite will give you an unknown (and obviously
unsupported) blend of old and new. Don't do this.
I recommend you fix this first by stopping couchdb, uninstalling all
but your databases and configuration files, and then installing 1.2.0
again. Even better would be to use a package which would automate this
but I don't think there's an RPM for 1.2.0 yet.
B.
On 19 April 2012 17:50, Mike Kimber <mk...@kana.com> wrote:
> The ones that work on these hosted VM's have all been installed over an existing couchdb 1.1.1. "Nice" way of upgrading by the way!
> Couchdb is running as couchdb user on the servers that work and the one that is currently broken (have left it that way whilst this thread is open)
> I only have sudo access on these servers and I always start couchdb with /sbin/service couchdb start
>
> Thanks
>
> Mike
>
>
> -----Original Message-----
> From: Robert Newson [mailto:rnewson@apache.org]
> Sent: 19 April 2012 17:16
> To: user@couchdb.apache.org
> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>
> Did you install 1.2.0 over an existing install?
> Is couchdb running as 'couchdb'?
> Did it ever run as 'root' after you fixed ownership and permissions?
>
> B.
>
> On 19 April 2012 16:40, Mike Kimber <mk...@kana.com> wrote:
>> Yep i've read and applied that and I still get the error when I run the test suite.
>>
>> Thanks
>>
>> Mike
>>
>> -----Original Message-----
>> From: Robert Newson [mailto:rnewson@apache.org]
>> Sent: 19 April 2012 16:28
>> 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 Mike,
>>
>> The INSTALL.Unix file lists all the settings you need, and couchdb
>> does need write access to its configuration files. Adjust paths to
>> match your installation root.
>>
>> chown -R couchdb:couchdb /usr/local/etc/couchdb
>> chown -R couchdb:couchdb /usr/local/var/lib/couchdb
>> chown -R couchdb:couchdb /usr/local/var/log/couchdb
>> chown -R couchdb:couchdb /usr/local/var/run/couchdb
>>
>> chmod 0770 /usr/local/etc/couchdb
>> chmod 0770 /usr/local/var/lib/couchdb
>> chmod 0770 /usr/local/var/log/couchdb
>> chmod 0770 /usr/local/var/run/couchdb
>>
>> B.
>>
>> On 19 April 2012 16:18, Mike Kimber <mk...@kana.com> wrote:
>>> Dave,
>>>
>>> Thanks for following up.
>>>
>>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>>
>>> If I run ./configure without --with-js-trunk I get:
>>>
>>>
>>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>>> configure: error: Your SpiderMonkey library is too new.
>>>>
>>>> NOTE: Check above for an error about NSPR
>>>>
>>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>>> enforcement of preventing anonymous functions in a statement context. This
>>>> will most likely break your existing JavaScript code as well as render all
>>>> example code invalid.
>>>>
>>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>>>
>>> I got this on 1.1.1 also.
>>>
>>> With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
>>>
>>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
>>> Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
>>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
>>> CentOS release 5.8 (Final)
>>> [kana@KCEngCI200 apache-couchdb-1.2.0]$
>>>
>>> I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
>>>
>>> Mike
>>>
>>>
>>> -----Original Message-----
>>> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
>>> Sent: 18 April 2012 19:06
>>> To: user@couchdb.apache.org
>>> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>>>
>>>> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
>>>
>>> My checklist is:
>>> couch user has r/w to the equivalent of:
>>> /var/lib/couchdb
>>> /var/log/couchdb
>>> /var/run/couchdb
>>> /etc/couchdb
>>>
>>> & obviously read to the binaries as well. The Mac install notes
>>>
>>>>> 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
>>>
>>> Hi Mike,
>>>
>>> I'd rather we find a way to help you through this, the above approach is sure
>>> to crap out on you in future in some subtle but critical fashion.
>>>
>>> My guess is that your configure is really building against a different
>>> spidermonkey
>>> than what you are actually expecting.
>>>
>>> Can you post the output from below, & resulting config.log somewhere?
>>>
>>> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
>>>
>>> NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
>>> bypasses the checks that the js you are building against is actually compatible
>>> with couchdb.
>>>
>>> If you point me to a suitable ISO I'll whip up a centos and take a look also.
>>>
>>> A+
>>> Dave
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
The ones that work on these hosted VM's have all been installed over an existing couchdb 1.1.1. "Nice" way of upgrading by the way!
Couchdb is running as couchdb user on the servers that work and the one that is currently broken (have left it that way whilst this thread is open)
I only have sudo access on these servers and I always start couchdb with /sbin/service couchdb start
Thanks
Mike
-----Original Message-----
From: Robert Newson [mailto:rnewson@apache.org]
Sent: 19 April 2012 17:16
To: user@couchdb.apache.org
Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
Did you install 1.2.0 over an existing install?
Is couchdb running as 'couchdb'?
Did it ever run as 'root' after you fixed ownership and permissions?
B.
On 19 April 2012 16:40, Mike Kimber <mk...@kana.com> wrote:
> Yep i've read and applied that and I still get the error when I run the test suite.
>
> Thanks
>
> Mike
>
> -----Original Message-----
> From: Robert Newson [mailto:rnewson@apache.org]
> Sent: 19 April 2012 16:28
> 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 Mike,
>
> The INSTALL.Unix file lists all the settings you need, and couchdb
> does need write access to its configuration files. Adjust paths to
> match your installation root.
>
> chown -R couchdb:couchdb /usr/local/etc/couchdb
> chown -R couchdb:couchdb /usr/local/var/lib/couchdb
> chown -R couchdb:couchdb /usr/local/var/log/couchdb
> chown -R couchdb:couchdb /usr/local/var/run/couchdb
>
> chmod 0770 /usr/local/etc/couchdb
> chmod 0770 /usr/local/var/lib/couchdb
> chmod 0770 /usr/local/var/log/couchdb
> chmod 0770 /usr/local/var/run/couchdb
>
> B.
>
> On 19 April 2012 16:18, Mike Kimber <mk...@kana.com> wrote:
>> Dave,
>>
>> Thanks for following up.
>>
>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>
>> If I run ./configure without --with-js-trunk I get:
>>
>>
>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>> configure: error: Your SpiderMonkey library is too new.
>>>
>>> NOTE: Check above for an error about NSPR
>>>
>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>> enforcement of preventing anonymous functions in a statement context. This
>>> will most likely break your existing JavaScript code as well as render all
>>> example code invalid.
>>>
>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>>
>> I got this on 1.1.1 also.
>>
>> With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
>>
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
>> Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
>> CentOS release 5.8 (Final)
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$
>>
>> I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
>>
>> Mike
>>
>>
>> -----Original Message-----
>> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
>> Sent: 18 April 2012 19:06
>> To: user@couchdb.apache.org
>> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>>
>>> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
>>
>> My checklist is:
>> couch user has r/w to the equivalent of:
>> /var/lib/couchdb
>> /var/log/couchdb
>> /var/run/couchdb
>> /etc/couchdb
>>
>> & obviously read to the binaries as well. The Mac install notes
>>
>>>> 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
>>
>> Hi Mike,
>>
>> I'd rather we find a way to help you through this, the above approach is sure
>> to crap out on you in future in some subtle but critical fashion.
>>
>> My guess is that your configure is really building against a different
>> spidermonkey
>> than what you are actually expecting.
>>
>> Can you post the output from below, & resulting config.log somewhere?
>>
>> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
>>
>> NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
>> bypasses the checks that the js you are building against is actually compatible
>> with couchdb.
>>
>> If you point me to a suitable ISO I'll whip up a centos and take a look also.
>>
>> A+
>> Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Robert Newson <rn...@apache.org>.
Did you install 1.2.0 over an existing install?
Is couchdb running as 'couchdb'?
Did it ever run as 'root' after you fixed ownership and permissions?
B.
On 19 April 2012 16:40, Mike Kimber <mk...@kana.com> wrote:
> Yep i've read and applied that and I still get the error when I run the test suite.
>
> Thanks
>
> Mike
>
> -----Original Message-----
> From: Robert Newson [mailto:rnewson@apache.org]
> Sent: 19 April 2012 16:28
> 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 Mike,
>
> The INSTALL.Unix file lists all the settings you need, and couchdb
> does need write access to its configuration files. Adjust paths to
> match your installation root.
>
> chown -R couchdb:couchdb /usr/local/etc/couchdb
> chown -R couchdb:couchdb /usr/local/var/lib/couchdb
> chown -R couchdb:couchdb /usr/local/var/log/couchdb
> chown -R couchdb:couchdb /usr/local/var/run/couchdb
>
> chmod 0770 /usr/local/etc/couchdb
> chmod 0770 /usr/local/var/lib/couchdb
> chmod 0770 /usr/local/var/log/couchdb
> chmod 0770 /usr/local/var/run/couchdb
>
> B.
>
> On 19 April 2012 16:18, Mike Kimber <mk...@kana.com> wrote:
>> Dave,
>>
>> Thanks for following up.
>>
>> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>>
>> If I run ./configure without --with-js-trunk I get:
>>
>>
>>> checking whether JSOPTION_ANONFUNFIX is declared... no
>>> configure: error: Your SpiderMonkey library is too new.
>>>
>>> NOTE: Check above for an error about NSPR
>>>
>>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>>> enforcement of preventing anonymous functions in a statement context. This
>>> will most likely break your existing JavaScript code as well as render all
>>> example code invalid.
>>>
>>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>>
>> I got this on 1.1.1 also.
>>
>> With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
>>
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
>> Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
>> CentOS release 5.8 (Final)
>> [kana@KCEngCI200 apache-couchdb-1.2.0]$
>>
>> I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
>>
>> Mike
>>
>>
>> -----Original Message-----
>> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
>> Sent: 18 April 2012 19:06
>> To: user@couchdb.apache.org
>> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>>
>>> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
>>
>> My checklist is:
>> couch user has r/w to the equivalent of:
>> /var/lib/couchdb
>> /var/log/couchdb
>> /var/run/couchdb
>> /etc/couchdb
>>
>> & obviously read to the binaries as well. The Mac install notes
>>
>>>> 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
>>
>> Hi Mike,
>>
>> I'd rather we find a way to help you through this, the above approach is sure
>> to crap out on you in future in some subtle but critical fashion.
>>
>> My guess is that your configure is really building against a different
>> spidermonkey
>> than what you are actually expecting.
>>
>> Can you post the output from below, & resulting config.log somewhere?
>>
>> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
>>
>> NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
>> bypasses the checks that the js you are building against is actually compatible
>> with couchdb.
>>
>> If you point me to a suitable ISO I'll whip up a centos and take a look also.
>>
>> A+
>> Dave
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
Yep i've read and applied that and I still get the error when I run the test suite.
Thanks
Mike
-----Original Message-----
From: Robert Newson [mailto:rnewson@apache.org]
Sent: 19 April 2012 16:28
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 Mike,
The INSTALL.Unix file lists all the settings you need, and couchdb
does need write access to its configuration files. Adjust paths to
match your installation root.
chown -R couchdb:couchdb /usr/local/etc/couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run/couchdb
chmod 0770 /usr/local/etc/couchdb
chmod 0770 /usr/local/var/lib/couchdb
chmod 0770 /usr/local/var/log/couchdb
chmod 0770 /usr/local/var/run/couchdb
B.
On 19 April 2012 16:18, Mike Kimber <mk...@kana.com> wrote:
> Dave,
>
> Thanks for following up.
>
> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>
> If I run ./configure without --with-js-trunk I get:
>
>
>> checking whether JSOPTION_ANONFUNFIX is declared... no
>> configure: error: Your SpiderMonkey library is too new.
>>
>> NOTE: Check above for an error about NSPR
>>
>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>> enforcement of preventing anonymous functions in a statement context. This
>> will most likely break your existing JavaScript code as well as render all
>> example code invalid.
>>
>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>
> I got this on 1.1.1 also.
>
> With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
>
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
> Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
> CentOS release 5.8 (Final)
> [kana@KCEngCI200 apache-couchdb-1.2.0]$
>
> I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
>
> Mike
>
>
> -----Original Message-----
> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
> Sent: 18 April 2012 19:06
> To: user@couchdb.apache.org
> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>
>> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
>
> My checklist is:
> couch user has r/w to the equivalent of:
> /var/lib/couchdb
> /var/log/couchdb
> /var/run/couchdb
> /etc/couchdb
>
> & obviously read to the binaries as well. The Mac install notes
>
>>> 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
>
> Hi Mike,
>
> I'd rather we find a way to help you through this, the above approach is sure
> to crap out on you in future in some subtle but critical fashion.
>
> My guess is that your configure is really building against a different
> spidermonkey
> than what you are actually expecting.
>
> Can you post the output from below, & resulting config.log somewhere?
>
> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
>
> NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
> bypasses the checks that the js you are building against is actually compatible
> with couchdb.
>
> If you point me to a suitable ISO I'll whip up a centos and take a look also.
>
> A+
> Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Robert Newson <rn...@apache.org>.
Hi Mike,
The INSTALL.Unix file lists all the settings you need, and couchdb
does need write access to its configuration files. Adjust paths to
match your installation root.
chown -R couchdb:couchdb /usr/local/etc/couchdb
chown -R couchdb:couchdb /usr/local/var/lib/couchdb
chown -R couchdb:couchdb /usr/local/var/log/couchdb
chown -R couchdb:couchdb /usr/local/var/run/couchdb
chmod 0770 /usr/local/etc/couchdb
chmod 0770 /usr/local/var/lib/couchdb
chmod 0770 /usr/local/var/log/couchdb
chmod 0770 /usr/local/var/run/couchdb
B.
On 19 April 2012 16:18, Mike Kimber <mk...@kana.com> wrote:
> Dave,
>
> Thanks for following up.
>
> I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
>
> If I run ./configure without --with-js-trunk I get:
>
>
>> checking whether JSOPTION_ANONFUNFIX is declared... no
>> configure: error: Your SpiderMonkey library is too new.
>>
>> NOTE: Check above for an error about NSPR
>>
>> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
>> enforcement of preventing anonymous functions in a statement context. This
>> will most likely break your existing JavaScript code as well as render all
>> example code invalid.
>>
>> If you wish to ignore this error pass --enable-js-trunk to ./configure.
>
> I got this on 1.1.1 also.
>
> With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
>
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
> Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
> [kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
> CentOS release 5.8 (Final)
> [kana@KCEngCI200 apache-couchdb-1.2.0]$
>
> I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
>
> Mike
>
>
> -----Original Message-----
> From: Dave Cottlehuber [mailto:dave@muse.net.nz]
> Sent: 18 April 2012 19:06
> To: user@couchdb.apache.org
> Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
>
>> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
>
> My checklist is:
> couch user has r/w to the equivalent of:
> /var/lib/couchdb
> /var/log/couchdb
> /var/run/couchdb
> /etc/couchdb
>
> & obviously read to the binaries as well. The Mac install notes
>
>>> 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
>
> Hi Mike,
>
> I'd rather we find a way to help you through this, the above approach is sure
> to crap out on you in future in some subtle but critical fashion.
>
> My guess is that your configure is really building against a different
> spidermonkey
> than what you are actually expecting.
>
> Can you post the output from below, & resulting config.log somewhere?
>
> ./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
>
> NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
> bypasses the checks that the js you are building against is actually compatible
> with couchdb.
>
> If you point me to a suitable ISO I'll whip up a centos and take a look also.
>
> A+
> Dave
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
Dave,
Thanks for following up.
I checked the permissions you listed and they match my couchdb 1.1.1 install, however on both systems files under /etc/couchdb are owned by root, but are read accessible by everyone and from the looks of them don't need to be writable by the couchdb user, unless that changed in 1.2.0?
If I run ./configure without --with-js-trunk I get:
> checking whether JSOPTION_ANONFUNFIX is declared... no
> configure: error: Your SpiderMonkey library is too new.
>
> NOTE: Check above for an error about NSPR
>
> Versions of SpiderMonkey after the js185-1.0.0 release remove the optional
> enforcement of preventing anonymous functions in a statement context. This
> will most likely break your existing JavaScript code as well as render all
> example code invalid.
>
> If you wish to ignore this error pass --enable-js-trunk to ./configure.
I got this on 1.1.1 also.
With regard to Centos ISO, that's one of the issues, I have no issue with Couchdb 1.2 on the Centos 5.8 images I built myself from ISO, but the ones I have an issue with are on a hosted Virtualisation environment and provided to me so all I can provide is:
[kana@KCEngCI200 apache-couchdb-1.2.0]$ uname -a
Linux KCEngCI200 2.6.18.8-xenU #1 SMP Wed Feb 3 11:28:48 PST 2010 x86_64 x86_64 x86_64 GNU/Linux
[kana@KCEngCI200 apache-couchdb-1.2.0]$ cat /etc/redhat-release
CentOS release 5.8 (Final)
[kana@KCEngCI200 apache-couchdb-1.2.0]$
I get them as Centos 5.3 images and then have to apply the Centos 5.8 updates myself (don't ask!).
Mike
-----Original Message-----
From: Dave Cottlehuber [mailto:dave@muse.net.nz]
Sent: 18 April 2012 19:06
To: user@couchdb.apache.org
Subject: Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation error and Test Suite fails
> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
My checklist is:
couch user has r/w to the equivalent of:
/var/lib/couchdb
/var/log/couchdb
/var/run/couchdb
/etc/couchdb
& obviously read to the binaries as well. The Mac install notes
>> 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
Hi Mike,
I'd rather we find a way to help you through this, the above approach is sure
to crap out on you in future in some subtle but critical fashion.
My guess is that your configure is really building against a different
spidermonkey
than what you are actually expecting.
Can you post the output from below, & resulting config.log somewhere?
./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
bypasses the checks that the js you are building against is actually compatible
with couchdb.
If you point me to a suitable ISO I'll whip up a centos and take a look also.
A+
Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Dave Cottlehuber <da...@muse.net.nz>.
> On Tue, Apr 17, 2012 at 10:28 AM, Mike Kimber <mk...@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!
My checklist is:
couch user has r/w to the equivalent of:
/var/lib/couchdb
/var/log/couchdb
/var/run/couchdb
/etc/couchdb
& obviously read to the binaries as well. The Mac install notes
>> 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
Hi Mike,
I'd rather we find a way to help you through this, the above approach is sure
to crap out on you in future in some subtle but critical fashion.
My guess is that your configure is really building against a different
spidermonkey
than what you are actually expecting.
Can you post the output from below, & resulting config.log somewhere?
./configure --with-erlang=/usr/local/lib/erlang/erts-5.7.5/include
NB the --with-js-trunk shouldn't be used unless you know what you are doing, it
bypasses the checks that the js you are building against is actually compatible
with couchdb.
If you point me to a suitable ISO I'll whip up a centos and take a look also.
A+
Dave
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by CGS <cg...@gmail.com>.
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 <mk...@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 <mk...@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 <mk...@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 <mk...@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
> > > >
> > >
> >
>
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
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 <mk...@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 <mk...@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 <mk...@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
> > >
> >
>
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
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 <mk...@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 <mk...@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 <mk...@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
> > >
> >
>
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by CGS <cg...@gmail.com>.
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 <mk...@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 <mk...@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 <mk...@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
> > >
> >
>
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
>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 <mk...@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 <mk...@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
> >
>
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by CGS <cg...@gmail.com>.
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 <mk...@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 <mk...@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
> >
>
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
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 <mk...@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
>
Re: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by CGS <cg...@gmail.com>.
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 <mk...@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
>
RE: Couchdb 1.2 installed on Centos 5.8 starts with File operation
error and Test Suite fails
Posted by Mike Kimber <mk...@kana.com>.
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