{"action":"created","issue":{"url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/1729","repository_url":"https://api.github.com/repos/mozilla/thimble.mozilla.org","labels_url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/1729/labels{/name}","comments_url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/1729/comments","events_url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/1729/events","html_url":"https://github.com/mozilla/thimble.mozilla.org/issues/1729","id":206948786,"number":1729,"title":"Locales not present when installing via vagrant","user":{"login":"LCartwright","id":942821,"avatar_url":"https://avatars.githubusercontent.com/u/942821?v=3","gravatar_id":"","url":"https://api.github.com/users/LCartwright","html_url":"https://github.com/LCartwright","followers_url":"https://api.github.com/users/LCartwright/followers","following_url":"https://api.github.com/users/LCartwright/following{/other_user}","gists_url":"https://api.github.com/users/LCartwright/gists{/gist_id}","starred_url":"https://api.github.com/users/LCartwright/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LCartwright/subscriptions","organizations_url":"https://api.github.com/users/LCartwright/orgs","repos_url":"https://api.github.com/users/LCartwright/repos","events_url":"https://api.github.com/users/LCartwright/events{/privacy}","received_events_url":"https://api.github.com/users/LCartwright/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-02-11T01:58:53Z","updated_at":"2017-02-11T15:25:35Z","closed_at":null,"body":"I'm attempting to start up thimble for the first time from a fresh clone of master, after running `vagrant up`, requesting http://localhost:3500/ returns a connection reset error from the browser. \r\n\r\nSo looking at the pm2 app summary in the `vagrant up` output, I see that `localize-client` is stopped\r\n```bash\r\n==> default: ┌─────────────────┬────┬──────┬──────┬─────────┬─────────┬────────┬─────┬───────────┬──────────┐\r\n==> default: │ App name        │ id │ mode │ pid  │ status  │ restart │ uptime │ cpu │ mem       │ watching │\r\n==> default: ├─────────────────┼────┼──────┼──────┼─────────┼─────────┼────────┼─────┼───────────┼──────────┤\r\n==> default: │ id              │ 1  │ fork │ 2215 │ online  │ 0       │ 12s    │ 23% │ 27.3 MB   │ disabled │\r\n==> default: │ localize-client │ 3  │ fork │ 2227 │ stopped │ 1       │ 0      │ 0%  │ 0 B       │ disabled │\r\n==> default: │ login           │ 0  │ fork │ 2209 │ online  │ 0       │ 12s    │ 42% │ 21.0 MB   │ disabled │\r\n==> default: │ publish         │ 2  │ fork │ 2221 │ online  │ 0       │ 12s    │ 23% │ 39.9 MB   │ disabled │\r\n==> default: │ thimble         │ 4  │ fork │ 2235 │ online  │ 0       │ 12s    │ 20% │ 47.5 MB   │ enabled  │\r\n==> default: └─────────────────┴────┴──────┴──────┴─────────┴─────────┴────────┴─────┴───────────┴──────────┘\r\n```\r\nDigging into the log file `/home/vagrant/.pm2/logs/localize-client-out.log` shows the following error\r\n```\r\nError: Cannot find module '/vagrant/dist/locales/en_US/messages.json'\r\n    at Function.Module._resolveFilename (module.js:325:15)\r\n    at Function.Module._load (module.js:276:25)\r\n    at Module.require (module.js:353:17)\r\n    at require (internal/module.js:12:17)\r\n    at Object.<anonymous> (/vagrant/scripts/localize-client.js:17:12)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Module.require (module.js:353:17)\r\n```\r\nLikewise there's a similar error in `/home/vagrant/.pm2/logs/thimble-error.log`\r\n```bash\r\nError: ENOENT: no such file or directory, scandir '/vagrant/dist/locales'\r\n    at Error (native)\r\n    at Object.fs.readdirSync (fs.js:808:18)\r\n    at Object.exports.middleware (/vagrant/node_modules/webmaker-i18n/i18n.js:408:28)\r\n    at localize (/vagrant/server/localize.js:13:27)\r\n    at Object.<anonymous> (/vagrant/server/index.js:113:1)\r\n    at Module._compile (module.js:409:26)\r\n    at Object.Module._extensions..js (module.js:416:10)\r\n    at Module.load (module.js:343:32)\r\n    at Function.Module._load (module.js:300:12)\r\n    at Module.require (module.js:353:17)\r\n```\r\nSo it's looking like theres a missing localisation directory, digging around in the repos `package.json` revealed a promising looking script `\"prestart\": \"npm run localize\"`.\r\n\r\n After running this script, success! Thimble has started. \r\n\r\nSo my question is this. Have I missed something from the `README.md`? From what I understood, `vagrant up` should have brought up a working thimble vm, accesible via `http://localhost:3500` however that dosn't seem to be the case.\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/comments/279152062","html_url":"https://github.com/mozilla/thimble.mozilla.org/issues/1729#issuecomment-279152062","issue_url":"https://api.github.com/repos/mozilla/thimble.mozilla.org/issues/1729","id":279152062,"user":{"login":"twigz20","id":10361408,"avatar_url":"https://avatars.githubusercontent.com/u/10361408?v=3","gravatar_id":"","url":"https://api.github.com/users/twigz20","html_url":"https://github.com/twigz20","followers_url":"https://api.github.com/users/twigz20/followers","following_url":"https://api.github.com/users/twigz20/following{/other_user}","gists_url":"https://api.github.com/users/twigz20/gists{/gist_id}","starred_url":"https://api.github.com/users/twigz20/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twigz20/subscriptions","organizations_url":"https://api.github.com/users/twigz20/orgs","repos_url":"https://api.github.com/users/twigz20/repos","events_url":"https://api.github.com/users/twigz20/events{/privacy}","received_events_url":"https://api.github.com/users/twigz20/received_events","type":"User","site_admin":false},"created_at":"2017-02-11T15:25:35Z","updated_at":"2017-02-11T15:25:35Z","body":"@LCartwright It works after using `npm run postinstall`. \r\nBe sure to have grunt installed on the machine, though. If not, run `npm install -g grunt-cli` before `npm run postinstall` and it should work without any issues."}}
{"actor":{"display_login":"twigz20"}}