diff --git a/changes/2604.fix.md b/changes/2604.fix.md new file mode 100644 index 0000000000..3d4ae4af4b --- /dev/null +++ b/changes/2604.fix.md @@ -0,0 +1 @@ +Skip mounting zero-byte lxcfs files when lxcfs is activated to prevent crashes in session containers diff --git a/src/ai/backend/agent/docker/agent.py b/src/ai/backend/agent/docker/agent.py index acfddee207..7d616e0311 100644 --- a/src/ai/backend/agent/docker/agent.py +++ b/src/ai/backend/agent/docker/agent.py @@ -339,6 +339,7 @@ async def get_intrinsic_mounts(self) -> Sequence[Mount]: MountPermission.READ_WRITE, ) for lxcfs_proc_path in (lxcfs_root / "proc").iterdir() + if lxcfs_proc_path.stat().st_size > 0 ) mounts.extend( Mount(