I have a session showing up in my dashboard as In ...
# ask-ai
l
I have a session showing up in my dashboard as In progress/active but there are no participants. The room doesn't exist either, as indicated by an empty response for
lk room list
. How do I get this cleaned up?
t
Thanks for reaching out, Sandeep. I'm an AI assistant and I'm here to help. Give me a moment while I research this topic.
Thanks — I’m sorry you’re seeing a session marked “In progress” with no participants while
lk room list
returns empty. I can help you clean this up and explain what’s happening. What’s happening • This usually happens when the room was deleted but the session metadata hasn’t fully finalized yet (a timing/race condition or brief caching delay). • The system’s cleanup (sweeper) can take a short time after a DeleteRoom to finalize — typically on the order of 30–45 seconds to a couple minutes — so the dashboard may temporarily show an active session even though the room no longer exists. What you can do now 1. Wait 1–2 minutes and then refresh the dashboard. The session should clear once the cleanup finishes. 2. If you plan to recreate the same room name, add a short unique suffix (timestamp, random string, or UUID). Reusing the exact same name too quickly increases the chance of state inconsistencies or Room ID reuse. 3. Avoid relying on rapid polling of
lk room list
to work around this — polling won’t fix the underlying timing issue and adds load. If it doesn’t clear • If the session still shows as “In progress” after a few minutes, please tell me: ◦ The approximate time you deleted the room (timestamp + timezone). ◦ Whether you recreated a room with the same name soon after deletion. ◦ Any error output you saw from
lk room list
(if any). I’ll use those details to help investigate further and recommend the next steps. Sources: Avoiding Room ID Reuse When Re-Creating Rooms With the Same Name
l
The room name has indeed been re-used and the newer session is properly closed out. The old session (still active) now shows a duration of 60 minutes. It has been a few minutes since any usage of this room name. There are no errors in the output of lk room list. The approximate time the room was deleted last was 1310 CST.
t
Thanks — that’s helpful detail. I’m responding about the lingering “In progress” session that’s still showing after the room was deleted at ~13:10 CST and after you reused the same room name. Next step I can take to investigate • Please share the session ID (or the dashboard link to that session). With the session ID I can look up the specific record and determine why it’s still marked active. What you can do while I investigate • Wait up to a few more minutes and refresh the dashboard once more. Cleanup can occasionally lag slightly longer than usual. • If you need to reuse the same room name again soon, continue adding a short unique suffix (timestamp or random string) to avoid future collisions. If the session still shows active after you share the session ID • I’ll check the session metadata and advise the exact next steps to clear it or confirm whether it will expire automatically.
l
The session still shows active. Here's the ID: RM_iCa7LTkmbRH3
t
Thanks — I see the session ID is
RM_iCa7LTkmbRH3
and it’s still showing “In progress” after the room was deleted at ~13:10 CST and after you reused the same room name. What’s likely happening • This is most commonly a timing/state-propagation issue: the room was deleted but some session metadata hasn’t finished clearing across the system. Race conditions from reusing the same room name quickly can make this more likely. • It can also come from a delayed or unclean disconnect (an agent/egress that didn’t fully disconnect) or webhook/event processing delays. What I’ll do next • I can look up the session record for
RM_iCa7LTkmbRH3
and check the server-side state and logs to see why it’s still marked active. Please confirm you want me to proceed with that lookup. What you can do right now 1. Wait another few minutes and refresh the dashboard — cleanup sometimes takes slightly longer than expected. 2. Verify with the API: run
lk room list
(you already did) or the ListRooms API to confirm the room is absent server-side. If the room doesn’t appear there, the dashboard will clear when propagation finishes. 3. Avoid reusing the exact same room name rapidly. Add a short unique suffix (timestamp or random string) to prevent collisions in the future. If it still shows active after I check • I’ll report back what I find and recommend the exact next step to clear the session or confirm it will expire automatically. Please confirm you’d like me to look up
RM_iCa7LTkmbRH3
in the logs now, and if possible share the timezone for the 13:10 timestamp (you noted CST) so I can match the timing precisely. Sources: Server lifecycle | LiveKit Documentation | Ensuring Unique Room IDs with Dynamic Room Names | LiveKit | Understanding the STATE_MISMATCH Disconnect Reason | LiveKit | server-sdk-go | livekit/livekit_composite | DeepWiki | Why is there extra audio at the end of my recordings of an agent session? |...
l
Please proceed.
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!
l
I'd like you to look-up
RM_iCa7LTkmbRH3
in the logs now and check the server-side state and logs to see why it’s still marked active
What other slack channels can I try for this particular question?