Plugin pc not available

1k Views Asked by At

When I try to build my app at server as:

APP="my_app" MIX_ENV="prod" AUTO_VERSION="" BRANCH="master" SKIP_RELUP_MODIFICATIONS="" RELUP_MODIFICATION_MODULE="" USING_DISTILLERY="true" mix do clean, compile

I get this error:

===> Plugin pc not available. It will not be used.

=ERROR REPORT==== 30-Apr-2018::10:21:55 ===
beam/beam_load.c(1287): Error loading module pc:
  mandatory chunk of type 'Atom' not found



=ERROR REPORT==== 30-Apr-2018::10:21:55 ===
Loading of /tmp/edeliver/my_app/builds/deps/re2/_build/default/plugins/pc/ebin/pc.beam failed: badfile
===> Compiling re2
===> Unable to run pre hooks for 'compile', command 'compile' in namespace 'pc' not found.
** (Mix) Could not compile dependency :re2, "/home/ubuntu/.mix/rebar3 bare compile --paths "/tmp/edeliver/my_app/builds/_build/prod/lib/*/ebin"" command failed. You can recompile this dependency with "mix deps.compile re2", update it with "mix deps.update re2" or clean it with "mix deps.clean re2"


erl -v
Erlang/OTP 19 [erts-8.3.5] [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]

Eshell V8.3.5  (abort with ^G)

$ ~/.mix/rebar3 -v
rebar 3.3.6 on Erlang/OTP 19 Erts 8.3.5

Any idea?

1

There are 1 best solutions below

1
On

The error message mandatory chunk of type 'Atom' not found suggests that you have a .beam file compiled with Erlang/OTP 20.0 or later, and are trying to load it in an earlier version. Try deleting the .beam files for the pc plugin and let it rebuild them.