{"action":"created","issue":{"url":"https://api.github.com/repos/lando/lando/issues/795","repository_url":"https://api.github.com/repos/lando/lando","labels_url":"https://api.github.com/repos/lando/lando/issues/795/labels{/name}","comments_url":"https://api.github.com/repos/lando/lando/issues/795/comments","events_url":"https://api.github.com/repos/lando/lando/issues/795/events","html_url":"https://github.com/lando/lando/issues/795","id":307049380,"number":795,"title":"Lando changes all the file permissions","user":{"login":"neclimdul","id":82823,"avatar_url":"https://avatars3.githubusercontent.com/u/82823?v=4","gravatar_id":"","url":"https://api.github.com/users/neclimdul","html_url":"https://github.com/neclimdul","followers_url":"https://api.github.com/users/neclimdul/followers","following_url":"https://api.github.com/users/neclimdul/following{/other_user}","gists_url":"https://api.github.com/users/neclimdul/gists{/gist_id}","starred_url":"https://api.github.com/users/neclimdul/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neclimdul/subscriptions","organizations_url":"https://api.github.com/users/neclimdul/orgs","repos_url":"https://api.github.com/users/neclimdul/repos","events_url":"https://api.github.com/users/neclimdul/events{/privacy}","received_events_url":"https://api.github.com/users/neclimdul/received_events","type":"User","site_admin":false},"labels":[{"id":515022116,"url":"https://api.github.com/repos/lando/lando/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"pirog","id":713424,"avatar_url":"https://avatars2.githubusercontent.com/u/713424?v=4","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"assignees":[{"login":"pirog","id":713424,"avatar_url":"https://avatars2.githubusercontent.com/u/713424?v=4","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/lando/lando/milestones/11","html_url":"https://github.com/lando/lando/milestone/11","labels_url":"https://api.github.com/repos/lando/lando/milestones/11/labels","id":3205371,"number":11,"title":"3.0.0-beta.38","description":"* Bug fixes from the refactor\r\n* Unit tests\r\n* A few simple features/improvements","creator":{"login":"pirog","id":713424,"avatar_url":"https://avatars2.githubusercontent.com/u/713424?v=4","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":0,"state":"open","created_at":"2018-03-21T05:33:51Z","updated_at":"2018-03-23T01:37:38Z","due_on":"2018-03-30T07:00:00Z","closed_at":null},"comments":10,"created_at":"2018-03-20T21:41:50Z","updated_at":"2018-03-23T01:54:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Bug Report\r\n==========\r\n\r\nLando v3.0.0-beta-35 and source build on Ubuntu 17.10\r\n\r\n`.lando.yml`\r\n```\r\nname: laraveltest\r\nrecipe: laravel\r\nconfig:\r\n  webroot: ./public/\r\n  via: nginx\r\n  php: '7.2'\r\n```\r\n\r\nSteps:\r\n```bash\r\n# Just to makes things fail a bit earlier and easier.\r\nsudo rm -rf ~/.lando\r\nlando start\r\n```\r\n\r\nOutput:\r\n```bash\r\n# lando start\r\nRecreating landoproxyhyperion5000gandalfedition_proxy_1 ... \r\nRecreating landoproxyhyperion5000gandalfedition_proxy_1 ... done\r\nCreating network \"laraveltest_default\" with the default driver\r\nCreating volume \"laraveltest_appserver\" with default driver\r\nCreating volume \"laraveltest_data\" with default driver\r\nCreating volume \"laraveltest_data_database\" with default driver\r\nCreating laraveltest_appserver_1 ... \r\nCreating laraveltest_database_1 ... \r\nCreating laraveltest_database_1\r\nCreating laraveltest_appserver_1 ... done\r\nCreating laraveltest_nginx_1 ... \r\nCreating laraveltest_nginx_1 ... done\r\nerror:  Error: EACCES: permission denied, open '/home/neclimdul/.lando/cache/laraveltest:last_build'\r\n    at Object.fs.openSync (fs.js:638:18)\r\n    at Object.fs.openSync (pkg/prelude/bootstrap.js:466:32)\r\n    at Object.fs.writeFileSync (fs.js:1287:33)\r\n    at Object.writeFileSync (/snapshot/cli/node_modules/jsonfile/index.js:115:13)\r\n    at Object.exports.set (/snapshot/cli/lib/cache.js:0:0)\r\n    at AsyncEvents.<anonymous> (/snapshot/cli/plugins/lando-services/lib/config.js:0:0)\r\n    at AsyncEvents.handle (/snapshot/cli/lib/events.js:0:0)\r\n    at /snapshot/cli/lib/events.js:0:0\r\nFrom previous event:\r\n    at AsyncEvents.emit (/snapshot/cli/lib/events.js:0:0)\r\n    at /snapshot/cli/lib/app.js:0:0\r\nFrom previous event:\r\n    at Object.exports.start (/snapshot/cli/lib/app.js:0:0)\r\n    at /snapshot/cli/plugins/lando-core/lib/tasks/start.js:0:0\r\nFrom previous event:\r\n    at Object.run (/snapshot/cli/plugins/lando-core/lib/tasks/start.js:0:0)\r\nFrom previous event:\r\n    at /snapshot/cli/lib/tasks.js:0:0\r\n    at runCallback (timers.js:800:20)\r\n    at tryOnImmediate (timers.js:762:5)\r\n    at processImmediate [as _immediateCallback] (timers.js:733:5)\r\nFrom previous event:\r\n    at Object.exports.parseToYargs.command.handler (/snapshot/cli/lib/tasks.js:0:0)\r\n    at Object.module.exports.self.runCommand (/snapshot/cli/node_modules/yargs/lib/command.js:170:22)\r\n    at parseArgs (/snapshot/cli/node_modules/yargs/yargs.js:920:28)\r\n    at Object.get [as argv] (/snapshot/cli/node_modules/yargs/yargs.js:860:16)\r\n    at /snapshot/cli/lib/cli.js:0:0\r\nFrom previous event:\r\n    at Object.exports.init (/snapshot/cli/lib/cli.js:0:0)\r\n    at /snapshot/cli/bin/lando.js:0:0\r\nFrom previous event:\r\n    at Object.<anonymous> (/snapshot/cli/bin/lando.js:0:0)\r\n    at Module._compile (pkg/prelude/bootstrap.js:1226:22)\r\n    at Object.Module._extensions..js (module.js:580:10)\r\n    at Module.load (module.js:503:32)\r\n    at tryModuleLoad (module.js:466:12)\r\n    at Function.Module._load (module.js:458:3)\r\n    at Function.Module.runMain (pkg/prelude/bootstrap.js:1281:12)\r\n    at startup (bootstrap_node.js:200:16)\r\n    at bootstrap_node.js:617:3\r\nerror:  Error: EACCES: permission denied, open '/home/neclimdul/.lando/logs/error.log'\r\n\r\n```\r\n\r\nBasically just trying to start a lando site and it fails completely. With an existing config directory that's had the file permissions reset, the failure stack trace is slightly different but the error with the permission failure is the same.\r\n\r\nThe problem seems to be that at some point during the startup proces the `.lando` directory and the project directory get their file permissions entirely replaced by uid 82 gid 82 and then everything starts falling apart as my user isn't able to access and modify the different files."},"comment":{"url":"https://api.github.com/repos/lando/lando/issues/comments/375514420","html_url":"https://github.com/lando/lando/issues/795#issuecomment-375514420","issue_url":"https://api.github.com/repos/lando/lando/issues/795","id":375514420,"user":{"login":"pirog","id":713424,"avatar_url":"https://avatars2.githubusercontent.com/u/713424?v=4","gravatar_id":"","url":"https://api.github.com/users/pirog","html_url":"https://github.com/pirog","followers_url":"https://api.github.com/users/pirog/followers","following_url":"https://api.github.com/users/pirog/following{/other_user}","gists_url":"https://api.github.com/users/pirog/gists{/gist_id}","starred_url":"https://api.github.com/users/pirog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pirog/subscriptions","organizations_url":"https://api.github.com/users/pirog/orgs","repos_url":"https://api.github.com/users/pirog/repos","events_url":"https://api.github.com/users/pirog/events{/privacy}","received_events_url":"https://api.github.com/users/pirog/received_events","type":"User","site_admin":false},"created_at":"2018-03-23T01:54:29Z","updated_at":"2018-03-23T01:54:29Z","author_association":"OWNER","body":"So, cursory pass here but the services that have `www-data` with id `82` are \r\n\r\n* phpmyadmin\r\n* mailhog\r\n\r\nCould be others but those are the obvious candidates. So i *THINK* this *CAN* periodically happen if you are using one of those services. Going to try to replicate..."}}
{"actor":{"display_login":"pirog"}}