{"action":"created","issue":{"url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/84","repository_url":"https://api.github.com/repos/klaemo/docker-couchdb","labels_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/84/labels{/name}","comments_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/84/comments","events_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/84/events","html_url":"https://github.com/klaemo/docker-couchdb/issues/84","id":182084246,"number":84,"title":"Restarting CouchDB 1.6.1 inside Docker loses sessions","user":{"login":"aeharding","id":2166114,"avatar_url":"https://avatars.githubusercontent.com/u/2166114?v=3","gravatar_id":"","url":"https://api.github.com/users/aeharding","html_url":"https://github.com/aeharding","followers_url":"https://api.github.com/users/aeharding/followers","following_url":"https://api.github.com/users/aeharding/following{/other_user}","gists_url":"https://api.github.com/users/aeharding/gists{/gist_id}","starred_url":"https://api.github.com/users/aeharding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeharding/subscriptions","organizations_url":"https://api.github.com/users/aeharding/orgs","repos_url":"https://api.github.com/users/aeharding/repos","events_url":"https://api.github.com/users/aeharding/events{/privacy}","received_events_url":"https://api.github.com/users/aeharding/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-10-10T18:38:46Z","updated_at":"2016-10-10T23:13:25Z","closed_at":null,"body":"Hello,\r\n\r\nI'm using this image with CouchDB 1.6.1.\r\n\r\nWhen I restart the image, I have database records persisted, but I seem to be logged out (my session is not preserved).\r\n\r\nWhen running CouchDB natively on my machine, restarting preserves sessions.\r\n\r\nIf it is possible to preserve sessions across restarts? If so, is it a simple directory that I need to make a volume (along with the current directory `/usr/local/var/lib/couchdb`)?\r\n\r\nWould it make sense to make a PR to make this default functionality (add the volume directory) if this is so?\r\n\r\nThank you!\r\nAlex"},"comment":{"url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/comments/252770571","html_url":"https://github.com/klaemo/docker-couchdb/issues/84#issuecomment-252770571","issue_url":"https://api.github.com/repos/klaemo/docker-couchdb/issues/84","id":252770571,"user":{"login":"aeharding","id":2166114,"avatar_url":"https://avatars.githubusercontent.com/u/2166114?v=3","gravatar_id":"","url":"https://api.github.com/users/aeharding","html_url":"https://github.com/aeharding","followers_url":"https://api.github.com/users/aeharding/followers","following_url":"https://api.github.com/users/aeharding/following{/other_user}","gists_url":"https://api.github.com/users/aeharding/gists{/gist_id}","starred_url":"https://api.github.com/users/aeharding/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aeharding/subscriptions","organizations_url":"https://api.github.com/users/aeharding/orgs","repos_url":"https://api.github.com/users/aeharding/repos","events_url":"https://api.github.com/users/aeharding/events{/privacy}","received_events_url":"https://api.github.com/users/aeharding/received_events","type":"User","site_admin":false},"created_at":"2016-10-10T23:13:25Z","updated_at":"2016-10-10T23:13:25Z","body":"New twist: It worked! Kinda. Since the admin set via environment variable gets a new hash each time (couchdb takes plaintext and computes `-pbkdf2-`, which is not the same each time), and the cookie is based off of SHA1(secret + username + passwordhash), the admin cookie will not be valid.\r\n\r\nHowever, since those in the `_user` table have their `-pbkdf2-` hash persisted, they stay logged in!\r\n\r\nJust documenting this in case someone stumbles upon the same issue. 🙂"}}
{"actor":{"display_login":"aeharding"}}