CouchDB 服务在安装后无法正确启动

CouchDB service does not startup correctly after installation

我已经在 Windows 7 Pro 笔记本电脑上安装了 CouchDB (v2.2.0)。我已经安装到默认的 C:\CouchDB 位置。安装不报错

然而,当我尝试导航到 localhost:5984 以验证我的安装时,我收到了一个站点无法访问的错误。

我试过卸载、重启和重新安装都无济于事。

我希望其他人也有同样的经历并找到了解决方案。我在 couchdb 网站上找不到任何指导。以下是我的 couch.log 文件的摘录:

[info] 2018-09-25T13:22:21.315000Z couchdb@localhost <0.7.0> -------- Application couch_log started on node couchdb@localhost [info] 2018-09-25T13:22:21.334000Z couchdb@localhost <0.7.0> -------- Application folsom started on node couchdb@localhost [info] 2018-09-25T13:22:21.373000Z couchdb@localhost <0.7.0> -------- Application couch_stats started on node couchdb@localhost [info] 2018-09-25T13:22:21.373000Z couchdb@localhost <0.7.0> -------- Application khash started on node couchdb@localhost [info] 2018-09-25T13:22:21.389000Z couchdb@localhost <0.7.0> -------- Application couch_event started on node couchdb@localhost [info] 2018-09-25T13:22:21.405000Z couchdb@localhost <0.7.0> -------- Application ibrowse started on node couchdb@localhost [info] 2018-09-25T13:22:21.405000Z couchdb@localhost <0.7.0> -------- Application ioq started on node couchdb@localhost [info] 2018-09-25T13:22:21.405000Z couchdb@localhost <0.7.0> -------- Application mochiweb started on node couchdb@localhost [info] 2018-09-25T13:22:21.420000Z couchdb@localhost <0.198.0> -------- Apache CouchDB 2.1.2 is starting.

[info] 2018-09-25T13:22:21.420000Z couchdb@localhost <0.199.0> -------- Starting couch_sup [error] 2018-09-25T13:22:21.420000Z couchdb@localhost <0.202.0> -------- CRASH REPORT Process (<0.202.0>) with 0 neighbors exited with reason: "The specified module could not be found." at gen_server:init_it/6(line:344) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {couch_drv,init,['Argument__1']}, ancestors: [couch_primary_services,couch_sup,<0.198.0>], messages: [], links: [<0.201.0>], dictionary: [], trap_exit: false, status: running, heap_size: 376, stack_size: 27, reductions: 125 [error] 2018-09-25T13:22:21.420000Z couchdb@localhost <0.198.0> -------- Error starting Apache CouchDB:

{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"The specified module could not be found."}}}}}

[error] 2018-09-25T13:22:21.436000Z couchdb@localhost <0.201.0> -------- Supervisor couch_primary_services had child collation_driver started with couch_drv:start_link() at undefined exit with reason "The specified module could not be found." in context start_error [error] 2018-09-25T13:22:21.436000Z couchdb@localhost <0.199.0> -------- Supervisor couch_sup had child couch_primary_services started with couch_primary_sup:start_link() at undefined exit with reason {shutdown,{failed_to_start_child,collation_driver,"The specified module could not be found."}} in context start_error [error] 2018-09-25T13:22:21.436000Z couchdb@localhost <0.197.0> -------- CRASH REPORT Process (<0.197.0>) with 0 neighbors exited with reason: {{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"The specified module could not be found."}}}},{couch_app,start,[normal,[]]}} at application_master:init/4(line:134) <= proc_lib:init_p_do_apply/3(line:240); initial_call: {application_master,init,['Argument__1','Argument__2',...]}, ancestors: [<0.196.0>], messages: [{'EXIT',<0.198.0>,normal}], links: [<0.196.0>,<0.7.0>], dictionary: [], trap_exit: true, status: running, heap_size: 610, stack_size: 27, reductions: 139 [info] 2018-09-25T13:22:21.436000Z couchdb@localhost <0.7.0> -------- Application couch exited with reason: {{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,collation_driver,"The specified module could not be found."}}}},{couch_app,start,[normal,[]]}}

特此回答我自己的问题:

问题似乎与 MySQL 5.6 安装有关。

我怀疑这两个应用程序存在冲突,因为一旦我安装了 couchDB,我就会在 MySQL 服务中报告偶尔的错误。

我卸载了 MySQL 并重新安装了 couch db,它现在可以正常运行了。我会再次尝试安装 MySQL,看看是否会再次发生这种情况。

目前,此问题已解决。

我在 windows 8.1 for couchdb-2.2.0 中遇到了类似的错误,在尝试了以下答案中提到的几个步骤后我开始工作了。

虽然好像和Mysql有关系,但是我没有卸载mysql。我认为它无法正确解析 windows 样式路径变量条目(有空格)。

  1. 替换nssm.exe
  2. 从 cmd(管理员)启动 couchdb
  3. 第一次失败,erl.exe崩溃,会提示加入防火墙例外,允许
  4. 运行 couchdb.cmd 又成功了。

Starting CouchDB from cmd

您只需从 PATH 变量中删除 MySQL 个条目。不需要卸载 MSQL。