gambolputty commented on issue #741: error "Unauthorized" (401) when loading 
"_security"-doc
URL: https://github.com/apache/couchdb/issues/741#issuecomment-321590559
 
 
   Previously I had CouchDB 1.6 installed and it worked perfectly fine. Then I 
upgraded to 2.1.0, but purged the installation, because I had difficulties 
migrating my old DBs to the my new couch (also replicating failed during the 
"verify installation"-process in Fauxton).
   
   I installed 2.1.0 via `apt-get` as described in the 
[docs](http://docs.couchdb.org/en/2.1.0/install/unix.html#installation-using-the-apache-couchdb-convenience-binary-packages).
   
   Regarding @wohali s questions:
   1. Same results with `require_valid_user` set to `false`.
   2. Values in `/op/couchdb/etc/local.ini` seem to be ignored. Admins are only 
set in  `/op/couchdb/etc/local.d/10-admins.ini`.
   3. It took me just one CURL command to get this behaviour (the one I posted 
above)
   
   ```
   file: /op/couchdb/etc/local.d/10-admins.ini
   
   # Package-introduced administrative user
   [admins]
   admin = 
-pbkdf2-0084184076cdb37e47ea530a6d567caf92b1f0d2,936a4f5d1de5011e70ee7398f2ad26f2,10
   
   [couchdb]
   uuid = 6424d76bc3dd3cd9ab9ef6edfad80786
   
   [couch_httpd_auth]
   secret = 28ae5ff48a6c2cb1052d999f11e71b4f
   
   [httpd]
   enable_cors = true
   allow_jsonp = false
   
   [cors]
   credentials = true
   origins = *
   headers = accept, authorization, content-type, origin, referer
   methods = GET, PUT, POST, HEAD, DELETE
   
   [chttpd]
   bind_address = 0.0.0.0
   port = 5984
   require_valid_user = false
   
   [cluster]
   n = 1
   ```
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to