Clean install v1.0.0a28 - Migration Error
fcools opened this issue · comments
Frank Cools commented
After a clean install of v1.0.0a28 with:
python -m pip install langflow --pre --force-reinstall
this error pops up:
Starting Langflow v1.0.0a28...
[04/30/24 11:26:53] ERROR 2024-04-30 11:26:53 - ERROR - service - AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_type', None, 'apikey', 'created_at', service.py:171
{'existing_nullable': True, 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7fa0fce6b850>, for_update=False),
'existing_comment': None}, TIMESTAMP(), DateTime(timezone=True)), ('modify_nullable', None, 'apikey', 'created_at', {'existing_type': TIMESTAMP(),
'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7fa0fce6b850>, for_update=False), 'existing_comment': None}, True, False)]]
ERROR 2024-04-30 11:26:53 - ERROR - utils - Something went wrong running migrations. Please, run `langflow migration --fix` utils.py:51
Shutting down Langflow...
ERROR 2024-04-30 11:26:53 - ERROR - on - Traceback (most recent call last): on.py:121
File "/llm/langflow/langflow/lib/python3.10/site-packages/starlette/routing.py", line 732, in lifespan
async with self.lifespan_context(app) as maybe_state:
File "/usr/lib/python3.10/contextlib.py", line 201, in __aenter__
raise RuntimeError("generator didn't yield") from None
RuntimeError: generator didn't yield
ERROR 2024-04-30 11:26:53 - ERROR - on - Application startup failed. Exiting. on.py:59
[04/30/24 11:26:53] ERROR 2024-04-30 11:26:53 - ERROR - glogging - Worker (pid:666513) exited with code 3 glogging.py:272
ERROR 2024-04-30 11:26:53 - ERROR - glogging - Shutting down: Master glogging.py:272
ERROR 2024-04-30 11:26:53 - ERROR - glogging - Reason: Worker failed to boot. glogging.py:272
The suggestion to run langflow migration --fix throws the following error:
2024-04-30 11:28:51.868 | INFO | langflow.services.database.service:run_migrations:157 - Running DB migrations in /llm/langflow/langflow/lib/python3.10/site-packages/langflow/alembic
2024-04-30 11:28:54.918 | ERROR | langflow.services.database.service:run_migrations:171 - AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_type', None, 'apikey', 'created_at', {'existing_nullable': True, 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7f24008e6aa0>, for_update=False), 'existing_comment': None}, TIMESTAMP(), DateTime(timezone=True)), ('modify_nullable', None, 'apikey', 'created_at', {'existing_type': TIMESTAMP(), 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7f24008e6aa0>, for_update=False), 'existing_comment': None}, True, False)]]
2024-04-30 11:28:54.939 | WARNING | langflow.services.database.service:try_downgrade_upgrade_until_success:189 - AutogenerateDiffsDetected: New upgrade operations detected: [[('modify_type', None, 'apikey', 'created_at', {'existing_nullable': True, 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7f24009449d0>, for_update=False), 'existing_comment': None}, TIMESTAMP(), DateTime(timezone=True)), ('modify_nullable', None, 'apikey', 'created_at', {'existing_type': TIMESTAMP(), 'existing_server_default': DefaultClause(<sqlalchemy.sql.elements.TextClause object at 0x7f24009449d0>, for_update=False), 'existing_comment': None}, True, False)]]
Jascha Huisman commented
Same issue here... Can't seem to find the database and force reinstalling does not help. The only thing that helps is setting up another DB using export LANGFLOW_DATABASE_URL=sqlite:///./langflow.db