Open windowshopr opened 1 month ago
Hey there, @windowshopr! 👋 I'm here to help you with any bugs, questions, or contributions you might have. Let's squash those bugs and get things running smoothly!
I found a similar issue that might be relevant to your problem: [Bug]: dependency failed to start: container supabase-analytics is unhealthy. This issue is closed and was last updated on August 09, 2024 [1].
For the supabase_vector_secondbrain
container, ensure that the necessary environment variables are correctly set. These include:
openai_api_key
azure_openai_embeddings_url
supabase_url
supabase_service_key
pg_database_url
pg_database_async_url
embedding_dim
Additionally, the backend/ci-migration.sh
script indicates the need for:
Make sure these variables are correctly configured in your environment.
If the issue persists, you might want to check the Docker logs for more specific error messages related to the health checks. The logs you provided indicate a network issue (Network unreachable (os error 101)
). This could be related to Docker's network configuration or a firewall setting on your Windows machine.
Try the following steps:
supabase_vector_secondbrain
container.If these steps do not resolve the issue, you may need to investigate further into the Docker network settings or consult the Docker documentation for more detailed troubleshooting steps.
To continue talking to Dosu, mention @dosu.
The similar issue you found didn't provide an answer.
The .env file is left completely default, except for the uncommenting of the line:
OLLAMA_API_BASE_URL=http://host.docker.internal:11434 # Uncomment to activate ollama. This is the local url for the ollama api
...as I plan to use Ollama models for my applications.
The documentation should be updated if other changes are to be made for the supabase instructions.
As a second attempt watching the installation video on Youtube doesn't show using supabase at all, just:
docker compose pull
docker compose up
...Which results in the following output, where I see two questionable sections
time="2024-09-16T00:57:53-06:00" level=warning msg="I:\\nasty\\Python_Projects\\LLM\\quivr\\docker-compose.yml: `version` is obsolete"
[+] Running 7/0
✔ Container redis Created 0.0s
✔ Container backend-api Created 0.0s
✔ Container web Created 0.0s
✔ Container beat Created 0.0s
✔ Container worker Created 0.0s
✔ Container flower Created 0.0s
✔ Container notifier Created 0.0s
Attaching to backend-api, beat, flower, notifier, redis, web, worker
redis | 1:C 16 Sep 2024 06:57:54.279 * oO0OoO0OoO0Oo Redis is starting oO0OoO0OoO0Oo
redis | 1:C 16 Sep 2024 06:57:54.279 * Redis version=7.2.3, bits=64, commit=00000000, modified=0, pid=1, just started
redis | 1:C 16 Sep 2024 06:57:54.279 # Warning: no config file specified, using the default config. In order to specify a config file use redis-server /path/to/redis.conf
redis | 1:M 16 Sep 2024 06:57:54.280 * monotonic clock: POSIX clock_gettime
redis | 1:M 16 Sep 2024 06:57:54.284 * Running mode=standalone, port=6379.
redis | 1:M 16 Sep 2024 06:57:54.289 * Server initialized
redis | 1:M 16 Sep 2024 06:57:54.289 * Loading RDB produced by version 7.2.3
redis | 1:M 16 Sep 2024 06:57:54.289 * RDB age 47 seconds
redis | 1:M 16 Sep 2024 06:57:54.289 * RDB memory usage when created 1.44 Mb
redis | 1:M 16 Sep 2024 06:57:54.290 * Done loading RDB, keys loaded: 12, keys expired: 0.
redis | 1:M 16 Sep 2024 06:57:54.290 * DB loaded from disk: 0.001 seconds
redis | 1:M 16 Sep 2024 06:57:54.290 * Ready to accept connections tcp
backend-api | INFO: Will watch for changes in these directories: ['/app']
backend-api | INFO: Uvicorn running on http://0.0.0.0:5050 (Press CTRL+C to quit)
backend-api | INFO: Started reloader process [1] using StatReload
web | ▲ Next.js 14.1.0
web | - Local: http://localhost:3000
web | - Network: http://0.0.0.0:3000
web |
web | ✓ Ready in 379ms
notifier | [INFO] quivr_api.modules.dependencies [dependencies.py:179]: Creating Supabase client
notifier | [INFO] notifier_service [celery_monitor.py:150]: Started quivr-notifier service...
notifier | [INFO] notifier_service [celery_monitor.py:51]: Initialized knowledge_service. Listening to task event...
flower | [INFO] quivr_api.modules.dependencies [dependencies.py:179]: Creating Supabase client
beat | [INFO] quivr_api.modules.dependencies [dependencies.py:179]: Creating Supabase client
worker | [INFO] quivr_api.modules.dependencies [dependencies.py:179]: Creating Supabase client
flower | [INFO] quivr_api.modules.dependencies [dependencies.py:153]: Creating Postgres DB engine
flower | [I 240916 06:58:03 command:168] Visit me at http://0.0.0.0:5555
flower | [I 240916 06:58:03 command:176] Broker: redis://redis:6379/0
flower | [I 240916 06:58:03 command:177] Registered tasks:
flower | ['NotionConnectorLoad',
flower | 'celery.accumulate',
flower | 'celery.backend_cleanup',
flower | 'celery.chain',
flower | 'celery.chord',
flower | 'celery.chord_unlock',
flower | 'celery.chunks',
flower | 'celery.group',
flower | 'celery.map',
flower | 'celery.starmap',
flower | 'check_is_premium_task',
flower | 'fetch_and_store_notion_files_task',
worker | [INFO] quivr_api.modules.dependencies [dependencies.py:153]: Creating Postgres DB engine
flower | 'process_active_syncs_task',
beat | [INFO] quivr_api.modules.dependencies [dependencies.py:153]: Creating Postgres DB engine
flower | 'process_crawl_task',
flower | 'process_file_task',
flower | 'process_notion_sync_task',
flower | 'process_sync_task',
worker | /usr/local/lib/python3.11/site-packages/celery/platforms.py:829: SecurityWarning: You're running the worker with superuser privileges: this is
flower | 'quivr_worker.celery_worker.ping_telemetry',
worker | absolutely not recommended!
beat | [2024-09-16 06:58:03,672: INFO/MainProcess] beat: Starting...
flower | 'quivr_worker.celery_worker.process_integration_brain_sync_user_brain']
worker |
flower | [I 240916 06:58:03 mixins:229] Connected to redis://redis:6379/0
worker | Please specify a different user using the --uid option.
worker |
worker | User information: uid=0 euid=0 gid=0 egid=0
worker |
worker | warnings.warn(SecurityWarning(ROOT_DISCOURAGED.format(
worker |
worker | -------------- celery@f5355532b0d8 v5.4.0 (opalescent)
worker | --- ***** -----
worker | -- ******* ---- Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.31 2024-09-16 06:58:03
worker | - *** --- * ---
beat | [2024-09-16 06:58:03,774: INFO/MainProcess] Scheduler: Sending due task process_premium_users (check_is_premium_task)
worker | - ** ---------- [config]
worker | - ** ---------- .> app: quivr_api.celery_config:0x7fc4242c4790
beat | [2024-09-16 06:58:03,793: INFO/MainProcess] Scheduler: Sending due task process_active_syncs (process_active_syncs_task)
worker | - ** ---------- .> transport: redis://redis:6379/0
worker | - ** ---------- .> results: redis://redis:6379/0
worker | - *** --- * --- .> concurrency: 2 (prefork)
worker | -- ******* ---- .> task events: OFF (enable -E to monitor tasks in this worker)
worker | --- ***** -----
worker | -------------- [queues]
worker | .> celery exchange=celery(direct) key=celery
worker |
worker |
worker | [tasks]
worker | . NotionConnectorLoad
worker | . check_is_premium_task
worker | . fetch_and_store_notion_files_task
worker | . process_active_syncs_task
worker | . process_crawl_task
worker | . process_file_task
worker | . process_notion_sync_task
worker | . process_sync_task
worker | . quivr_worker.celery_worker.ping_telemetry
worker | . quivr_worker.celery_worker.process_integration_brain_sync_user_brain
worker |
worker | [2024-09-16 06:58:04,032: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker | whether broker connection retries are made during startup in Celery 6.0 and above.
worker | If you wish to retain the existing behavior for retrying connections on startup,
worker | you should set broker_connection_retry_on_startup to True.
worker | warnings.warn(
worker |
worker | [2024-09-16 06:58:04,061: INFO/MainProcess] Connected to redis://redis:6379/0
worker | [2024-09-16 06:58:04,064: WARNING/MainProcess] /usr/local/lib/python3.11/site-packages/celery/worker/consumer/consumer.py:508: CPendingDeprecationWarning: The broker_connection_retry configuration setting will no longer determine
worker | whether broker connection retries are made during startup in Celery 6.0 and above.
worker | If you wish to retain the existing behavior for retrying connections on startup,
worker | you should set broker_connection_retry_on_startup to True.
worker | warnings.warn(
worker |
worker | [2024-09-16 06:58:04,070: INFO/MainProcess] mingle: searching for neighbors
backend-api | [INFO] quivr_api.modules.dependencies [dependencies.py:179]: Creating Supabase client
backend-api | [INFO] quivr_api.modules.dependencies [dependencies.py:153]: Creating Postgres DB engine
flower | [W 240916 06:58:04 inspector:44] Inspect method stats failed
flower | [W 240916 06:58:04 inspector:44] Inspect method registered failed
flower | [W 240916 06:58:04 inspector:44] Inspect method active_queues failed
flower | [W 240916 06:58:04 inspector:44] Inspect method active failed
flower | [W 240916 06:58:04 inspector:44] Inspect method reserved failed
flower | [W 240916 06:58:04 inspector:44] Inspect method scheduled failed
worker | [2024-09-16 06:58:05,078: INFO/MainProcess] mingle: all alone
worker | [2024-09-16 06:58:05,091: INFO/MainProcess] celery@f5355532b0d8 ready.
worker | [2024-09-16 06:58:05,095: INFO/MainProcess] Task check_is_premium_task[7f027681-655a-4596-9a42-c411da568b29] received
worker | [2024-09-16 06:58:05,097: INFO/MainProcess] Task process_active_syncs_task[f857b54f-b2ec-49d3-ba84-7a34dc0cd7a9] received
worker | [INFO] celery_worker [check_premium.py:16]: Stripe deactivated, skipping check for premium users
worker | [2024-09-16 06:58:05,103: INFO/ForkPoolWorker-2] Task check_is_premium_task[7f027681-655a-4596-9a42-c411da568b29] succeeded in 0.004031250000025466s: None
worker | [2024-09-16 06:58:05,146: ERROR/ForkPoolWorker-1] Task process_active_syncs_task[f857b54f-b2ec-49d3-ba84-7a34dc0cd7a9] raised unexpected: ConnectionRefusedError(111, "Connect call failed ('192.168.65.254', 54322)")
worker | Traceback (most recent call last):
worker | File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 453, in trace_task
worker | R = retval = fun(*args, **kwargs)
worker | ^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/celery/app/trace.py", line 736, in __protected_call__
worker | return self.run(*args, **kwargs)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/app/worker/quivr_worker/celery_worker.py", line 270, in process_active_syncs_task
worker | loop.run_until_complete(
worker | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 653, in run_until_complete
worker | return future.result()
worker | ^^^^^^^^^^^^^^^
worker | File "/app/worker/quivr_worker/syncs/process_active_syncs.py", line 62, in process_all_active_syncs
worker | async with build_syncs_utils(sync_services) as mapping_sync_utils:
worker | File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
worker | return await anext(self.gen)
worker | ^^^^^^^^^^^^^^^^^^^^^
worker | File "/app/worker/quivr_worker/syncs/utils.py", line 90, in build_syncs_utils
worker | raise e
worker | File "/app/worker/quivr_worker/syncs/utils.py", line 56, in build_syncs_utils
worker | await session.execute(
worker | File "/usr/local/lib/python3.11/site-packages/sqlmodel/ext/asyncio/session.py", line 143, in execute
worker | return await super().execute(
worker | ^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/session.py", line 461, in execute
worker | result = await greenlet_spawn(
worker | ^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 201, in greenlet_spawn
worker | result = context.throw(*sys.exc_info())
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlmodel/orm/session.py", line 127, in execute
worker | return super().execute(
worker | ^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2362, in execute
worker | return self._execute_internal(
worker | ^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2237, in _execute_internal
worker | conn = self._connection_for_bind(bind)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2106, in _connection_for_bind
worker | return trans._connection_for_bind(engine, execution_options)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "<string>", line 2, in _connection_for_bind
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
worker | ret_value = fn(self, *arg, **kw)
worker | ^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1189, in _connection_for_bind
worker | conn = bind.connect()
worker | ^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3278, in connect
worker | return self._connection_cls(self)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 146, in __init__
worker | self._dbapi_connection = engine.raw_connection()
worker | ^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3302, in raw_connection
worker | return self.pool.connect()
worker | ^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 449, in connect
worker | return _ConnectionFairy._checkout(self)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
worker | fairy = _ConnectionRecord.checkout(pool)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
worker | rec = pool._do_get()
worker | ^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
worker | with util.safe_reraise():
flower | [W 240916 06:58:05 inspector:44] Inspect method revoked failed
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
flower | [W 240916 06:58:05 inspector:44] Inspect method conf failed
worker | raise exc_value.with_traceback(exc_tb)
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
worker | return self._create_connection()
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
worker | return _ConnectionRecord(self)
worker | ^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
worker | self.__connect()
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
worker | with util.safe_reraise():
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
worker | raise exc_value.with_traceback(exc_tb)
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
worker | self.dbapi_connection = connection = pool._invoke_creator(self)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 643, in connect
worker | return dialect.connect(*cargs, **cparams)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 621, in connect
worker | return self.loaded_dbapi.connect(*cargs, **cparams)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 932, in connect
worker | await_only(creator_fn(*arg, **kw)),
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 132, in await_only
worker | return current.parent.switch(awaitable) # type: ignore[no-any-return,attr-defined] # noqa: E501
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 196, in greenlet_spawn
worker | value = await result
worker | ^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 2329, in connect
worker | return await connect_utils._connect(
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 1017, in _connect
worker | raise last_error or exceptions.TargetServerAttributeNotMatched(
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 991, in _connect
worker | conn = await _connect_addr(
worker | ^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 828, in _connect_addr
worker | return await __connect_addr(params, True, *args)
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 873, in __connect_addr
worker | tr, pr = await connector
worker | ^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 744, in _create_ssl_connection
worker | tr, pr = await loop.create_connection(
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1085, in create_connection
worker | raise exceptions[0]
worker | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 1069, in create_connection
worker | sock = await self._connect_sock(
worker | ^^^^^^^^^^^^^^^^^^^^^^^^^
worker | File "/usr/local/lib/python3.11/asyncio/base_events.py", line 973, in _connect_sock
worker | await self.sock_connect(sock, address)
worker | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 634, in sock_connect
worker | return await fut
worker | ^^^^^^^^^
worker | File "/usr/local/lib/python3.11/asyncio/selector_events.py", line 674, in _sock_connect_cb
worker | raise OSError(err, f'Connect call failed {address}')
worker | ConnectionRefusedError: [Errno 111] Connect call failed ('192.168.65.254', 54322)
backend-api | [INFO] quivr_api.main [main.py:120]: Telemetry enabled, we use telemetry to collect anonymous usage data.
backend-api | [INFO] quivr_api.main [main.py:121]: To disable telemetry, set the TELEMETRY_ENABLED environment variable to false.
worker | [2024-09-16 06:58:08,540: INFO/MainProcess] Events of group {task} enabled by remote.
backend-api | INFO: Started server process [8]
backend-api | INFO: Waiting for application startup.
backend-api | INFO: Application startup complete.
backend-api | INFO: 127.0.0.1:57108 - "GET /healthz HTTP/1.1" 500 Internal Server Error
backend-api | ERROR: Exception in ASGI application
backend-api | Traceback (most recent call last):
backend-api | File "/usr/local/lib/python3.11/site-packages/uvicorn/protocols/http/h11_impl.py", line 406, in run_asgi
backend-api | result = await app( # type: ignore[func-returns-value]
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/uvicorn/middleware/proxy_headers.py", line 70, in __call__
backend-api | return await self.app(scope, receive, send)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/fastapi/applications.py", line 1054, in __call__
backend-api | await super().__call__(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/applications.py", line 123, in __call__
backend-api | await self.middleware_stack(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 186, in __call__
backend-api | raise exc
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/errors.py", line 164, in __call__
backend-api | await self.app(scope, receive, _send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/cors.py", line 85, in __call__
backend-api | await self.app(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/middleware/exceptions.py", line 65, in __call__
backend-api | await wrap_app_handling_exceptions(self.app, conn)(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
backend-api | raise exc
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
backend-api | await app(scope, receive, sender)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 754, in __call__
backend-api | await self.middleware_stack(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 774, in app
backend-api | await route.handle(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 295, in handle
backend-api | await self.app(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 77, in app
backend-api | await wrap_app_handling_exceptions(app, request)(scope, receive, send)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 64, in wrapped_app
backend-api | raise exc
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/_exception_handler.py", line 53, in wrapped_app
backend-api | await app(scope, receive, sender)
backend-api | File "/usr/local/lib/python3.11/site-packages/starlette/routing.py", line 74, in app
backend-api | response = await f(request)
backend-api | ^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 269, in app
backend-api | solved_result = await solve_dependencies(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/fastapi/dependencies/utils.py", line 596, in solve_dependencies
backend-api | solved = await solve_generator(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/fastapi/dependencies/utils.py", line 521, in solve_generator
backend-api | return await stack.enter_async_context(cm)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/contextlib.py", line 638, in enter_async_context
backend-api | result = await _enter(cm)
backend-api | ^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/contextlib.py", line 204, in __aenter__
backend-api | return await anext(self.gen)
backend-api | ^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/app/api/quivr_api/modules/dependencies.py", line 108, in get_async_session
backend-api | raise e
backend-api | File "/app/api/quivr_api/modules/dependencies.py", line 101, in get_async_session
backend-api | await session.execute(
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlmodel/ext/asyncio/session.py", line 143, in execute
backend-api | return await super().execute(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/ext/asyncio/session.py", line 461, in execute
backend-api | result = await greenlet_spawn(
backend-api | ^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 201, in greenlet_spawn
backend-api | result = context.throw(*sys.exc_info())
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlmodel/orm/session.py", line 127, in execute
backend-api | return super().execute(
backend-api | ^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2362, in execute
backend-api | return self._execute_internal(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2237, in _execute_internal
backend-api | conn = self._connection_for_bind(bind)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 2106, in _connection_for_bind
backend-api | return trans._connection_for_bind(engine, execution_options)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "<string>", line 2, in _connection_for_bind
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/state_changes.py", line 139, in _go
backend-api | ret_value = fn(self, *arg, **kw)
backend-api | ^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/orm/session.py", line 1189, in _connection_for_bind
backend-api | conn = bind.connect()
backend-api | ^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3278, in connect
backend-api | return self._connection_cls(self)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 146, in __init__
backend-api | self._dbapi_connection = engine.raw_connection()
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/base.py", line 3302, in raw_connection
backend-api | return self.pool.connect()
backend-api | ^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 449, in connect
backend-api | return _ConnectionFairy._checkout(self)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 1263, in _checkout
backend-api | fairy = _ConnectionRecord.checkout(pool)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 712, in checkout
backend-api | rec = pool._do_get()
backend-api | ^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 179, in _do_get
backend-api | with util.safe_reraise():
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
backend-api | raise exc_value.with_traceback(exc_tb)
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/impl.py", line 177, in _do_get
backend-api | return self._create_connection()
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 390, in _create_connection
backend-api | return _ConnectionRecord(self)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 674, in __init__
backend-api | self.__connect()
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 900, in __connect
backend-api | with util.safe_reraise():
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/langhelpers.py", line 146, in __exit__
backend-api | raise exc_value.with_traceback(exc_tb)
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/pool/base.py", line 896, in __connect
backend-api | self.dbapi_connection = connection = pool._invoke_creator(self)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/create.py", line 643, in connect
backend-api | return dialect.connect(*cargs, **cparams)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/engine/default.py", line 621, in connect
backend-api | return self.loaded_dbapi.connect(*cargs, **cparams)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/dialects/postgresql/asyncpg.py", line 932, in connect
backend-api | await_only(creator_fn(*arg, **kw)),
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 132, in await_only
backend-api | return current.parent.switch(awaitable) # type: ignore[no-any-return,attr-defined] # noqa: E501
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/sqlalchemy/util/_concurrency_py3k.py", line 196, in greenlet_spawn
backend-api | value = await result
backend-api | ^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connection.py", line 2329, in connect
backend-api | return await connect_utils._connect(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 1017, in _connect
backend-api | raise last_error or exceptions.TargetServerAttributeNotMatched(
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 991, in _connect
backend-api | conn = await _connect_addr(
backend-api | ^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 828, in _connect_addr
backend-api | return await __connect_addr(params, True, *args)
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 873, in __connect_addr
backend-api | tr, pr = await connector
backend-api | ^^^^^^^^^^^^^^^
backend-api | File "/usr/local/lib/python3.11/site-packages/asyncpg/connect_utils.py", line 744, in _create_ssl_connection
backend-api | tr, pr = await loop.create_connection(
backend-api | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
backend-api | File "uvloop/loop.pyx", line 2039, in create_connection
backend-api | File "uvloop/loop.pyx", line 2016, in uvloop.loop.Loop.create_connection
backend-api | ConnectionRefusedError: [Errno 111] Connection refused
Trying to ignore these issues, I navigate to the webpage anyway and try to login:
No dice, connection refused.
What happened?
Windows 10, Python 3.11, Docker Desktop.
Trying to follow the documentation step by step.
I noticed that the supabase vector container is stuck on restarting, so I delete that container, and re-reun:
Same output as above:
Something about vector_secondbrain not passing the health checks?
Relevant log output