Skip to content

🪢 Open source agent evals & observability: Trace, evaluate, and improve LLM applications with one open platform.

chore: check early whether clickhouse url is configured (#4595)

Steffen Schmitz12ee00f273b4
diff --git a/web/entrypoint.sh b/web/entrypoint.sh
index abb3788643..16f8ce1030 100644
--- a/web/entrypoint.sh
+++ b/web/entrypoint.sh
@@ -14,6 +14,12 @@ if [ -z "$DATABASE_URL" ]; then
fi
fi
+# Check if CLICKHOUSE_URL is not set
+if [ -z "$CLICKHOUSE_URL" ]; then
+ echo "Error: CLICKHOUSE_URL is not configured. Migrating from V2? Check out migration guide at https://langfuse.com/docs/deployment/v3/migrate-v2-to-v3."
+ exit 1
+fi
+
# Set DIRECT_URL to the value of DATABASE_URL if it is not set, required for migrations
if [ -z "$DIRECT_URL" ]; then
export DIRECT_URL=$DATABASE_URL
@@ -52,4 +58,4 @@ if [ $status -ne 0 ]; then
fi
# Run the command passed to the docker image on start
-exec "$@"
\ No newline at end of file
+exec "$@"