acralyzer icon indicating copy to clipboard operation
acralyzer copied to clipboard

CouchDB: Reduce output must shrink more rapidly

Open brunorey opened this issue 11 years ago • 3 comments

Hi,

I have an ACRA installation that was working properly for one app. Somehow it stopped working and we don't know why.

I don't quite understand ACRAlyzer internally so I don't understand which parts work and which parts don't. I'll try to post all the useful info I can think of.

If I try to open any tab I don't see any data about the bugs (the web shows OK). Opening firebug I can see the same error in all of the tabs: "reduce_overflow_error: Reduce output must shrink more rapidly". I can see the description of a bug we were working on in the preview (first 100 bytes).

If I click the "background polling" icon it starts moving but nothing happens on the page when new bugs arrive. I can see the request is the following: http://192.168.XXX.XXX:5984/acra-XXXXX/_changes?feed=longpoll&include_docs=true&since=18291. If I open that URL in a new tab and send a report, I can see it arrives and in the browser I get a json, apparently correct.

I've uploaded some screenshots here: http://imgur.com/a/4bsw8

CouchDB seems to be working OK. Every time I send a bug from the app I can see how "number of documents" increases by one.

brunorey avatar Dec 17 '14 19:12 brunorey

If it helps... I managed to reproduce this issue (or a similar one)

Start with a database containing reports.

To produce the issue: 0- in acralyzer, go into one of the bugs and copy the direct link (you'll need it later to reverse) 1- enter a very large comment in the bug description window of that bug... for me, a comment with more than 1000 characters did the trick 2- hit save... everything looks normal 3- go to the dashboard tab 4- observe that Acralyzer displays no entries

To reverse the issue: 0- extract the record id from the link you copied at step 0 1- using futon locate and edit the record 2- remove the large description (need to hit the green check mark + save record) 3- go back to Acralyzer & observe that everything is back to normal

  • Reproducible 100% of the time.
  • Expected behavior: Acralyzer truncates the bug description to maximum length before saving to the record so that everything remains functional.

In couchDB.log ... the following error is observed when the error happens: 2320 [Thu, 12 Feb 2015 19:23:30 GMT] [info] [<0.643.83>] W.X.Y.Z - - GET /acra-testing/baca9544b7ed88e61ef895d2147a7d1a 200 2321 [Thu, 12 Feb 2015 19:23:30 GMT] [info] [<0.643.83>] W.X.Y.Z - - PUT /acra-testing/baca9544b7ed88e61ef895d2147a7d1a 201 2322 [Thu, 12 Feb 2015 19:23:30 GMT] [info] [<0.21394.82>] W.X.Y.Z - - GET /acra-testing/_changes?feed=longpoll&include_docs=true&since=224 200 2323 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.184.0>] Starting index update for db: acra-testing idx: _design/acra-storage 2324 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.29653.1>] OS Process #Port<0.2825> Log :: function raised exception (new TypeError("doc.BUILD is undefined", "undefined", 2)) with doc._id baca9544b7ed88e61ef895d2147a7d1a 2325 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.1543.83>] OS Process Error <0.29653.1> :: {<<"reduce_overflow_error">>, 2326 <<"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)">>} 2327 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [emulator] Error in process <0.1543.83> with exit value: {{nocatch,{<<21 bytes>>,<<187 bytes>>}},[{couch_os_process,prompt,2,[{file,"couch_os_process.erl"},{line,57}]},{couch_query_servers,proc_prompt,2,[{file,"couch_query_servers.erl"},{line,511}]},{couch_query_servers,os_rereduce,3,[{file,"couch_query... 2328 2329 2330 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.643.83>] W.X.Y.Z - - GET /acra-testing/_design/acra-storage/_view/reports-per-day?group_level=3 500 2331 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.643.83>] httpd 500 error response: 2332 {"error":"reduce_overflow_error","reason":"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)"} 2333 2334 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.184.0>] Starting index update for db: acra-testing idx: _design/acra-storage 2335 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.29653.1>] OS Process #Port<0.2825> Log :: function raised exception (new TypeError("doc.BUILD is undefined", "undefined", 2)) with doc._id baca9544b7ed88e61ef895d2147a7d1a 2336 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.1549.83>] OS Process Error <0.29653.1> :: {<<"reduce_overflow_error">>, 2337 <<"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)">>} 2338 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [emulator] Error in process <0.1549.83> with exit value: {{nocatch,{<<21 bytes>>,<<187 bytes>>}},[{couch_os_process,prompt,2,[{file,"couch_os_process.erl"},{line,57}]},{couch_query_servers,proc_prompt,2,[{file,"couch_query_servers.erl"},{line,511}]},{couch_query_servers,os_rereduce,3,[{file,"couch_query... 2339 2340 2341 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.649.83>] W.X.Y.Z - - GET /acra-testing/_design/acra-storage/_view/recent-items?descending=true&limit=10 500 2342 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.32063.82>] W.X.Y.Z - - GET /acra-testing/_design/acra-storage/_view/bugs?descending=true&group=true 500 2343 [Thu, 12 Feb 2015 19:23:33 GMT] [info] [<0.32317.82>] W.X.Y.Z - - GET /acra-testing/_design/acra-storage/_view/reports-per-android-version?group_level=1 500 2344 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.649.83>] httpd 500 error response: 2345 {"error":"reduce_overflow_error","reason":"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)"} 2346 2347 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.32063.82>] httpd 500 error response: 2348 {"error":"reduce_overflow_error","reason":"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)"} 2349 2350 [Thu, 12 Feb 2015 19:23:33 GMT] [error] [<0.32317.82>] httpd 500 error response: 2351 {"error":"reduce_overflow_error","reason":"Reduce output must shrink more rapidly: Current output: '[{"latest":1422947254000,"count":4,"solved":false,"description":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'... (first 100 of 1162 bytes)"}

mike-x-r avatar Feb 12 '15 19:02 mike-x-r

I had the same issue today. Took me an hour to figure out that this was. I left a description for a bug of 708 bytes which apparently is to long (just a few sentences though)

I pulled the id of the document from the couchdb log, then went to _utils and searched for the document id, doubleclicked the description and made it shorted.

Will this bug be fixed? Thanks

bbreukelen avatar Dec 02 '15 11:12 bbreukelen

The error would not go away even after I updated the document description in the couchDB interface directly. I even deleted the document, but I was still getting the error occasionally. It was driving me crazy, that Futon pages loaded the views without an error and Acralyzer would still not load the page. I tried so many things, but I think the issue went away after I compacted the database and and the Views.

So if editing the description of the document fails to resolve the issue, try compacting the views and the database.

jankrimsky avatar Apr 01 '17 12:04 jankrimsky