bottlenecked

bottlenecked

Cannot deploy with OTP 24.0.1 in Gigalixir

Hi all, tried deploying my app on Gigalixir after updating my elixir_buildpack.config to the following:

elixir_version=1.12.1
erlang_version=24.0.1

The trace I’m seeing is

Deploying to gigalixir
  /usr/bin/git -c http.extraheader=GIGALIXIR-CLEAN: true push -f gigalixir HEAD:refs/heads/master
  remote: Starting deploy        
  remote: Preparing cache        
  remote: Compiling code and generating slug.        
  remote: Setting environment variables.        
  remote: * LIBCLUSTER_KUBERNETES_SELECTOR        
  remote: * LIBCLUSTER_KUBERNETES_NODE_BASENAME        
  remote: * APP_NAME        
  remote: * SECRET_KEY_BASE        
  remote: * PORT        
  remote: * SOURCE_VERSION        
  remote: * POOL_SIZE        
  remote: * DATABASE_URL        
  remote:        ----->        Found custom phoenix_static_buildpack.config        
  remote:        Detecting assets directory        
  remote:        package.json found in assets directory        
  remote:        Elixir+Phoenix+Releases app detected        
  remote:        Found custom phoenix_static_buildpack.config        
  remote:        Detecting assets directory        
  remote:        package.json found in assets directory        
  remote: =====> Downloading Buildpack: https://github.com/HashNuke/heroku-buildpack-elixir.git        
  remote: =====> Detected Framework: Elixir        
  remote: -----> Will export the following config vars:        
  remote:        APP_NAME        
  remote:        DATABASE_URL        
  remote:        LIBCLUSTER_KUBERNETES_NODE_BASENAME        
  remote:        LIBCLUSTER_KUBERNETES_SELECTOR        
  remote:        POOL_SIZE        
  remote:        PORT        
  remote:        SECRET_KEY_BASE        
  remote:        SOURCE_VERSION        
  remote:        * MIX_ENV=prod        
  remote: -----> Checking Erlang and Elixir versions        
  remote:        Will use the following versions:        
  remote:        * Stack heroku-18        
  remote:        * Erlang 24.0.1        
  remote:        * Elixir v1.12.1        
  remote: -----> Stack changed, will rebuild        
  remote: -----> Fetching Erlang 24.0.1 from https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14/OTP-24.0.1.tar.gz        
  remote: -----> Installing Erlang 24.0.1 (changed)        
  remote: 
  remote: gzip: stdin: not in gzip format        
  remote: tar: Child returned status 1        
  remote: tar: Error is not recoverable: exiting now        
  remote: Deploy aborted        
  To https://git.gigalixir.com/<app_name_redacted>.git/
   ! [remote rejected] HEAD -> master (pre-receive hook declined)
  error: failed to push some refs to 'https://git.gigalixir.com/<app_name_redacted>.git/'
Error: The process '/usr/bin/git' failed with exit code 1

Based on what I read online as possible reasons, the file https://s3.amazonaws.com/heroku-buildpack-elixir/erlang/cedar-14/OTP-24.0.1.tar.gz might not have been gzipped and may sport the .gz extension in error, but I’m not sure how to access it and verify this assumption.

Has anyone else seen this?

PS. I’m also using Github Actions and gigalixir-action for the deployment but I don’t think they’re related to this.

Marked As Solved

al2o3cr

al2o3cr

Pasting that URL into the browser returns an AWS “Access Denied” message. :scream_cat:

I tried some other versions listed in heroku-buildpack-elixir-otp-builds/otp-versions at master · HashNuke/heroku-buildpack-elixir-otp-builds · GitHub and got the same response.

This seems relevant: Travis build script fails silently · Issue #168 · HashNuke/heroku-buildpack-elixir-otp-builds · GitHub

Also Liked

jesse

jesse

The buildpack has been having problems with OTP 24 on stacks other than gigalixir-20. Upgrading your stack to gigalixir-20 and redeploying should fix the issue. We’re looking into fixing this for the other stacks as well.

Where Next?

Popular in Questions Top

srinivasu
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
yawaramin
In the Dialyzer docs ( http://erlang.org/doc/man/dialyzer.html#requesting-or-suppressing-warnings-in-source-files ), there is a way to tu...
New
tduccuong
Hi, is there any work on GUI with Elixir, that is similar to Electron/Javascript? My idea is to bundle Phoenix and BEAM into a single se...
New
Werner
Hi, I’m using Ubuntu 18.04 and after updating to OTP-24.0 yesterday i have this warning when I run “mix local.hex”: 14:57:30.512 [warn] ...
New
logicmason
Hi there, I'm working through my first release with elixir/phoenix. I've built a release with distillery and found that it crashes when I...
New
Jim
As a follow up to my earlier question: I have the code compiling and running but not getting a successful login from the rest server. ...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
New
hpopp
To simplify some tasks at work, I wrote and published this package yesterday. It’s a simple macro that enables Access behaviour on struct...
New

Other popular topics Top

dotdotdotPaul
Okay, I'm having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I'm sure I'...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
jerry
Good day to you all. I have been struggling to get a query involving like and ilike to work. Can anyone assist me on this, please? pro...
New
chrismccord
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
lucidguppy
I have a super simple question about elixir - how would I take a file like this foo bar baz and output a new file that enumerates th...
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement