/usr/bin/jq: Permission denied [dokku]
tomjohnhall opened this issue · 4 comments
Hi! Thank you so much for this helpful buildpack. Up until very recently (last push maybe a month ago?) I've used it on multiple projects without issue, but I now get this permission / no such file error when deploying via dokku.
-----> Fetching custom buildpack
-----> React.js (create-react-app) multi app detected
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-multi.git
=====> Detected Framework: Multipack
=====> Downloading Buildpack: https://github.com/heroku/heroku-buildpack-nodejs.git
=====> Detected Framework: Node.js
remote: /tmp/buildpacky6j7X/lib/json.sh: line 5: /usr/bin/jq: Permission denied
remote: /tmp/buildpacky6j7X/lib/json.sh: line 52: /usr/bin/jq: No such file or directory
remote: ! Unable to parse package.json
-----> Build failed
We're sorry this build is failing! You can troubleshoot common issues here:
https://devcenter.heroku.com/articles/troubleshooting-node-deploys
If you're stuck, please submit a ticket so we can help:
https://help.heroku.com/
Love,
Heroku
I appreciate this is a heroku buldpack and isn't designed for dokku, but if there's a simple workaround for this issue, would be extremely helpful!
It also happened to me using dokku.
It's related to a bug in the heroku-buildpack-nodejs master branch, referenced here
They mention that using a specific version, heroku-buildpack-nodejs#175 the issue is solved.
So maybe this buildpack should point to the latest stable version instead of the master branch
I submitted the PR that fixes the issue, in the meantime I'm referencing it through the fork https://github.com/jpvillaseca/create-react-app-buildpack.git but once it's merged I'll be able to go back and reference this repo directly in my dokku app.
@jpvillaseca thanks this was helpful
@jpvillaseca Thanks for getting to the bottom of this, super helpful!