Hi,
I'm running couchdb on a small EC2 instance and I've been getting a lot of these "OS Process timed out" errors when querying views. The view is returning a set of word counts for a document. The view runs fine on my 2 yr old macbook pro.

Im using Ubuntu 8.10 intrepid AMI built by Eric Hammond from http://alestic.com .
The erlang version on EC2 is:
Erlang (BEAM) emulator version 5.6.3 [source] [async-threads:0] [kernel-poll:false]

There are only 232 documents in the database. It fails 50% of the time. Any thoughts on debugging? My erlang skills are n00b at the moment.

In the log file, the query is like this when it's successful:
[Tue, 21 Jul 2009 23:57:45 GMT] [info] [<0.2834.0>] 127.0.0.1 - - 'GET' /nsf_grants/_design/NsfGrant/_view/by_doc_word_count? reduce=true&startkey=%5B%220832603%22%5D&endkey=%5B%220832603%22%2C%7B %7D%5D&group=true 200

but like this when it gives an error:
[Tue, 21 Jul 2009 23:57:45 GMT] [error] [<0.2804.0>] Uncaught error in HTTP request: {exit,
                                 {{bad_return_value,
{os_process_error,"OS process timed out."}},
                                  {gen_server,call,
                                   [<0.2808.0>,
                                    {prompt,
                                     [<<"reduce">>,
[<<"function(keys, values, rereduce) {\n return sum(values);\n }">>],
                                      [[[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1],
                                       [[[<<"0832603">>,<<"and">>],
                                         <<"0832603">>],
                                        1]]]},
                                    infinity]}}}

[Tue, 21 Jul 2009 23:57:45 GMT] [error] [<0.2829.0>] Uncaught error in HTTP request: {exit,
                                 {{bad_return_value,
{os_process_error,"OS process timed out."}},
                                  {gen_server,call,
                                   [<0.2802.0>,
                                    {prompt,
                                     [<<"reduce">>,
[<<"function(keys, values, rereduce) {\n return sum(values);\n }">>], [[[[<<"0832603">>,<<"interacting">>],
                                         <<"0832603">>],
                                        1]]]},
                                    infinity]}}}

[Tue, 21 Jul 2009 23:57:45 GMT] [info] [<0.2801.0>] 127.0.0.1 - - 'GET' /nsf_grants/_design/NsfGrant/_view/by_doc_word_count? reduce=true&startkey=%5B%220832603%22%5D&endkey=%5B%220832603%22%2C%7B %7D%5D&group=true 500

[Tue, 21 Jul 2009 23:57:45 GMT] [info] [<0.2814.0>] 127.0.0.1 - - 'GET' /nsf_grants/_design/NsfGrant/_view/by_doc_word_count? reduce=true&startkey=%5B%220808605%22%5D&endkey=%5B%220808605%22%2C%7B %7D%5D&group=true 500


--
Thanks,
Tommy

Reply via email to