ouchdb视图创建失败,错误为120003

时间:2018-10-22 14:53:50

标签: node.js couchdb couchdb-nano

尝试通过nodejs nano模块在couchdb服务器上创建视图。但是,它失败并间歇性地达到2分钟超时,并出现以下错误。

日志:

2018-10-19T21:15:18.591896984Z [error] 2018-10-19T21:15:18.591195Z nonode@nohost <0.16823.834> -------- fabric_worker_timeout update_docs,nonode@nohost,<<"shards/60000000-7fffffff/creds-db.1522106606">>
2018-10-19T21:15:18.592212562Z [notice] 2018-10-19T21:15:18.591742Z nonode@nohost <0.8938.834> a886710232 couchdb:5984 172.30.63.248 undefined PUT /creds-db/_design/v3_get_by_codes 500 ok 120003
2018-10-19T21:15:18.592892183Z [error] 2018-10-19T21:15:18.592245Z nonode@nohost <0.19419.834> -------- rexi_server: from: nonode@nohost(<0.16823.834>) mfa: fabric_rpc:update_docs/3 exit:{timeout,{gen_server,call,[couch_proc_manager,{get_proc,<<"javascript">>},120000]}} [{gen_server,call,3,[{file,"gen_server.erl"},{line,190}]},{couch_query_servers,get_os_process,1,[{file,"src/couch_query_servers.erl"},{line,514}]},{couch_mrview,validate,2,[{file,"src/couch_mrview.erl"},{line,196}]},{lists,foreach,2,[{file,"lists.erl"},{line,1336}]},{couch_db,validate_ddoc,2,[{file,"src/couch_db.erl"},{line,768}]},{couch_db,'-prep_and_validate_updates/6-fun-1-',3,[{file,"src/couch_db.erl"},{line,878}]},{lists,foldl,3,[{file,"lists.erl"},{line,1261}]},{couch_db,prep_and_validate_updates,6,[{file,"src/couch_db.erl"},{line,869}]}]

查看:

var Providers = {};
Providers["v3_get_by_codes"] = {
map: function(doc) {
  if(doc.type === "credentials" && doc.basicInfo.isActive === "Active"){
  emit(doc.basicInfo.ProviderCode, doc);
}}

让我知道是否有人看到过这样的问题

0 个答案:

没有答案