langflow-ai / langflow

⛓️ Langflow is a visual framework for building multi-agent and RAG applications. It's open-source, Python-powered, fully customizable, LLM and vector store agnostic.
http://www.langflow.org
MIT License
18.48k stars 2.78k forks source link

Startup failed #1746

Open asynchat opened 1 month ago

asynchat commented 1 month ago

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

To Reproduce

exec langflow run

asynchat commented 1 month ago

run langflow migration --fix , Throwing the same error

ogabrielluiz commented 1 month ago

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.

git-medhy commented 1 month ago

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

asynchat commented 1 month ago

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

asynchat commented 1 month ago

Using the built-in SQLite database

dfessahazion commented 1 month ago

Im getting the same error, conda env

git-medhy commented 1 month ago

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.

Bigboss-2 commented 1 month ago

I hava the same question,how to solve it?

Bigboss-2 commented 1 month ago

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