{"action":"opened","issue":{"url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1502","repository_url":"https://api.github.com/repos/mozilla/fxa-auth-server","labels_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1502/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1502/comments","events_url":"https://api.github.com/repos/mozilla/fxa-auth-server/issues/1502/events","html_url":"https://github.com/mozilla/fxa-auth-server/issues/1502","id":182809390,"number":1502,"title":"vapid key creation only created on mysql start?","user":{"login":"shane-tomlinson","id":848085,"avatar_url":"https://avatars.githubusercontent.com/u/848085?v=3","gravatar_id":"","url":"https://api.github.com/users/shane-tomlinson","html_url":"https://github.com/shane-tomlinson","followers_url":"https://api.github.com/users/shane-tomlinson/followers","following_url":"https://api.github.com/users/shane-tomlinson/following{/other_user}","gists_url":"https://api.github.com/users/shane-tomlinson/gists{/gist_id}","starred_url":"https://api.github.com/users/shane-tomlinson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shane-tomlinson/subscriptions","organizations_url":"https://api.github.com/users/shane-tomlinson/orgs","repos_url":"https://api.github.com/users/shane-tomlinson/repos","events_url":"https://api.github.com/users/shane-tomlinson/events{/privacy}","received_events_url":"https://api.github.com/users/shane-tomlinson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T14:42:33Z","updated_at":"2016-10-13T14:42:33Z","closed_at":null,"body":"I did a fresh install of fxa-local-dev on a linux box, when I went to start the servers the auth-server kept stopping. Looking at the logs, I see this error:\r\n\r\n```\r\nauth-server key server PORT 9000-2 (err): fxa-auth-server.CRITICAL: undefined Error: Cannot find module '/home/shane/development/fxa-local-dev/fxa-auth-server/config/vapid-keys.json'\r\nauth-server key server PORT 9000-2 (err):     at Function.Module._resolveFilename (module.js:325:15)\r\nauth-server key server PORT 9000-2 (err):     at Function.Module._load (module.js:276:25)\r\nauth-server key server PORT 9000-2 (err):     at Function._load (/home/shane/development/fxa-local-dev/node_modules/pm2/node_modules/pmx/lib/transaction.js:62:21)\r\nauth-server key server PORT 9000-2 (err):     at Module.require (module.js:353:17)\r\nauth-server key server PORT 9000-2 (err):     at require (internal/module.js:12:17)\r\nauth-server key server PORT 9000-2 (err):     at module.exports (/home/shane/development/fxa-local-dev/fxa-auth-server/lib/push.js:92:21)\r\nauth-server key server PORT 9000-2 (err):     at module.exports (/home/shane/development/fxa-local-dev/fxa-auth-server/lib/routes/index.js:28:32)\r\nauth-server key server PORT 9000-2 (err):     at DB.connect.done.log.error.op (/home/shane/development/fxa-local-dev/fxa-auth-server/bin/key_server.js:102:52)\r\nauth-server key server PORT 9000-2 (err):     at tryCatcher (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/util.js:26:23)\r\nauth-server key server PORT 9000-2 (err):     at Promise._settlePromiseFromHandler (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/promise.js:507:31)\r\nauth-server key server PORT 9000-2 (err):     at Promise._settlePromiseAt (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/promise.js:581:18)\r\nauth-server key server PORT 9000-2 (err):     at Promise._settlePromises (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/promise.js:697:14)\r\nauth-server key server PORT 9000-2 (err):     at Async._drainQueue (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/async.js:123:16)\r\nauth-server key server PORT 9000-2 (err):     at Async._drainQueues (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/async.js:133:10)\r\nauth-server key server PORT 9000-2 (err):     at Immediate.Async.drainQueues [as _onImmediate] (/home/shane/development/fxa-local-dev/fxa-auth-server/node_modules/bluebird/js/main/async.js:15:14)\r\nauth-server key server PORT 9000-2 (err):     at processImmediate [as _immediateCallback] (timers.js:383:17)\r\n\r\n[PM2] Streaming realtime logs for [2] process \r\n\r\n```\r\n\r\n@vbudhram helped me by pointing me to https://github.com/mozilla/fxa-auth-server/blob/6e6b28c7a146ecfdcf9c134a7ebb6e76c34f2195/scripts/start-local-mysql.sh#L6.\r\n\r\nIf we use the in memory server, creating the keys from start-local-mysql doesn't generate the keys?"}}
{"actor":{"display_login":"shane-tomlinson"}}