【问题标题】:Windows: CouchDB crashes during reinstallationWindows:重新安装期间 CouchDB 崩溃
【发布时间】:2014-02-15 02:35:07
【问题描述】:

我前段时间在 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}]}]}}} 

【问题讨论】:

    标签: windows couchdb


    【解决方案1】:

    您似乎遇到了COUCHDB-1482 问题。尝试安装更多已修复问题的 recent CouchDB release(或 1.2.2,如果您想留在 1.2.x 分支上)。

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

    【讨论】:

    • 感谢您的更新。我目前正在尝试升级到 1.2.2 并进行测试。
    猜你喜欢
    • 2015-07-01
    • 2023-03-19
    • 2019-05-11
    • 2017-02-19
    • 1970-01-01
    • 2021-09-16
    • 2012-11-04
    • 2011-04-04
    • 2018-06-17
    相关资源
    最近更新 更多