-
Notifications
You must be signed in to change notification settings - Fork 54
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
ETS error when running Vault without mix #125
Comments
@monooso did you find a solution to this? I have the exact same issue :( |
I'm having a similar issue when stopping and restarting my application. I suspect it's because I have my vault not being started early enough in the supervision tree. I'm going to try moving it up and see if that fixes it. EDIT: That didn't seem to do it. Maybe there's some kind of |
i'm trying to migrate data like:
pretty simple usecase, but getting the same error. i understand Vault is a Genserver, but starting it manually doesn't help. the guides/how_to/encrypt_existing_data.md page suggest to use IEX or a mix task for this so do i understand correctly that unless you're using a custom server (with elixir installed) you can't use this package in production? pretty major oversight, great package otherwise. Solution (edit)actually I just figured it out. you start the Vault with real solution is to either support this officially or document it somewhere. I've documented the workaround in danielberkompas/cloak_ecto#47. |
Fixes #125. The problem was that users weren't waiting for the vault process to start before calling functions on it in their `release.ex` file.
This happens when you don't wait for the vault process to start before calling functions on it. The
In this case, the right approach would be to define a def start_app do
load_app
Application.ensure_all_started(:my_app)
end Then call https://hexdocs.pm/phoenix/releases.html#ecto-migrations-and-custom-commands I've added a helpful error message for this in #126. |
Hello,
I'm running into an issue when attempting to copy existing data to encrypted fields on fly.io (it works fine locally).
The error is as follows:
I read through the troubleshooting guide, which mentions a similar-sounding issue, but I don't believe it's the same problem; as I understand it, Fly compiles the application during deployment.
For the sake of completeness, this is the data migration code. We call it from a function in
MyApp.Releases
(mix
is not available on Fly).Do you have any suggestions on how to debug this problem? We're completely stumped.
Thanks,
Stephen
The text was updated successfully, but these errors were encountered: