Any reason why this wouldn't be working ```lk agen...
# ask-ai
l
Any reason why this wouldn't be working
Copy code
lk agent update-secrets --id CA_XXX --secret-mount XXX.json --curl --verbose
2025-12-07T22:33:30.659-0800    DEBUG   lk      config/livekit.go:89    loading livekit.toml file
Using project [XXX]
Using agent [XXX]
unable to update agent secrets: failed to save secret please try again later
been giving errors for the last couple days. already tried auth --revoke and logging back in
t
Thanks for reaching out, M. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m responding about your
lk agent update-secrets
failure: "unable to update agent secrets: failed to save secret please try again later". I’ll help diagnose this. Quick checks that narrow the cause: 1. Run agent status and share output: ◦
lk agent status --id CA_XXX
1. Confirm the file is readable from your shell: ◦
ls -la XXX.json
◦
cat XXX.json | head -n 20
(paste any non-sensitive lines or confirm it prints) 1. Try a minimal secret to see if mounts vs. secrets differ: ◦
lk agent update-secrets --id CA_XXX --secrets "TEST_SECRET=hello"
1. If you retried many times, wait 10–15 minutes and try again (rate limiting/backoff can apply). If you share the
lk agent status
output and results of steps 2–3, I’ll suggest the next action. Sources: Agent deployment CLI reference | LiveKit docs | Secrets management | LiveKit docs | LiveKit CLI project management | LiveKit docs | server-sdk-go | livekit/livekit_composite | DeepWiki | Server-side | livekit/livekit_composite | DeepWiki
l
Copy code
lk a status
Using project [marzy]
Using agent [CA_3hVjgNqYaNc7]
┌─────────────────┬─────────────────┬─────────┬─────────┬────────────┬───────────┬───────────┬──────────────────────┐
│ ID              │ Version         │ Region  │ Status  │ CPU        │ Mem       │ Replicas  │ Deployed At          │
├─────────────────┼─────────────────┼─────────┼─────────┼────────────┼───────────┼───────────┼──────────────────────┤
│ CA_3hVjgNqYaNc7 │ v20251207082625 │ us-east │ Running │ 8m / 4000m │ 1.5 / 8GB │ 1 / 1 / 8 │ 2025-12-07T08:29:26Z │
└─────────────────┴─────────────────┴─────────┴─────────┴────────────┴───────────┴───────────┴──────────────────────┘
-rw-r--r-- 1 marvin marvin 2335 Dec  7 01:08 XXX.json
cat successfully prints the file
lk a update-secrets --secrets
does work successfully
t
I don't have the answer you're looking for. You could also try asking your question: • in one of the other Slack channels or • to https://deepwiki.com/livekit/livekit_composite which is trained on all LiveKit source code If you find the answer, please post it here to help others!