Bun fs.promises.realpath and fs.realpathSync Fail with ENOENT on Linux
Is it fixed? Not yet.
Ongoing since Nov 19, 12:27 UTC. First reported Nov 19, 12:27 UTC.
What happened
Bun versions 1.4.5 and later experience ENOENT failures when calling fs.promises.realpath or fs.realpathSync on Linux during atomic file replacement operations where a temporary file is renamed over the destination path.
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.
Timeline
- Investigating(current)
- Workaround available(upcoming)
- Resolved(upcoming)
- First report on GitHub issue
`fs.promises.realpath` and `fs.realpathSync` fail with ENOENT during atomic file replacement on Linux
Source
Evidence
1 report · 1 GitHubShow
- [1]GitHub First report`fs.promises.realpath` and `fs.realpathSync` fail with ENOENT during atomic file replacement on Linux(opens GitHub issue in a new tab)
What version of Bun is running? 1.4.5+a7733435c What platform is your computer? Linux 6.8.0-149-generic x86_64 x86_64 (ext4, glibc 2.35) What steps can reproduce the bug? A writer repeatedly saves a regular file by writing a temporary file in the same directory and renaming it over the destination (an atomic replacement, as editors commonly do). A reader calls realpath on the destination while this runs. Save as repro.mjs and run bun repro.mjs (optional argument: duration in ms, default 3000).…
by gbaian10 0upvotes 1comments
FAQ
What happened in the Bun issue?
Bun versions 1.4.5 and later experience ENOENT failures when calling fs.promises.realpath or fs.realpathSync on Linux during atomic file replacement operations where a temporary file is renamed over the destination path.
What is affected by the Bun issue?
Bun (versions: 1.4.5+). Also affected at the same time: Linux.
When did the Bun issue start and end?
It started Nov 19, 12:27 UTC and is still ongoing (2 h 20 min 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.