jareware commented on issue #1184: _bulk_docs POST returns "unknown error" 
"badarg"
URL: https://github.com/apache/couchdb/issues/1184#issuecomment-380415007
 
 
   Also ran into this issue:
   
   ```
   { error: 'unknown_error',
     reason: 'badarg',
     ref: 4258677272,
     name: 'unknown_error',
     status: 500,
     message: 'badarg' }
   ```
   
   Looking at the DB logs around that time:
   
   ```
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.848863Z nonode@nohost 
<0.2276.41> 59b7147c82 rexi_server: from: nonode@nohost(<0.2106.41>) mfa: 
fabric_rpc:update_docs/3 
exit:{timeout,{gen_server,call,[couch_proc_manager,{get_proc,{doc,<<"_design/myUpdateValidation">>,{1,[<<100,39,93,199,51,195,88,67,22,50,78,244,160,45,176,213>>]},{[{<<"validate_doc_update">>,<<"function
 (newDoc, oldDoc, userCtx) { /* redacted */ 
}">>}]},[],false,[]},{<<"_design/myUpdateValidation">>,<<"1-64275dc733c3584316324ef4a02db0d5">>}},5000]}}
 
[{gen_server,call,3,[{file,"gen_server.erl"},{line,190}]},{couch_query_servers,get_ddoc_process,2,[{file,"src/couch_query_servers.erl"},{line,498}]},{couch_query_servers,with_ddoc_proc,2,[{file,"src/couch_query_servers.erl"},{line,463}]},{couch_query_servers,validate_doc_update,5,[{file,"src/couch_query_servers.erl"},{line,318}]},{couch_db,'-validate_doc_update_int/3-lc$^0/1-0-',5,[{file,"src/couch_db.erl"},{line,784}]},{couch_db,'-validate_doc_update_int/3-fun-0-',3,[{file,"src/couch_db.erl"},{line,784}]},{couch_stats,update_histogram,2,[{file,"src/couch_stats.erl"},{line,102}]},{couch_db,'-prep_and_validate_updates/6-fun-1-',3,[{file,"src/couch_db.erl"},{line,878}]}]
 
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.862568Z nonode@nohost 
<0.2106.41> 59b7147c82 req_err(4258677272) unknown_error : badarg 
   Apr 11 13:58:11     [<<"dict:fetch/2 
L130">>,<<"couch_util:-reorder_results/2-lc$^1/1-1-/2 
L456">>,<<"fabric_doc_update:go/3 L41">>,<<"fabric:update_docs/3 
L259">>,<<"chttpd_db:db_req/2 L428">>,<<"chttpd:process_request/1 
L295">>,<<"chttpd:handle_request_int/1 L231">>,<<"mochiweb_http:headers/6 
L91">>] 
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.863338Z nonode@nohost 
<0.2305.41> -------- CRASH REPORT Process  (<0.2305.41>) with 1 neighbors 
exited with reason: bad return value {os_process_error,"OS process timed out."} 
at gen_server:init_it/6(line:334) <= proc_lib:init_p_do_apply/3(line:237); 
initial_call: {couch_os_process,init,['Argument__1']}, ancestors: 
[<0.2286.41>], messages: [], links: [<0.2286.41>], dictionary: [], trap_exit: 
false, status: running, heap_size: 987, stack_size: 27, reductions: 264 
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.863546Z nonode@nohost 
<0.2307.41> -------- CRASH REPORT Process  (<0.2307.41>) with 1 neighbors 
exited with reason: bad return value {os_process_error,"OS process timed out."} 
at gen_server:init_it/6(line:334) <= proc_lib:init_p_do_apply/3(line:237); 
initial_call: {couch_os_process,init,['Argument__1']}, ancestors: 
[<0.2267.41>], messages: [], links: [<0.2267.41>], dictionary: [], trap_exit: 
false, status: running, heap_size: 987, stack_size: 27, reductions: 264 
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.863766Z nonode@nohost 
<0.2280.41> -------- CRASH REPORT Process  (<0.2280.41>) with 1 neighbors 
exited with reason: bad return value {os_process_error,"OS process timed out."} 
at gen_server:init_it/6(line:334) <= proc_lib:init_p_do_apply/3(line:237); 
initial_call: {couch_os_process,init,['Argument__1']}, ancestors: 
[<0.2266.41>], messages: [], links: [<0.2266.41>], dictionary: [], trap_exit: 
false, status: running, heap_size: 987, stack_size: 27, reductions: 264 
   Apr 11 13:58:11 [error] 2018-04-11T10:58:10.874587Z nonode@nohost 
<0.2306.41> -------- CRASH REPORT Process  (<0.2306.41>) with 1 neighbors 
exited with reason: bad return value {os_process_error,"OS process timed out."} 
at gen_server:init_it/6(line:334) <= proc_lib:init_p_do_apply/3(line:237); 
initial_call: {couch_os_process,init,['Argument__1']}, ancestors: 
[<0.2268.41>], messages: [], links: [<0.2268.41>], dictionary: [], trap_exit: 
false, status: running, heap_size: 987, stack_size: 27, reductions: 264 
   Apr 11 13:58:11 sh: sh: echo: I/O error 
   Apr 11 13:58:11 echo: I/O error 
   Apr 11 13:58:11 sh: sh: echo: I/O error 
   Apr 11 13:58:11 sh: echo: I/O error 
   Apr 11 13:58:11 echo: I/O error 
   ```
   
   The strange thing is that this seems sporadic: trying to reproduce it with a 
smaller bulk POST always succeeded, and now even the larger bulk POST (with 
prod data) seems to work.
   
   Will update this issue if I learn more.
   
   Running the official Docker image of 2.1.1 on AWS EC2, if it helps.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to