:mnesia is listed both as a regular application and as an included application from deps

Hey,

I am trying to set up mnesia in my project.

I am using 2 deps.
Everything works fine locally, but when I build a release I get this error:

:mnesia is listed both as a regular application and as an included application from deps

The relevant lines:
I enjoy the interface of this.

I enjoy the easy setup from this.

Is there a way to resolve this error?

Thank you

1 Like

Do you also list mnesia as a dependency in your mix.exs itself or
is it only coming from these dependencies?

Hey, I am not listing mnesia myself. It is coming from the dependencies.

I think Adding deps to included_applications raises on release · Issue #9683 · elixir-lang/elixir · GitHub explains the same issue as you: like José replied, can you try setting either mnesiac: :load or memento: :load in your release configuration?

I would try: setting memento: :load and then starting Mnesia manually.
If I read memento’s code 1 properly, it just starts Mnesia under the
hood, so only loading it will probably cause less troubles.

Hey,
Thanks for the reply!

I figured that there is one more dep that does the same as memento with listing mnesia.
I tried to load them as you said but didn’t seem to help.
I ended up removing everything other than mnesiac.

1 Like