-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Persistence and Configuration Issues with Langflow Deployment Using Docker Compose #5340
Comments
Hey @kozanakyel! I'm here to help you with the Langflow deployment issue you're facing. Let's work together to solve this! To address the issues you're experiencing with Langflow deployment using Docker Compose, here are some steps you can take:
These steps should help resolve the issues you're facing. If problems persist, further investigation into the logs and configuration files may be necessary. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Hello @dosu i cloned the repository to my server then i go to langflow/deploy folder. i edit the .env file then i commadn the docker-compose pull and docker-compse up. but i got deploy-celeryworker-1 to find No module named 'celery' errors. and also if i create a flow or api key from settings and i try to down and up docker compose. i did not see my created flows or any other conf. you can see my env. file. and also my ip point to my domain that is not pronblem at this phase. celeryworker and concurrency important from that. this is my env file example==>`DOMAIN=xxx.mywebsite.com TRAEFIK_PUBLIC_NETWORK=traefik-public Langflow backend configurationLANGFLOW_AUTO_LOGIN=False Langflow frontend configurationBACKEND_URL=http://backend:7860 LANGFLOW_WORKER_TIMEOUT=300 RabbitMQ configurationRABBITMQ_DEFAULT_USER=langflow Database configurationDB_USER=langflow DB configurationPOSTGRES_USER=langflow Flower configurationDisable until #2655 gets released#LANGFLOW_CACHE_TYPE=redis LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@db:5432/langflowPGAdmin configurationPGADMIN_DEFAULT_EMAIL=[email protected] |
The "No module named 'celery'" error suggests that Celery is not installed in your Docker container. To resolve this, ensure that Celery is included in your Docker setup. Here are some steps to address the issues:
By ensuring these configurations are correct, you should be able to resolve the issues with Celery and data persistence. If problems persist, reviewing the logs for more specific error messages can provide further insights. To continue talking to Dosu, mention @dosu. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other |
Bug Description
When deploying Langflow using the provided docker-compose.yml and environment configuration from langflow/deploy folder via docker-compose pull and up, the application fails to use the specified PostgreSQL database and instead defaults to SQLite. Even if i use .env.example's db conf credentials. This leads to data loss for flows and API keys between restarts. Additionally, the Celery workers are not running due to a missing celery module, preventing horizontal scaling of worker processes. Streaming functionalities remain in a loading state, and SSL is not being enabled even though a subdomain and related settings are provided.
Reproduction
1-Clone the langflow repository and checkout the v1.1.1 tag.
2-Prepare an .env file with valid PostgreSQL configuration details (e.g., POSTGRES_DB, POSTGRES_USER, POSTGRES_PASSWORD, POSTGRES_HOST, POSTGRES_PORT) within langflow/deploy.
3-Run docker compose pull followed by docker compose up.
4-Observe that a superuser is created, but newly created flows and API keys are not persisted to the PostgreSQL database and will be lost after a restart.
5-Stop the services with docker compose down and bring them up again using docker compose up.
6-Note that previously created flows and API keys are no longer available.
7-Check docker logs deploy-celeryworker-1 to find No module named 'celery' errors.
8-Attempt to use the streaming functionality and observe that the frontend UI remains stuck in a loading state.
9-Configure a domain/subdomain and note that SSL does not activate, leaving the site accessible only over HTTP.
Expected behavior
Database Persistence: The configured PostgreSQL database (set in .env) should be used for storing flows and API keys, ensuring persistence across restarts.
Worker Scaling: Celery workers should start without errors, allowing for horizontal scaling and handling of asynchronous tasks.
Functional Streaming: The frontend UI should properly display streams rather than remaining in a loading state.
SSL Activation: With a valid domain/subdomain configuration, SSL should be automatically enabled, ensuring secure HTTPS access.
Who can help?
@italojohnny @ogabrielluiz @nicoloboschi @zzzming
Operating System
UBUNTU 24.10
Langflow Version
1.1.1
Python Version
3.12
Screenshot
No response
Flow File
No response
The text was updated successfully, but these errors were encountered: