{"action":"created","issue":{"url":"https://api.github.com/repos/gliderlabs/herokuish/issues/19","labels_url":"https://api.github.com/repos/gliderlabs/herokuish/issues/19/labels{/name}","comments_url":"https://api.github.com/repos/gliderlabs/herokuish/issues/19/comments","events_url":"https://api.github.com/repos/gliderlabs/herokuish/issues/19/events","html_url":"https://github.com/gliderlabs/herokuish/issues/19","id":66251631,"number":19,"title":"latest nodejs buildpack fails with permission denied","user":{"login":"michaelshobbs","id":4491438,"avatar_url":"https://avatars.githubusercontent.com/u/4491438?v=3","gravatar_id":"","url":"https://api.github.com/users/michaelshobbs","html_url":"https://github.com/michaelshobbs","followers_url":"https://api.github.com/users/michaelshobbs/followers","following_url":"https://api.github.com/users/michaelshobbs/following{/other_user}","gists_url":"https://api.github.com/users/michaelshobbs/gists{/gist_id}","starred_url":"https://api.github.com/users/michaelshobbs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/michaelshobbs/subscriptions","organizations_url":"https://api.github.com/users/michaelshobbs/orgs","repos_url":"https://api.github.com/users/michaelshobbs/repos","events_url":"https://api.github.com/users/michaelshobbs/events{/privacy}","received_events_url":"https://api.github.com/users/michaelshobbs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-04-03T23:54:38Z","updated_at":"2015-04-20T12:41:46Z","closed_at":"2015-04-19T17:24:25Z","body":"Using this sample repo fork (https://github.com/michaelshobbs/node-js-sample) I get the following permission denied error when deploying with dokku.\r\n\r\n```\r\n-----> Checking startup method\r\n       Found Procfile\r\n\r\n-----> Finalizing build\r\n       Creating runtime environment\r\nremote: /tmp/buildpacks/custom/lib/build.sh: line 212: /tmp/buildpacks/custom/export: Permission denied\r\n       Exporting binary paths\r\n\r\n-----> Build failed\r\n\r\n       We're sorry this build is failing! If you can't find the issue in application code,\r\n       please submit a ticket so we can help: https://help.heroku.com/\r\n       You can also try reverting to our legacy Node.js buildpack:\r\n       heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-nodejs#v63\r\n\r\n       Love,\r\n       Heroku\r\n```\r\n\r\n```\r\nroot@c14760c734ec:/# ls -la /tmp/buildpacks/\r\ntotal 60\r\ndrwxr-xr-x 27 u29276 u29276 4096 Mar 30 23:18 .\r\ndrwxrwxrwt 13 root   root   4096 Mar 30 23:18 ..\r\ndrwxr-xr-x  6 root   root   4096 Mar 30 23:18 custom\r\ndrwxr-xr-x 10 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-clojure\r\ndrwxr-xr-x 12 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-go\r\ndrwxr-xr-x 12 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-gradle\r\ndrwxr-xr-x  6 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-grails\r\ndrwxr-xr-x 12 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-java\r\ndrwxr-xr-x  4 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-multi\r\ndrwxr-xr-x  8 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-nodejs\r\ndrwxr-xr-x  8 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-php\r\ndrwxr-xr-x 10 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-play\r\ndrwxr-xr-x  8 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-python\r\ndrwxr-xr-x 14 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-ruby\r\ndrwxr-xr-x 14 u29276 u29276 4096 Mar 30 23:18 heroku-buildpack-scala\r\nroot@c14760c734ec:/# ls -la /tmp/buildpacks/custom/\r\ntotal 44\r\ndrwxr-xr-x  6 root   root   4096 Mar 30 23:18 .\r\ndrwxr-xr-x 27 u29276 u29276 4096 Mar 30 23:18 ..\r\n-rw-r--r--  1 root   root     17 Mar 30 23:18 .gitignore\r\n-rw-r--r--  1 root   root   1075 Mar 30 23:18 LICENSE\r\n-rw-r--r--  1 root   root   7008 Mar 30 23:18 README.md\r\ndrwxr-xr-x  2 root   root   4096 Mar 30 23:18 bin\r\n-rw-r--r--  1 root   root   1391 Mar 30 23:18 concurrency\r\ndrwxr-xr-x  2 root   root   4096 Mar 30 23:18 lib\r\ndrwxr-xr-x  3 root   root   4096 Mar 30 23:18 test\r\ndrwxr-xr-x  2 root   root   4096 Mar 30 23:18 vendor\r\n```\r\nEDIT: I believe this to be the offending code. However, this is fairly irrelevant since `/tmp/buildpacks/custom` should probably be owned by the anonymous user? \r\n\r\nhttps://github.com/heroku/heroku-buildpack-nodejs/blob/40214da800dadf60b9a746514ea55140f5863380/lib/build.sh#L210-L214\r\n\r\n\r\nref: https://github.com/progrium/buildstep/issues/145"},"comment":{"url":"https://api.github.com/repos/gliderlabs/herokuish/issues/comments/94441934","html_url":"https://github.com/gliderlabs/herokuish/issues/19#issuecomment-94441934","issue_url":"https://api.github.com/repos/gliderlabs/herokuish/issues/19","id":94441934,"user":{"login":"patrickjahns","id":6403243,"avatar_url":"https://avatars.githubusercontent.com/u/6403243?v=3","gravatar_id":"","url":"https://api.github.com/users/patrickjahns","html_url":"https://github.com/patrickjahns","followers_url":"https://api.github.com/users/patrickjahns/followers","following_url":"https://api.github.com/users/patrickjahns/following{/other_user}","gists_url":"https://api.github.com/users/patrickjahns/gists{/gist_id}","starred_url":"https://api.github.com/users/patrickjahns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patrickjahns/subscriptions","organizations_url":"https://api.github.com/users/patrickjahns/orgs","repos_url":"https://api.github.com/users/patrickjahns/repos","events_url":"https://api.github.com/users/patrickjahns/events{/privacy}","received_events_url":"https://api.github.com/users/patrickjahns/received_events","type":"User","site_admin":false},"created_at":"2015-04-20T12:41:46Z","updated_at":"2015-04-20T12:41:46Z","body":"If you need it urgently, just build it yourself and rebuild the buildstep container on the machine where you use it\r\n\r\nIf you don`t want to install go, then just use the google/golang Dockerfile for it.\r\nFor reference see my 32bit repository [make.sh](https://github.com/dokku32bit/herokuish_32bit/blob/master/make.sh) and [build.sh](https://github.com/dokku32bit/herokuish_32bit/blob/master/build.sh) - just replace the docker continer in make.sh with google/golang and you shall be fine.\r\n\r\nFor creating the buildstep image, instead of downloading, just copy the file in the respective directory inside the Docker container and execute the scripts"}}