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
https://gigalixir.readthedocs.io/en/latest/main.html#how-do-i-specify-my-elixir-erlang-node-npm-etc-versions
Also, be sure you follow this guide which has a section on specifying versions.
https://gigalixir.readthedocs.io/en/latest/main.html#getting-started-guide
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 there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 record...
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
I am trying to figure out how Mix knows whether the environment is test, dev, or prod -- where is this set?
Thanks.
New
Hey guys.
I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this
"1000"
What is the ...
New
I’m currently trying to understand how to join three tables using Ecto. All the examples I’ve seen use 2, so maybe I’m just missing somet...
New
Hello, I have map which I want to convert it to string like this:
the map:
%{last_name: "tavakkoli", name: "shahryar"}
the string I ne...
New
Hi guys, nice to meet you to the whole forum, I’m new here, I’m trying to configure visual studio code for elixir, right now the intellis...
New
I am trying to run a deploy with docker and I successfully runned with this command:
docker build -t romenigld/blog-prod .
but when I t...
New
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
Other popular topics
Hello!
tl;dr Announcing Oban, an Ecto based job processing library with a focus on reliability and historical observability.
After spen...
New
In asking this question I am more interested about the expressiveness of the language itself and less concerned about the availability of...
New
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
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service.
Currently when I de...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
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
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
Hi,
I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New







