gigalixir / gigalixir-cli

MIT License
52 stars 45 forks source link

(Mix.Releases.Config.LoadError) could not load release config rel/config.exs #23

Closed mmartinson closed 6 years ago

mmartinson commented 6 years ago

Getting this during the deploy, though it seems it is still completing and the app is up. Any ideas? Update updated Elixir/Erlang versions in the buildpack for this release. Any other context that might help in particular?

# Erlang version
erlang_version=21.1

# Elixir version
elixir_version=1.7.3
remote: ** (Mix.Releases.Config.LoadError) could not load release config rel/config.exs
remote:     ** (UndefinedFunctionError) function Mix.Config.Agent.start_link/0 is undefined (module Mix.Config.Agent is not available)
remote:     Mix.Config.Agent.start_link()
remote:     (stdlib) erl_eval.erl:680: :erl_eval.do_apply/6
remote:     (stdlib) erl_eval.erl:449: :erl_eval.expr/5
remote:     (stdlib) erl_eval.erl:126: :erl_eval.exprs/5
remote:     (elixir) lib/code.ex:232: Code.eval_string/3
remote:     (distillery) lib/mix/lib/releases/config/config.ex:281: Mix.Releases.Config.read_string!/1
remote:     (distillery) lib/mix/lib/releases/config/config.ex:302: Mix.Releases.Config.read!/1
remote: Command '[u'docker', u'run', u'--rm', u'-e', u'GIGALIXIR_SHOULD_CLEAN_CACHE=True', u'-v', u'/tmp/tmp1FrasS/codecast-proto:/tmp/app', u'-v', u'/tmp/gigalixir/cache/codecast-proto/:/tmp/cache', u'-v', u'/tmp/tmp1FrasS/env:/tmp/env', u'--env=USER=www-data', u'us.gcr.io/gigalixir-152404/herokuish:latest']' returned non-zero exit status 1
jesseshieh commented 6 years ago

Are you deploying with distillery or just mix? What's in your .buildpacks file?

Is your rel/config.exs checked into git?

mmartinson commented 6 years ago

Upgrading to Distillery 1.5.5 after reading https://github.com/bitwalker/distillery/issues/431 fixes the issue.