https://bugzilla.redhat.com/show_bug.cgi?id=1028657
Bug ID: 1028657 Summary: couchdb should also be usable under normal users Product: Fedora Version: rawhide Component: couchdb Assignee: lemenkov@gmail.com Reporter: cickumqt@gmail.com QA Contact: extras-qa@fedoraproject.org CC: erlang@lists.fedoraproject.org, lemenkov@gmail.com
1. Running under normal user:
[rpmaker@fab fedpkg]$ couchdb Apache CouchDB 1.3.1 (LogLevel=info) is starting. Error opening log file /var/log/couchdb/couch.log: permission denied{"init terminating in do_boot",{{badmatch,{error,{bad_return,{{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]},{'EXIT',{{badmatch,{error,{shutdown,{failed_to_start_child,couch_primary_services,{shutdown,{failed_to_start_child,couch_log,{error,"permission denied","/var/log/couchdb/couch.log"}}}}}}},[{couch_server_sup,start_server,1,[{file,"couch_server_sup.erl"},{line,98}]},{application_master,start_it_old,4,[{file,"application_master.erl"},{line,269}]}]}}}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
2. Running under root:
[root@fab fedpkg]# couchdb Apache CouchDB 1.3.1 (LogLevel=info) is starting. Apache CouchDB has started. Time to relax. [info] [<0.31.0>] Apache CouchDB has started on http://127.0.0.1:5984/
I don't know why this happened, but I think there might have some dirs/files are operated by incorrect permissions setting.
https://bugzilla.redhat.com/show_bug.cgi?id=1028657
Peter Lemenkov lemenkov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED
https://bugzilla.redhat.com/show_bug.cgi?id=1028657
--- Comment #1 from Peter Lemenkov lemenkov@gmail.com --- Confirmed. I suppose that if couchdb runs under different user it should respect "XDG Base Directory Specification" instead of using hardcoded variables. I'll try to fix that in the next build.
https://bugzilla.redhat.com/show_bug.cgi?id=1028657
Warren Togami wtogami@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |wtogami@gmail.com
--- Comment #2 from Warren Togami wtogami@gmail.com --- I believe /bin/couchdb options lets you override the config, log and pid paths with command line switches. Is this insufficient?
/bin/couchdb is from upstream, this isn't a Fedora-specific thing.
https://bugzilla.redhat.com/show_bug.cgi?id=1028657
Peter Lemenkov lemenkov@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Keywords| |FutureFeature Version|22 |rawhide
Red Hat Bugzilla bugzilla@redhat.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Doc Type|Bug Fix |Enhancement
erlang@lists.fedoraproject.org