-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
When LANGFLOW_LOAD_FLOWS_PATH is set and when docker_example is being used, when bringing up the service 2nd time, langflow crashes #6054
Comments
The issue you're encountering seems to be related to a foreign key constraint violation between the Here are a few potential reasons and solutions:
By addressing these points, you should be able to resolve the foreign key violation issue and ensure that Langflow starts normally on repeated restarts. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Somehow on first-start, |
Found a temporary hack insert into folder (id, name, description, parent_id, user_id)
values (
<folder id from json>,
<some name>,
<some description>,
null,
(
select id
from public.user
where username = 'langflow'
)
) this needs to be executed in postgres shell (psql) in 2nd environment. Not encountering any issues. |
Thank for this report! We'll look into it ASAP. |
To contribute to this discussion, I have tested deploying Langflow(v1.1.3) using a Helm chart in Kubernetes(runtime 0.1.1) and noticed two key issues:
|
@bmmuc The CLI has a I might add a setting for disabling the creation of a superuser automatically. |
So, we got a few improvements that should help with this but I'm not sure it will fix it entirely. Due to time constraints we are going to limit this fix at this for now but expect more thorough pass on this in the next few days. |
Bug Description
I wanted to import the flow I had built in my dev environment and run it headlessly in a staging environment.
LANGFLOW_LOAD_FLOWS_PATH
seemed like the right fit. It did work as intended when I brought up the service the first time. However, in subsequent starts, langflow crashes.The specific error message when the crash happens is
I think either:
Reproduction
docker-compose.yml
file:--backend-only
flag to thecommand
which triggered the errors). It will start throwing the error aboveExpected behavior
Langflow should start normally even on repeated restarts when flows are mounted through
LANGFLOW_LOAD_FLOWS_PATH
Who can help?
@italojohnny @ogabrielluiz
Operating System
KDE Neon 5.65 (Linux, based on Debian). Docker version 27.4.1, build b9d17ea
Langflow Version
v1.1.3
Python Version
None
Screenshot
Flow File
The flow has credentials so can't really share it, but it must be possible to replicate this with any basic flow as well
The text was updated successfully, but these errors were encountered: