Bun

Bun issue (Dec 5): Bun fs.closeSync, writeFileSync and appendFileSync Report Success When close(2) Fails

high

Is it fixed? Not yet.

Ongoing since Dec 5, 00:49 UTC. First reported Dec 5, 00:49 UTC.

What happened

Bun's file system methods such as fs.closeSync, writeFileSync, and appendFileSync return success when the underlying close(2) system call fails. On network file systems like NFS, SMB, and FUSE where write-back errors are reported during close, programs running on Bun are incorrectly told their data was written even if it never reached the server.

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 fix

Outage timeline

  1. Investigating(current)
  2. Workaround available(upcoming)
  3. Resolved(upcoming)
  1. First report on GitHub issue

    fs.closeSync, writeFileSync and appendFileSync report success when close(2) fails

    Source

Reports of this outage

1 report · 1 GitHubShow
  1. [1]
    GitHub First report
    fs.closeSync, writeFileSync and appendFileSync report success when close(2) fails(opens GitHub issue in a new tab)

    When close(2) fails, Bun's fs.closeSync, fs.writeFileSync and fs.appendFileSync return as if the write succeeded. So do fs.close with a callback, FileHandle.close(), fs.promises.appendFile and a write stream's end(). Node reports the error from all seven. On NFS, SMB and FUSE, close is where a failed write-back is reported. A program running on Bun is told its data was written when it never reached the server, and it has no way to find out. | | Node v22.23.4 | Bun 1.4.5+a7733435c (latest…

    by ain3sh 0upvotes 1comments

Bun issue FAQ

What happened in the Bun issue, and why?

Ongoing since Dec 5, 00:49 UTC. No cause has been published yet; this page adds it once the vendor or a report explains it.

What is affected by the Bun issue?

Bun (versions: 1.4.5+a7733435c).

When did the Bun issue start and end?

It started Dec 5, 00:49 UTC and is still ongoing (1 h 12 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.