adrienverge opened a new issue #1550: Replication fails with 401 since 2.2.0 URL: https://github.com/apache/couchdb/issues/1550 Hi, After updating to CouchDB 2.2.0, replication stops working and logs show the following line: ``` [notice] 2018-08-09T10:46:14.759423Z [email protected] <0.9646.0> 332c814281 localhost:15984 127.0.0.1 undefined POST /_session 401 ok 1 ``` It may be related to https://github.com/apache/couchdb/pull/1462. - What works: - Logging in with Fauxton, listing databases, creating a database, etc. - ``` curl -X PUT -u root:password http://127.0.0.1:15984/new_db ``` - What doesn't work: - Initiating a local replication with Fauxton, even when providing credentials for both source and target. State stays "retrying", and logs show errors 401. - ``` curl -X POST -u root:password http://127.0.0.1:15984/_replicate \ -H "Content-Type: application/json" \ -d '{"source":"existing_db", "target":"new_db"}' ``` fails with: ``` {"error":"replication_auth_error","reason":"{session_request_unauthorized,\"http://127.0.0.1:15984/_session\",\"root\"}"} ``` - Same with the Python client. For info, I use a 3-node cluster on Fedora. Replication always worked (from 2.0.0-beta to 2.1.2). My `local.d/e2e.ini` contains: ```ini [chttpd] require_valid_user = true ... [cors] credentials = true ... [couch_httpd_auth] allow_persistent_cookies = true secret = j6jq3yJPpPamLLbRzA5Fo0uHyjtV7rDL [admins] root = password ... ``` I'd be glad to help by providing more details!
---------------------------------------------------------------- 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: [email protected] With regards, Apache Git Services
