heroku-buildpack-phoenix-static: New versions of node break the build
When I tried building with node js 1.14+ i got this error:
/tmp/codon/tmp/buildpacks/046a7dbb0bd21772e3b9d262d0fbe72be102671d/lib/build.sh: line 29: fail_bin_install: command not found
And the whole deployment would fail. However, when I used version 10.20.1 (because that’s the version used in the phoenix docs) it just suddenly did work. I did not test for any versions in between that one and 1.14.0
About this issue
- Original URL
- State: open
- Created 4 years ago
- Comments: 17
Commits related to this issue
- Fix herokukai fail Siehe https://github.com/gjaldon/heroku-buildpack-phoenix-static/issues/112#issuecomment-1564034423 — committed to STUDITEMPS/heroku-buildpack-phoenix-static by kaikuchn a year ago
- chore: update node version — committed to barsoom/ex-remit by tskogberg a year ago
- Replace heroku-buildpack-phoenix-static with gigalixir-buildpack-phoenix-static To fix: https://github.com/gjaldon/heroku-buildpack-phoenix-static/issues/112 — committed to cotoami/cotoami by marubinotto 6 months ago
We’re experiencing same issue here.
It seems it fails on this line https://github.com/gjaldon/heroku-buildpack-phoenix-static/blob/master/lib/build.sh#LL28C30-L28C176 and it looks like https://nodebin.herokai.com is down.
Using Gigalixir’s fork instead of this buildpack works fine.
Same issue started happening for me today, I when I run the same command as mentioned above I also see
Is this buildpack even maintained anymore?
FYI, before forking myself found out that gigalixir’s fork fixed it 😄
I can confirm that it looks like the root of this problem lies in the
nodebin.herokai.com
service. Some issue with SSLThis is suddenly failing for me, I hadn’t done any change to the config and had been able to deploy just fine, with Node 14, but then I started getting:
I have tried upgrading the Heroku stack, and also to the latest versions of Node and NPM in my
phoenix_static_buildpack.config
like:But I still get that error:
I double-checked and Node 20.2.0 is available in Heroku. I also tried with 20.1.0 and also fails.
It does but that is obviously a very temporary fix as others have pointed out. I’d be open to contributing to updates for this buildpack, but I think it’d be really helpful to have some contributing guidelines on the repository if anyone who’s worked on it before is happy to put those together?
See: https://devcenter.heroku.com/changelog-items/2598
Heroku informed me that the URL https://nodebin.herokai.com/ works again now.
Still, thanks for the warning that it will be decommissioned soon @joshwlewis - let’s remove that dependency.
Cool @mracos - I can confirm that deploys work fine with Gigalixir’s fork 👍
Thanks for the confirmation @pankamyk - I’ve submitted a ticket to Heroku.
I’ve encountered the same issue just now. No changes to buildpack config/node versions, but suddenly it keeps failing. Same error as everyone else. Npm/node versions:
Same problem here with a deployment using Heroku. npm
6.14.13
and yarn1.22.11
Edit : The version of node was wrong. The error was solved by adding this to
phoenix_static_buildpack.config
: