riverrun / phauxth

Not actively maintained - Authentication library for Phoenix, and other Plug-based, web applications
409 stars 20 forks source link

installer fails with errors #10

Closed mikey0000 closed 7 years ago

mikey0000 commented 7 years ago


17:23:40.751 [error] beam/beam_load.c(1287): Error loading module 'Elixir.Mix.Tasks.Phauxth.New':
  mandatory chunk of type 'Atom' not found

17:23:40.759 [error] Loading of ~/.mix/archives/phauxth_new/phauxth_new/ebin/Elixir.Mix.Tasks.Phauxth.New.beam failed: :badfile

17:23:40.772 [error] Loading of ~/.mix/archives/phauxth_new/phauxth_new/ebin/Elixir.Mix.Tasks.Phauxth.New.beam failed: :badfile

17:23:40.772 [error] beam/beam_load.c(1287): Error loading module 'Elixir.Mix.Tasks.Phauxth.New':
  mandatory chunk of type 'Atom' not found

17:23:41.070 [error] Loading of ~/.mix/archives/phauxth_new/phauxth_new/ebin/Elixir.Mix.Tasks.Phauxth.New.beam failed: :badfile

17:23:41.071 [error] beam/beam_load.c(1287): Error loading module 'Elixir.Mix.Tasks.Phauxth.New':
  mandatory chunk of type 'Atom' not found

Generated project app

17:23:41.585 [error] beam/beam_load.c(1287): Error loading module 'Elixir.Mix.Tasks.Phauxth.New':
  mandatory chunk of type 'Atom' not found

17:23:41.589 [error] Loading of ~/.mix/archives/phauxth_new/phauxth_new/ebin/Elixir.Mix.Tasks.Phauxth.New.beam failed: :badfile

17:23:41.868 [error] Loading of ~/.mix/archives/phauxth_new/phauxth_new/ebin/Elixir.Mix.Tasks.Phauxth.New.beam failed: :badfile

17:23:41.868 [error] beam/beam_load.c(1287): Error loading module 'Elixir.Mix.Tasks.Phauxth.New':
  mandatory chunk of type 'Atom' not found```

This is on macOS X sierra, not sure that it makes any difference. Had tried to setup openmaize on phoenix 1.3 then realised you'd created this to cover the new phoenix.
riverrun commented 7 years ago

First of all, which version of Erlang are you using?

Could you try to build the archive and install it locally? To do so, clone this repository, cd to installer/new and run mix build (or MIX_ENV=prod mix build). Then go to the archives directory and run mix archive.install phauxth_new.ex. Let me know how you get on.

mikey0000 commented 7 years ago

version of Erlang

erl
Erlang/OTP 19 [erts-8.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

Ran through your instructions and everything is green, not sure what the deal there is. I guess this is closed.

riverrun commented 7 years ago

Glad to hear you got it working, and thanks for reporting the original issue.

riverrun commented 7 years ago

I think this is related to the upgrade to Erlang 20. I'm building the installer archives on Erlang 20, and I think that is why you are having problems using those archives on your machine.

Once Phoenix 1.3 is released, and I can release a stable release of Phauxth, I'll arrange for the archives to be built on Erlang 19, and we'll see if that fixes the problem.

mikey0000 commented 7 years ago

Awesome!