okari8765
Failure to start hex
I recently ran into the following error when trying to run any mix command:
## The error
```
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,
{:EXIT,
{%SyntaxError{
file: "nofile",
line: 10,
column: 41,
snippet: " oauth_exchange => true},",
description: "unexpected token: }"
},
[
{Code, :validated_eval_string, 3, [file: ~c"lib/code.ex", line: 628]},
{Hex.Config, :decode_elixir, 1,
[file: ~c"lib/hex/config.ex", line: 97]},
{Hex.Config, :read, 0, [file: ~c"lib/hex/config.ex", line: 12]},
{Hex.State, :start_link, 1, [file: ~c"lib/hex/state.ex", line: 135]},
{:supervisor, :do_start_child_i, 3,
[file: ~c"supervisor.erl", line: 996]},
{:supervisor, :do_start_child, 3,
[file: ~c"supervisor.erl", line: 982]},
{:supervisor, :"-start_children/2-fun-0-", 3,
[file: ~c"supervisor.erl", line: 966]}
]}}}}, {Hex.Application, :start, [:normal, []]}}}}
(hex 2.3.0) lib/hex.ex:5: Hex.start/0
(mix 1.19.5) lib/mix/hex.ex:64: Mix.Hex.start/0
(mix 1.19.5) lib/mix/dep/loader.ex:193: Mix.Dep.Loader.with_scm_and_app/5
(mix 1.19.5) lib/mix/dep/loader.ex:145: Mix.Dep.Loader.to_dep/4
(elixir 1.19.5) lib/enum.ex:1688: Enum."-map/2-lists^map/1-1-"/2
(mix 1.19.5) lib/mix/dep/loader.ex:368: Mix.Dep.Loader.mix_children/3
(mix 1.19.5) lib/mix/dep/loader.ex:22: Mix.Dep.Loader.children/1
(mix 1.19.5) lib/mix/dep/converger.ex:101: Mix.Dep.Converger.all/4
```
Being trying to figure it out including uninstalling and reinstalling elixir and erlang versions using asdf but nothing fixes it.
Any help in resolving this will be appreciated.
Marked As Solved
Gazler
Phoenix Core Team
Looks like your hex config file has been corrupted. Try running rm ~/.hex/hex.config and running it again.
3
Popular in Questions
Hi All,
I set a environment variables in dev.exs , like below code.
when i start server, how can i set the ${enable} value?
thanks.
d...
New
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
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
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
New
Hello everybody,
usually, I use a 29" ultra-wide monitor for VSCode which can easily accomodate explorer (files panel) + file with code ...
New
I am VERY much an elixir newbie. I have taken one elixir course and one phoenix course on Udemy. During that course, I saw the instructor...
New
Hi!
In PHP: $_SERVER[‘SERVER_ADDR’] - in Elixir?
Searched the docs for ip address and the web, no good results.
Thanks!
New
What is the proper way to load a module from a file in to IEX?
In the python world, doing something like this pretty standard:
from ....
New
Other popular topics
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help.
Where are they similar?
Where do they differ the m...
New
Hi,
I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
Hi all,
I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage.
I’m trying to use Postgres...
New
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
This release brings a number of exciting features, including integration with the new Phoenix LiveDashboard and Phoenix LiveView. There h...
New
i’m a new one to elixir
which editor can i use
vs code? or atom?
Thanks! :smiley:
New
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New
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
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine)
This is a plugin that adds support for Elixir to JetBrains IntelliJ...
New
Hi there,
I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #javascript
- #code-sync
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance








