{"action":"opened","issue":{"url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/55","repository_url":"https://api.github.com/repos/klaemo/docker-couchdb","labels_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/55/labels{/name}","comments_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/55/comments","events_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/55/events","html_url":"https://github.com/klaemo/docker-couchdb/issues/55","id":155706652,"number":55,"title":"After restarting a docker container, CouchDB replication does not replicate between the databases","user":{"login":"paulherlihy","id":18682433,"avatar_url":"https://avatars.githubusercontent.com/u/18682433?v=3","gravatar_id":"","url":"https://api.github.com/users/paulherlihy","html_url":"https://github.com/paulherlihy","followers_url":"https://api.github.com/users/paulherlihy/followers","following_url":"https://api.github.com/users/paulherlihy/following{/other_user}","gists_url":"https://api.github.com/users/paulherlihy/gists{/gist_id}","starred_url":"https://api.github.com/users/paulherlihy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulherlihy/subscriptions","organizations_url":"https://api.github.com/users/paulherlihy/orgs","repos_url":"https://api.github.com/users/paulherlihy/repos","events_url":"https://api.github.com/users/paulherlihy/events{/privacy}","received_events_url":"https://api.github.com/users/paulherlihy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-05-19T10:43:00Z","updated_at":"2016-05-19T10:43:00Z","closed_at":null,"body":"Created replication between Host A database DB1 and Host B database DB1\r\n`\r\ncurl -vX POST http://hostA:5588/_replicate -d '{\"source\":\"http://hostA:5588/db1\",\"target\":\"http://hostB:5599/db1\", \"create_target\":true,\"continuous\":true}' -H \"Content-Type: application/json\"`\r\n\r\nReplication completed and  both database are consistent.\r\nAny updates on Host A are pushed to Host B as expected. \r\nIf I stop and restart the docker container for Host A and then carry out updates on Host A database DB1. These updates are not replicated to Host B database DB1\r\n\r\nAttaching the local.ini used to build the docker images for Host A and Host B\r\n\r\n```\r\n[couchdb]\r\n;max_document_size = 4294967296 ; bytes\r\nuuid = bde13c5e11ca49a9c6d1931738ac2f11\r\ndatabase_dir = /usr/local/var/lib/couchdb\r\n; view_index_dir = /usr/local/var/lib/couchdb\r\n\r\n[httpd]\r\nport = 5588\r\nbind_address = 0.0.0.0\r\n; Options for the MochiWeb HTTP server.\r\n;server_options = [{backlog, 128}, {acceptor_pool_size, 16}]\r\n; For more socket options, consult Erlang's module 'inet' man page.\r\n;socket_options = [{recbuf, 262144}, {sndbuf, 262144}, {nodelay, true}]\r\n\r\n; Uncomment next line to trigger basic-auth popup on unauthorized requests.\r\n;WWW-Authenticate = Basic realm=\"administrator\"\r\n\r\n; Uncomment next line to set the configuration modification whitelist. Only\r\n; whitelisted values may be changed via the /_config URLs. To allow the admin\r\n; to change this value over HTTP, remember to include {httpd,config_whitelist}\r\n; itself. Excluding it from the list would require editing this file to update\r\n; the whitelist.\r\n;config_whitelist = [{httpd,config_whitelist}, {log,level}, {etc,etc}]\r\n\r\n[query_servers]\r\n;nodejs = /usr/local/bin/couchjs-node /path/to/couchdb/share/server/main.js\r\n\r\n\r\n[httpd_global_handlers]\r\n;_google = {couch_httpd_proxy, handle_proxy_req, <<\"http://www.google.com\">>}\r\n\r\n[couch_httpd_auth]\r\n; If you set this to true, you should also uncomment the WWW-Authenticate line\r\n; above. If you don't configure a WWW-Authenticate header, CouchDB will send\r\n; Basic realm=\"server\" in order to prevent you getting logged out.\r\n; require_valid_user = false\r\n\r\n[log]\r\nlevel = debug\r\nfile = /usr/local/var/log/couchdb/couch.log\r\n; file = /usr/local/var/lib/couchdb/log/couch.log\r\n\r\n[log_level_by_module]\r\n; In this section you can specify any of the four log levels 'none', 'info',\r\n; 'error' or 'debug' on a per-module basis. See src/*/*.erl for various\r\n; modules.\r\n;couch_httpd = error\r\n\r\n[replicator]\r\n; Maximum replicaton retry count can be a non-negative integer or \"infinity\".\r\nmax_replication_retry_count = infinity\r\n; More worker processes can give higher network throughput but can also\r\n; imply more disk and network IO.\r\nworker_processes = 4\r\n; With lower batch sizes checkpoints are done more frequently. Lower batch sizes\r\n; also reduce the total amount of used RAM memory.\r\nworker_batch_size = 5000\r\n; Maximum number of HTTP connections per replication.\r\nhttp_connections = 20\r\nuse_checkpoints = true\r\nsocket_options = [{keepalive, true}, {nodelay, true}] \r\n```"}}