# Help with debugging sqlite's 'busy' error with Ecto3

**URL:** <https://forum.elixirforum.com/t/help-with-debugging-sqlites-busy-error-with-ecto3/33613>\
**Category:** Questions\
**Tags:** ecto, sqlite3, ecto\_sqlite2\
**Created:** [August 7, 2020, 7:50am UTC](https://forum.elixirforum.com/t/help-with-debugging-sqlites-busy-error-with-ecto3/33613 "2020-08-07T07:50:22Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![dmitriid](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/dmitriid/32/13182_2.png) [@dmitriid](https://forum.elixirforum.com/u/dmitriid)\
**Post date:** [August 17, 2020, 7:45am UTC](https://forum.elixirforum.com/t/help-with-debugging-sqlites-busy-error-with-ecto3/33613/8 "2020-08-17T07:45:34Z")

</div>

I should’ve `inspect`ed more

Basically, the tests end up opening multiple connections anyway. For `TestRepo`:

```elixir
{:connect,
 [
   pool_index: 1,
   repo: Ecto.Integration.PoolRepo,
   telemetry_prefix: [:ecto, :integration, :pool_repo],
   otp_app: :ecto,
   timeout: 15000,
   adapter: Sqelect,
   database: "/tmp/test_repo.db",
   pool_size: 10,
   migration_lock: nil,
   pool_size: 1
 ]}
{:connect,
 [
   pool_index: 1,
   repo: Ecto.Integration.TestRepo,
   telemetry_prefix: [:ecto, :integration, :test_repo],
   otp_app: :ecto,
   timeout: 15000,
   adapter: Sqelect,
   database: "/tmp/test_repo.db",
   migration_lock: nil,
   pool_size: 1
 ]}
{:connect,
 [
   pool_index: 6,
   repo: Ecto.Integration.PoolRepo,
   telemetry_prefix: [:ecto, :integration, :pool_repo],
   otp_app: :ecto,
   timeout: 15000,
   adapter: Sqelect,
   database: "/tmp/test_repo.db",
   pool_size: 10,
   migration_lock: nil,
   pool_size: 1
 ]}
...

```

For a total of 11 connections. And in my code I end up starting 11 sqlite gen servers which … is not ideal 🙂

---

_[View the full topic](https://forum.elixirforum.com/t/help-with-debugging-sqlites-busy-error-with-ecto3/33613)._
