runtime error
Exit code: 3. Reason: ^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 216, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 216, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 216, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 216, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/fastapi/routing.py", line 216, in merged_lifespan async with original_context(app) as maybe_original_state: File "/usr/local/lib/python3.11/contextlib.py", line 210, in __aenter__ return await anext(self.gen) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/main.py", line 137, in lifespan raise RuntimeError(f"Failed to run database migrations: {str(e)}") from e RuntimeError: Failed to run database migrations: Parse error: FLEXIBLE must be specified after TYPE --> [1:96] | 1 | ...LE source FLEXIBLE TYPE option<object>; DEFINE FIELD IF NOT EXISTS title O... | ^^^^^^^^ ERROR: Application startup failed. Exiting. Starting Open Notebook API server on 0.0.0.0:7860 Reload mode: False â Command failed with exit code 3: /usr/local/bin/python run_api.py
Container logs:
Fetching error logs...