-
Notifications
You must be signed in to change notification settings - Fork 62
Description
Hi, I encountered this issue after I executed docker-compose up
web_service-1 | 2025-06-18 01:00:50 - fastapi_mcp.server - INFO - No auth config provided, skipping auth setup
web_service-1 | 2025-06-18 01:00:50 - fastapi_mcp.server - INFO - MCP server listening at /mcp
web_service-1 | INFO: Started server process [1]
web_service-1 | INFO: Waiting for application startup.
web_service-1 | 2025-06-18 01:00:50 - src.lib.database.connection - WARNING - Connection attempt 1/3 failed: IO Error: Could not set lock on file "/app/data/doctor.duckdb": Conflicting lock is held in PID 0. See also https://duckdb.org/docs/stable/connect/concurrency
web_service-1 | 2025-06-18 01:00:52 - src.lib.database.connection - WARNING - Connection attempt 2/3 failed: IO Error: Could not set lock on file "/app/data/doctor.duckdb": Conflicting lock is held in PID 0. See also https://duckdb.org/docs/stable/connect/concurrency
web_service-1 | 2025-06-18 01:00:53 - src.lib.database.connection - WARNING - Connection attempt 3/3 failed: IO Error: Could not set lock on file "/app/data/doctor.duckdb": Conflicting lock is held in PID 0. See also https://duckdb.org/docs/stable/connect/concurrency
web_service-1 | ERROR: Traceback (most recent call last):
web_service-1 | File "/usr/local/lib/python3.12/site-packages/starlette/routing.py", line 692, in lifespan
web_service-1 | async with self.lifespan_context(app) as maybe_state:
web_service-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
web_service-1 | File "/usr/local/lib/python3.12/contextlib.py", line 210, in aenter
web_service-1 | return await anext(self.gen)
web_service-1 | ^^^^^^^^^^^^^^^^^^^^^
web_service-1 | File "/usr/local/lib/python3.12/site-packages/fastapi/routing.py", line 133, in merged_lifespan
web_service-1 | async with original_context(app) as maybe_original_state:
web_service-1 | ^^^^^^^^^^^^^^^^^^^^^
web_service-1 | File "/usr/local/lib/python3.12/contextlib.py", line 210, in aenter
web_service-1 exited with code 3
web_service-1 | return await anext(self.gen)
web_service-1 | ^^^^^^^^^^^^^^^^^^^^^
web_service-1 | File "/app/src/web_service/main.py", line 38, in lifespan
web_service-1 | DatabaseOperations()
web_service-1 | File "/app/src/lib/database/operations.py", line 57, in init
web_service-1 | with self.db as conn_manager:
web_service-1 | ^^^^^^^
web_service-1 | File "/app/src/lib/database/connection.py", line 424, in enter
web_service-1 | self.ensure_connection()
web_service-1 | File "/app/src/lib/database/connection.py", line 194, in ensure_connection
web_service-1 | return self.connect()
web_service-1 | ^^^^^^^^^^^^^^
web_service-1 | File "/app/src/lib/database/connection.py", line 114, in connect
web_service-1 | self.conn = duckdb.connect(str(db_path), read_only=read_only)
web_service-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
web_service-1 | duckdb.duckdb.IOException: IO Error: Could not set lock on file "/app/data/doctor.duckdb": Conflicting lock is held in PID 0. See also https://duckdb.org/docs/stable/connect/concurrency
web_service-1 |
web_service-1 | ERROR: Application startup failed. Exiting.