Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

Revert "feat: out of band diagnostics on local health check" (#6275)

Kian Jones0b24a8439005
diff --git a/Dockerfile b/Dockerfile
index 652c04898..7ac541918 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -36,9 +36,7 @@ COPY pyproject.toml uv.lock ./
# Then copy the rest of the application code
COPY . .
-RUN uv sync --frozen --no-dev --all-extras --python 3.11 && \
- # Install py-spy for Python stack trace diagnostics
- uv pip install py-spy
+RUN uv sync --frozen --no-dev --all-extras --python 3.11
# Runtime stage
FROM ankane/pgvector:v0.5.1 AS runtime
@@ -49,8 +47,6 @@ ARG NODE_VERSION=22
RUN apt-get update && \
# Install curl, Python, and PostgreSQL client libraries
apt-get install -y curl python3 python3-venv libpq-dev && \
- # Install diagnostic tools (gdb for stack traces, procps for ps/top, net-tools for netstat)
- apt-get install -y gdb procps net-tools && \
# Install Node.js
curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - && \
apt-get install -y nodejs && \
@@ -86,10 +82,6 @@ COPY --from=builder /app .
# Copy initialization SQL if it exists
COPY init.sql /docker-entrypoint-initdb.d/
-# Copy diagnostic monitor script
-COPY diagnostic_monitor.sh /app/diagnostic_monitor.sh
-RUN chmod +x /app/diagnostic_monitor.sh
-
EXPOSE 8283 5432 4317 4318
ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
diff --git a/letta/server/startup.sh b/letta/server/startup.sh
index 665097980..5d8d736a2 100755
--- a/letta/server/startup.sh
+++ b/letta/server/startup.sh
@@ -68,16 +68,11 @@ fi
/usr/local/bin/otelcol-contrib --config "$CONFIG_FILE" &
OTEL_PID=$!
-# Start diagnostic monitor in background
-echo "Starting diagnostic monitor..."
-/app/diagnostic_monitor.sh 2>&1 | while IFS= read -r line; do echo "[DIAG] $line"; done &
-DIAG_PID=$!
-
# Function to cleanup processes on exit
cleanup() {
echo "Shutting down..."
- kill $OTEL_PID $DIAG_PID 2>/dev/null
- wait $OTEL_PID $DIAG_PID 2>/dev/null
+ kill $OTEL_PID
+ wait $OTEL_PID
}
trap cleanup EXIT