Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean install v1.0.0a28 - Migration Error #1797

Open
fcools opened this issue Apr 30, 2024 · 1 comment
Open

Clean install v1.0.0a28 - Migration Error #1797

fcools opened this issue Apr 30, 2024 · 1 comment

Comments

@fcools
Copy link

fcools commented Apr 30, 2024

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)]]
@jaschahuisman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants