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 2022/04/05 10:20:47 UTC

[GitHub] [couchdb] sbagati opened a new issue, #3986: Couch DB | Replication Error | replication_auth_error

sbagati opened a new issue, #3986:
URL: https://github.com/apache/couchdb/issues/3986

   We are encountering below error in replicating "services" database 
   
   Source standalone : couchstagedb1.bmi.expertcity.com
   Target cluster: couchstagedb.aor.expertcity.com
   
   [root@couchstagedb1.las ~]# /opt/ec/couchdb/couchdb_replication_restart.rb -u admin -p xxxxxx -t couchstagedb.aor.expertcity.com -c services -s
   Replication is in error state the error is:
   {replication_auth_error,
       {session_request_failed,
           "http://couchstagedb1.bmi.expertcity.com:5984/_session","admin",
           req_timedout}}
   Replication already running on couchstagedb.aor.expertcity.com for services from couchstagedb1.las.expertcity.com
   Replication already running on couchstagedb.aor.expertcity.com for services from couchstagedb.ava.expertcity.com
   
   Debug mode logs : 
   
   
   [error] 2022-04-04T10:21:59.915084Z couchdb@couchstagedb2.aor.expertcity.com <0.1089.0> -------- couch_replicator_httpc: auth plugin initialization failed "http://admin:*****@couchstagedb1.bmi.expertcity.com:5984/services/" {session_request_failed,"http://couchstagedb1.bmi.expertcity.com:5984/_session","admin",req_timedout}
   [error] 2022-04-04T10:21:59.915268Z couchdb@couchstagedb2.aor.expertcity.com <0.1089.0> -------- throw:{replication_auth_error,{session_request_failed,"http://couchstagedb1.bmi.expertcity.com:5984/_session","admin",req_timedout}}: Replication bba30bcc7ff2d1566ee7413473142bce+continuous failed to start "http://admin:*****@couchstagedb1.bmi.expertcity.com:5984/services/" -> "http://admin:*****@couchstagedb.aor.expertcity.com:5984/services/" doc <<"shards/00000000-7fffffff/_replicator.1605555927">>:<<"services_couchstagedb1_bmi_expertcity_com">> stack:[{couch_replicator_httpc,setup,1,[{file,"src/couch_replicator_httpc.erl"},{line,59}]},{couch_replicator_api_wrap,db_open,3,[{file,"src/couch_replicator_api_wrap.erl"},{line,74}]}]
   
   Please help


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] sbagati commented on issue #3986: Couch DB | Replication Error | replication_auth_error

Posted by GitBox <gi...@apache.org>.
sbagati commented on issue #3986:
URL: https://github.com/apache/couchdb/issues/3986#issuecomment-1090241963

   Thanks a lot @nickva for the help and support after introducing the parameter in local.ini, issue got resolved
   [replicator]
   auth_plugins = couch_replicator_auth_noop


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] sbagati commented on issue #3986: Couch DB | Replication Error | replication_auth_error

Posted by GitBox <gi...@apache.org>.
sbagati commented on issue #3986:
URL: https://github.com/apache/couchdb/issues/3986#issuecomment-1090287567

   Now the error we are getting is below:
   [root@couchstagedb1.las ~]# /opt/ec/couchdb/couchdb_replication_restart.rb -u admin -p xxxxxxxx -t couchstagedb.aor.expertcity.com -c services -s
   Replication is in error state the error is:
   {http_request_failed,"GET",
                        "http://admin:*****@couchstagedb1.bmi.expertcity.com:5984/services/",
                        {error,{error,{conn_failed,{error,etimedout}}}}}
   [root@couchstagedb1.las ~]# /opt/ec/couchdb/couchdb_replication_check.rb -u admin -p xxxxxxx couchstagedb1.bmi.expertcity.com  couchstagedb.aor.expertcity.com services
   process_status:0
   document_mismatches:-1
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva commented on issue #3986: Couch DB | Replication Error | replication_auth_error

Posted by GitBox <gi...@apache.org>.
nickva commented on issue #3986:
URL: https://github.com/apache/couchdb/issues/3986#issuecomment-1092894123

   @sbagati It looks like the the connection failed with a timeout `{error,{error,{conn_failed,{error,etimedout}}}}}`. It's hard to say why it failed beyond that. Could be a proxy/firewall issue, invalid port, or a resource limitation somewhere perhaps.


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [couchdb] nickva commented on issue #3986: Couch DB | Replication Error | replication_auth_error

Posted by GitBox <gi...@apache.org>.
nickva commented on issue #3986:
URL: https://github.com/apache/couchdb/issues/3986#issuecomment-1089760466

   @sbagati it looks like the replicator cannot make requests to the _session endpoint. It's getting a timeout. Can try logging in on that node and use curl to perform the same request and see if it works. It could be a firewall or proxy in between.
   
   Sometimes proxies can alter or prevent cookie headers from being set properly. In that case could try disabling the session auth and revert to using basic auth for replication:
   
   ```ini
   [replicator]
   auth_plugins = couch_replicator_auth_noop
   ```


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@couchdb.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org