couchdb icon indicating copy to clipboard operation
couchdb copied to clipboard

Couch db throwing error "Error: normal. Reason: {gen_server,call,[<0.24064.2493>, {pread_iolist,327789}"

Open rummitta opened this issue 2 years ago • 3 comments

Hi Team, We are using Couch db v 3.2.2. While trying to access a db view through automation, we are getting the below error Error: normal. Reason: {gen_server,call,[<0.24064.2493>, {pread_iolist,327789} The actual error looks like this: Error at http://host:5984/execonfig/_design/execonfig/_view/by_applicationName?key=%5B%22INU_UI%22,%22POC%22%5D. Error: normal. Reason: {gen_server,call,[<0.24064.2493>, {pread_iolist,327789} ,infinity]}. However, if we try to access that url separately from browser, we are able to get response. Please let us know what is the cause of this error and how to avoid this. Regards, Rumki

rummitta avatar Oct 23 '23 13:10 rummitta

Hi, can you append your log file?

big-r81 avatar Oct 23 '23 15:10 big-r81

hi, we are not getting the error now. The earlier couch db pod log seems to have rolled over. We will monitor this issue and get back in case it occurs again.

rummitta avatar Oct 25 '23 11:10 rummitta

Hi, I don't know if it helps, I often get the same error. In the Couch logs, there are some more details, but I have no experience with CouchDB's internals so I don't really know what it means...

I get the error sometimes when querying a view, but it seems to happen randomly.

I'm using CouchDB 3.3.3.

[error] 2024-07-30T23:05:50.771520Z nonode@nohost <0.22093.1547> ae18ff8e35 rexi_server: from: nonode@nohost(<0.20507.1545>) mfa: fabric_rpc:map_view/5 exit:{normal,{gen_server,call,[<0.22945.1550>,{pread_iolist,5871},infinity]}} [{gen_server,call,3,[{file,"gen_server.erl"},{line,247}]},{couch_file,pread_iolist,2,[{file,"src/couch_file.erl"},{line,170}]},{couch_file,pread_binary,2,[{file,"src/couch_file.erl"},{line,166}]},{couch_file,pread_term,2,[{file,"src/couch_file.erl"},{line,155}]},{couch_btree,get_node,2,[{file,"src/couch_btree.erl"},{line,474}]},{couch_btree,stream_node,8,[{file,"src/couch_btree.erl"},{line,1069}]},{couch_btree,fold,4,[{file,"src/couch_btree.erl"},{line,242}]},{couch_mrview_util,fold,4,[{file,"src/couch_mrview_util.erl"},{line,444}]}]
[error] 2024-07-30T23:05:50.773284Z nonode@nohost <0.20507.1545> ae18ff8e35 req_err(1976876363) normal : {gen_server,call,[<0.22945.1550>,{pread_iolist,5871},infinity]}
    [<<"gen_server:call/3 L247">>,<<"couch_file:pread_iolist/2 L170">>,<<"couch_file:pread_binary/2 L166">>,<<"couch_file:pread_term/2 L155">>,<<"couch_btree:get_node/2 L474">>,<<"couch_btree:stream_node/8 L1069">>,<<"couch_btree:fold/4 L242">>,<<"couch_mrview_util:fold/4 L444">>]
[notice] 2024-07-30T23:05:50.785391Z nonode@nohost <0.20507.1545> ae18ff8e35 couchdb:5985 192.168.241.1 admin GET /sl-users/_design/profile/_view/entityIdAndWordPressUserId?startkey=%5B%22fr75013_hop22_002%22%2Cnull%2C0%5D&endkey=%5B%22fr75013_hop22_002%22%2Cnull%2C%22%EF%BF%B0%22%5D&limit=1&include_docs=true 500 ok 20

jbgtmartin avatar Jul 31 '24 07:07 jbgtmartin