Hi !

Installing a couchDB windows binary snapshot build 0.11.0b897093 on Windows Server 2003 R2 works well for basic operation PUT/GET.... But when tryning to use for testing purpose 'temporary view' from futon (or with curl) with basic map :
function(doc) {
  emit(null, doc);
}


I got an error as below :
-------------------------------------------------
 couch.log is :

[Thu, 04 Mar 2010 15:50:30 GMT] [info] [<0.33.0>] Apache CouchDB has started on http://0.0.0.0:5984/

[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.123.0>] {error_report,<0.32.0>,
    {<0.123.0>,crash_report,
     [[{initial_call,{couch_os_process,init,['Argument__1']}},
       {pid,<0.123.0>},
       {registered_name,[]},
       {error_info,
           {exit,
               {enoent,
                   [{erlang,open_port,
                        [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                         [stream,{line,1024},binary,exit_status,hide]]},
                    {couch_os_process,init,1},
                    {gen_server,init_it,6},
                    {proc_lib,init_p_do_apply,3}]},
               [{gen_server,init_it,6},{proc_lib,init_p_do_apply,3}]}},
       {ancestors,
           [couch_query_servers,couch_secondary_services,couch_server_sup,
<0.33.0>]},
       {messages,[]},
       {links,[<0.92.0>]},
       {dictionary,[]},
       {trap_exit,false},
       {status,running},
       {heap_size,610},
       {stack_size,24},
       {reductions,241}],
      []]}}

