Don't think so:

[r...@rhel4-dell apache-couchdb-0.9.0]# ldd /usr/local/bin/couchjs
        not a dynamic executable

Is there any way to get more visibility into the problem? Debug logging?

On Mar 31, 2009, at 7:46 AM, Jan Lehnardt wrote:

Hi,

On 31 Mar 2009, at 06:39, Peter Hsu wrote:

Ran your suggestion..

[r...@rhel4-dell 0.9.0]# su - couchdb
[couc...@rhel4-dell ~]$ curl http://127.0.0.1:5984/_config/query_servers
{"javascript":"/usr/local/bin/couchjs /usr/local/share/couchdb/
server/main.js"}
[couc...@rhel4-dell ~]$ /usr/local/bin/couchjs /usr/local/share/
couchdb/server/main.js
["reset"]
true

The test suite still returns the same errors.

Maybe your LD_LIBRARY PATH is hosed for the CouchDB user and the
couchjs process
can't find the libs (libjs.so, libcurl.so) it links?

Cheers
Jan
--




On Mar 30, 2009, at 8:49 PM, Chris Anderson wrote:

On Mon, Mar 30, 2009 at 7:33 PM, Vinubalaji Gopal <[email protected]
wrote:
Hi all,
I have been trying to run couch 0.9 on RHEL 4 and I am getting
errors when trying to run the test suite. I installed spider monkey
1.7.0 and also a newer version of curl since couchdb configure
script
complained that I needed curl >= 7.15.5.  I tried almost
everything I
could think of - but I can't get rid of these errors!


I don't have the ability to reproduce this setup currently, but the
error message you see looks like the couchjs process isn't launching

Try running this command:

curl http://127.0.0.1:5984/_config/query_servers

And then run the command quoted in the output. When it's working
properly, you should be able to type:

["reset"]

and get the response:

true

Here is the output when I run the basic test in the test suite:
Exception raised:
{"error":"{bad_return_value,{os_process_error,{exit_status,
127}}}","reason":"{gen_server,call,[couch_query_servers,
{get_proc,<<\"javascript\">>}]}"}

Reduce fails with the following exception:
Exception raised:
{"error":"badmatch","reason":"{{bad_return_value,{os_process_error,
{exit_status,127}}},\n
{gen_server,call,[couch_query_servers,{get_proc,<<\"javascript
\">>}]}}"}

and a lot of tests are failing.

Here are the last few lines from the couch.log file.


[Tue, 31 Mar 2009 02:26:44 GMT] [error] [<0.1706.0>] ** Generic
server
<0.1706.0> terminating
** Last message in was {'EXIT',<0.1704.0>,killed}
** When Server state == {file_descriptor,prim_file,{#Port<0.1112>,
19}}
** Reason for termination ==
** killed


[Tue, 31 Mar 2009 02:26:44 GMT] [error] [<0.36.0>]
{error_report,<0.22.0>,
 {<0.36.0>,supervisor_report,
  [{supervisor,{local,couch_server_sup}},
   {errorContext,child_terminated},
   {reason,shutdown},
   {offender,
       [{pid,<0.44.0>},
        {name,couch_secondary_services},
        {mfa,{couch_server_sup,start_secondary_services,[]}},
        {restart_type,permanent},
        {shutdown,infinity},
        {child_type,supervisor}]}]}}


[Tue, 31 Mar 2009 02:26:44 GMT] [error] [<0.1706.0>]
{error_report,<0.22.0>,
           {<0.1706.0>,crash_report,
            [[{pid,<0.1706.0>},
              {registered_name,[]},
              {error_info,{exit,killed,
                                [{gen_server,terminate,6},
                                 {proc_lib,init_p_do_apply,3}]}},
              {initial_call,{couch_file,init,['Argument__1']}},
              {ancestors,
[<0.1704.0>,couch_view,couch_secondary_services,
                          couch_server_sup,<0.1.0>]},
              {messages,[]},
              {links,[#Port<0.1112>]},
              {dictionary,[]},
              {trap_exit,true},
              {status,running},
              {heap_size,987},
              {stack_size,23},
              {reductions,1472}],
             []]}}

Please point me to the right direction and let me know if you need
any
other information.


Thank you.

--
Vinu

In a world without fences who needs Gates?




--
Chris Anderson
http://jchrisa.net
http://couch.io

Reply via email to