I'm seeing a lot of these errors when I deploy the...
# agents
n
I'm seeing a lot of these errors when I deploy the agents to livekit cloud through livekit cli. Is the team aware of this and plan to come up with a fix?
Copy code
build failed for iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-2upo69dtggq-ca-4e8kegm5k2pa-v20250903160140: failed to receive status: rpc error: code = Unavailable desc = closing transport due to: connection error: desc = "error reading from server: EOF", received prior goaway: code: NO_ERROR, debug data: "graceful_stop"
e
we haven't seen this issue before and i'm unable to reproduce, can you give me some more info on what might be happening? are there more log lines before this? are you able to share your Dockerfile? any ideas on how large the container will be from your agent?
n
image size is ~2.6gb, this happens randomly whenever I try to deploy the agent to cloud. Log lines before this is just logs that show up while building the docker image
dockerfile
Copy code
# syntax=docker/dockerfile:1

# --- Builder: create virtualenv with dependencies using uv ---
  ARG PYTHON_VERSION=3.11
  FROM ghcr.io/astral-sh/uv:python${PYTHON_VERSION}-bookworm-slim AS builder
  
  ENV PYTHONUNBUFFERED=1 \
      PYTHONDONTWRITEBYTECODE=1
  
  WORKDIR /app
  
  # System deps required to build wheels for packages with native extensions
  RUN --mount=type=cache,target=/var/cache/apt \
      apt-get update && apt-get install -y --no-install-recommends \
      gcc \
      g++ \
      python3-dev \
    && rm -rf /var/lib/apt/lists/*
  
  # Copy dependency manifests first for better cache hits
  COPY pyproject.toml uv.lock ./
  RUN mkdir -p src
  
  # Install Python dependencies (creates .venv)
  RUN --mount=type=cache,target=/root/.cache/uv \
      uv sync --locked
  
  # Copy application source
  COPY src/ src/
  
  
  # --- Runtime: slim Python with only what we need to run ---
  FROM python:${PYTHON_VERSION}-slim-bookworm AS runtime
  
  ENV PYTHONUNBUFFERED=1 \
      PYTHONDONTWRITEBYTECODE=1 \
      PATH="/app/.venv/bin:${PATH}"
  
  # Non-privileged user
  ARG UID=10001
  RUN adduser \
      --disabled-password \
      --gecos "" \
      --home "/app" \
      --shell "/sbin/nologin" \
      --uid "${UID}" \
      appuser
  
  WORKDIR /app
  
  # Copy only the virtualenv and source code with proper ownership
  COPY --from=builder --chown=appuser:appuser /app/.venv /app/.venv
  COPY --from=builder --chown=appuser:appuser /app/src /app/src
  COPY --from=builder --chown=appuser:appuser /app/pyproject.toml /app/pyproject.toml
  COPY --from=builder --chown=appuser:appuser /app/uv.lock /app/uv.lock
  
  USER appuser
  
  # Pre-download any ML models or assets needed at runtime
  RUN python src/main.py download-files
  
  # Start the service
  CMD ["python", "src/main.py", "start"]
e
what version of the lk cli are you on? does this happen on every build attempt? what region are you in?
n
Copy code
~ ❯ lk -v                                                    3.11  05:51:18 PM
lk version 2.4.14
i get this sometimes. region is US
e
can you try to upgrade to the latest cli version? it's 2.5.5 now
n
got it. will try and let you know if i see it again
thanks for the help!
👍 1