I'm having an issue where lk deploy seems to succe...
# cloud
a
I'm having an issue where lk deploy seems to succeed, build logs say deploy completed, but the code does not get updated. How would I troubleshoot something like that?
I can tell from the logs that I'm running old code
e
hey there, can i get your agent_id/project_id?
a
proj:
p_a5qvb3muhe0
agent:
CA_tRAdggkA3NQk
e
hmm i'm not seeing a current build, could you try a rebuild?
a
from when is the last build that you see?
btw I've just triggered a deploy
e
from when is the last build that you see?
26h ago
a
but I do see newer versions on my UI
image.png
e
did your new build complete?
a
Where can I see that?
Is there any logs for the build process?
The last thing I see is that is exporting this to a docker image:
e
ah, are you using the builder through the UI?
and not the cli?
a
I'm running trough the cli
e
the cli will output logs when you build
a
Copy code
echo "Deploying to LiveKit Cloud..."
lk agent deploy \
  --url "${LIVEKIT_URL}" \
  --api-key "${LIVEKIT_API_KEY}" \
  --api-secret "${LIVEKIT_API_SECRET}" \
  --secrets-file .env.production \
  --config deploy/livekit.toml

Deploying to LiveKit Cloud...
Using url, api-key, api-secret from environment
Using agent [CA_tRAdggkA3NQk]
Using secrets file [.env.production]
[+] Building 138.4s (21/21) FINISHED
 => [internal] load remote build context                                                                                                                                                                                                                                 0.4s
 => copy /context /                                                                                                                                                                                                                                                      8.4s
 => [internal] load metadata for <http://ghcr.io/astral-sh/uv:latest|ghcr.io/astral-sh/uv:latest>                                                                                                                                                                                                             0.3s
 => [internal] load metadata for <http://docker.io/library/python:3.13-slim-bookworm|docker.io/library/python:3.13-slim-bookworm>                                                                                                                                                                                             0.1s
 => FROM <http://ghcr.io/astral-sh/uv:latest@sha256:5cb6b54d2bc3fe2eb9a8483db958a0b9eebf9edff68adedb369df8e7b98711a2|ghcr.io/astral-sh/uv:latest@sha256:5cb6b54d2bc3fe2eb9a8483db958a0b9eebf9edff68adedb369df8e7b98711a2>                                                                                                                                                             0.0s
 => => resolve <http://ghcr.io/astral-sh/uv:latest@sha256:5cb6b54d2bc3fe2eb9a8483db958a0b9eebf9edff68adedb369df8e7b98711a2|ghcr.io/astral-sh/uv:latest@sha256:5cb6b54d2bc3fe2eb9a8483db958a0b9eebf9edff68adedb369df8e7b98711a2>                                                                                                                                                       0.0s
 => [builder 1/8] FROM <http://docker.io/library/python:3.13-slim-bookworm@sha256:ac4274977cc5093aa7675b5f39e59403c7b692d0bf7549b49563177ddc02552d|docker.io/library/python:3.13-slim-bookworm@sha256:ac4274977cc5093aa7675b5f39e59403c7b692d0bf7549b49563177ddc02552d>                                                                                                                               0.0s
 => => resolve <http://docker.io/library/python:3.13-slim-bookworm@sha256:ac4274977cc5093aa7675b5f39e59403c7b692d0bf7549b49563177ddc02552d|docker.io/library/python:3.13-slim-bookworm@sha256:ac4274977cc5093aa7675b5f39e59403c7b692d0bf7549b49563177ddc02552d>                                                                                                                                       0.0s
 => CACHED [builder 2/8] COPY --from=<http://ghcr.io/astral-sh/uv:latest|ghcr.io/astral-sh/uv:latest> /uv /uvx /bin/                                                                                                                                                                                          0.0s
 => CACHED [builder 3/8] WORKDIR /app                                                                                                                                                                                                                                    0.0s
 => CACHED [builder 4/8] COPY pyproject.toml uv.lock ./                                                                                                                                                                                                                  0.0s
 => CACHED [builder 5/8] RUN uv sync --no-dev                                                                                                                                                                                                                            0.0s
 => [builder 6/8] COPY agents/ ./agents/                                                                                                                                                                                                                                 2.8s
 => [builder 7/8] COPY pyproject.toml ./                                                                                                                                                                                                                                 0.0s
 => [builder 8/8] RUN .venv/bin/python -m agents.entrypoints.prepare_livekit                                                                                                                                                                                             8.6s
 => CACHED [stage-1  4/10] RUN useradd -m -u 1000 appuser                                                                                                                                                                                                                0.0s
 => CACHED [stage-1  5/10] COPY --from=builder /app/.venv /app/.venv                                                                                                                                                                                                     0.0s
 => [stage-1  6/10] COPY --from=builder /root/.cache/huggingface /home/appuser/.cache/huggingface                                                                                                                                                                        0.5s
 => [stage-1  7/10] COPY agents/ ./agents/                                                                                                                                                                                                                               0.1s
 => [stage-1  8/10] COPY pyproject.toml ./                                                                                                                                                                                                                               0.1s
 => [stage-1  9/10] COPY deploy/entrypoint.sh /app/entrypoint.sh                                                                                                                                                                                                         0.1s
 => [stage-1 10/10] RUN chown -R appuser:appuser /app /home/appuser/.cache &&     chmod +x /app/entrypoint.sh                                                                                                                                                           74.0s
 => exporting to image                                                                                                                                                                                                                                                  33.2s
 => => exporting layers                                                                                                                                                                                                                                                 25.4s
 => => exporting manifest sha256:c9485ab67153fc0416c6f3bc2bae4c357d13d2c55486a33cc947f337364621b7                                                                                                                                                                        0.0s
 => => exporting config sha256:a8337e947545ee7c2235f64af9ed0e400f60a3c29aa27c390f90fbfaa878a2fc                                                                                                                                                                          0.0s
 => => pushing layers                                                                                                                                                                                                                                                    7.6s
 => => pushing manifest for <http://iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-a5qvb3muhe0-ca-tradggka3nqk-v20251210212010@sha256:c9485ab67153fc0416c6f3bc2bae4c357d13d2c55486a33cc947f337364621b7|iad.ocir.io/axyci3pr8vxm/production-cloud-agents:p-a5qvb3muhe0-ca-tradggka3nqk-v20251210212010@sha256:c9485ab67153fc0416c6f3bc2bae4c357d13d2c55486a33cc947f337364621b7>                                                                       0.1s
