OpenRAG is a comprehensive, single package Retrieval-Augmented Generation platform built on Langflow, Docling, and Opensearch.
Python
make error verbose
Edwin Jose7896e64019ea
diff --git a/Makefile b/Makefileindex 8acb664bb..b323b8230 100644--- a/Makefile+++ b/Makefile@@ -641,8 +641,15 @@ test-ci: ## Start infra, run integration + SDK tests, tear down (uses DockerHub$(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \echo "$(CYAN)Architecture: $$(uname -m), Platform: $$(uname -s)$(NC)"; \echo "$(YELLOW)Starting docling-serve...$(NC)"; \- DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1); \+ DOCLING_START_FAILED=0; \+ DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1) || DOCLING_START_FAILED=1; \echo "$$DOCLING_START_OUTPUT"; \+ if [ "$$DOCLING_START_FAILED" = "1" ]; then \+ echo "$(RED)ERROR: docling_ctl.py start failed. Output above.$(NC)"; \+ uv run python scripts/docling_ctl.py status 2>&1 || true; \+ $(COMPOSE_CMD) down -v 2>/dev/null || true; \+ exit 1; \+ fi; \DOCLING_ENDPOINT=$$(echo "$$DOCLING_START_OUTPUT" | grep "Endpoint:" | awk '{print $$2}'); \if [ -z "$$DOCLING_ENDPOINT" ]; then \echo "$(RED)WARNING: docling-serve did not report an endpoint. Defaulting to http://localhost:5001$(NC)"; \@@ -746,8 +753,15 @@ test-ci-local: ## Same as test-ci but builds all images locally$(COMPOSE_CMD) up -d opensearch dashboards langflow openrag-backend openrag-frontend; \echo "$(CYAN)Architecture: $$(uname -m), Platform: $$(uname -s)$(NC)"; \echo "$(YELLOW)Starting docling-serve...$(NC)"; \- DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1); \+ DOCLING_START_FAILED=0; \+ DOCLING_START_OUTPUT=$$(uv run python scripts/docling_ctl.py start --port 5001 --timeout 180 2>&1) || DOCLING_START_FAILED=1; \echo "$$DOCLING_START_OUTPUT"; \+ if [ "$$DOCLING_START_FAILED" = "1" ]; then \+ echo "$(RED)ERROR: docling_ctl.py start failed. Output above.$(NC)"; \+ uv run python scripts/docling_ctl.py status 2>&1 || true; \+ $(COMPOSE_CMD) down -v 2>/dev/null || true; \+ exit 1; \+ fi; \DOCLING_ENDPOINT=$$(echo "$$DOCLING_START_OUTPUT" | grep "Endpoint:" | awk '{print $$2}'); \if [ -z "$$DOCLING_ENDPOINT" ]; then \echo "$(RED)WARNING: docling-serve did not report an endpoint. Defaulting to http://localhost:5001$(NC)"; \diff --git a/scripts/docling_ctl.py b/scripts/docling_ctl.pyindex 33235c72d..0ed8d96c3 100644--- a/scripts/docling_ctl.py+++ b/scripts/docling_ctl.py@@ -42,7 +42,9 @@ async def start_docling(print(f"PID: {status['pid']}")return 0else:- print(f"{message}", file=sys.stderr)+ print(f"ERROR: {message}", file=sys.stderr)+ for entry in manager._log_buffer:+ print(f" [docling-log] {entry}", file=sys.stderr)return 1