Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues upgrading to Heroku 22 #212

Open
abstractcoder opened this issue Aug 19, 2022 · 4 comments
Open

Issues upgrading to Heroku 22 #212

abstractcoder opened this issue Aug 19, 2022 · 4 comments

Comments

@abstractcoder
Copy link

abstractcoder commented Aug 19, 2022

I'm trying to spin up a review app to test upgrading from Heroku 20 to the Heroku 22 stack.

I get the following error:

-----> Checking Erlang and Elixir versions
       Will use the following versions:
       * Stack heroku-22
       * Erlang 24.3.3
       * Elixir v1.13.4 
       Sorry, Erlang 24.3.3 isn't supported yet. For a list of supported versions, please see https://github.com/HashNuke/heroku-buildpack-elixir#version-support

When I follow the link it shows that Erlang 24.3.3 should be supported in Heroku 22 https://repo.hex.pm/builds/otp/ubuntu-22.04/builds.txt

Here is my full elixir_buildpack.config

# Elixir version
elixir_version=1.13.4

# Erlang version
# https://github.com/HashNuke/heroku-buildpack-elixir-otp-builds/blob/master/otp-versions
erlang_version=24.3.3

# Recompile Sentry to get latest source code
hook_pre_compile="mix sentry_recompile"

# Build Assets
hook_post_compile="mix assets.deploy"

EDIT: Switching from the release buildpack to the bleeding edge build pack resolved the issue. Is there any way for me to follow when Heroku 22 support is released?

@ArthurFleischman
Copy link

same issue here

@vvuunnqq
Copy link

vvuunnqq commented Nov 3, 2022

hi @abstractcoder,
Look at your provided logs, seems that your heroku-buildpack-elixir repo is not latest version.
Due to "Sorry,..." message was changed in commit a year ago.
Let pull the latest version of this repo and try again.
Other hand, please be careful about elixir+OTP version, I see that you try to use elixir v1.13.4 with Erlang 24.3.3.
They said Elixir v1.13.4 should use OTP 25 https://hexdocs.pm/elixir/compatibility-and-deprecations.html#compatibility-between-elixir-and-erlang-otp.
Thanks & br

@PatrikStenmark
Copy link

PatrikStenmark commented Nov 16, 2022

If someone is like me and wondering how to upgrade the buildpack to the latest version, just doing a

heroku buildpacks:set -a app https://github.com/HashNuke/heroku-buildpack-elixir.git

worked for me.

I also cleared the build cache on Heroku a couple of times which may or may not have helped. Instructions for this is available at Herokus help pages

@jc00ke
Copy link

jc00ke commented Jul 14, 2023

I was running into this from a review app failure, and a heroku buildbacks:clear -a app also did the trick by bringing the installed buildpacks in line with what was defined in app.json.

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

No branches or pull requests

5 participants