ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
489 stars 90 forks source link

Error adding a 'reporter' user #22

Closed ccfiel closed 11 years ago

ccfiel commented 11 years ago

Hello I have followed the instruction how to install acralyzer but I was stuck in adding a 'report' user. Every time I create a report user this is the error displayed {"error":"forbidden","reason":"Doc ID must be of the form org.couchdb.user:name"}

this is the command I executed to add report user: curl -X PUT -u adminuser:adminpassword http://tigito.iriscouch.com:80/_users/org.couchdb.user:ccfiel -d '{"name":"Chris", "password":"qwerty", "roles":["reporter", "reader"], "type":"user"}' -H "Content-Type: application/json"

I am using Iriscouch services for my couchDB. Any ideas what went wrong?

Chris Ian

halkeye commented 11 years ago

I got confused by that too. Its a slightly cryptic couchdb error message. The name field and the userid must match. Name is actually username, not full name.

Try curl -X PUT -u adminuser:adminpassword http://tigito.iriscouch.com:80/_users/org.couchdb.user:ccfiel -d '{"name":"ccfiel", "password":"qwerty", "roles":["reporter", "reader"], "type":"user"}' -H "Content-Type: application/json"

I plan to try and add the ability to add users through acralyzer asap. Unless @KevinGaudin gets to it first.

ccfiel commented 11 years ago

@halkeye Thanks it works!! :+1:

KevinGaudin commented 11 years ago

I have updated the wiki pages with [newusername] in both the user id and name.