peterfarrell commented on issue #1851:
URL: https://github.com/apache/couchdb/issues/1851#issuecomment-2868142019

   I know this issue is closed, but leaving a breadcrumb for those that come 
behind me since this is the top search result.
   
   We recently encountered the error described on a CouchDb instance that was 
replicating from a "primary". We were seeing 100k errors or more per hour.  
Replication was still working.
   
   ```
   couch_replicator_auth_session : Could not parse cookie from response headers 
cookie_format_invalid
   ```
   
   This was CouchDB 3.3.3 which was hosted on OpenShift Container Platform 
(OCP).  We figured out that OCP's router (HAProxy) was the cause as it was 
adding a cookie to enable "sticky" sessions.
   
   We were able to disable the cookie behavior using an annotation on our 
route. This is the patch file:
   
   ```yaml
   metadata:
     annotations:
       haproxy.router.openshift.io/disable_cookies: "true"
   # Cluster route must disable session cookie from OCP HAProxy Router
   # Otherwise the secondary CouchDB instance will have many failures in the 
log file
   # couch_replicator_auth_session : Could not parse cookie from response 
headers cookie_format_invalid
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to