Ecto.create hangs

i’m using Windows 11 and work in Powershell.
I started a new Phoenix app with:

  • mix phx.new champ --databse mysql
  • cd champ
  • put mysql root password in dev
  • mix deps.get
    this went all right
    then start mix ecto.create
    ==> file_system
    Compiling 7 files (.ex)
    Generated file_system app
    ==> decimal
    Compiling 4 files (.ex)
    Generated decimal app
    ==> mime
    Compiling 1 file (.ex)
    Generated mime app
    ==> nimble_options
    Compiling 3 files (.ex)
    Generated nimble_options app

en it stopped here

I use the latest version of elixir and phoenix

Have you tried connecting to the PostgreSQL DB manually, via psql?

I could connect to postgress and mysql

OK, just to eliminate some usual suspects, run mix do local.rebar --force, local.hex --force and then re-run mix ecto.create ?

same problem: it still hangs after nimble_options

when i kill the process with ctrl + c and ask for process info it ends with

Connected: <0.100.0>
Links: <0.100.0>
Port controls external process: C:\WINDOWS\system32\cmd.exe /s /c escript.exe “c:/Users/jlodi/.mix/elixir/1-14/rebar3” bare compile --paths c:/Users/jlodi/Workspace/elixir/champions/_build/dev/lib//ebin
Input: 129
Output: 0
Queue: 0
==> champions
** (Mix) Could not compile dependency :telemetry, "escript.exe “c:/Users/jlodi/.mix/elixir/1-14/rebar3” bare compile --paths c:/Users/jlodi/Workspace/elixir/champions/_build/dev/lib/
/ebin" command failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile telemetry”, update it with “mix deps.update telemetry” or clean it with “mix deps.clean telemetry”
Terminate batch job (Y/N)?

I tried mix deps.compile telemetry: no reaction.
than mix deps.clean telemetry and run mix deps.get and telemetry was reinstalled. Than put a update of telemetry amd again mix ecto.create and it still hangs

** (Mix) Could not compile dependency :telemetry, “escript.exe “c:/Users/jlodi/.mix/elixir/1-14/rebar3” bare compile --paths c:/Users/jlodi/Workspace/elixir/champions/_build/dev/lib/*/ebin” command failed. Errors may have been logged above. You can recompile this dependency with “mix deps.compile telemetry”, update it with “mix deps.update telemetry” or clean it with “mix deps.clean telemetry”

Let’s separate out the commands a bit here. Does it complete if you just do mix deps.compile or does that also hang?

mix deps.compile also hangs on rebar3
Port controls external process: C:\WINDOWS\system32\cmd.exe /s /c escript.exe “c:/Users/jlodi/.mix/elixir/1-14/rebar3” bare compile --paths c:/Users/jlodi/Workspace/elixir/champions/_build/dev/lib/*/ebin
Input: 0
Output: 0
Queue: 0

I fix it with reinstall erlang and elixir with scoop.

Thanx for the help: i learned a lot of the errors

1 Like