lemon-alligator-22437
12/08/2025, 6:52 AMlk 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 intall-airline-16756
12/08/2025, 6:52 AMtall-airline-16756
12/08/2025, 6:52 AMlk 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 | DeepWikilemon-alligator-22437
12/08/2025, 6:55 AMlk 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 successfullytall-airline-16756
12/08/2025, 6:56 AM