{"action":"created","issue":{"url":"https://api.github.com/repos/dokku/dokku/issues/2040","repository_url":"https://api.github.com/repos/dokku/dokku","labels_url":"https://api.github.com/repos/dokku/dokku/issues/2040/labels{/name}","comments_url":"https://api.github.com/repos/dokku/dokku/issues/2040/comments","events_url":"https://api.github.com/repos/dokku/dokku/issues/2040/events","html_url":"https://github.com/dokku/dokku/issues/2040","id":144195939,"number":2040,"title":"App start fails with error removing TMPDIR [Dokku 0.5.2] ","user":{"login":"seantanly","id":112809,"avatar_url":"https://avatars.githubusercontent.com/u/112809?v=3","gravatar_id":"","url":"https://api.github.com/users/seantanly","html_url":"https://github.com/seantanly","followers_url":"https://api.github.com/users/seantanly/followers","following_url":"https://api.github.com/users/seantanly/following{/other_user}","gists_url":"https://api.github.com/users/seantanly/gists{/gist_id}","starred_url":"https://api.github.com/users/seantanly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/seantanly/subscriptions","organizations_url":"https://api.github.com/users/seantanly/orgs","repos_url":"https://api.github.com/users/seantanly/repos","events_url":"https://api.github.com/users/seantanly/events{/privacy}","received_events_url":"https://api.github.com/users/seantanly/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dokku/dokku/labels/status:%20needs%20more%20info","name":"status: needs more info","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2016-03-29T08:41:54Z","updated_at":"2016-03-30T02:24:45Z","closed_at":null,"body":"Description of problem:\r\nAfter upgrading to Dokku version 0.5.2, I'm encountering the following problem which causes the container startup being rolled back. Essentially it seems that in `cleanup()`, rm is unable to remove the `TMPDIR` created.\r\n\r\nRunning `dokku ps:restart <app>`, everything seems fine until the final bit to cleanup.\r\n```\r\n=====> end <app> web container output\r\n+ cleanup\r\n+ declare 'desc=cleans up TMPDIR and print container output'\r\n+ local id=\r\n+ rm -rf /tmp/user/1000\r\nrm: cannot remove ‘/tmp/user/1000’: Permission denied\r\n+ kill_new bf7b0ffea6034f07a397131f31aebe415a0910e8662c117c4563df8a2e7f6962\r\n+ declare 'desc=wrapper function to kill newly started app container'\r\n+ local id=bf7b0ffea6034f07a397131f31aebe415a0910e8662c117c4563df8a2e7f6962\r\n+ docker inspect bf7b0ffea6034f07a397131f31aebe415a0910e8662c117c4563df8a2e7f6962\r\n+ docker stop bf7b0ffea6034f07a397131f31aebe415a0910e8662c117c4563df8a2e7f6962\r\n+ docker kill bf7b0ffea6034f07a397131f31aebe415a0910e8662c117c4563df8a2e7f6962\r\n```\r\n\r\nI have tried rebuilding a fresh dokku instance from scratch and deploying my app, but the deployment fails with the same problem. The app runs fine on Dokku 0.4.14.\r\n\r\n\r\n```\r\n$ ll /tmp\r\ndrwx--x--x  3 root root 4096 Mar 29 08:21 user/\r\n\r\n$ ll /tmp/user\r\ndrwx------ 2 dokku root 4096 Mar 29 08:34 1000/\r\n\r\n$ uname -a\r\nLinux App0 3.13.0-71-generic #114-Ubuntu SMP Tue Dec 1 02:34:22 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux\r\n\r\n$ docker version\r\nClient:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   20f81dd\r\n Built:        Thu Mar 10 15:54:52 2016\r\n OS/Arch:      linux/amd64\r\n\r\nServer:\r\n Version:      1.10.3\r\n API version:  1.22\r\n Go version:   go1.5.3\r\n Git commit:   20f81dd\r\n Built:        Thu Mar 10 15:54:52 2016\r\n OS/Arch:      linux/amd64\r\n\r\n$ sigil -v\r\n0.4.0\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/dokku/dokku/issues/comments/203198038","html_url":"https://github.com/dokku/dokku/issues/2040#issuecomment-203198038","issue_url":"https://api.github.com/repos/dokku/dokku/issues/2040","id":203198038,"user":{"login":"josegonzalez","id":65675,"avatar_url":"https://avatars.githubusercontent.com/u/65675?v=3","gravatar_id":"","url":"https://api.github.com/users/josegonzalez","html_url":"https://github.com/josegonzalez","followers_url":"https://api.github.com/users/josegonzalez/followers","following_url":"https://api.github.com/users/josegonzalez/following{/other_user}","gists_url":"https://api.github.com/users/josegonzalez/gists{/gist_id}","starred_url":"https://api.github.com/users/josegonzalez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/josegonzalez/subscriptions","organizations_url":"https://api.github.com/users/josegonzalez/orgs","repos_url":"https://api.github.com/users/josegonzalez/repos","events_url":"https://api.github.com/users/josegonzalez/events{/privacy}","received_events_url":"https://api.github.com/users/josegonzalez/received_events","type":"User","site_admin":false},"created_at":"2016-03-30T02:24:45Z","updated_at":"2016-03-30T02:24:45Z","body":"Should we require the `id` as an argument to that `cleanup` command? And if not just bail (nicely)"}}