hexpm / hex

Package manager for the Erlang ecosystem.
https://hex.pm
972 stars 184 forks source link

issue with newly released hex: Could not start Hex. #981

Closed sescobb27 closed 1 year ago

sescobb27 commented 1 year ago

Hi there, we are seeing this error in our CI environment on CircleCI on all our services, this wasn't happening on friday and we suspect is something to do with the newly released version

elixir version: cimg/elixir:1.14

17:13:25.107 [notice] Application hex exited: Hex.Application.start(:normal, []) returned an error: shutdown: failed to start child: Hex.State
    ** (EXIT) exited in: GenServer.call(Hex.State, {:get, #Function<0.21698640/1 in Hex.State.fetch!/1>}, 5000)
        ** (EXIT) process attempted to call itself

17:13:25.119 [notice] Application inets exited: :stopped

17:13:25.121 [notice] Application ssl exited: :stopped

17:13:25.121 [notice] Application public_key exited: :stopped

17:13:25.121 [notice] Application asn1 exited: :stopped

17:13:25.121 [notice] Application crypto exited: :stopped
Could not start Hex. Try fetching a new version with "mix local.hex" or uninstalling it with "mix archive.uninstall hex.ez"
** (MatchError) no match of right hand side value: {:error, {:hex, {{:shutdown, {:failed_to_start_child, Hex.State, {:calling_self, {GenServer, :call, [Hex.State, {:get, #Function<0.21698640/1 in Hex.State.fetch!/1>}, 5000]}}}}, {Hex.Application, :start, [:normal, []]}}}}
    (hex 2.0.5) lib/hex.ex:5: Hex.start/0
    (mix 1.14.2) lib/mix/hex.ex:59: Mix.Hex.start/0
    (mix 1.14.2) lib/mix/dep/loader.ex:188: Mix.Dep.Loader.with_scm_and_app/4
    (mix 1.14.2) lib/mix/dep/loader.ex:141: Mix.Dep.Loader.to_dep/3
    (elixir 1.14.2) lib/enum.ex:1658: Enum."-map/2-lists^map/1-0-"/2
    (mix 1.14.2) lib/mix/dep/loader.ex:358: Mix.Dep.Loader.mix_children/2
    (mix 1.14.2) lib/mix/dep/loader.ex:18: Mix.Dep.Loader.children/0
    (mix 1.14.2) lib/mix/dep/converger.ex:80: Mix.Dep.Converger.all/4

Exited with code exit status 1
jjcarstens commented 1 year ago

FYI - This got reported on slack and @ericmj made a fix in the ericmj/fix-app-start branch.

I've been told a hotfix release will be out shortly

sescobb27 commented 1 year ago

ups sorry, i checked #general, #mix but forgot about #hex thank you and sorry