cozy / cozy-docs

Deprecated - Go to https://github.com/cozy/cozy-docs-v3
http://docs.cozy.io
19 stars 40 forks source link

step by step doc : admin creation in couchdb does not work #265

Closed nsteinmetz closed 8 years ago

nsteinmetz commented 8 years ago

Hi,

I have this as result:

curl -s -X PUT 127.0.0.1:5984/_config/admins/$(head -n1 /etc/cozy/couchdb.login) -d "\"$(tail -n1 /etc/cozy/couchdb.login)\""
{"error":"error","reason":"eacces"}

Thanks, Nicolas

clochix commented 8 years ago

Hi @nsteinmetz,

eaccess often means there's an access right problem. Could you have a look at CouchDB's logs (/var/log/couchdb/couch.log) and and look for error messages trying to access some file?

nsteinmetz commented 8 years ago

Looks it was an issue with permissions on files.

Re-applying:

chown -R couchdb:couchdb /usr/local/{lib,etc}/couchdb /usr/local/var/{lib,log,run}/couchdb
service couchdb restart

And it works :)