couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ishi soichi <soichi...@gmail.com>
Subject Re: couchdb.http.ServerError: (500
Date Sun, 09 Dec 2012 09:50:41 GMT
thanks. It certainly made an improvement.
but it gave a different error now... ;)

can anyone see the problem?

soichi

=CRASH REPORT==== 9-Dec-2012::18:48:46 ===
  crasher:
    initial call: couch_os_process:init/1
    pid: <0.686.0>
    registered_name: []
    exception exit: {function_clause,
                        [{couch_os_process,handle_info,
                             [{#Port<0.2698>,
                               {data,
                                   {eol,
                                       <<"[[], [[null,
274152780170682369]]]">>}}},
                              {os_proc,
                                  "/Users/soichi/domains/py27/bin/couchpy",
                                  #Port<0.2698>,
                                  #Fun<couch_os_process.2.55582190>,
                                  #Fun<couch_os_process.3.55582190>,5000}],
                             [{file,"couch_os_process.erl"},{line,207}]},
                         {gen_server,handle_msg,5,
                             [{file,"gen_server.erl"},{line,607}]},
                         {proc_lib,init_p_do_apply,3,
                             [{file,"proc_lib.erl"},{line,227}]}]}
      in function  gen_server:terminate/6 (gen_server.erl, line 747)
    ancestors: [couch_query_servers,couch_secondary_services,
                  couch_server_sup,<0.31.0>]
    messages: []
    links: [<0.685.0>]

....omitted .....

=CRASH REPORT==== 9-Dec-2012::18:48:46 ===
  crasher:
    initial call: mochiweb_acceptor:init/3
    pid: <0.529.0>
    registered_name: []
    exception error: bad argument
      in function  list_to_binary/1
         called as list_to_binary([{couch_os_process,handle_info,
                                    [{#Port<0.2698>,
                                      {data,
                                       {eol,
                                        <<"[[], [[null,
274152780170682369]]]">>}}},
                                     {os_proc,

"/Users/soichi/domains/py27/bin/couchpy",
                                      #Port<0.2698>,
                                      #Fun<couch_os_process.2.55582190>,

#Fun<couch_os_process.3.55582190>,5000}],
                                    [{file,"couch_os_process.erl"},
                                     {line,207}]},
                                   {gen_server,handle_msg,5,
                                    [{file,"gen_server.erl"},{line,607}]},
                                   {proc_lib,init_p_do_apply,3,
                                    [{file,"proc_lib.erl"},{line,227}]}])
      in call from couch_httpd:error_info/1 (couch_httpd.erl, line 779)
      in call from couch_httpd:send_error/2 (couch_httpd.erl, line 883)
      in call from couch_httpd:handle_request_int/5 (couch_httpd.erl, line
345)
      in call from mochiweb_http:headers/5 (mochiweb_http.erl, line 136)
    ancestors: [couch_httpd,couch_secondary_services,couch_server_sup,
                  <0.31.0>]
    messages: []
    links: [<0.123.0>,#Port<0.2695>]
    dictionary: [{mochiweb_request_qs,[{"group","true"}]},
                  {mochiweb_request_cookie,[]}]
    trap_exit: false
    status: running
    heap_size: 2584
    stack_size: 24
    reductions: 4451
  neighbours:


2012/12/9 Alexander Shorin <kxepal@gmail.com>

> Hi Ishi!
>
> It looks like you hadn't set up python query server. Just follow next
> guide and you should be fine:
> http://packages.python.org/CouchDB/views.html
> --
> ,,,^..^,,,
>
>
> On Sun, Dec 9, 2012 at 1:09 PM, ishi soichi <soichi777@gmail.com> wrote:
> > Python 27 with vertualenv
> > MacOSX SnowLeopard
> > Apache CouchDB 1.2.0
> >
> > I am trying to execute the following code
> >
> https://github.com/ptwobrussell/Mining-the-Social-Web/blob/master/python_code/the_tweet__count_entities_in_tweets.py
> > but it gives a large (?) error (the error is show after the message).
> >
> > I cannot figure out the cause of error at all.
> > Could anyone help me out?
> >
> > soichi
> >
> > P.S.The error looks like this
> >
> > [info] [<0.264.0>] 127.0.0.1 - - PUT /tweets-user-timeline-soujiro0725
> 412
> > [info] [<0.264.0>] 127.0.0.1 - - HEAD /tweets-user-timeline-soujiro0725
> 200
> > [error] [emulator] Error in process <0.856.0> with exit value:
> >
> {{nocatch,{'EXIT',{{badmatch,[]},[{couch_query_servers,new_process,3,[{file,"couch_query_servers.erl"},{line,472}]},{couch_query_servers,lang_proc,3,[{file,"couch_query_servers.erl"},{line,462}]},{couch_query_servers,handle_call...
> >
> >
> >
> > =ERROR REPORT==== 9-Dec-2012::17:56:43 ===
> > Error in process <0.856.0> with exit value:
> >
> {{nocatch,{'EXIT',{{badmatch,[]},[{couch_query_servers,new_process,3,[{file,"couch_query_servers.erl"},{line,472}]},{couch_query_servers,lang_proc,3,[{file,"couch_query_servers.erl"},{line,462}]},{couch_query_servers,handle_call...
> >
> > [error] [<0.849.0>] ** Generic server <0.849.0> terminating
> > ** Last message in was {'EXIT',<0.853.0>,
> >                         {{nocatch,
> >                           {'EXIT',
> >                            {{badmatch,[]},
> >                             [{couch_query_servers,new_process,3,
> >
> > [{file,"couch_query_servers.erl"},{line,472}]},
> >                              {couch_query_servers,lang_proc,3,
> >
> > [{file,"couch_query_servers.erl"},{line,462}]},
> >                              {couch_query_servers,handle_call,3,
> >
> > [{file,"couch_query_servers.erl"},{line,334}]},
> >                              {gen_server,handle_msg,5,
> >                               [{file,"gen_server.erl"},{line,588}]},
> >                              {proc_lib,init_p_do_apply,3,
> >                               [{file,"proc_lib.erl"},{line,227}]}]}}},
> >                          [{couch_query_servers,get_os_process,1,
> >
>  [{file,"couch_query_servers.erl"},{line,578}]},
> >                           {couch_query_servers,start_doc_map,3,
> >
> > ... omitted...
> >
> >     stack_size: 24
> >     reductions: 1189
> >   neighbours:
> > [info] [<0.264.0>] 127.0.0.1 - - POST
> > /tweets-user-timeline-soujiro0725/_temp_view 500
> > Traceback (most recent call last):
> >   File "view_couchdb2.py", line 42, in <module>
> >     show_by_rt_count(db, 1)
> >   File "view_couchdb2.py", line 32, in show_by_rt_count
> >     results_new = [_result for _result in results if _result.key >
> rt_min]
> >   File
> >
> "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/client.py",
> > line 984, in __iter__
> >     return iter(self.rows)
> >   File
> >
> "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/client.py",
> > line 1003, in rows
> >     self._fetch()
> >   File
> >
> "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/client.py",
> > line 990, in _fetch
> >     data = self.view._exec(self.options)
> >   File
> >
> "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/client.py",
> > line 914, in _exec
> >     }, **self._encode_options(options))
> >   File
> > "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/http.py",
> > line 399, in post_json
> >     status, headers, data = self.post(*a, **k)
> >   File
> > "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/http.py",
> > line 381, in post
> >     **params)
> >   File
> > "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/http.py",
> > line 419, in _request
> >     credentials=self.credentials)
> >   File
> > "/Users/soichi/domains/py27/lib/python2.7/site-packages/couchdb/http.py",
> > line 310, in request
> >     raise ServerError((status, error))
> > couchdb.http.ServerError: (500, (u'EXIT', u'{{badmatch,[]},\n
> > [{couch_query_servers,new_process,3,\n
> > [{file,"couch_query_servers.erl"},{line,472}]},\n
> >  {couch_query_servers,lang_proc,3,\n
> > [{file,"couch_query_servers.erl"},{line,462}]},\n
> >  {couch_query_servers,handle_call,3,\n
> > [{file,"couch_query_servers.erl"},{line,334}]},\n
> >  {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,588}]},\n
> >  {proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,227}]}]}'))
>

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