Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/windows/16.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Windows:CouchDB在重新安装期间崩溃_Windows_Couchdb - Fatal编程技术网

Windows:CouchDB在重新安装期间崩溃

Windows:CouchDB在重新安装期间崩溃,windows,couchdb,Windows,Couchdb,我有一个CouchDB安装在一台windows机器上,它工作正常,版本是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] [erro

我有一个CouchDB安装在一台windows机器上,它工作正常,版本是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}]}]}}} 
[Thu,2013年8月8日09:36:53 GMT][error][{error_report,,
{,撞车报告,
[[{initial_call,{coach_db_updater,init,['Argument_uu1']},
{pid,},
{注册名称,[]},
{错误信息,
{退出,如果未加载snappy_,
[{gen_server,init_it,6,
[{file,“gen_server.erl”},{line,321}]},
{proc_lib,init_p_do_apply,3,
[{file,“proc_lib.erl”},{line,227}]},
{祖先,[,]},
{消息,[]},
{links,[]},
{字典,[]},
{trap_exit,true},
{状态,正在运行},
{heap_size,610},
{堆栈大小,24},
{减少,672}],
[{邻居,
[{pid,},
{注册名称,[]},
{initial_call,{erlang,apply,2}},
{current_函数,{proc_lib,sync_wait,2}},
{祖先,[]},
{消息,[]},
{链接,[,]},
{字典,[]},
{trap_exit,false},
{状态,等待},
{heap_size,233},
{stack_size,9},
{减少,50}]},
{邻居,
[{pid,},
{注册名称,[]},
{initial_call,{coach_db,init,['Argument__1']},
{current_函数,{proc_lib,sync_wait,2}},
{祖先,[]},
{信息,
[{ack,,{error,snappy\u nif\u not\u loaded}}]},
{links,[,]},
{字典,[]},
{trap_exit,false},
{status,runnable},
{heap_size,233},
{stack_size,16},
{减少,43}]}]}
[Thu,08 Aug 2013 09:36:53 GMT][error][]要打开数据库`_users`,Apache CouchDB必须使用Erlang OTP R13B04或更高版本构建。
[星期四,2013年8月8日09:36:53格林尼治标准时间][错误][]错误报告,,
{,撞车报告,
[[{initial_call,{coach_auth_cache,init,['Argument__1']},
{pid,},
{注册名称,[]},
{错误信息,
{退出,
{{badmatch,文件_存在},
[{coach\u auth\u cache,确保用户\u db\u存在,2,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,380}]},
{coach_auth_缓存,打开_auth_db,0,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,352}]},
{coach_auth_cache,reinit_cache,1,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,217}]},
{coach_auth_cache,init,1,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u 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}]},
{祖先,
[coach_secondary_services,coach_server_sup,]},
{消息,[]},
{links,[,]},
{字典,[]},
{trap_exit,true},
{状态,正在运行},
{heap_size,1597},
{堆栈大小,24},
{减少,284}],
[{邻居,
[{pid,},
{注册名称,[]},
{初始呼叫,
{coach_event_sup,init,['Argument__1']},
{current_函数,{gen_服务器,循环,6}},
{祖先,
[coach_auth_cache,coach_secondary_services,
coach_server_sup,]},
{消息,[]},
{links,[,]},
{字典,[]},
{trap_exit,false},
{状态,等待},
{heap_size,233},
{stack_size,9},
{减少,32}]}]}
[星期四,2013年8月8日09:36:53格林尼治标准时间][错误][]错误报告,,
{,主管报告,
[{主管,{本地、二级服务},
{errorContext,start_error},
{原因,
{{badmatch,文件_存在},
[{coach\u auth\u cache,确保用户\u db\u存在,2,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,380}]},
{coach_auth_缓存,打开_auth_db,0,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,352}]},
{coach_auth_cache,reinit_cache,1,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u cache.erl”},
{line,217}]},
{coach_auth_cache,init,1,
[{文件,
“d:/relax/couchdb/src/couchdb/coach\u auth\u 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}]},
{罪犯,
[{pid,未定义},
{name,auth_cache},
{mfargs,{coach_auth_cache,start_link,[]},
{restart_type,permanent},
{关闭,残暴的杀戮},
{child_type,worker}]}}}
[星期四,2013年8月8日09:36:53格林尼治标准时间][错误][]错误报告,,
{,主管报告,
[{主管,{本地,沙发服务器},
{errorContext,start_error},
{原因,关闭},
{罪犯,
[{pid,未定义},
{name,coach_secondary_services},
{mfargs,{coach_secondary_sup,start_link,[]},
{restart_type,permanent},
{关闭,无限},
{child_type,supervisor}]}}}}}
看来您已经遇到了问题。尝试安装更多已修复snappy问题的(或者如果您想继续使用1.2.x分支)


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

感谢您的更新。我目前正在尝试升级到1.2.2并进行测试。