Comment 3 for bug 1457464

Revision history for this message
Dylan McCall (dylanmccall) wrote :

I see that the package creates a couchdb system user, and it appears the init script is correctly running Couch as that user.

So, when I do `sudo -u couchdb couchdb`, I can see /var/run/couchdb is incorrectly owned by root:

    $ sudo -u couchdb couchdb
    Apache CouchDB 1.6.0 (LogLevel=info) is starting.
    Apache CouchDB has started. Time to relax.
    [info] [<0.32.0>] Apache CouchDB has started on http://0.0.0.0:5984/
    [error] [<0.32.0>] Failed to write to URI file /var/run/couchdb/couch.uri: permission denied
    {"init terminating in do_boot",{{badmatch,{error,{eacces,{couch_app,start,[normal,["/etc/couchdb/default.ini","/etc/couchdb/local.ini"]]}}}},[{couch,start,0,[{file,"couch.erl"},{line,18}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}
    init terminating in do_boot ()

However, though I can run it manually with the correct user now, changing the file ownership hasn't helped me with the system service...