[Thu, 04 Mar 2010 15:50:32 GMT] [error] [emulator] Error in process <0.121.0> with exit value: {{nocatch,{'EXIT',{{badmatch,{error,{enoent,[{erlang,open_port,[{spawn,"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/serv...



[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.92.0>] ** Generic server couch_query_servers terminating
** Last message in was {'EXIT',<0.123.0>,
                        {enoent,
                         [{erlang,open_port,
                           [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                            [stream,{line,1024},binary,exit_status,hide]]},
                          {couch_os_process,init,1},
                          {gen_server,init_it,6},
                          {proc_lib,init_p_do_apply,3}]}}
** When Server state == {32804,36901,40998,45095}
** Reason for termination ==
** {enoent,[{erlang,open_port,
[{spawn,"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                     [stream,{line,1024},binary,exit_status,hide]]},
            {couch_os_process,init,1},
            {gen_server,init_it,6},
            {proc_lib,init_p_do_apply,3}]}


[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.92.0>] {error_report,<0.32.0>,
    {<0.92.0>,crash_report,
     [[{initial_call,{couch_query_servers,init,['Argument__1']}},
       {pid,<0.92.0>},
       {registered_name,couch_query_servers},
       {error_info,
           {exit,
               {enoent,
                   [{erlang,open_port,
                        [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                         [stream,{line,1024},binary,exit_status,hide]]},
                    {couch_os_process,init,1},
                    {gen_server,init_it,6},
                    {proc_lib,init_p_do_apply,3}]},
               [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
       {ancestors,[couch_secondary_services,couch_server_sup,<0.33.0>]},
       {messages,[]},
       {links,[<0.86.0>]},
       {dictionary,[]},
       {trap_exit,true},
       {status,running},
       {heap_size,987},
       {stack_size,24},
       {reductions,2394}],
      []]}}

[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.86.0>] {error_report,<0.32.0>,
    {<0.86.0>,supervisor_report,
     [{supervisor,{local,couch_secondary_services}},
      {errorContext,child_terminated},
      {reason,
          {enoent,
              [{erlang,open_port,
                   [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                    [stream,{line,1024},binary,exit_status,hide]]},
               {couch_os_process,init,1},
               {gen_server,init_it,6},
               {proc_lib,init_p_do_apply,3}]}},
      {offender,
          [{pid,<0.92.0>},
           {name,query_servers},
           {mfa,{couch_query_servers,start_link,[]}},
           {restart_type,permanent},
           {shutdown,brutal_kill},
           {child_type,worker}]}]}}

[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.114.0>] ** Generic server <0.114.0> terminating
** Last message in was {'EXIT',<0.117.0>,
                        {{nocatch,
                          {'EXIT',
                           {{badmatch,
                             {error,
                              {enoent,
                               [{erlang,open_port,
                                 [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                                  [stream,
                                   {line,1024},
                                   binary,exit_status,hide]]},
                                {couch_os_process,init,1},
                                {gen_server,init_it,6},
                                {proc_lib,init_p_do_apply,3}]}}},
                            [{couch_query_servers,new_process,2},
                             {couch_query_servers,handle_call,3},
                             {gen_server,handle_msg,5},
                             {proc_lib,init_p_do_apply,3}]}}},
                         [{couch_query_servers,get_os_process,1},
                          {couch_query_servers,start_doc_map,2},
                          {couch_view_updater,view_compute,2},
                          {couch_view_updater,do_maps,4}]}}
** When Server state == {group_state,undefined,<<"aimcloud">>,
                         {"d:/www/couchDB/db",<<"aimcloud">>,
                          {group,
<<245,195,83,255,25,184,62,149,85,203,60,66,54,94,
                             118,249>>,
                           {db,<0.110.0>,<0.111.0>,nil,
<<"1267717832479000">>,<0.108.0>,<0.112.0>,
                            {db_header,5,3,0,
                             {37028,{3,0}},
                             {37318,3},
                             {33716,[]},
                             0,nil,nil,1000},
                            3,
                            {btree,<0.108.0>,
                             {37028,{3,0}},
                             #Fun<couch_db_updater.7.132302543>,
                             #Fun<couch_db_updater.8.107957134>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.9.46112288>},
                            {btree,<0.108.0>,
                             {37318,3},
                             #Fun<couch_db_updater.10.19027664>,
                             #Fun<couch_db_updater.11.35033879>,
                             #Fun<couch_btree.5.124754102>,
                             #Fun<couch_db_updater.12.56344865>},
                            {btree,<0.108.0>,
                             {33716,[]},
                             #Fun<couch_btree.0.83553141>,
                             #Fun<couch_btree.1.30790806>,
                             #Fun<couch_btree.2.124754102>,nil},
                            3,<<"aimcloud">>,
                            "d:/www/couchDB/db/aimcloud.couch",[],[],nil,
                            {user_ctx,null,[],undefined},
                            nil,1000,
                            [before_header,after_header,on_file_open]},
                           nil,<<"_temp">>,<<"javascript">>,[],
                           [{view,0,
                             [<<"_temp">>],
<<"function(doc) {\n  emit(null, doc);\n}">>,nil,
                             [],[]}],
                           nil,0,0,nil,nil}},
                         {group,
<<245,195,83,255,25,184,62,149,85,203,60,66,54,94,
                            118,249>>,
{db,<0.110.0>,<0.111.0>,nil,<<"1267717832479000">>,
<0.108.0>,<0.112.0>,
                           {db_header,5,3,0,
                            {37028,{3,0}},
                            {37318,3},
                            {33716,[]},
                            0,nil,nil,1000},
                           3,
                           {btree,<0.108.0>,
                            {37028,{3,0}},
                            #Fun<couch_db_updater.7.132302543>,
                            #Fun<couch_db_updater.8.107957134>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.9.46112288>},
                           {btree,<0.108.0>,
                            {37318,3},
                            #Fun<couch_db_updater.10.19027664>,
                            #Fun<couch_db_updater.11.35033879>,
                            #Fun<couch_btree.5.124754102>,
                            #Fun<couch_db_updater.12.56344865>},
                           {btree,<0.108.0>,
                            {33716,[]},
                            #Fun<couch_btree.0.83553141>,
                            #Fun<couch_btree.1.30790806>,
                            #Fun<couch_btree.2.124754102>,nil},
                           3,<<"aimcloud">>,
                           "d:/www/couchDB/db/aimcloud.couch",[],[],nil,
                           {user_ctx,null,[],undefined},
                           nil,1000,
                           [before_header,after_header,on_file_open]},
<0.115.0>,<<"_temp">>,<<"javascript">>,[],
                          [{view,0,
                            [<<"_temp">>],
<<"function(doc) {\n  emit(null, doc);\n}">>,
                            {btree,<0.115.0>,nil,
                             #Fun<couch_btree.3.83553141>,
                             #Fun<couch_btree.4.30790806>,
                             #Fun<couch_view.less_json_ids.2>,
                             #Fun<couch_view_group.10.120246376>},
                            [],[]}],
{btree,<0.115.0>,nil,#Fun<couch_btree.0.83553141>,
                           #Fun<couch_btree.1.30790806>,
                           #Fun<couch_btree.2.124754102>,nil},
                          0,0,nil,nil},
<0.117.0>,nil,false,
                         [{{<0.97.0>,#Ref<0.0.0.212>},3}],
<0.118.0>}
** Reason for termination ==
** {'EXIT',
       {{badmatch,
            {error,
                {enoent,
                    [{erlang,open_port,
                         [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
                          [stream,{line,1024},binary,exit_status,hide]]},
                     {couch_os_process,init,1},
                     {gen_server,init_it,6},
                     {proc_lib,init_p_do_apply,3}]}}},
        [{couch_query_servers,new_process,2},
         {couch_query_servers,handle_call,3},
         {gen_server,handle_msg,5},
         {proc_lib,init_p_do_apply,3}]}}


[Thu, 04 Mar 2010 15:50:32 GMT] [error] [<0.114.0>] {error_report,<0.32.0>,
 {<0.114.0>,crash_report,
  [[{initial_call,{couch_view_group,init,['Argument__1']}},
    {pid,<0.114.0>},
    {registered_name,[]},
    {error_info,
     {exit,
      {'EXIT',
       {{badmatch,
         {error,
          {enoent,
           [{erlang,open_port,
             [{spawn,
"c:/PROGRA~1/Apache Software Foundation/CouchDB/lib/couch-0.11.0b916031/priv/couchspawnkillable ./couchjs.exe ../share/couchdb/server/main.js"},
              [stream,{line,1024},binary,exit_status,hide]]},
            {couch_os_process,init,1},
            {gen_server,init_it,6},
            {proc_lib,init_p_do_apply,3}]}}},
        [{couch_query_servers,new_process,2},
         {couch_query_servers,handle_call,3},
         {gen_server,handle_msg,5},
         {proc_lib,init_p_do_apply,3}]}},
      [{gen_server,terminate,6},{proc_lib,init_p_do_apply,3}]}},
    {ancestors,
     [couch_view,couch_secondary_services,couch_server_sup,<0.33.0>]},
    {messages,[]},
    {links,[<0.115.0>,<0.87.0>]},
    {dictionary,[]},
    {trap_exit,true},
    {status,running},
    {heap_size,1597},
    {stack_size,24},
    {reductions,453}],
   [{neighbour,
     [{pid,<0.118.0>},
      {registered_name,[]},
      {initial_call,{couch_ref_counter,init,['Argument__1']}},
      {current_function,{gen_server,loop,6}},
      {ancestors,
       [<0.114.0>,couch_view,couch_secondary_services,couch_server_sup,
<0.33.0>]},
      {messages,[]},
      {links,[<0.115.0>]},
      {dictionary,[]},
      {trap_exit,false},
      {status,waiting},
      {heap_size,233},
      {stack_size,9},
      {reductions,47}]},
    {neighbour,
     [{pid,<0.115.0>},
      {registered_name,[]},
      {initial_call,{couch_file,init,['Argument__1']}},
      {current_function,{gen_server,loop,6}},
      {ancestors,
       [<0.114.0>,couch_view,couch_secondary_services,couch_server_sup,
<0.33.0>]},
      {messages,[]},
      {links,[<0.114.0>,<0.118.0>,#Port<0.3595>]},
      {dictionary,[]},
      {trap_exit,false},
      {status,waiting},
      {heap_size,377},
      {stack_size,9},
      {reductions,1334}]}]]}}

[Thu, 04 Mar 2010 15:50:32 GMT] [info] [<0.97.0>] 127.0.0.1 - - 'POST' /aimcloud/_temp_view?limit=11&descending=true 500
--------------------




Precision :
The same installation, with same binary on XP SP3 works as expected.

Is anybody experimented the same trouble ?
Do you have any suggestion ?


Regards,

Thierry


Reply via email to