Deployed agent
e
curious if you could try an
lk a update-secrets --overwrite
ah sorry, i am wrong, could you instead try a new
lk a deploy
? it seems that the build didn't persist for some reason
a
Trying right now
šŸ™ 1
There was a lk agent deploy 6 mins ago
@echoing-kitchen-90064 deployment just finished
e
hmm very strange, this agent seems to be in a weird state in our backend. to get you unblocked could you try to create a new agent? you can move/rename the livekit.toml to keep for later.
l
Are you deploying the same image? Could you try adding a comment in your code and build again?
e
ah that's also a good idea, try Steve's idea first
a
Deploying with a comment rn
h
Hi Livekit! Name's Raphael, I'm working with Kalil. Thanks for helping us on this issue!
šŸ‘‹ 1
Worth noting that yesterday at around 2PM (26h ago), we attempted a "Rollback" from the UI, which failed.
e
ah interesting, thanks we'll include that in our bug hunt once we get you back on track
šŸ™Œ 1
h
You mentioning "Weird state" made me recall this
a
Agent just deployed with the comment
h
We're deploying a new agent
numa-agents-test
at the moment
e
yeah i think a new agent is the correct approach now, seems like the old one is still stuck
h
https://cloud.livekit.io/projects/p_a5qvb3muhe0/agents/CA_mkk7945jUYtX We're fixing the missing secrets and will update SIP and Trunking Config after that for a test call.
šŸ‘ 1
e
[3:01 PM]
Worth noting that yesterday at around 2PM (26h ago), we attempted a "Rollback" from the UI, which failed
do you remember if there was a specific error message when this happened?
h
No, sorry, no idea of the timestamp. It was from nick@numa.com, not me.
e
ah ok, no worries. gives us a place to start at least
h
Commit history of deploy that worked vs the one that didn't made it says it was between 1:43PM and 1:54PM (ET)
e
ok we'll dig into this issue, thanks for the report, let me know if you run into any other issues with the new agent
h
ok. •
numa-agents-v2
deployed, with secrets. • Dispatch updated https://cloud.livekit.io/projects/p_a5qvb3muhe0/agents/CA_mkk7945jUYtX and I was able to make a call into it! Thanks guys! šŸ™‚
Keep us posted for our other, stuck agent!
šŸ‘ 1
e
it looks like your stuck agent is functional again, we haven't touched anything. i think we are tracking down a bug in our version handling
h
Thanks for the follow-up.