Ecto: ** (MatchError) no match of right hand side value: {:error, {:postgrex, {'no such file or directory', 'postgrex.app'}}} even when using mysql

Created on 20 Jul 2017  路  6Comments  路  Source: elixir-ecto/ecto

Im not using postgresql but mysql i added mariaex in config still the error.

config :auth, Auth.Repo,
  adapter: Ecto.Adapters.MySQL,
  ...

config :auth,
  ecto_repos: [Auth.Repo]

  defp deps do
    [{:ecto, "~> 2.1"},
      {:mariaex, "~> 0.8.2"}]
  end

im using umbrella app

Most helpful comment

thanks, repo.ex had "adapter: Ecto.Adapters.Postgres" by default, that was the error

All 6 comments

Can you please provide an application that reproduces the error? Try searching for "postgrex" in your whole project and see if there is anything left.

I had postgrex installed(default by phoenix) in one of apps_web of umbrella i was calling auth from.

After i removed it and did a clean compile (mix.deps.clean && mix.deps.compile) it worked perfectly.

can you tell me where did you removed the postgrex installer ? im getting the same error

It's generally best to ask this on the forums, but in general check all of your configs to see what database type is being used.

thanks, repo.ex had "adapter: Ecto.Adapters.Postgres" by default, that was the error

mix clean && mix compile (not the mix deps.* versions) seemed to resolve this for me just now.

Was this page helpful?
0 / 5 - 0 ratings