2013-08-07 22 views
0

我前段時間在Windows機器上安裝了CouchDB,工作正常,版本爲1.1.0。現在(第一次安裝幾個月後),我嘗試卸載現有的CouchDB 1.1.0,併成功地將安裝目錄中的文件夾'/ etc'和'/ var'保留下來。 現在我正嘗試在不刪除上述文件夾的情況下使用setup-couchdb-1.2.0_otp_R15B.exe重新安裝。重新安裝後,當我試圖連接到數據庫時,我在日誌中得到下面的錯誤。請幫助什麼可能是問題...Windows:CouchDB在重裝過程中崩潰

[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}]}]}}} 

回答

1

看起來你會遇到COUCHDB-1482問題。嘗試安裝更多的recent CouchDB release(或1.2.2,如果您想停留在1.2.x分支上),修復了問題。

另外,儘量明確CouchDB的安裝:某處移動你的etcvar迪爾斯,CouchDB的卸載和刪除保持文件,安裝的CouchDB並移動var回數據。不要在舊版本中移動舊的etc,而必須手動將local.ini文件的配置更改備份(不要覆蓋default.ini文件!)以確保不會有任何配置衝突。

+0

感謝您的更新。我目前正在嘗試升級到1.2.2並進行測試。 –