langflow-ai / langflow

⛓️ Langflow is a visual framework for building multi-agent and RAG applications. It's open-source, Python-powered, fully customizable, model and vector store agnostic.

Home Page:http://www.langflow.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Startup failed

asynchat opened this issue · comments

Describe the bug

[04/18/24 12:32:31] INFO 2024-04-18 12:32:31 - INFO - service - Alembic already initialized service.py:142
INFO 2024-04-18 12:32:31 - INFO - service - Running DB migrations in service.py:150
venv/lib/python3.10/site-packages/langflow/alembic
.venv/lib/python3.10/site-packages/langflow/alembic/env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table flow
context.run_migrations()
.venv/lib/python3.10/site-packages/langflow/alembic/env.py:82: SAWarning: WARNING: SQL-parsed foreign key constraint '('user_id', 'user', 'id')' could not be located in PRAGMA foreign_keys for table flow
context.run_migrations()
[04/18/24 12:32:34] ERROR 2024-04-18 12:32:34 - ERROR - service - AutogenerateDiffsDetected: {exc} service.py:162
ERROR 2024-04-18 12:32:34 - ERROR - utils - Something went wrong running migrations. Please, run langflow migration --fix utils.py:51
ERROR 2024-04-18 12:32:34 - ERROR - utils - Something went wrong running migrations. Please, run langflow migration --fix utils.py:216

then stoped

Version

  • 0.6.16

To Reproduce

exec langflow run

run langflow migration --fix , Throwing the same error

Hey @asynchat
Have you ever installed Langflow before or is this a clean database?

I'll see if I can improve these error messages for us to better diagnose this.

Same error. I had installed Langflow before. I will try clean everything and reinstall.

Hey @asynchat Have you ever installed Langflow before or is this a clean database?

I'll see if I can improve these error messages for us to better diagnose this.

clean install,no history data,Not an upgrade operation

Using the built-in SQLite database

Im getting the same error, conda env

Same error. I had installed Langflow before. I will try clean everything and reinstall.

I just commented the migration routine in alembic env and it started. Dont know if i will have some side effect.

I hava the same question,how to solve it?

I have resolved this issue and found the langflow.db file. After deleting it, I will restart the project