{"action":"created","issue":{"url":"https://api.github.com/repos/progrium/buildstep/issues/135","labels_url":"https://api.github.com/repos/progrium/buildstep/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/progrium/buildstep/issues/135/comments","events_url":"https://api.github.com/repos/progrium/buildstep/issues/135/events","html_url":"https://github.com/progrium/buildstep/issues/135","id":57540061,"number":135,"title":"chown in /start -- is it necessary?","user":{"login":"tilgovi","id":20818,"avatar_url":"https://avatars.githubusercontent.com/u/20818?v=3","gravatar_id":"","url":"https://api.github.com/users/tilgovi","html_url":"https://github.com/tilgovi","followers_url":"https://api.github.com/users/tilgovi/followers","following_url":"https://api.github.com/users/tilgovi/following{/other_user}","gists_url":"https://api.github.com/users/tilgovi/gists{/gist_id}","starred_url":"https://api.github.com/users/tilgovi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tilgovi/subscriptions","organizations_url":"https://api.github.com/users/tilgovi/orgs","repos_url":"https://api.github.com/users/tilgovi/repos","events_url":"https://api.github.com/users/tilgovi/events{/privacy}","received_events_url":"https://api.github.com/users/tilgovi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-13T00:07:00Z","updated_at":"2015-02-17T05:49:20Z","closed_at":null,"body":"The chown in /start can take time and messes with the consistency of things like the dokku checks timeouts. My understanding is that it's necessary in case something else (like a dokku plugin) modifies the filesystem after the compile step.\r\n\r\n- Is my understand correct?\r\n- Is it necessary?\r\n- Is there a better way we can ensure those post-compile steps don't mess up permissions, such as by running them under the application user?\r\n- If not, could we deal with this in dokku explicitly as another step of generating the slug before deploy, so that it can be executed between hooks?"},"comment":{"url":"https://api.github.com/repos/progrium/buildstep/issues/comments/74620234","html_url":"https://github.com/progrium/buildstep/issues/135#issuecomment-74620234","issue_url":"https://api.github.com/repos/progrium/buildstep/issues/135","id":74620234,"user":{"login":"progrium","id":647,"avatar_url":"https://avatars.githubusercontent.com/u/647?v=3","gravatar_id":"","url":"https://api.github.com/users/progrium","html_url":"https://github.com/progrium","followers_url":"https://api.github.com/users/progrium/followers","following_url":"https://api.github.com/users/progrium/following{/other_user}","gists_url":"https://api.github.com/users/progrium/gists{/gist_id}","starred_url":"https://api.github.com/users/progrium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/progrium/subscriptions","organizations_url":"https://api.github.com/users/progrium/orgs","repos_url":"https://api.github.com/users/progrium/repos","events_url":"https://api.github.com/users/progrium/events{/privacy}","received_events_url":"https://api.github.com/users/progrium/received_events","type":"User","site_admin":false},"created_at":"2015-02-17T05:49:20Z","updated_at":"2015-02-17T05:49:20Z","body":"Wouldn't your underlying filesystem have a significant role in this?\n\nOn Mon, Feb 16, 2015 at 2:58 PM, Morton Jonuschat <notifications@github.com>\nwrote:\n\n> I can't seem to trigger a situation where the chown is the sole culprit\n> of the failing check. When torturing a system so that the chown takes\n> more than a second to complete (iowait > 80%) starting the application\n> without running chown also takes an extremely long time (enough to fail\n> the checks on its own), at least with an application that's not just\n> serving a static „Hello World“ page.\n>\n> I'm pretty sure there is a usage mix that can trigger a failed check, but\n> if that is „normal“ utilization of your host I'd consider removing the\n> chown a worse stop-gap measure than increasing the wait/timeout values\n> for the checks plugin.\n>\n> @progrium <https://github.com/progrium> herokuish doesn't do anything\n> different, the chown is in procfile-setup-home().\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/progrium/buildstep/issues/135#issuecomment-74571490>.\n>\n\n\n\n-- \nJeff Lindsay\nhttp://progrium.com\n"}}