我正在尝试使用 couchapp、couchdb 构建示例应用程序。我还使用 jquery.couch.js 插件与本地 couchdb 进行通信。但是,当我尝试将其复制到 iriscouch.com 上的远程沙发时,出现以下错误:
Replication failed: {error,
{{badarg,
[{erlang,list_to_existing_atom,["data_size"]},
{couch_rep,'-dbinfo/1-lc$^0/1-0-',1},
{couch_rep,'-dbinfo/1-lc$^0/1-0-',1},
{couch_rep,do_init,1},
{couch_rep,init,1},
{gen_server,init_it,6},
{proc_lib,init_p_do_apply,3}]},
{child,undefined,"6f5beff2bd381e02b602cee2e8e1e86d",
{gen_server,start_link,
[couch_rep,
["6f5beff2bd381e02b602cee2e8e1e86d",
{[{<<"source">>,<<"zwaroop">>},
{<<"target">>,
<<"http://username:<a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="80f0e1f3f3f7eff2e4c0f3f7e1f2efeff0f3edaee9f2e9f3e3eff5e3e8aee3efed" rel="noreferrer noopener nofollow">[email protected]</a>/zwaroop">>}]},
{user_ctx,<<"root">>,
[<<"_admin">>],
<<"{couch_httpd_auth, cookie_authentication_handler}">>}],
[]]},
temporary,1,worker,
[couch_rep]}}}
我哪里出错了?
最佳答案
如果您使用的是 Ubuntu 12.04(随 CouchDB v1.0.1 一起提供),您可以使用 PPA,而不是从源安装 CouchDB。例如,https://launchpad.net/~novacut/+archive/daily精确的向后移植为 1.2.0;我安装了它
$ sudo apt-add-repository ppa:novacut/daily
$ sudo apt-get update
$ sudo apt-get install couchdb
升级到1.2.0后问题解决。
编辑: Novacut 存储库不再托管 couchdb
的软件包,因为版本 1.5.0 已包含在 Ubuntu Trusty ( http://packages.ubuntu.com/trusty/couchdb ) 中。
关于couchdb - 复制到 iriscouch 失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11602182/