foo4946
An error occurred while pushing code to Gigalixir
I am trying to push code to Gigalixir. But I got an error. Could you give me some advice by looking log?
thanks.
log
C:\elixir_dev\gigalixir_nodb>git push gigalixir master
Enumerating objects: 558, done.
Counting objects: 100% (558/558), done.
Delta compression using up to 4 threads
Compressing objects: 100% (516/516), done.
Writing objects: 100% (558/558), 5.21 MiB | 1.08 MiB/s, done.
Total 558 (delta 60), reused 0 (delta 0)
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: Cloning into 'curvy-secondhand-reindeer'...
remote: warning: You appear to have cloned an empty repository.
remote: done.
remote: Compiling code and generating slug.
remote: latest: Pulling from gigalixir-152404/herokuish
remote: Digest: sha256:01b2c78943f694bcb5e18d7305aa444fe8205007bd93c5b6ae4648a0c63a809a
remote: Status: Image is up to date for us.gcr.io/gigalixir-152404/herokuish:latest
remote: us.gcr.io/gigalixir-152404/herokuish:latest
remote: -----> Detecting assets directory
remote: package.json found in assets directory
remote: Elixir+Phoenix app detected
remote: Detecting assets directory
remote: package.json found in assets directory
remote: =====> Downloading Buildpack: https://github.com/gigalixir/gigalixir-buildpack-clean-cache.git
remote: =====> Detected Framework: Clean Cache
remote: Not cleaning cache
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: LIBCLUSTER_KUBERNETES_NODE_BASENAME
remote: LIBCLUSTER_KUBERNETES_SELECTOR
remote: PORT
remote: SECRET_KEY_BASE
remote: SOURCE_VERSION
remote: * MIX_ENV=prod
remote: -----> Checking Erlang and Elixir versions
remote: WARNING: elixir_buildpack.config wasn't found in the app
remote: Using default config from Elixir buildpack
remote: Will use the following versions:
remote: * Stack cedar-14
remote: * Erlang 20.1
remote: * Elixir 1.5.3
remote: -----> Using cached Erlang 20.1
remote: -----> Installing Erlang 20.1
remote:
remote: -----> Using cached Elixir v1.5.3
remote: -----> Installing Elixir v1.5.3
remote: -----> Installing Hex
remote: * creating /app/.mix/archives/hex-0.20.1
remote: -----> Installing rebar
remote: * creating /app/.mix/rebar
remote: * creating /app/.mix/rebar3
remote: -----> Fetching app dependencies with mix
remote: Resolving Hex dependencies...
remote: Dependency resolution completed:
remote: Unchanged:
remote: cowboy 2.7.0
remote: cowlib 2.8.0
remote: gettext 0.17.4
remote: jason 1.1.2
remote: mime 1.3.1
remote: phoenix 1.4.12
remote: phoenix_html 2.13.3
remote: phoenix_pubsub 1.1.2
remote: plug 1.8.3
remote: plug_cowboy 2.1.1
remote: plug_crypto 1.0.0
remote: ranch 1.7.1
remote: telemetry 0.4.1
remote: * Getting phoenix (Hex package)
remote: * Getting phoenix_pubsub (Hex package)
remote: * Getting phoenix_html (Hex package)
remote: * Getting gettext (Hex package)
remote: * Getting jason (Hex package)
remote: * Getting plug_cowboy (Hex package)
remote: * Getting cowboy (Hex package)
remote: * Getting plug (Hex package)
remote: * Getting mime (Hex package)
remote: * Getting plug_crypto (Hex package)
remote: * Getting cowlib (Hex package)
remote: * Getting ranch (Hex package)
remote: * Getting telemetry (Hex package)
remote: -----> Copying hex from /app/.mix/archives/hex-0.20.1
remote: -----> Compiling
remote: ==> gettext
remote: warning: the dependency :gettext requires Elixir "~> 1.6" but you are running on v1.5.3
remote: Compiling 1 file (.yrl)
remote: Compiling 1 file (.erl)
remote: Compiling 20 files (.ex)
remote:
remote: == Compilation error in file lib/mix/tasks/compile.gettext.ex ==
remote: ** (CompileError) lib/mix/tasks/compile.gettext.ex:2: module Mix.Task.Compiler is not loaded and could not be found
remote: (elixir) expanding macro: Kernel.use/1
remote: lib/mix/tasks/compile.gettext.ex:2: Mix.Tasks.Compile.Gettext (module)
remote: could not compile dependency :gettext, "mix compile" failed. You can recompile this dependency with "mix deps.compile gettext", update it with "mix deps.update gettext" or clean it with "mix deps.clean gettext"
remote: Command '[u'docker', u'run', u'--memory-reservation=512m', u'--rm', u'-e', u'GIGALIXIR_SHOULD_CLEAN_CACHE=False', u'-v', u'/tmp/tmpV0dez0/curvy-secondhand-reindeer:/tmp/app', u'-v', u'/tmp/gigalixir/cache/curvy-secondhand-reindeer/:/tmp/cache', u'-v', u'/tmp/tmpV0dez0/env:/tmp/env', u'--env=USER=www-data', u'us.gcr.io/gigalixir-152404/herokuish:latest']' returned non-zero exit status 1
To https://git.gigalixir.com/curvy-secondhand-reindeer.git
! [remote rejected] master -> master (pre-receive hook declined)
Marked As Solved
jesse
You can specify the elixir version on gigalixir to something higher. See
Also, be sure you follow this guide which has a section on specifying versions.
Also Liked
NobbZ
Downgrade gettext to a version that works with elixir 1.5 or upgrade elixir on your host.
1
foo4946
jesse
Thanks!
I could push to gigalixir with version 1.9.1 using elixir_buildpack.config.
I understand that I could specify the elixir version on gigalixir using elixir_buildpack.config.
thank you!!!
Best regards.
1
Popular in Questions
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
Hi,
I’m quite new in Elixir and I’m trying to format a string to a PEM format. I have the certificate value like MIIDBTCCAe2...... and I...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this:
...
New
Using vs code and installed ElixirLS: support and debugger.
And I got an error popped up on start up says
Failed to run ‘elixir’ comma...
New
Hi!
In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir?
Searched the docs for ip address and the web, no good results.
Thanks!
New
I have a User schema with a :from_id field set to type :string:
defmodule TweetBot.Repo.Migrations.CreateUsers do
use Ecto.Migration
...
New
In the Dialyzer docs ( dialyzer — OTP 29.0.2 (dialyzer 6.0.1) ), there is a way to turn off a specific warning for a function:
-dialyzer...
New
Other popular topics
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
I have an umbrella app.
Some of the apps inside depend on other apps in the umbrella, unsurprisingly.
I’m writing a test for one of the...
New
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
This post is an instruction guide to help you setup your Neovim for Elixir development from scratch. It includes general information on h...
New
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help.
Where are they similar?
Where do they differ the m...
New
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors:
[WARN] - (starship::utils): Executing command ...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition)
It’s been a while since we first asked this, I...
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!)
This post collects co...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








