0

前段时间我在 Windows 机器上安装了一个 CouchDB,它工作正常,版本是 1.1.0。现在(在第一次安装几个月后)我尝试卸载现有的 CouchDB 1.1.0,它成功了,但在安装目录中留下了文件夹 '/etc' 和 '/var'。现在我正在尝试使用 setup-couchdb-1.2.0_otp_R15B.exe 重新安装而不删除上述文件夹。重新安装后,当我尝试连接到数据库时,我在日志中收到以下错误。请帮助解决可能是什么问题...

[Thu, 08 Aug 2013 09:36:53 GMT] [error] [<0.108.0>] {error_report,<0.34.0>,
{<0.108.0>,crash_report,
[[{initial_call,{couch_db_updater,init,['Argument__1']}},
{pid,<0.108.0>},
{registered_name,[]},
{error_info,
{exit,snappy_nif_not_loaded,
[{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,321}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}},
{ancestors,[<0.107.0>,<0.105.0>]},
{messages,[]},
{links,[<0.107.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,610},
{stack_size,24},
{reductions,672}],
[{neighbour,
[{pid,<0.105.0>},
{registered_name,[]},
{initial_call,{erlang,apply,2}},
{current_function,{proc_lib,sync_wait,2}},
{ancestors,[]},
{messages,[]},
{links,[<0.106.0>,<0.107.0>,<0.93.0>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,233},
{stack_size,9},
{reductions,50}]},
{neighbour,
[{pid,<0.107.0>},
{registered_name,[]},
{initial_call,{couch_db,init,['Argument__1']}},
{current_function,{proc_lib,sync_wait,2}},
{ancestors,[<0.105.0>]},
{messages,
[{ack,<0.108.0>,{error,snappy_nif_not_loaded}}]},
{links,[<0.105.0>,<0.108.0>]},
{dictionary,[]},
{trap_exit,false},
{status,runnable},
{heap_size,233},
{stack_size,16},
{reductions,43}]}]]}}
[Thu, 08 Aug 2013 09:36:53 GMT] [error] [<0.93.0>] To open the database `_users`, Apache CouchDB must be built with Erlang OTP R13B04 or higher.
[Thu, 08 Aug 2013 09:36:53 GMT] [error] [<0.103.0>] {error_report,<0.34.0>,
{<0.103.0>,crash_report,
[[{initial_call,{couch_auth_cache,init,['Argument__1']}},
{pid,<0.103.0>},
{registered_name,[]},
{error_info,
{exit,
{{badmatch,file_exists},
[{couch_auth_cache,ensure_users_db_exists,2,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,380}]},
{couch_auth_cache,open_auth_db,0,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,352}]},
{couch_auth_cache,reinit_cache,1,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,217}]},
{couch_auth_cache,init,1,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,123}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,297}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]},
[{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,321}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}},
{ancestors,
[couch_secondary_services,couch_server_sup,<0.35.0>]},
{messages,[]},
{links,[<0.101.0>,<0.104.0>]},
{dictionary,[]},
{trap_exit,true},
{status,running},
{heap_size,1597},
{stack_size,24},
{reductions,284}],
[{neighbour,
[{pid,<0.104.0>},
{registered_name,[]},
{initial_call,
{couch_event_sup,init,['Argument__1']}},
{current_function,{gen_server,loop,6}},
{ancestors,
[couch_auth_cache,couch_secondary_services,
couch_server_sup,<0.35.0>]},
{messages,[]},
{links,[<0.103.0>,<0.96.0>]},
{dictionary,[]},
{trap_exit,false},
{status,waiting},
{heap_size,233},
{stack_size,9},
{reductions,32}]}]]}}
[Thu, 08 Aug 2013 09:36:53 GMT] [error] [<0.101.0>] {error_report,<0.34.0>,
{<0.101.0>,supervisor_report,
[{supervisor,{local,couch_secondary_services}},
{errorContext,start_error},
{reason,
{{badmatch,file_exists},
[{couch_auth_cache,ensure_users_db_exists,2,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,380}]},
{couch_auth_cache,open_auth_db,0,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,352}]},
{couch_auth_cache,reinit_cache,1,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,217}]},
{couch_auth_cache,init,1,
[{file,
"d:/relax/couchdb/src/couchdb/couch_auth_cache.erl"},
{line,123}]},
{gen_server,init_it,6,
[{file,"gen_server.erl"},{line,297}]},
{proc_lib,init_p_do_apply,3,
[{file,"proc_lib.erl"},{line,227}]}]}},
{offender,
[{pid,undefined},
{name,auth_cache},
{mfargs,{couch_auth_cache,start_link,[]}},
{restart_type,permanent},
{shutdown,brutal_kill},
{child_type,worker}]}]}}
[Thu, 08 Aug 2013 09:36:53 GMT] [error] [<0.89.0>] {error_report,<0.34.0>,
{<0.89.0>,supervisor_report,
[{supervisor,{local,couch_server_sup}},
{errorContext,start_error},
{reason,shutdown},
{offender,
[{pid,undefined},
{name,couch_secondary_services},
{mfargs,{couch_secondary_sup,start_link,[]}},
{restart_type,permanent},
{shutdown,infinity},
{child_type,supervisor}]}]}}} 
4

1 回答 1

1

看起来您遇到了COUCHDB-1482问题。尝试安装修复了问题的最新 CouchDB 版本(或1.2.2,如果您想留在 1.2.x 分支上)。

此外,尝试明确 CouchDB 安装:将您的etcvar目录移动到某处,卸载 CouchDB 并删除剩余文件,安装 CouchDB 并将您的var数据移回。您必须手动从文件中反向移植您的配置更改(不要覆盖文件!),以确保不会发生任何配置冲突,而不是将旧的移动etc到新的之上。local.inidefault.ini

于 2013-08-08T16:18:44.577 回答