That function seems weird... Could you paste the map and reduce functions
again?...why do do you have a reduce function that just returns null?
Instead of a value?.. Why have a reduce function at all?..

Also that if statement doesn't have {} maybe because it's a one liner?...
Meh...you should put it there to be safe. But I suspect the weird reduce
statement is what's blowing up....take it out and rebuild
On Nov 7, 2014 6:13 AM, "Ramanadham, Radhika" <[email protected]>
wrote:

> The problem is that when I run the view, no response is returned.
>
>
>
>
>
> When, I run via my code, I get this error because no response or status is
> returned:
>
>
>
> During handling of the above exception, another exception occurred:
>
>
>
> Traceback (most recent call last):
>
>   File "./raman.py", line 117, in <module>
>
>     main()
>
>   File "./raman.py", line 72, in main
>
>     viprstatsobj.insertData()
>
>   File "/opt/raman/db/src/products/vipr/stats.py", line 46, in insertData
>
>     metricsobj.process()
>
>   File "/opt/raman/db/src/common/data.py", line 39, in process
>
>     self.servers = self.apiobj.getServers()
>
>   File "/opt/raman/db/src/common/apis.py", line 25, in getServers
>
>     response = requests.get(servers_url)
>
>   File
> "/usr/lib/python3.3/site-packages/requests-2.4.3-py3.3.egg/requests/api.py",
> line 60, in get
>
>     return request('get', url, **kwargs)
>
>   File
> "/usr/lib/python3.3/site-packages/requests-2.4.3-py3.3.egg/requests/api.py",
> line 49, in request
>
>     return session.request(method=method, url=url, **kwargs)
>
>   File
> "/usr/lib/python3.3/site-packages/requests-2.4.3-py3.3.egg/requests/sessions.py",
> line 457, in request
>
>     resp = self.send(prep, **send_kwargs)
>
>   File
> "/usr/lib/python3.3/site-packages/requests-2.4.3-py3.3.egg/requests/sessions.py",
> line 569, in send
>
>     r = adapter.send(request, **kwargs)
>
>   File
> "/usr/lib/python3.3/site-packages/requests-2.4.3-py3.3.egg/requests/adapters.py",
> line 407, in send
>
>     raise ConnectionError(err, request=request)
>
> *requests.exceptions.ConnectionError: ('Connection aborted.',
> BadStatusLine("''",))*
>
>
>
> Here is the couch.log when I ran the view:
>
>
>
> [Fri, 07 Nov 2014 14:02:31 GMT] [error] [<0.21657.23>]
> {error_report,<0.31.0>,
>
>                         {<0.21657.23>,crash_report,
>
>                          [[{initial_call,
>
>                             {mochiweb_acceptor,init,
>
>                              ['Argument__1','Argument__2','Argument__3']}},
>
>                            {pid,<0.21657.23>},
>
>                            {registered_name,[]},
>
>                            {error_info,
>
>                             {error,badarg,
>
>                              [{erlang,list_to_binary,
>
>                                [[{couch_query_servers,builtin_stats,
>
>                                   [reduce,
>
>                                    [[[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.206_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.207_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.208_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.209_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.210_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null]]],
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,202}]},
>
>                                  {couch_query_servers,builtin_reduce,4,
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,174}]},
>
>                                  {couch_query_servers,reduce,3,
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,132}]},
>
>
> {couch_mrview_util,'-open_view/5-fun-0-',4,
>
>                                   [{file,"src/couch_mrview_util.erl"},
>
>                                    {line,220}]},
>
>                                  {couch_btree,'-write_node/3-lc$^0/1-0-',5,
>
>                                   [{file,"couch_btree.erl"},{line,362}]},
>
>                                  {couch_btree,write_node,3,
>
>                                   [{file,"couch_btree.erl"},{line,356}]},
>
>                                  {couch_btree,modify_node,4,
>
>                                   [{file,"couch_btree.erl"},{line,325}]},
>
>                                  {couch_btree,query_modify,4,
>
>                                   [{file,"couch_btree.erl"},{line,196}]}]],
>
>                                []},
>
>                               {couch_httpd,error_info,1,
>
>                                [{file,"couch_httpd.erl"},{line,818}]},
>
>                               {couch_httpd,send_error,2,
>
>                                [{file,"couch_httpd.erl"},{line,925}]},
>
>                               {couch_httpd,handle_request_int,5,
>
>                                [{file,"couch_httpd.erl"},{line,353}]},
>
>                               {mochiweb_http,headers,5,
>
>                                [{file,"mochiweb_http.erl"},{line,94}]},
>
>                               {proc_lib,init_p_do_apply,3,
>
>                                [{file,"proc_lib.erl"},{line,237}]}]}},
>
>                            {ancestors,
>
>                             [couch_httpd,couch_secondary_services,
>
>                              couch_server_sup,<0.32.0>]},
>
>                            {messages,[]},
>
>                            {links,[<0.102.0>,#Port<0.6143>]},
>
>                            {dictionary,
>
>                             [{mochiweb_request_qs,[{"group","true"}]},
>
>                              {couch_rewrite_count,0},
>
>                              {mochiweb_request_cookie,
>
>                               [{"list","10.247.55.242"},
>
>                                {"unsupported_list","10.247.55.242"},
>
>                                {"authid_lwt",
>
>
>      
> "31336637643834313831615E235E3033363535375E235E53616261536974655E235E656E5F55535E235E536162615E235E53414241302C02146E7FF24A7CD8F4698749E0917BBA57D8082C123E021425CACF86B5CD897BAD7E01162A1563C36D184217"},
>
>                                {"emc_primary_id_persist","Non-Employee"},
>
>                                {"RSAIdentityType","E"},
>
>                                {"userCountryRegName","United"},
>
>                                {"nodeName",[]},
>
>                                {"sabaLanguages",
>
>
> "lange000000000001100||Arabic#lange000000000000015||Chinese#lange000000000001080||Chinese"},
>
>                                {"empid","emplo000000000046566"},
>
>                                {"authid",
>
>
>         
> "31343165363063393537315E235E3033363535375E235E53616261536974655E235E656E5F55535E235E536162615E235E53414241302C02142D0F6B08293EB4E34FE00F4A57793367759A7CE8021457D115D893E9A503E200DE03DD67B4B2CFD939C9"},
>
>                                {"AudienceTypes","Internal"},
>
>                                {"learnerName","Radhika"},
>
>                                {"InternallearnerName","Radhika"},
>
>                                {"osrNoInSaba","null"},
>
>                                {"CampaignHeader","false"},
>
>                                {"AMCV_A6F4776A5245B0EA0A490D44%40AdobeOrg",
>
>
> "432708069%7CMCAID%7C28AD6A53051D168D-600001370001D4A3%7CMCMID%7C01426643212260714434601535602276249578%7CMCAAMLH-1397617565%7C7%7CMCAAMB-1397617565%7Chmk_Lq6TPIBMW925SPhw3Q"},
>
>                                {"UW_JSESSIONID",
>
>
> "34D634A96E521D2B423986891F171296.vm08tcs_8080"},
>
>                                {"__utma",
>
>
> "226804802.984241611.1364907175.1374084873.1397012767.5"},
>
>                                {"__utmc","226804802"},
>
>                                {"s_dmdbase",
>
>
> "rsp%3Dmatch%26cData%3D530054%253AEMC%253ASoftware%2520%2526%2520Technology%253AComputer%2520%2526%2520Mobile%2520Devices%253AEnterprise%2520%25282500%2B%2529%253AEnterprise%2520%2528%2524500M%2B%2529%253AEnterprise%2520Business%253ASoftware%2520%2526%2520Technology%26cDataCustom%3DUS%253Atrue%253Atrue%253Atrue%253Atrue%253A14876163000%253A42100%253A%255Bn%2Fa%255D%26sentAA%3DT%26sentAT%3DT"},
>
>                                {"ednIntegrationSSO",
>
>
> "080845D3EE7A47001A127B35EAA7BBDEF4C9F9196993B6077563DDF499DF6A997B68C6770A75C832407DDB097D6361200F29A52EADCFA0F573A6882DC16C616186F59D084B3CC2D64F607D06D14B1EFE8378994DAD0424F22D243C8ADC8510BFDA00106F52D63E08E2D37B8BD7FBE63B16410A75ED74D6A73DA3ED5A68925DC26049FA4E2B87AB5D295B6772006AC8258FF1B3E7F1941D491E39AD778E05F803C57C878AFBA2CCA22FB05B1181D5A5D34B15D7D6692B401F98F09100CAE3B1A3F8DCF053528060F18FF1B3E7F1941D4942D76E3AC4771FA30A626C066A28A8D44CCCBB40BBD1C2954BD3DF1C78003F17C12B274451617E1E6CFBC8EE4C9A846CFAD75B5BFD0D965768F54F8E94DE0D5761BCAFDE3BC0793211AC49436B5CA058"},
>
>                                {"c_dsl","1406138708903"},
>
>                                {"SSZSESSION","myproducts"},
>
>                                {"jive.security.context",
>
>                                 "PPnl4mWytSQRL5q6DiIhBAAAAAAAPzsLVsrq"},
>
>                                {"InsideProd_jive.user.loggedIn","true"},
>
>
> {"InsideProd_jive.login.ts","1409009635704"},
>
>                                {"InsideProd_jive.server.info",
>
>                                 "serverName=inside.emc.com:
> serverPort=443:contextPath=:localName=localhost:localPort=9001:localAddr=127.0.0.1"},
>
>                                {"BMURLCookie","Token"},
>
>                                {"c","undefinedDirect%20LoadDirect%20Load"},
>
>                                {"s_cc","true"},
>
>
> {"s_fid","580493B5DF2ACCA3-3D7D9CA0FC35B8E8"},
>
>                                {"s_sq","%5B%5BB%5D%5D"},
>
>                                {"s_vi",[]},
>
>                                {"PORTALACTSESSION",
>
>                                 "https%3A%2F%
> 2Finnovationcentral.corp.emc.com
> %2Fcontest%2Findia_coe_innovation_conference"},
>
>                                {"ACTSESSION",
>
>                                 "L2F1dGhzc28vcHJvdGVjdGVkLmpzcA%3D%3D"},
>
>                                {"CTSESSION",
>
>
> "AAAAAgABAEAwrwRzubWr7Yg2XWj8EzIDoPt%2BxfN%2FSg3x9V9CCA7Mj8PjDJv3BYvu5dN%2BGKR9nBei4mAO0uScOxnkKY9nwUPD"}]}]},
>
>                            {trap_exit,false},
>
>                            {status,running},
>
>                            {heap_size,28690},
>
>                            {stack_size,27},
>
>                            {reductions,42617}],
>
>                           []]}}
>
> [Fri, 07 Nov 2014 14:02:36 GMT] [info] [<0.21694.23>] Starting index
> update for db: longevity idx: _design/perfstats
>
> [Fri, 07 Nov 2014 14:02:36 GMT] [error] [emulator] Error in process
> <0.23621.23> with exit value:
> {function_clause,[{couch_query_servers,builtin_stats,[reduce,[[[<<14
> bytes>>,<<55 bytes>>],null],[[<<14 bytes>>,<<55 bytes>>],null],[[<<14
> bytes>>,<<55 bytes>>],null],[[<<14 bytes>>,<<55 bytes>>],null],[[<<14
> bytes>>,<<55
> bytes>>],null]]],[{file,"couch_query_servers.erl"},{line,202}]},{couch_query_servers,builtin_reduce,4,[{file,"couch_quer...
>
>
>
>
>
> [Fri, 07 Nov 2014 14:02:36 GMT] [error] [<0.22543.23>]
> {error_report,<0.31.0>,
>
>                         {<0.22543.23>,crash_report,
>
>                          [[{initial_call,
>
>                             {mochiweb_acceptor,init,
>
>                              ['Argument__1','Argument__2','Argument__3']}},
>
>                            {pid,<0.22543.23>},
>
>                            {registered_name,[]},
>
>                            {error_info,
>
>                             {error,badarg,
>
>                              [{erlang,list_to_binary,
>
>                                [[{couch_query_servers,builtin_stats,
>
>                                   [reduce,
>
>                                    [[[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.206_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.207_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.208_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
> <<"server_10.247.98.209_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null],
>
>                                     [[<<"ViPR_1.1_test2">>,
>
>
>           <<"server_10.247.98.210_ViPR_1.1_test2_2014-11-07 08:00:00">>],
>
>                                      null]]],
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,202}]},
>
>                                  {couch_query_servers,builtin_reduce,4,
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,174}]},
>
>                                  {couch_query_servers,reduce,3,
>
>                                   [{file,"couch_query_servers.erl"},
>
>                                    {line,132}]},
>
>
> {couch_mrview_util,'-open_view/5-fun-0-',4,
>
>                                   [{file,"src/couch_mrview_util.erl"},
>
>                                    {line,220}]},
>
>                                  {couch_btree,'-write_node/3-lc$^0/1-0-',5,
>
>                                   [{file,"couch_btree.erl"},{line,362}]},
>
>                                  {couch_btree,write_node,3,
>
>                                   [{file,"couch_btree.erl"},{line,356}]},
>
>                                  {couch_btree,modify_node,4,
>
>                                   [{file,"couch_btree.erl"},{line,325}]},
>
>                                  {couch_btree,query_modify,4,
>
>                                   [{file,"couch_btree.erl"},{line,196}]}]],
>
>                                []},
>
>                               {couch_httpd,error_info,1,
>
>                                [{file,"couch_httpd.erl"},{line,818}]},
>
>                               {couch_httpd,send_error,2,
>
>                                [{file,"couch_httpd.erl"},{line,925}]},
>
>                               {couch_httpd,handle_request_int,5,
>
>                                [{file,"couch_httpd.erl"},{line,353}]},
>
>                               {mochiweb_http,headers,5,
>
>                                [{file,"mochiweb_http.erl"},{line,94}]},
>
>                               {proc_lib,init_p_do_apply,3,
>
>                                [{file,"proc_lib.erl"},{line,237}]}]}},
>
>                            {ancestors,
>
>                             [couch_httpd,couch_secondary_services,
>
>                              couch_server_sup,<0.32.0>]},
>
>                            {messages,[]},
>
>                            {links,[<0.102.0>,#Port<0.6144>]},
>
>                            {dictionary,
>
>                             [{mochiweb_request_qs,[{"group","true"}]},
>
>                              {couch_rewrite_count,0},
>
>                              {mochiweb_request_cookie,
>
>                               [{"list","10.247.55.242"},
>
>                                {"unsupported_list","10.247.55.242"},
>
>                                {"authid_lwt",
>
>
> "31336637643834313831615E235E3033363535375E235E53616261536974655E235E656E5F55535E235E536162615E235E53414241302C02146E7FF24A7CD8F4698749E0917BBA57D8082C123E021425CACF86B5CD897BAD7E01162A1563C36D184217"},
>
>                                {"emc_primary_id_persist","Non-Employee"},
>
>                                {"RSAIdentityType","E"},
>
>                                {"userCountryRegName","United"},
>
>                                {"nodeName",[]},
>
>                                {"sabaLanguages",
>
>
> "lange000000000001100||Arabic#lange000000000000015||Chinese#lange000000000001080||Chinese"},
>
>                                {"empid","emplo000000000046566"},
>
>                                {"authid",
>
>
> "31343165363063393537315E235E3033363535375E235E53616261536974655E235E656E5F55535E235E536162615E235E53414241302C02142D0F6B08293EB4E34FE00F4A57793367759A7CE8021457D115D893E9A503E200DE03DD67B4B2CFD939C9"},
>
>                                {"AudienceTypes","Internal"},
>
>                                {"learnerName","Radhika"},
>
>                                {"InternallearnerName","Radhika"},
>
>                                {"osrNoInSaba","null"},
>
>                                {"CampaignHeader","false"},
>
>                                {"AMCV_A6F4776A5245B0EA0A490D44%40AdobeOrg",
>
>
> "432708069%7CMCAID%7C28AD6A53051D168D-600001370001D4A3%7CMCMID%7C01426643212260714434601535602276249578%7CMCAAMLH-1397617565%7C7%7CMCAAMB-1397617565%7Chmk_Lq6TPIBMW925SPhw3Q"},
>
>                                {"UW_JSESSIONID",
>
>
> "34D634A96E521D2B423986891F171296.vm08tcs_8080"},
>
>                                {"__utma",
>
>
> "226804802.984241611.1364907175.1374084873.1397012767.5"},
>
>                                {"__utmc","226804802"},
>
>                                {"s_dmdbase",
>
>
> "rsp%3Dmatch%26cData%3D530054%253AEMC%253ASoftware%2520%2526%2520Technology%253AComputer%2520%2526%2520Mobile%2520Devices%253AEnterprise%2520%25282500%2B%2529%253AEnterprise%2520%2528%2524500M%2B%2529%253AEnterprise%2520Business%253ASoftware%2520%2526%2520Technology%26cDataCustom%3DUS%253Atrue%253Atrue%253Atrue%253Atrue%253A14876163000%253A42100%253A%255Bn%2Fa%255D%26sentAA%3DT%26sentAT%3DT"},
>
>                                {"ednIntegrationSSO",
>
>
> "080845D3EE7A47001A127B35EAA7BBDEF4C9F9196993B6077563DDF499DF6A997B68C6770A75C832407DDB097D6361200F29A52EADCFA0F573A6882DC16C616186F59D084B3CC2D64F607D06D14B1EFE8378994DAD0424F22D243C8ADC8510BFDA00106F52D63E08E2D37B8BD7FBE63B16410A75ED74D6A73DA3ED5A68925DC26049FA4E2B87AB5D295B6772006AC8258FF1B3E7F1941D491E39AD778E05F803C57C878AFBA2CCA22FB05B1181D5A5D34B15D7D6692B401F98F09100CAE3B1A3F8DCF053528060F18FF1B3E7F1941D4942D76E3AC4771FA30A626C066A28A8D44CCCBB40BBD1C2954BD3DF1C78003F17C12B274451617E1E6CFBC8EE4C9A846CFAD75B5BFD0D965768F54F8E94DE0D5761BCAFDE3BC0793211AC49436B5CA058"},
>
>                                {"c_dsl","1406138708903"},
>
>                                {"SSZSESSION","myproducts"},
>
>                                {"jive.security.context",
>
>                                 "PPnl4mWytSQRL5q6DiIhBAAAAAAAPzsLVsrq"},
>
>                                {"InsideProd_jive.user.loggedIn","true"},
>
>
> {"InsideProd_jive.login.ts","1409009635704"},
>
>                                {"InsideProd_jive.server.info",
>
>                                 "serverName=inside.emc.com:
> serverPort=443:contextPath=:localName=localhost:localPort=9001:localAddr=127.0.0.1"},
>
>                                {"BMURLCookie","Token"},
>
>                                {"c","undefinedDirect%20LoadDirect%20Load"},
>
>                                {"s_cc","true"},
>
>
> {"s_fid","580493B5DF2ACCA3-3D7D9CA0FC35B8E8"},
>
>                                {"s_sq","%5B%5BB%5D%5D"},
>
>                                {"s_vi",[]},
>
>                                {"PORTALACTSESSION",
>
>                                 "https%3A%2F%
> 2Finnovationcentral.corp.emc.com
> %2Fcontest%2Findia_coe_innovation_conference"},
>
>                                {"ACTSESSION",
>
>                                 "L2F1dGhzc28vcHJvdGVjdGVkLmpzcA%3D%3D"},
>
>                                {"CTSESSION",
>
>
> "AAAAAgABAEAwrwRzubWr7Yg2XWj8EzIDoPt%2BxfN%2FSg3x9V9CCA7Mj8PjDJv3BYvu5dN%2BGKR9nBei4mAO0uScOxnkKY9nwUPD"}]}]},
>
>                            {trap_exit,false},
>
>                            {status,running},
>
>                            {heap_size,17731},
>
>                            {stack_size,27},
>
>                            {reductions,33366}],
>
>                           []]}}
>
>
>
> I really don’t know why a response is not returned.
>
>
>
> -Radhika
>
>
>
>
>
> -----Original Message-----
> From: Alexander Shorin [mailto:[email protected]]
> Sent: Friday, November 07, 2014 8:54 AM
> To: [email protected]
> Subject: Re: Couchdb view error
>
>
>
> This doesn't looks as an the problem map/reduce function since the problem
> in your traceback was raised by builtin_stats function from
> couch_query_servers module - it only calls if reduce function is defined as
> "_stats", not as javascript code.
>
> --
>
> ,,,^..^,,,
>
>
>
>
>
> On Fri, Nov 7, 2014 at 4:50 PM, Ramanadham, Radhika <
> [email protected]> wrote:
>
> > This is my view map and reduce function:
>
> >
>
> > server": {
>
> >                      "map": "function(doc) { if (doc.type ==
> 'performance_stats')  emit([doc.test_id, doc.Hostname],null ) }",
>
> >                      "reduce": "function(keys, values) {return (null)}"
>
> >                 },
>
> >
>
> >
>
> > And it works on one of my other hosts running couchdb(older version).
>
> > Here is the response:
>
> >
>
> > {"rows":[
>
> > {"key":["ViPR_1.1_test2","10.247.98.206"],"value":null},
>
> > {"key":["ViPR_1.1_test2","10.247.98.207"],"value":null},
>
> > {"key":["ViPR_1.1_test2","10.247.98.208"],"value":null},
>
> > {"key":["ViPR_1.1_test2","10.247.98.209"],"value":null},
>
> > {"key":["ViPR_1.1_test2","10.247.98.210"],"value":null}
>
> > ]}
>
> >
>
> > -----Original Message-----
>
> > From: Alexander Shorin [mailto:[email protected] <[email protected]>]
>
> > Sent: Friday, November 07, 2014 2:34 AM
>
> > To: [email protected]
>
> > Subject: Re: Couchdb view error
>
> >
>
> > Make sure that the value your map function emits is a number, not a
> strings or something else.
>
> > --
>
> > ,,,^..^,,,
>
> >
>
> >
>
> > On Fri, Nov 7, 2014 at 5:26 AM, Ramanadham, Radhika <
> [email protected]> wrote:
>
> >> Hi,
>
> >>
>
> >> I have couchdb running on a linux host. I have a database created and a
> few design documents created.
>
> >>
>
> >> I don't know for one view which I run, I get an error and I don't know
> why. It was working fine before and I had to stop my code, delete the DB
> from futon and rerun createdb and started form there.
>
> >>
>
> >> http://lglod193.lss.emc.com:5984/longevity/_design/perfstats/_view/se
>
> >> r
>
> >> ver?group=true&startkey=[%22ViPR_1.1_test2%22]&endkey=[%22ViPR_1.1_te
>
> >> s
>
> >> t2%22,{}<http://lglod193.lss.emc.com:5984/longevity/_design/perfstats
>
> >> /
>
> >> _view/server?group=true&startkey=%5b%22ViPR_1.1_test2%22%5d&endkey=%5
>
> >> b
>
> >> %22ViPR_1.1_test2%22,%7b%7d>]
>
> >>
>
> >> Looking at couch.log, I see this error. Anybody can help me? It doesn't
> work only on this box. Anyother host I try, it works.
>
> >>
>
> >> [Fri, 07 Nov 2014 02:14:49 GMT] [error] [emulator] Error in process
> <0.5843.0> with exit value:
> {function_clause,[{couch_query_servers,builtin_stats,[reduce,[[[<<19
> bytes>>,<<67 bytes>>],<<2 bytes>>],[[<<19 bytes>>,<<67 bytes>>],<<2
> bytes>>],[[<<19 bytes>>,<<67 bytes>>],<<2 bytes>>],[[<<19 bytes>>,<<67
> bytes>>],<<2 bytes>>],[[<<19 bytes>>,<<67 bytes>>],<<2 bytes>>],[[<<19
> bytes>>,<<67 bytes>>],<<1 byte>>],[[<<19 bytes>>,<<67 bytes>>],<<1
> byte>>],[[<<19 bytes>>,<<67 bytes>>],<<1 byte>>],[[<<19 bytes>>,<<67
> bytes>>],<<2
> bytes>>]]],[{file,"couch_query_servers.erl"},{line,202}]},{couch_query_servers,builtin_reduce,4,[{file,"couch_quer...
>
> >>
>
> >>
>
> >> [Fri, 07 Nov 2014 02:14:49 GMT] [error] [<0.107.0>]
> {error_report,<0.31.0>,
>
> >>                      {<0.107.0>,crash_report,
>
> >>                       [[{initial_call,
>
> >>                          {mochiweb_acceptor,init,
>
> >>                           ['Argument__1','Argument__2','Argument__3']}},
>
> >>                         {pid,<0.107.0>},
>
> >>                         {registered_name,[]},
>
> >>                         {error_info,
>
> >>                          {error,badarg,
>
> >>                           [{erlang,list_to_binary,
>
> >>                             [[{couch_query_servers,builtin_stats,
>
> >>                                [reduce,
>
> >>                                 [[[<<"SRMSuite_3.5_cycle2">>,
>
> >>
>              <<"server_lglom208.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06
> 21:00:00">>],
>
> >>                                   <<"36">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_lglom210.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"36">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_lglom232.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"30">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_lglom236.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"37">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_lglom237.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"36">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_losar161.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"0">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_losar162.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"0">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_losar163.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"0">>],
>
> >>                                  [[<<"SRMSuite_3.5_cycle2">>,
>
> >>
> <<"server_losar164.lss.emc.com_SRMSuite_3.5_cycle2_2014-11-06 21:00:00">>],
>
> >>                                   <<"49">>]]],
>
> >>
> [{file,"couch_query_servers.erl"},{line,202}]},
>
> >>                               {couch_query_servers,builtin_reduce,4,
>
> >>
> [{file,"couch_query_servers.erl"},{line,174}]},
>
> >>                               {couch_query_servers,reduce,3,
>
> >>
> [{file,"couch_query_servers.erl"},{line,132}]},
>
> >>
> {couch_mrview_util,'-open_view/5-fun-0-',4,
>
> >>                                [{file,"src/couch_mrview_util.erl"},
>
> >>                                 {line,220}]},
>
> >>                               {couch_btree,'-write_node/3-lc$^0/1-0-',5,
>
> >>                                [{file,"couch_btree.erl"},{line,362}]},
>
> >>                               {couch_btree,write_node,3,
>
> >>                                [{file,"couch_btree.erl"},{line,356}]},
>
> >>                               {couch_btree,modify_node,4,
>
> >>                                [{file,"couch_btree.erl"},{line,325}]},
>
> >>                               {couch_btree,query_modify,4,
>
> >>                                [{file,"couch_btree.erl"},{line,196}]}]],
>
> >>                             []},
>
> >>                            {couch_httpd,error_info,1,
>
> >>                             [{file,"couch_httpd.erl"},{line,818}]},
>
> >>                            {couch_httpd,send_error,2,
>
> >>                             [{file,"couch_httpd.erl"},{line,925}]},
>
> >>                            {couch_httpd,handle_request_int,5,
>
> >>                             [{file,"couch_httpd.erl"},{line,353}]},
>
> >>                            {mochiweb_http,headers,5,
>
> >>                             [{file,"mochiweb_http.erl"},{line,94}]},
>
> >>                            {proc_lib,init_p_do_apply,3,
>
> >>                             [{file,"proc_lib.erl"},{line,239}]}]}},
>
> >>                         {ancestors,
>
> >>                          [couch_httpd,couch_secondary_services,
>
> >>                           couch_server_sup,<0.32.0>]},
>
> >>                         {messages,[]},
>
> >>                         {links,[<0.104.0>,#Port<0.3089>]},
>
> >>                         {dictionary,
>
> >>                          [{mochiweb_request_qs,
>
> >>                            [{"group","true"},
>
> >>                             {"startkey","[\"SRMSuite_3.5_cycle2\"]"},
>
> >>                             {"endkey","[\"SRMSuite_3.5_cycle2\",{}]"}]},
>
> >>                           {couch_rewrite_count,0},
>
> >>                           {mochiweb_request_cookie,[]}]},
>
> >>                         {trap_exit,false},
>
> >>                         {status,running},
>
> >>                         {heap_size,6772},
>
> >>                         {stack_size,27},
>
> >>                         {reductions,102693}],
>
> >>                        []]}}
>
> >> lglod193:/var/log/couchdb #
>
> >>
>
> >>
>
> >> Can anybody help what's wrong here?
>
> >>
>
> >> Thanks,
>
> >> Radhika
>

Reply via email to