Bun 1.4.4 fs.rm and fs.rmSync Throw ENOTDIR on Trailing-Slash Paths Under gVisor
Is it fixed? Not yet.
Ongoing since Nov 11, 07:35 UTC. First reported Nov 11, 07:35 UTC.
What happened
Bun 1.4.4 throws an ENOTDIR error when using fs.rm or fs.rmSync with a trailing-slash path under a gVisor sandbox on Kubernetes, even when force: true is specified. The issue does not occur on regular Linux hosts. Affected users are running Bun in gVisor containers.
What caused it?
Under active investigation. No report has identified a root cause yet.
No verified workaround yet
None of the linked reports describe a mitigation. This page updates when one appears.
Official fixTimeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
fs.rm / fs.rmSync with a trailing-slash path throws ENOTDIR under gVisor (force: true should ignore a missing path)
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First reportfs.rm / fs.rmSync with a trailing-slash path throws ENOTDIR under gVisor (force: true should ignore a missing path)(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.4 (Linux x64) What platform is your computer? A Linux container running in a gVisor (runsc) sandbox on Kubernetes (GitHub Actions self-hosted runner). The same script does not fail on a regular Linux host (arm64, Bun 1.4.4). Both the workspace filesystem (v9fs) and /tmp (overlayfs) are affected. What steps can reproduce the bug? // t.mjs, run with: bun t.mjs /some/empty/dir import fs from 'node:fs'; const base = process.argv[2]; const t = (label, fn) => {…
by ixcans 0upvotes 2comments
FAQ
What happened in the Bun issue?
Bun 1.4.4 throws an ENOTDIR error when using fs.rm or fs.rmSync with a trailing-slash path under a gVisor sandbox on Kubernetes, even when force: true is specified. The issue does not occur on regular Linux hosts. Affected users are running Bun in gVisor containers.
What is affected by the Bun issue?
Bun (versions: 1.4.4). Also affected at the same time: Kubernetes.
When did the Bun issue start and end?
It started Nov 11, 07:35 UTC and is still ongoing (7 d 21 h so far). This page updates as it develops.
How do I get alerts for Bun?
Subscribe to the Bun RSS feed for every new Bun incident, or connect an AI assistant to WhatBrokeToday over MCP and ask whether Bun is down. Bun feed
Where does this information come from?
WhatBrokeToday collects public status pages, developer community reports and security advisories, groups the ones about the same problem, and links every report under Evidence on this page. This one has 1 report from 1 independent source.