Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

/usr/bin/jq: Permission denied [dokku] #181

Open
tomjohnhall opened this issue Nov 7, 2020 · 4 comments
Open

/usr/bin/jq: Permission denied [dokku] #181

tomjohnhall opened this issue Nov 7, 2020 · 4 comments

Comments

@tomjohnhall
Copy link

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!

@jpvillaseca
Copy link

jpvillaseca commented Nov 9, 2020

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

@jpvillaseca
Copy link

jpvillaseca commented Nov 9, 2020

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.

@thompsonwill
Copy link

@jpvillaseca thanks this was helpful

@tomjohnhall
Copy link
Author

@jpvillaseca Thanks for getting to the bottom of this, super helpful!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants