Hi, ```implib-gen: libva-drm.so.2: failed to load...
# ask-ai
c
Hi,
Copy code
implib-gen: libva-drm.so.2: failed to load library 'libva-drm.so.2' via dlopen: libva-drm.so.2: cannot open shared object file: No such file or directory
Getting this error from yesterday onwards, we didnt updated anything. Is there any issue with this?
t
Thanks for reaching out, Abdul. 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 is happening because LiveKit's WebRTC system is trying to use the VA-API DRM library (
libva-drm.so.2
) for hardware-accelerated video processing, but this library isn’t installed on your system yet. To help you fix this, here are a couple of options: • Install VA-API Libraries: You can install the necessary libraries for your Linux distribution. For example, if you’re using Ubuntu or Debian, simply run:
Copy code
sudo apt-get install libva-dev libva-drm2 libva2
• Disable VAAPI Support: If hardware acceleration isn’t something you need right now, you can disable VAAPI support when building LiveKit by using the
--no-default-features
flag or by excluding the
use_vaapi
feature in your build configuration. If you’d like, I’m here to guide you through the detailed steps for either of these options—just let me know which one sounds best for you! Sources: webrtc-sys/src/vaapi/implib/libva.so.tramp.S
c
yes, now that is fixed, and getting different error like, T120808.798951+00:00"} 2025-10-28 173808,819 - livekit.agents - INFO - registered worker {"message": "registered worker", "level": "INFO", "name": "livekit.agents", "id": "AW_9okAFzzjgNiu", "url": "ws://127.0.0.1:7880", "region": "", "protocol": 16, "timestamp": "2025-10-28T120808.819290+00:00"} 2025-10-28 173818,824 - livekit.agents - INFO - worker is at full capacity, marking as unavailable {"message": "worker is at full capacity, marking as unavailable", "level": "INFO", "name": "livekit.agents", "load": 0.7475333333333334, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-10-28T120818.824658+00:00"} 2025-10-28 173821,325 - livekit.agents - INFO - worker is below capacity, marking as available {"message": "worker is below capacity, marking as available", "level": "INFO", "name": "livekit.agents", "load": 0.6966666666666667, "threshold": "_WorkerEnvOption(dev_default=inf, prod_default=0.7)", "timestamp": "2025-10-28T120821.325941+00:00"}
t
I understand that seeing the message "worker is at full capacity, marking as unavailable" can be a bit concerning. This simply means that the worker has reached its configured load limit and is temporarily pausing new jobs to maintain stability. This limit is managed by the
load_threshold
parameter, which is set to 0.7 by default in production mode. To help you navigate this, here are some friendly suggestions you might find useful: • Scale Horizontally: Consider running multiple worker instances. This can help handle busy periods and keep things running smoothly. • Ensure Dedicated Resources: Try to keep the server focused on the worker by avoiding other applications that might compete for resources. • Implement Load Balancing: Tools like Kubernetes can be a great help with auto-scaling and balancing the load effectively. • Customize Load Monitoring: If it fits your setup, adjusting
load_fnc
and
load_threshold
can better match your specific workload (note: this isn’t supported in LiveKit Cloud). • Monitor Idle Processes: Tuning the
num_idle_processes
parameter can help reduce delays when starting new jobs. • Check Network Connectivity: Ensuring stable communication between your workers and the LiveKit server is always a good step. If you’d like, I’m here to walk you through any of these options in more detail. Just let me know how I can assist! Sources: Troubleshooting & Common Issues | livekit/livekit_composite | DeepWiki | Community & Support | livekit/livekit_composite | DeepWiki | Deploying to custom environments | LiveKit Docs | Worker options | LiveKit Docs | livekit-agents/livekit/agents/worker.py
c
While running with this condition, getting this error. "🎬 Recording already active with egress_id: EG_sF3teXqusXo6", "level": "INFO", "name": "zeascreen-agent", "pid": 296952, "job_id": "AJ_ti6imHXpDrp8", "timestamp": "2025-10-28T121347.984450+00:00"} 2025-10-28 174348,367 - livekit.agents - ERROR - unhandled exception while running the job task Traceback (most recent call last): File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/agents/ipc/job_proc_lazy_main.py", line 240, in _traceable_entrypoint await self._job_entrypoint_fnc(job_ctx) File "/home/nahas-zealogics/projects/ZeaHire/backend/agent_working.py", line 2375, in entrypoint turn_detector = EnglishModel() ^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/english.py", line 26, in init super().__init__(model_type="en", unlikely_threshold=unlikely_threshold) File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py", line 166, in init config_fname = _download_from_hf_hub( ^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py", line 28, in _download_from_hf_hub local_path = hf_hub_download(repo_id=repo_id, filename=filename, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1010, in hf_hub_download return _hf_hub_download_to_cache_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1117, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1649, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False. 2025-10-28 174348,367 - livekit.agents - ERROR - unhandled exception while running the job task Traceback (most recent call last): File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/opentelemetry/util/_decorator.py", line 71, in async_wrapper return await func(*args, **kwargs) # type: ignore ^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/agents/ipc/job_proc_lazy_main.py", line 240, in _traceable_entrypoint await self._job_entrypoint_fnc(job_ctx) File "/home/nahas-zealogics/projects/ZeaHire/backend/agent_working.py", line 2375, in entrypoint turn_detector = EnglishModel() ^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/english.py", line 26, in init super().__init__(model_type="en", unlikely_threshold=unlikely_threshold) File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py", line 166, in init config_fname = _download_from_hf_hub( ^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py", line 28, in _download_from_hf_hub local_path = hf_hub_download(repo_id=repo_id, filename=filename, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py", line 114, in _inner_fn return fn(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1010, in hf_hub_download return _hf_hub_download_to_cache_dir( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1117, in _hf_hub_download_to_cache_dir _raise_on_head_call_error(head_call_error, force_download, local_files_only) File "/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py", line 1649, in _raise_on_head_call_error raise LocalEntryNotFoundError( huggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False. {"message": "unhandled exception while running the job task\nTraceback (most recent call last):\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/opentelemetry/util/_decorator.py\", line 71, in async_wrapper\n return await func(*args, **kwargs) # type: ignore\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/agents/ipc/job_proc_lazy_main.py\", line 240, in _traceable_entrypoint\n await self._job_entrypoint_fnc(job_ctx)\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/agent_working.py\", line 2375, in entrypoint\n turn_detector = EnglishModel()\n ^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/english.py\", line 26, in __init__\n super().__init__(model_type=\"en\", unlikely_threshold=unlikely_threshold)\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py\", line 166, in __init__\n config_fname = _download_from_hf_hub(\n ^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/livekit/plugins/turn_detector/base.py\", line 28, in _download_from_hf_hub\n local_path = hf_hub_download(repo_id=repo_id, filename=filename, **kwargs)\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/utils/_validators.py\", line 114, in _inner_fn\n return fn(*args, **kwargs)\n ^^^^^^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py\", line 1010, in hf_hub_download\n return _hf_hub_download_to_cache_dir(\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py\", line 1117, in _hf_hub_download_to_cache_dir\n _raise_on_head_call_error(head_call_error, force_download, local_files_only)\n File \"/home/nahas-zealogics/projects/ZeaHire/backend/venv/lib/python3.12/site-packages/huggingface_hub/file_download.py\", line 1649, in _raise_on_head_call_error\n raise LocalEntryNotFoundError(\nhuggingface_hub.errors.LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled. To enable hf.co look-ups and downloads online, set 'local_files_only' to False.", "level": "ERROR", "name": "livekit.agents", "pid": 296952, "job_id": "AJ_ti6imHXpDrp8", "timestamp": "2025-10-28T121348.367900+00:00"}
t
It looks like you're encountering the error "Recording already active with egress_id: EG_sF3teXqusXo6," which means there's already a recording running with that ID. Also, the "LocalEntryNotFoundError: Cannot find the requested files in the disk cache and outgoing traffic has been disabled" points to some trouble accessing local files or network connectivity issues. Let's work through this together. Here's what you can do: 1. Stop the Active Egress: You can use the
StopEgress
API method to stop the current recording. Here's an example to guide you:
Copy code
from livekit.api import LiveKitAPI

lkapi = LiveKitAPI(url="your-livekit-url", api_key="your-api-key", api_secret="your-api-secret")
await lkapi.egress.stop_egress(StopEgressRequest(egress_id="EG_sF3teXqusXo6"))
1. Verify Egress Status: It’s a good idea to check if the egress is still active by using
ListEgress
. 2. Address Disk Cache and Network Issues: • Make sure your storage volume is properly mounted and has enough space. • Check that outgoing traffic to external storage or RTMP/SRT destinations is allowed. • If you’re using a proxy to access external services, double-check those settings. 1. Restart or Retry the Egress: Once these issues are sorted, try restarting the egress job. If you'd like, I’m here to help you with any of these steps in more detail. Just let me know! Sources: livekit-protocol/livekit/protocol/egress.py | Egress examples | LiveKit docs | Egress examples | LiveKit Docs