Skip to content
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

The database for App.Repo couldn't be dropped ... database "app_test" is being accessed by other users #212

Open
nelsonic opened this issue Dec 25, 2024 · 0 comments
Labels
chore a tedious but necessary task often paying technical debt technical A technical issue that requires understanding of the code, infrastructure or dependencies

Comments

@nelsonic
Copy link
Member

Context: trying to run test from inside VSCode

image

Mix task exited with reason
an exception was raised:
    ** (Mix.Error) The database for App.Repo couldn't be dropped: ERROR 55006 (object_in_use) database "app_test" is being accessed by other users

There are 10 other sessions using the database.
        (mix 1.17.2) lib/mix.ex:588: Mix.raise/2
        (elixir 1.17.2) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
        (mix 1.17.2) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
        (mix 1.17.2) lib/mix/task.ex:561: Mix.Task.run_alias/6
        (debug_adapter 0.25.0) lib/debug_adapter/server.ex:2346: ElixirLS.DebugAdapter.Server.launch_task/1
returning code 1
08:50:35.701 [error] Process #PID<0.448.0> raised an exception
** (Mix.Error) The database for App.Repo couldn't be dropped: ERROR 55006 (object_in_use) database "app_test" is being accessed by other users

There are 10 other sessions using the database.
    (mix 1.17.2) lib/mix.ex:588: Mix.raise/2
    (elixir 1.17.2) lib/enum.ex:987: Enum."-each/2-lists^foreach/1-0-"/2
    (mix 1.17.2) lib/mix/task.ex:495: anonymous fn/3 in Mix.Task.run_task/5
    (mix 1.17.2) lib/mix/task.ex:561: Mix.Task.run_alias/6
    (debug_adapter 0.25.0) lib/debug_adapter/server.ex:2346: ElixirLS.DebugAdapter.Server.launch_task/1

Would quite like to get this working ... 💭

@nelsonic nelsonic added technical A technical issue that requires understanding of the code, infrastructure or dependencies chore a tedious but necessary task often paying technical debt labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore a tedious but necessary task often paying technical debt technical A technical issue that requires understanding of the code, infrastructure or dependencies
Projects
None yet
Development

No branches or pull requests

1 participant