brave-island-45242
11/27/2025, 10:22 PMTwirpError(code=failed_precondition, message=remote unmute not enabled, status=412) even though I enabled remote mute in the correct project settings. Muting is working though, so at least that should indicate that the admin permissions are working as expected.tall-airline-16756
11/27/2025, 10:22 PMtall-airline-16756
11/27/2025, 10:22 PMTwirpError(code=failed_precondition, message=remote unmute not enabled, status=412) when trying to remote-unmute.
This error means the server’s remote‑unmute feature is still disabled. Remote mute and remote unmute are controlled separately: muting can succeed with admin privileges, but unmuting requires remote unmute to be explicitly enabled.
Please check which environment you’re using and then:
• LiveKit Cloud: Open your project settings and confirm “Admins can remotely unmute tracks” is toggled on.
• Self‑hosted: Confirm your server config includes:
room:
enable_remote_unmute: true
then reload/restart the server so the change takes effect.
If those are already set, please tell me:
1. Are you on LiveKit Cloud or self‑hosting?
2. The project ID or server instance you changed (so we can confirm you updated the correct one).
3. Whether you restarted the server or confirmed the Cloud setting shows as enabled in the UI.
With that info I’ll help narrow the cause.
Sources: Managing participants | LiveKit docsbrave-island-45242
11/27/2025, 10:25 PMtall-airline-16756
11/27/2025, 10:25 PMremote_unmute enabled in its configuration. Please confirm the self‑hosted agent’s server YAML includes this exact setting and that the running process is using that config:
1. Open the LiveKit server config file used by your agent (common locations or the file your start script references).
2. Ensure you have:
room:
enable_remote_unmute: true
1. Restart the self‑hosted agent process after saving the change.
If that is already present and you still get the error, please provide:
• The agent’s startup command or service unit (how the server is launched).
• The server log lines around startup showing the loaded config (or search for enable_remote_unmute in the logs).
• The exact API call you use to unmute (language + snippet or request payload).
I’ll use those to pinpoint whether the config isn’t being picked up or another mismatch is causing the 412. Would you like instructions for locating the config or collecting logs?brave-island-45242
11/27/2025, 10:26 PMtall-airline-16756
11/27/2025, 10:26 PMroom:
enable_remote_unmute: true
or by setting the equivalent environment variable used when starting the LiveKit Server (if you start it via env vars).
If you’re connecting to LiveKit Cloud’s managed server, the Cloud UI toggle is the correct place and should be sufficient.
Please tell me:
1. Which of the two deployment types above is true for you.
2. If self‑hosting the server, share the LiveKit Server startup command or service unit and any startup log lines that show loaded config (search for enable_remote_unmute), or confirm you can add the YAML/env var and restart the LiveKit Server.
I’ll guide you on exactly where to change the setting or how to capture the logs.
Sources: Managing participants | LiveKit docsbrave-island-45242
11/27/2025, 10:27 PMtall-airline-16756
11/27/2025, 10:27 PMp_1ybjywtrtma but still get TwirpError(... remote unmute not enabled, status=412).
Because you’re using LiveKit Cloud’s managed server, the Cloud toggle should be the correct control. Let’s narrow the mismatch — please provide the following so I can pinpoint why the server still rejects the unmute:
1. Confirm the exact Cloud toggle you enabled is “Admins can remotely unmute tracks” in project p_1ybjywtrtma (a screenshot is fine).
2. The identity/role you use when calling unmute (are you using a token with roomAdmin privileges?).
3. The code snippet or request payload you use to unmute (language + the API call — hide any secrets).
4. Any server/worker logs at the time of the unmute attempt showing the Twirp error (timestamped lines).
I’ll check for common causes (wrong project/cluster, token lacking admin claims, or an API call format issue) as soon as you share those. Would you like instructions for extracting the exact request payload or logs?brave-island-45242
11/27/2025, 10:30 PMasync def update_participant_mute_status(participant: RemoteParticipant, muted: bool) -> None:
job_ctx = get_job_context()
await job_ctx.api.room.mute_published_track(
api.MuteRoomTrackRequest(
room=job_ctx.room.name,
identity=participant.identity,
track_sid=get_track_sid(participant),
muted=muted,
)
)tall-airline-16756
11/27/2025, 10:30 PMmute_published_track call.
Things to verify next (these are the common mismatches causing the 412):
• Confirm the Cloud toggle is specifically “Admins can remotely unmute tracks” for project p_1ybjywtrtma.
• Ensure the JWT/token used by the worker contains a roomAdmin grant (or equivalent admin claim) for the same project ID p_1ybjywtrtma. The server will reject remote unmute if the caller lacks admin privileges for that project.
• Verify the token’s project ID matches p_1ybjywtrtma (tokens scoped to a different project/cluster will hit a 412).
• In your call, set muted=False to unmute. From your snippet it looks like you pass muted=muted — confirm the boolean you pass is False when unmuting.
If you’d like, paste the decoded (redacted) token claims here or tell me how you generate the token and I’ll check the required grant fields and project ID for you.brave-island-45242
11/27/2025, 10:31 PMtall-airline-16756
11/27/2025, 10:32 PMvideo claim and check roomAdmin: true. Example:
"video": {
"room": "your-room",
"roomJoin": true,
"roomAdmin": true
}
If roomAdmin is missing or false, the token lacks admin rights and remote unmute will fail.
If you prefer, paste the decoded (redacted) token payload here and tell me how you dispatch/create the agent (what code or API you use). I’ll verify the grants and advise how to ensure the agent gets roomAdmin: true.
Sources: Authentication | LiveKit docs | Managing participants | LiveKit docs | Python SDKs | livekit/livekit_composite | DeepWiki | server-sdk-kotlin | livekit/livekit_composite | DeepWikibrave-island-45242
11/27/2025, 10:32 PMtall-airline-16756
11/27/2025, 10:33 PM@server.rtc_session()
async def my_agent(ctx: JobContext):
print("agent token:", ctx.token)
await ctx.connect()
1. Copy that token string and decode it at https://jwt.io (or decode in code with jwt.decode(token, options={"verify_signature": False})). Look in the payload for the video claim and confirm:
"video": {
"room": "your-room",
"roomJoin": true,
"roomAdmin": true
}
If roomAdmin is missing or false, the agent lacks admin privileges.
1. If the agent token is not admin:
• Ensure the token generated when dispatching the agent includes roomAdmin: true in its VideoGrant. Generate an admin token on a secure backend, for example (Python):
from livekit import api
token = api.AccessToken(API_KEY, API_SECRET) \
.with_identity("agent_identity") \
.with_grants(api.VideoGrants(room_join=True, room="your-room", room_admin=True)) \
.to_jwt()
• Use that token when connecting the agent (pass it into the job context or use it in ctx.connect()).
Tell me what ctx.token shows (redact secrets) or paste the decoded payload and I’ll confirm whether it has roomAdmin:true and advise next steps.
Sources: Managing participants | LiveKit docs | server-sdk-js | livekit/livekit_composite | DeepWiki | Authentication | LiveKit docs | Server-side | livekit/livekit_composite | DeepWiki | Job lifecycle | LiveKit docsbrave-island-45242
11/27/2025, 10:36 PMtall-airline-16756
11/27/2025, 10:37 PMroomAdmin:true, let’s narrow remaining mismatches.
Please confirm the following so I can pinpoint the cause:
1. Which project/cluster URL the worker connects to (the LiveKit server URL or region). Is it the default Cloud URL or a custom endpoint?
2. That the token’s iss or project (if present) matches project p_1ybjywtrtma. Paste the decoded token payload (redact secrets) if you can.
3. In your unmute call, confirm you call with muted=False when unmuting (you showed muted=muted — confirm the variable is False).
4. Any timestamped worker logs around the failing request (showing the Twirp 412 and the request metadata).
Give me those details and I’ll check for project/cluster mismatch or token scoping issues.brave-island-45242
11/27/2025, 10:39 PM2025-11-27T21:50:48.209778+00:00tall-airline-16756
11/27/2025, 10:39 PMmuted=False, and the error occurred at 2025-11-27T215048.209778+00:00.
Please do two quick checks and share the results:
1. Paste the decoded (redacted) agent token payload (the JWT payload from ctx.token or ctx.token printed), specifically the fields:
◦ iss or project (if present)
◦ video object (we only need room, roomJoin, roomAdmin)
◦ exp (optional)
Redact any secrets. This verifies the token is scoped to project p_1ybjywtrtma.
1. In the Cloud UI for project p_1ybjywtrtma, confirm the exact toggle label shown (a screenshot or exact text is fine) — it must read “Admins can remotely unmute tracks” and be toggled on.
After you share the decoded payload and UI confirmation, I’ll check for a project/issuer mismatch or other cause and give the next precise step.brave-island-45242
11/27/2025, 10:53 PMClaims(identity='agent-AJ_ydQ56hAV9iLj', name='', kind='', metadata='', video=VideoGrants(room_create=None, room_list=None, room_record=None, room_admin=None, room_join=True, room='call-_+[redacted]_DfdgZuyspqpe', destination_room=None, can_publish=True, can_subscribe=True, can_publish_data=True, can_publish_sources=None, can_update_own_metadata=True, ingress_admin=None, hidden=None, recorder=None, agent=True), sip=SIPGrants(admin=False, call=False), inference=InferenceGrants(perform=False), observability=None, attributes={'lk.agent_name': ''}, sha256='', room_preset=None, room_config=None)
But I can still list participants, or mute them. Even there are successful cases in which it unmutes a participant. So the behaviour doesn't seem consistent. Since the permissions do not change I doubt it is a permissions issuetall-airline-16756
11/27/2025, 10:53 PMvideo.room_admin is missing (it's room_admin=None), so the token does not have the explicit roomAdmin:true grant. Remote unmute requires that grant even when other admin-like actions (listing participants, remote mute) sometimes work. That explains the inconsistent behavior: some operations can succeed without roomAdmin, but remote unmute will fail unless the caller’s token includes roomAdmin:true.
What to do next:
1. Generate a token with roomAdmin:true on a secure backend (example, Python):
from livekit import api
token = api.AccessToken(API_KEY, API_SECRET) \
.with_identity("agent-AJ_ydQ56hAV9iLj") \
.with_grants(api.VideoGrants(
room_join=True,
room="call-...DfdgZuyspqpe",
room_admin=True
)) \
.to_jwt()
1. Use that token for the agent (replace the current job context token or pass it into ctx.connect()).
2. Retry the unmute call. It should stop returning the 412.
If you'd like, paste the decoded payload of a generated admin token here (redact secrets) and I’ll confirm it has roomAdmin:true.brave-island-45242
11/27/2025, 10:54 PMtall-airline-16756
11/27/2025, 10:54 PMroom_admin:true (room_admin=None), so it is not a full admin token.
• Some actions (listing participants, remote mute, and unmuting your own tracks) can work without roomAdmin, but remote-unmuting other participants requires roomAdmin:true. That difference causes the inconsistent success you see.
Next steps to verify and fix (pick one):
1) Short test (fast)
• Generate a token with roomAdmin:true on a secure backend and use it for the agent.
Example (Python):
from livekit import api
token = api.AccessToken(API_KEY, API_SECRET) \
.with_identity("agent-AJ_ydQ56hAV9iLj") \
.with_grants(api.VideoGrants(
room_join=True,
room="call-...DfdgZuyspqpe",
room_admin=True
)) \
.to_jwt()
• Connect the agent with that token and retry the failing unmute. If the 412 disappears, it confirms the missing grant was the cause.
2) If the 412 persists after using an admin token
• Share the agent logs around 2025-11-27T215048.209778+00:00 showing the failing request and any request metadata.
• Paste the decoded payload of the token the agent actually used at the time of failure (redact secrets) so I can confirm `iss`/project scope and video grants.
Tell me which option you want to try and I’ll guide you through generating the admin token or collecting the logs.brave-island-45242
11/28/2025, 3:52 PM