smon

smon

System wide hex error: `failed to start child: Hex.State`

I was tinkering with my current project, when I accidentally stopped my iex session. When I tried to restart I was greeted with the following error:

$ mix hex

14:16:25.094 [notice] Application hex exited: Hex.Application.start(:normal, []) returned an error: shutdown: failed to start child: Hex.State
    ** (EXIT) an exception was raised:
        ** (SyntaxError) invalid syntax found on nofile:9:56:
    error: unexpected token: }
    │
  9 │                         <<"expires_at">> => 1776426831}}}}.
    │                                                        ^
    │
    └─ nofile:9:56
            (elixir 1.19.5) lib/code.ex:628: Code.validated_eval_string/3
            (hex 2.4.1) lib/hex/config.ex:97: Hex.Config.decode_elixir/1
            (hex 2.4.1) lib/hex/config.ex:12: Hex.Config.read/0
            (hex 2.4.1) lib/hex/state.ex:135: Hex.State.start_link/1
            (stdlib 7.2.1) supervisor.erl:996: :supervisor.do_start_child_i/3
            (stdlib 7.2.1) supervisor.erl:982: :supervisor.do_start_child/3
            (stdlib 7.2.1) supervisor.erl:966: anonymous fn/3 in :supervisor.start_children/2

What happend? This happens system wide when trying any hex command. I even tried re-installing both hex and Elixir itself, but to no avail.

Marked As Solved

NobbZ

NobbZ

Have you tried removing ~/.hex, or its alternative locations, if you have one of the relevant env-vars set?

Also Liked

smon

smon

Ah, that I missed - only had a look at the `~/.mix`.

Where Next?

Popular in Questions Top

Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
skosch
To my knowledge, put_in, Map.update etc. all have the one limitation of not automatically creating intermediate keys when needed (for exa...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
dotdotdotPaul
Okay, I’m having a heck of a time trying to figure out how to best handle the validation of belongs_to associations in Ecto. I’m sure I’...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New

Other popular topics Top

Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
lessless
I believe there are people here who are dealing with CSV files import on the daily basis, and since Excel is a really popular tool there ...
New
ovidiubadita
Hey all, I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
AstonJ
Please see the new poll here: Which code editor or IDE do you use? (Poll) (2022 Edition) It’s been a while since we first asked this, I...
208 31142 143
New
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New

We're in Beta

About us Mission Statement