【发布时间】:2012-05-13 09:27:17
【问题描述】:
我已经在 Ubuntu 11.10 中安装了 CouchDB。我有一个 HTTPD 服务器正在运行(运行正常)以及 CouchDB 的所有先决条件。
我已经在后台为系统上的用户启动了 CouchDB:
sudo -i -u bpetruk couchdb -b
它告诉我它已经开始了,“是时候放松一下了”。不幸的是,我现在还不能放松——因为即使服务器已经加载,我也无法从标准的http://127.0.0.1:5984/_utils 位置访问 Futon。
这是启动例程的一些错误输出。可怕,我知道哈哈。它似乎刚刚将一些 JSON 转储到终端:
Apache CouchDB 1.2.0 (LogLevel=info) 正在启动。 [错误] [] {error_report,, {,crash_report, [[{initial_call,{couch_auth_cache,init,['Argument__1']}}, {pid,}, {注册名称,[]}, {错误信息, {出口, {{badmatch,{error,eacces}}, [{couch_auth_cache,ensure_users_db_exists,2}, {couch_auth_cache,open_auth_db,0}, {couch_auth_cache,reinit_cache,1}, {couch_auth_cache,init,1}, {gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]}, [{gen_server,init_it,6}, {proc_lib,init_p_do_apply,3}]}}, {祖先, [couch_secondary_services,couch_server_sup,]}, {消息,[]}, {链接,[,]}, {字典,[]}, {trap_exit,true}, {状态,运行}, {heap_size,610}, {stack_size,24}, {减少,227}], [{邻居, [{pid,}, {注册名称,[]}, {initial_call,{couch_event_sup,init,['Argument__1']}}, {current_function,{gen_server,loop,6}}, {祖先, [couch_auth_cache,couch_secondary_services, couch_server_sup,]}, {消息,[]}, {链接,[,]}, {字典,[]}, {trap_exit,false}, {状态,等待}, {heap_size,233}, {stack_size,9}, {reductions,32}]}]]}} {"init 终止于 do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/usr/local/etc/couchdb/default .ini","/usr/local/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,shutdown}},[{couch_server_sup,start_server,1},{application_master, start_it_old,4}]}}}}}},[{couch,start,0},{init,start_it,1},{init,start_em,1}]}}
同样令人沮丧的是,在 couchdb 上定义 -s 标志(它应该打印后台进程的状态)绝对不会产生任何结果!所以我也无法提供这方面的信息。
在我第一次涉足 CouchDB 世界时,是否有任何常见问题我可能视而不见?我真的被这个卡住了!
【问题讨论】:
-
哎呀,只是文件权限问题。我以为我为所有必需的文件添加了权限,但我显然错过了一些。刚刚 chown 了整个 CouchDB 目录,它完美地启动了。我不太担心这台机器的安全性;无论如何,它只是为了测试。
-
如果您解决了问题,请将其添加为答案。
标签: ubuntu couchdb apache couchdb-futon