You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by GitBox <gi...@apache.org> on 2020/01/08 22:04:09 UTC

[GitHub] [couchdb] nicknaychov opened a new issue #2428: DB replication to cluster gives session_request_failed

nicknaychov opened a new issue #2428: DB replication to cluster gives session_request_failed
URL: https://github.com/apache/couchdb/issues/2428
 
 
   [NOTE]: # ( ^^ Provide a general summary of the issue in the title above. ^^ )
   
   ## Description
   It used to work before, but it looks after the latest update gives that error.
   The weird thing is that if I replicate to single node rather than to cluster it does work. I mean if the node to which I am replicating to (the localhost) is configured as single node it works. But I have cluster.
   I read that there is some changes with session authorization plugins so I wonder if that might be the problem. I changed the auth_plugin of the source IP to couch_replicator_auth_noop but still same issue. Source and the localhost are both running 2.3.1.
   Increasing of replicator connection_timeout does not help.
   The cluster to which I am trying to replicate is on 4 nodes with n=3 and z=2.
   I am fighting with this issue over a 2 days and no luck. Please help. 
   ## Steps to Reproduce
   ` curl -s -X POST http://admin:xxxxxx@localhost:5984/_replicate -d '{"source":"http://admin:xxxxxx@remote_ip:5984/account%2F09%2F4d%2F1247ef79204af1b68484686808e1", "target":"http://admin:xxxxx@localhost:5984/account%2F09%2F4d%2F1247ef79204af1b68484686808e1"}' -H "Content-Type: application/json"`
   `{"error":"replication_auth_error","reason":"{session_request_failed,\"http://98.143.104.135:5984/_session\",\"admin\",\n                        req_timedout}"}`
   [NOTE]: # ( Include commands to reproduce, if possible. curl is preferred. )
   
   ## Expected Behaviour
   
   [NOTE]: # ( Tell us what you expected to happen. )
   
   ## Your Environment
   
   ```
   {"couchdb":"Welcome","version":"2.3.1","git_sha":"c298091a4","uuid":"b03848974d6bc7d697b22199cb9f0db0","features":["pluggable-storage-engines","scheduler"],"vendor":{"name":"The Apache Software Foundation"}}
   ```
   this is how a DB usually look 
   `curl http://admin:xxxxxx@98.143.104.135:5984/account%2F09%2F4d%2F1247ef79204af1b68484686808e1-201905
   {"db_name":"account/09/4d/1247ef79204af1b68484686808e1-201905","purge_seq":"0-g1AAAAFTeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFOSA5BMiv___39WIgMedXksQJLhAJACKr1PjNoGiNr5-NUmKYDstyfS_gcQM4lSuwCidj8B-xNA9tcTNDORIUkeoigLAOjtXo4","update_seq":"28-g1AAAAFTeJzLYWBg4MhgTmEQTM4vTc5ISXIwNDLXMwBCwxygFFMiQ5L8____sxKZ8ChKUgCSSfZgdfgMS3IAqYsnbF4CSF09WB0bHnV5LECSoQFIAZXOx28mRO0CiNr9WYmMBNUegKi9n5XIQlDtA4haoHuZswBw6l6q","sizes":{"file":226840,"external":50887,"active":34167},"other":{"data_size":50887},"doc_del_count":0,"doc_count":28,"disk_size":226840,"disk_format_version":7,"data_size":34167,"compact_running":false,"cluster":{"q":8,"n":1,"w":1,"r":1},"instance_start_time":"0"}`
   
   * CouchDB version used:
   * Browser name and version:
   * Operating system and version:
   
   ## Additional Context
   The only thing in localhost log is:
   [debug] 2020-01-08T20:19:40.414467Z couchdb@pbx1-z1.brightpbx.ca <0.3476.0> 58075f119d no record of user admin
   [notice] 2020-01-08T20:20:13.897351Z couchdb@pbx1-z1.brightpbx.ca <0.3476.0> 58075f119d localhost:5984 127.0.0.1 admin POST /_replicate 500 ok 33486
   
   But admin is configured:
   ` curl http://admin:xxxxxxx@localhost:5984/_node/_local/_config/admins/admin
   "-pbkdf2-92eb0df2xxxxxxxxxxxxxx,81c547fdde17b1df6391f41ebec039a3,10"`
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] nicknaychov commented on issue #2428: DB replication to cluster gives session_request_failed

Posted by GitBox <gi...@apache.org>.
nicknaychov commented on issue #2428: DB replication to cluster gives session_request_failed
URL: https://github.com/apache/couchdb/issues/2428#issuecomment-572779623
 
 
   As just noted on #2386 z param is not anymore supported in Couch. I am closing this an will try to replicate using placement param

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [couchdb] nicknaychov closed issue #2428: DB replication to cluster gives session_request_failed

Posted by GitBox <gi...@apache.org>.
nicknaychov closed issue #2428: DB replication to cluster gives session_request_failed
URL: https://github.com/apache/couchdb/issues/2428
 
 
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services