elixir icon indicating copy to clipboard operation
elixir copied to clipboard

Elixir v1.14 charch with message: init terminating in do_boot

Open sysmat opened this issue 3 years ago • 6 comments

Elixir and Erlang/OTP versions

  • using elixir-websetup.exe
  • elixir --version output is: {"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{file,"init.erl"},{line,1190}]},{init,do_boot,3,[{file,"init.erl"},{line,888}]}]}}

Operating system

windows 10

Current behavior

{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{file,"init.erl"},{line,1190}]},{init,do_boot,3,[{file,"init.erl"},{line,888}]}]}}

Expected behavior

  • to print version to console
  • Elixir 1.13.4 (compiled with Erlang/OTP 22) works fine

sysmat avatar Sep 25 '22 13:09 sysmat

What is your erl version? This is caused by running Erlang/OTP 25 with 1.13.4. You need to either use OTP 24 if on 1.13. Or update to 1.14 and use OTP 25.

josevalim avatar Sep 25 '22 16:09 josevalim

  • I install OTP 25.1
  • Eshell V12.0
  • update to 1.14 but still get error:
❯ elixir --version
{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{file,"init.erl"},{line,1190}]},{init,do_boot,3,[{file,"init.erl"},{line,888}]}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{_},{_}]},{init,do_boot,3,[{_},{_}]}]})

Crash dump is being written to: erl_crash.dump...done

sysmat avatar Sep 25 '22 16:09 sysmat

Thank you!

There is definitely something wrong happening. It indeed cannot find the elixir files. Can you please go to your Elixir installation and make sure there is a file at lib/elixir/ebin/elixir.beam?

josevalim avatar Sep 25 '22 18:09 josevalim

  • @josevalim I have C:\Program Files (x86)\Elixir\lib\elixir\ebin and there I have elixir.beam

sysmat avatar Sep 26 '22 07:09 sysmat

I am experiencing the same issue as well. Tried doing fresh installs multiple times, same result.

BE-Webdesign avatar Oct 02 '22 22:10 BE-Webdesign

For me which is probably separate from what @sysmat is experiencing, it was a local issue with Git Bash, using regular command prompt elixir worked just fine.

BE-Webdesign avatar Oct 08 '22 13:10 BE-Webdesign

I install OTP 25.1 Eshell V12.0

Those are conflicting versions. :) Eshell v12.0 means Erlang/OTP 24. @sysmat, can you please run erl? Which versions it reports?

In any case, I have submitted a PR to Erlang/OTP to improve errors in cases like this.

josevalim avatar Oct 18 '22 10:10 josevalim

Closing for now. In any case, I have sent a PR to Erlang/OTP for a clearer error message.

josevalim avatar Oct 25 '22 20:10 josevalim

I don't know if this warrants a new issue, or just a comment here, but I thought it worth noting that I ran into this same issue today. It appears as if the official Windows binary installer mismatches erlang/elixir versions by default. When running a fresh install on windows, the installer will use Erlang/OTP v24, and Elixir version 1.14.2

RoboZoom avatar Nov 29 '22 13:11 RoboZoom

I've installed Erlang OPT 24 and EShell v12.2 and Elixir 14.2. but got same error.

{"init terminating in do_boot",{undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{file,"init.erl"},{line,1191}]},{init,do_boot,3,[{file,"init.erl"},{line,889}]}]}}
init terminating in do_boot ({undef,[{elixir,start_cli,[],[]},{init,start_em,1,[{_},{_}]},{init,do_boot,3,[{_},{_}]}]})

Crash dump is being written to: erl_crash.dump...done

how can I solve this issue?

hotbrainy avatar Dec 13 '22 15:12 hotbrainy

This means you are using an Elixir version that was compiled for a more recent Erlang version. You need to download Elixir for an earlier version or update to Erlang/OTP 25.

josevalim avatar Dec 13 '22 15:12 josevalim

Hi @josevalim do you think it make sense to add a check + a warning so that rather than "init terminating in do_boot" we could output something like "you are using an Elixir version that was compiled for a more recent Erlang version. You need to download Elixir for an earlier version or update to Erlang/OTP 25." ?

lorenzosinisi avatar Dec 30 '22 10:12 lorenzosinisi

This check has been added to Erlang. From OTP 26 onwards.

josevalim avatar Dec 30 '22 10:12 josevalim

I had this issue, I had this issue on Windows. i had to remove the previous erlang (24) version that was not removed and it worked

emekauser avatar May 16 '23 10:05 emekauser

I encountered the same issue using Ubuntu, WSL inside Windows, and solved it with 'make clean test' in the root directory of Elixir.

charlenopires avatar Jun 12 '23 01:06 charlenopires