langflow icon indicating copy to clipboard operation
langflow copied to clipboard

Startup failed

Open asynchat opened this issue 10 months ago • 11 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

asynchat avatar Apr 18 '24 04:04 asynchat

run langflow migration --fix , Throwing the same error

asynchat avatar Apr 18 '24 04:04 asynchat

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.

ogabrielluiz avatar Apr 18 '24 13:04 ogabrielluiz

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

git-medhy avatar Apr 18 '24 14:04 git-medhy

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 avatar Apr 19 '24 03:04 asynchat

Using the built-in SQLite database

asynchat avatar Apr 19 '24 03:04 asynchat

Im getting the same error, conda env

dfessahazion avatar Apr 19 '24 05:04 dfessahazion

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.

git-medhy avatar Apr 19 '24 12:04 git-medhy

I hava the same question,how to solve it?

Bigboss-2 avatar Apr 26 '24 02:04 Bigboss-2

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

Bigboss-2 avatar Apr 26 '24 07:04 Bigboss-2

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.

I hava the same question,how to solve it? I installed langflow before

AndyBai175 avatar Jun 07 '24 02:06 AndyBai175

Hello @AndyBai175, Sorry for the delay. Did you try using the new version? Does the error still persist?

anovazzi1 avatar Jul 01 '24 16:07 anovazzi1

Hi @AndyBai175

We hope you're doing well. Just a friendly reminder that if we do not hear back from you within the next 3 days, we will close this issue. If you need more time or further assistance, please let us know.


Thank you for your understanding!

carlosrcoelho avatar Jul 17 '24 14:07 carlosrcoelho

Thank you for your contribution! This issue will be closed. If you have any questions or encounter another problem, please open a new issue and we will be ready to assist you.

carlosrcoelho avatar Jul 22 '24 00:07 carlosrcoelho