{"action":"created","issue":{"url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/90","repository_url":"https://api.github.com/repos/NuSkooler/enigma-bbs","labels_url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/90/labels{/name}","comments_url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/90/comments","events_url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/90/events","html_url":"https://github.com/NuSkooler/enigma-bbs/issues/90","id":173748237,"number":90,"title":"ENiGMA throws a database error on first launch","user":{"login":"davestephens","id":668464,"avatar_url":"https://avatars.githubusercontent.com/u/668464?v=3","gravatar_id":"","url":"https://api.github.com/users/davestephens","html_url":"https://github.com/davestephens","followers_url":"https://api.github.com/users/davestephens/followers","following_url":"https://api.github.com/users/davestephens/following{/other_user}","gists_url":"https://api.github.com/users/davestephens/gists{/gist_id}","starred_url":"https://api.github.com/users/davestephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davestephens/subscriptions","organizations_url":"https://api.github.com/users/davestephens/orgs","repos_url":"https://api.github.com/users/davestephens/repos","events_url":"https://api.github.com/users/davestephens/events{/privacy}","received_events_url":"https://api.github.com/users/davestephens/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-08-29T10:54:12Z","updated_at":"2016-09-01T12:34:12Z","closed_at":null,"body":"**Short problem description**\r\nThe first time ENiGMA is run an error is thrown about missing database tables, and then exits. When relaunching, it goes away.\r\n\r\n````\r\nError initializing: { [Error: SQLITE_ERROR: no such table: system_stat] errno: 1, code: 'SQLITE_ERROR' }\r\nError initializing: { [Error: SQLITE_ERROR: no such table: system_stat] errno: 1, code: 'SQLITE_ERROR' }\r\n````\r\n\r\n**Environment**\r\n- Using Node 4.4, occurs on multiple 4.4.x versions\r\n- `npm install` reports success\r\n- Actual Node.js version (`node --version`): 4.4.7\r\n- Operating system: Linux david-ThinkPad-T410 4.4.0-34-generic #53-Ubuntu SMP Wed Jul 27 16:06:39 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux. Also occurs on Raspberry Pi Raspbian, so not suspected to be OS specific.\r\n- Revision: b80cd18 (occured prior to this revision)\r\n\r\n**Expected behavior**\r\nEnigma should launch with no errors on first run.\r\n\r\n**Actual behavior**\r\nEnigma starts, then immediately exits with the following error:\r\n````\r\nError initializing: { [Error: SQLITE_ERROR: no such table: system_stat] errno: 1, code: 'SQLITE_ERROR' }\r\nError initializing: { [Error: SQLITE_ERROR: no such table: system_stat] errno: 1, code: 'SQLITE_ERROR' }\r\n````\r\n\r\n**Steps to reproduce**\r\nPerform a clean install of Enigma so no database exists, then launch Enigma for the first time."},"comment":{"url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/comments/244064757","html_url":"https://github.com/NuSkooler/enigma-bbs/issues/90#issuecomment-244064757","issue_url":"https://api.github.com/repos/NuSkooler/enigma-bbs/issues/90","id":244064757,"user":{"login":"davestephens","id":668464,"avatar_url":"https://avatars.githubusercontent.com/u/668464?v=3","gravatar_id":"","url":"https://api.github.com/users/davestephens","html_url":"https://github.com/davestephens","followers_url":"https://api.github.com/users/davestephens/followers","following_url":"https://api.github.com/users/davestephens/following{/other_user}","gists_url":"https://api.github.com/users/davestephens/gists{/gist_id}","starred_url":"https://api.github.com/users/davestephens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davestephens/subscriptions","organizations_url":"https://api.github.com/users/davestephens/orgs","repos_url":"https://api.github.com/users/davestephens/repos","events_url":"https://api.github.com/users/davestephens/events{/privacy}","received_events_url":"https://api.github.com/users/davestephens/received_events","type":"User","site_admin":false},"created_at":"2016-09-01T12:34:12Z","updated_at":"2016-09-01T12:34:12Z","body":"Typically I can't reproduce this now, when I could consistently last week. I'm about to do a new install, will see if it happens again..."}}
{"actor":{"display_login":"davestephens"}}