I'm trying to deploy my agent using LiveKit agents...
# ask-ai
m
I'm trying to deploy my agent using LiveKit agents with a GitHub runner. I get the hub action, but I'm getting the following error. Skip to content Navigation Menu Replay-Sales fitz Type / to search Code Issues Pull requests 1 Actions Projects Wiki Security Insights Settings Deploy to Staging chore: explicitly set SECRET_LIST to empty string in staging deployme… #3 Jobs Run details Annotations 1 error deploy-staging failed 2 minutes ago in 12s Search logs 2s 0s 2s 0s 0s 4s Run livekit/deploy-action@main Run docker run --rm \ Unable to find image 'livekit/cloud-agents-github-plugin:v202' locally v202: Pulling from livekit/cloud-agents-github-plugin 1b283043fffc: Pulling fs layer a00d304b7da8: Pulling fs layer ea5f782fc1c1: Pulling fs layer ea5f782fc1c1: Verifying Checksum ea5f782fc1c1: Download complete a00d304b7da8: Download complete 1b283043fffc: Verifying Checksum 1b283043fffc: Download complete 1b283043fffc: Pull complete a00d304b7da8: Pull complete ea5f782fc1c1: Pull complete Digest: sha256:d233c8e101e4314fa402165b63450f83800515ce61cf7a0f78aab20f7752db10 Status: Downloaded newer image for livekit/cloud-agents-github-plugin:v202 {"level":"info","ts":1758840414.9401674,"caller":"build/main.go:54","msg":"Running in","path":"."} {"level":"info","ts":1758840414.9402156,"caller":"build/main.go:58","msg":"Using agent IDs from INPUT_AGENT_IDS","agentIds":[""]} {"level":"info","ts":1758840414.940223,"caller":"build/main.go:84","msg":"Loading secret","secret":"LIST"} {"level":"debug","ts":1758840414.9402504,"logger":"cloud-agents-github-plugin","caller":"build/config.go:279","msg":"loading livekit.toml file"} {"level":"error","ts":1758840415.6738179,"caller":"build/main.go:270","msg":"Failed to deploy agent","error":"twirp error internal: secret value cannot be empty","stacktrace":"main.deployAgent\n\t/build/main.go270\nmain.main\n\t/build/main.go151\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:283"} Error: Process completed with exit code 1. 0s 0s 0s 1s Her's teh action: name: Deploy to Staging on: push: branches: - staging # Triggers when pushing to staging branch workflow_dispatch: # Allows manual triggering jobs: deploy-staging: runs-on: blacksmith-4vcpu-ubuntu-2204 # Using Blacksmith runner concurrency: group: ${{ github.workflow }}-staging cancel-in-progress: true steps: - name: Checkout code uses: actions/checkout@v4 - name: Setup staging config run: cp livekit.staging.toml livekit.toml - name: Deploy LiveKit Cloud Agent uses: livekit/deploy-action@main env: LIVEKIT_URL: ${{ secrets.LIVEKIT_URL_STAGING }} LIVEKIT_API_KEY: ${{ secrets.LIVEKIT_API_KEY_STAGING }} LIVEKIT_API_SECRET: ${{ secrets.LIVEKIT_API_SECRET_STAGING }} with: OPERATION: deploy WORKING_DIRECTORY: . - name: Deployment Success run: | echo "✅ Agent successfully deployed to staging!" wha's the ssiue?
t
Thanks for reaching out, Jackson. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
It looks like the error "twirp error internal: secret value cannot be empty" is happening because one of the secrets used during your deployment is empty. Let’s work through this together to get it sorted out! • First, please make sure that all your secrets (like
LIVEKIT_URL_STAGING
,
LIVEKIT_API_KEY_STAGING
, and
LIVEKIT_API_SECRET_STAGING
) are properly set up in your repository’s secrets and aren’t left blank. • Also, check that any environment variables or files you use to fill these secrets are correctly configured and actually contain valid, non-empty values. • Lastly, take a moment to review your workflow file for any typos or misconfigurations that might be causing empty values to slip through. It’s a good idea to double-check the secrets in your GitHub repository settings and validate any related files locally to make sure everything is in place. If you need a hand with any of these steps, I’m here to help! Sources: Secrets management | LiveKit Docs | errors.go