-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Why am I getting :no_exists on :id_seq
#26
Comments
Can you show what shell commands do you run? Basically whenever a table is created we should insert a new record into |
@AndrewDryga edit: @AndrewDryga if you need anymore infos please tell me and btw im using windows 10 |
@AndrewDryga might help: |
@gallexme thanks, I'll look into it. |
@gallexme you need to create directory for Mnesia files first, try to call Also you will need to add |
The Patch exists on my pc and And the other issue is just a warning it shouldnt matter as the Web App doesn't even have ecto |
Sorry was written on my phone Patch means path |
I'm getting this similar error In my case the error is triggered when starting my node # It works
$ elixir --cookie cookie123 -S mix phoenix.server
# Does not work (triggers the error)
$ elixir --name [email protected] --cookie cookie123 -S mix phoenix.server This is a serious limitation, and it should probably be addressed! Cheers! |
@walkr try to:
In general, It's not an adapter limitation, rather you should dig deeper into Mnesia details. |
@AndrewDryga Thanks! I've actually ended up fixing the problem, but bumped into another one. I've solved the problem by supplying the settings on the adapter in the Example config :my_app, MyApp.Mnesia.Repo,
adapter: EctoMnesia.Adapter,
priv: "priv/repo_mnesia",
host: {:system, :atom, "MNESIA_HOST", Kernel.node()},
storage_type: {:system, :atom, "MNESIA_STORAGE_TYPE", :disc_copies} However, now I'm bumping into the same |
For RAM copies you need to make sure that you run migrations on each time Erlang VM node starts. And this is a adapters part that could be automated. I'll add separate issue for it. |
my migration is (I've tried
:set
as well)I see an
id_seq
table in mnesia, but it is empty. Does it need to be seeded with something or did I do something else wrong? Thanks for the help.The text was updated successfully, but these errors were encountered: