{"action":"closed","issue":{"url":"https://api.github.com/repos/learningequality/ka-lite/issues/4802","repository_url":"https://api.github.com/repos/learningequality/ka-lite","labels_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4802/labels{/name}","comments_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4802/comments","events_url":"https://api.github.com/repos/learningequality/ka-lite/issues/4802/events","html_url":"https://github.com/learningequality/ka-lite/issues/4802","id":130542091,"number":4802,"title":"No content database on first run of dist","user":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/learningequality/ka-lite/labels/release%20blocker","name":"release blocker","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"benjaoming","id":374612,"avatar_url":"https://avatars.githubusercontent.com/u/374612?v=3","gravatar_id":"","url":"https://api.github.com/users/benjaoming","html_url":"https://github.com/benjaoming","followers_url":"https://api.github.com/users/benjaoming/followers","following_url":"https://api.github.com/users/benjaoming/following{/other_user}","gists_url":"https://api.github.com/users/benjaoming/gists{/gist_id}","starred_url":"https://api.github.com/users/benjaoming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjaoming/subscriptions","organizations_url":"https://api.github.com/users/benjaoming/orgs","repos_url":"https://api.github.com/users/benjaoming/repos","events_url":"https://api.github.com/users/benjaoming/events{/privacy}","received_events_url":"https://api.github.com/users/benjaoming/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/learningequality/ka-lite/milestones/50","html_url":"https://github.com/learningequality/ka-lite/milestones/0.16.0","labels_url":"https://api.github.com/repos/learningequality/ka-lite/milestones/50/labels","id":1227915,"number":50,"title":"0.16.0","description":"","creator":{"login":"aronasorman","id":191955,"avatar_url":"https://avatars.githubusercontent.com/u/191955?v=3","gravatar_id":"","url":"https://api.github.com/users/aronasorman","html_url":"https://github.com/aronasorman","followers_url":"https://api.github.com/users/aronasorman/followers","following_url":"https://api.github.com/users/aronasorman/following{/other_user}","gists_url":"https://api.github.com/users/aronasorman/gists{/gist_id}","starred_url":"https://api.github.com/users/aronasorman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aronasorman/subscriptions","organizations_url":"https://api.github.com/users/aronasorman/orgs","repos_url":"https://api.github.com/users/aronasorman/repos","events_url":"https://api.github.com/users/aronasorman/events{/privacy}","received_events_url":"https://api.github.com/users/aronasorman/received_events","type":"User","site_admin":false},"open_issues":69,"closed_issues":236,"state":"open","created_at":"2015-07-27T17:17:39Z","updated_at":"2016-02-23T20:15:06Z","due_on":"2015-12-30T08:00:00Z","closed_at":null},"comments":11,"created_at":"2016-02-02T01:43:08Z","updated_at":"2016-02-23T20:15:06Z","closed_at":"2016-02-23T20:15:06Z","body":"Creating a dist and installing it, renders a KA Lite without a content db:\r\n\r\n```\r\nmake dist\r\nmkvirtualenv test\r\nworkon test\r\npip install dist/ka-lite-0-16a1.tar.gz\r\n```\r\n\r\n@rtibbles I can try fixing this if you give me a hint about what's wrong below:\r\n\r\n```\r\n➜  ~  kalite start\r\nRunning 'kalite start' as daemon (system service)\r\n\r\nStand by while the server loads its data...\r\n\r\nError reading secret key file. Generating one now. Error was: [Errno 2] No such file or directory: '.kalite/secretkey.txt'\r\n2016-02-02 02:39:19,419 - INFO:kalite: Setting up KA Lite; this may take a few minutes; please wait!\r\n\r\n                                     \r\n   _   __  ___    _     _ _          \r\n  | | / / / _ \\  | |   (_) |         \r\n  | |/ / / /_\\ \\ | |    _| |_ ___    \r\n  |    \\ |  _  | | |   | | __/ _ \\   \r\n  | |\\  \\| | | | | |___| | ||  __/   \r\n  \\_| \\_/\\_| |_/ \\_____/_|\\__\\___|   \r\n                                     \r\nhttps://learningequality.org/ka-lite/\r\n                                     \r\n         version 0.16.a1\r\n                                     \r\nWARNING:root:It's recommended that you install Python version 2.7.9. Your version is: 2.7.6\r\n\r\nCleaning *pyc files (if writable) from: .virtualenvs/kalite_pip/share/kalite/dist-packages\r\nCleaning *pyc files (if writable) from: .virtualenvs/kalite_pip/share/kalite/python-packages\r\n(Re)moving database file to temp location, starting clean install. Recovery location: /tmp/tmpuoTjGT\r\nCopying database file from .virtualenvs/kalite_pip/lib/python2.7/site-packages/kalite/database/data.sqlite to .kalite/database/data.sqlite\r\nFound bundled assessment items\r\nGenerating 2048-bit RSA encryption key (may take a few minutes; please wait)...\r\nDone!\r\nDevice 'test' has been successfully initialized.\r\nAnnotating availability of all content, checking for content in this directory: (.kalite/content)\r\n2016-02-02 02:39:23,478 - INFO:kalite: Annotating content for language: en, channel: khan\r\nINFO:kalite:Annotating content for language: en, channel: khan\r\n2016-02-02 02:39:23,479 - ERROR:kalite: No content database file found\r\nERROR:kalite:No content database file found\r\n```"}}