Skip to content

OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.

Python

fix: persist Langflow database across container restarts

Mike Pawlowski7a06eb5817f1
diff --git a/Makefile b/Makefile
index df179205c..3a24ebdbb 100644
--- a/Makefile
+++ b/Makefile
@@ -682,6 +682,7 @@ test-integration: ## Run integration tests (requires infrastructure)
uv run pytest tests/integration/core/ -v
test-ci: ensure-langflow-data ## Start infra, run integration + SDK tests, tear down (uses DockerHub images)
+ @chmod 777 langflow-data
@set -e; \
echo "$(YELLOW)Installing test dependencies...$(NC)"; \
uv sync --group dev; \
@@ -811,6 +812,7 @@ test-ci: ensure-langflow-data ## Start infra, run integration + SDK tests, tear
exit $$TEST_RESULT
test-ci-local: ensure-langflow-data ## Same as test-ci but builds all images locally
+ @chmod 777 langflow-data
@set -e; \
echo "$(YELLOW)Installing test dependencies...$(NC)"; \
uv sync --group dev; \
diff --git a/scripts/setup-e2e.sh b/scripts/setup-e2e.sh
index 92e182588..9cb62ef8c 100755
--- a/scripts/setup-e2e.sh
+++ b/scripts/setup-e2e.sh
@@ -49,6 +49,11 @@ echo "Starting E2E Setup using $E2E_ENV..."
echo "Cleaning up..."
make factory-reset FORCE=true ENV_FILE=$E2E_ENV
+# Pre-create langflow-data as world-writable so the Langflow container (UID 1000)
+# and the runner (UID 1001) can both access it, regardless of Docker's :U flag behavior.
+mkdir -p langflow-data
+chmod 777 langflow-data
+
# Start infrastructure using make (this will use the new .env)
echo "Starting infrastructure..."
make dev-local-cpu ENV_FILE=$E2E_ENV