{"action":"created","issue":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/681","repository_url":"https://api.github.com/repos/couchbase/couchbase-lite-net","labels_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/681/labels{/name}","comments_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/681/comments","events_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/681/events","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/681","id":163744312,"number":681,"title":"Cannot open SQLCipher db for LiteServ","user":{"login":"sethrosetter","id":1365736,"avatar_url":"https://avatars.githubusercontent.com/u/1365736?v=3","gravatar_id":"","url":"https://api.github.com/users/sethrosetter","html_url":"https://github.com/sethrosetter","followers_url":"https://api.github.com/users/sethrosetter/followers","following_url":"https://api.github.com/users/sethrosetter/following{/other_user}","gists_url":"https://api.github.com/users/sethrosetter/gists{/gist_id}","starred_url":"https://api.github.com/users/sethrosetter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sethrosetter/subscriptions","organizations_url":"https://api.github.com/users/sethrosetter/orgs","repos_url":"https://api.github.com/users/sethrosetter/repos","events_url":"https://api.github.com/users/sethrosetter/events{/privacy}","received_events_url":"https://api.github.com/users/sethrosetter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-04T21:26:30Z","updated_at":"2016-07-06T21:16:09Z","closed_at":null,"body":"I'm not sure if this is user error or a bug. \r\n\r\nSteps to reproduce (Using LS 1.3.0-95):\r\n\r\n1. Start LiteServ\r\n```\r\nmono  LiteServ.exe --port 59840 --storage SQLite —dir dbs --dbpassword  ls_db=pass --dbpassword  ls_db1=pass --dbpassword  ls_db2=pass\r\n```\r\n2. Add the db\r\n```\r\nhttp PUT http://localhost:59840/ls_db\r\n```\r\n```\r\n{\r\n    \"ok\": true\r\n}\r\n```\r\n3. Get the db\r\n```\r\nhttp http://localhost:59840/ls_db\r\n```\r\n```\r\n{\r\n    \"error\": \"Database error!\",\r\n    \"status\": 500\r\n}\r\n```\r\n\r\n\r\n\r\nLog output\r\n```\r\nINFO) LISTENER (CouchbaseLiteTcpListener): Received new plain local connection\r\nINFO) ROUTER (CouchbaseLiteRouter): Processing GET request to http://localhost:59840/ls_db\r\nINFO) TASK SCHEDULING (SingleTaskThreadpoolScheduler): New scheduler created\r\nINFO) DATABASE (Database): Opening Database[/Users/sethrosetter/Code/mobile-testkit/dbs/ls_db.cblite2]\r\nINFO) DATABASE (Database): Using Couchbase.Lite.Storage.SQLCipher.SqliteCouchStore for SQLite implementation\r\nINFO) DATABASE (Database): Using Couchbase.Lite.Storage.ForestDB.ForestDBCouchStore for ForestDB implementation\r\nINFO) DATABASE (Database): Using Couchbase.Lite.Storage.SQLCipher.SqliteCouchStore for db at /Users/sethrosetter/Code/mobile-testkit/dbs/ls_db.cblite2; upgrade=False\r\nINFO) TASK SCHEDULING (SingleThreadScheduler): New single thread task scheduler created with private thread\r\nINFO) DATABASE (SqlitePCLRawStorageEngine): Open /Users/sethrosetter/Code/mobile-testkit/dbs/ls_db.cblite2/db.sqlite3 (flags=2162694)\r\nERROR) DATABASE (SqlitePCLRawStorageEngine): Decryption of database failed, throwing CouchbaseLiteException (Unauthorized)\r\nWARN) DATABASE (SqlitePCLRawStorageEngine): Error opening SQLite storage engine, rethrowing...\r\nINFO) TASK SCHEDULING (SingleThreadScheduler): Scheduler finished, run loop exiting\r\nERROR) DATABASE (Database): Failed to open storage for database, rethrowing...\r\nWARN) LISTENER (DatabaseMethods): Exception in PerformLogicWithDatabase, returning 500:\r\nCouchbase.Lite.CouchbaseLiteException: Decryption of database failed\r\n  at Couchbase.Lite.Storage.SQLCipher.SqlitePCLRawStorageEngine.Open (System.String path, Boolean readOnly, System.String schema, Couchbase.Lite.Store.SymmetricKey encryptionKey) <0x2fe38f0 + 0x001ab> in <filename unknown>:0\r\nINFO) ROUTER (CouchbaseLiteRouter): Processing response for /ls_db...\r\nINFO) ROUTER (CouchbaseLiteResponse): Response closed\r\nINFO) ROUTER (CouchbaseLiteRouter): Response successfully processed!\r\n```"},"comment":{"url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/comments/230909413","html_url":"https://github.com/couchbase/couchbase-lite-net/issues/681#issuecomment-230909413","issue_url":"https://api.github.com/repos/couchbase/couchbase-lite-net/issues/681","id":230909413,"user":{"login":"borrrden","id":2470288,"avatar_url":"https://avatars.githubusercontent.com/u/2470288?v=3","gravatar_id":"","url":"https://api.github.com/users/borrrden","html_url":"https://github.com/borrrden","followers_url":"https://api.github.com/users/borrrden/followers","following_url":"https://api.github.com/users/borrrden/following{/other_user}","gists_url":"https://api.github.com/users/borrrden/gists{/gist_id}","starred_url":"https://api.github.com/users/borrrden/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/borrrden/subscriptions","organizations_url":"https://api.github.com/users/borrrden/orgs","repos_url":"https://api.github.com/users/borrrden/repos","events_url":"https://api.github.com/users/borrrden/events{/privacy}","received_events_url":"https://api.github.com/users/borrrden/received_events","type":"User","site_admin":false},"created_at":"2016-07-06T21:16:09Z","updated_at":"2016-07-06T21:16:09Z","body":"@sethrosetter  Has this been resolved?"}}
{"actor":{"display_login":"borrrden"}}