Skip to content

Commit e3f3d91

Browse files
committed
Release v3.31.1
1 parent 88a11a3 commit e3f3d91

5 files changed

Lines changed: 28 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ Format follows [Keep a Changelog](https://keepachangelog.com/). Haven uses [Sema
1111
1212
---
1313

14+
## [3.31.1] — 2026-07-10
15+
16+
### Fixed
17+
- **Restoring a large backup no longer fails with "failed to fetch" (#5436).** Restoring a full backup that included files broke on three separate limits: the server aborted any request that took longer than 30 seconds (which is the ~30s "failed to fetch" people saw), the upload itself was capped at 4GB, and the restore read the entire uploaded zip into memory the way the old backup path did, so a large archive ran the server out of memory. Restores now allow long uploads, accept large files, and stream the archive straight to disk, so a 15GB or larger backup restores without crashing. Slow-header (slowloris) protection is unchanged.
18+
19+
### Changed
20+
- **The backup screen now spells out that only full backups can be restored in place (#5435).** A backup has to include both Messages and Uploaded files to be restorable from the Restore box; smaller channels/users/settings backups are meant to be re-imported by hand. That was always the case but wasn't stated, so a partial backup failing to restore looked like a bug.
21+
1422
## [3.31.0] — 2026-07-10
1523

1624
### Added

docs/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,12 +1415,12 @@ <h2>Download Haven</h2>
14151415
</div>
14161416

14171417
<div class="download-card fade-in">
1418-
<h2>&#x2B21; Haven Server &mdash; v3.31.0</h2>
1418+
<h2>&#x2B21; Haven Server &mdash; v3.31.1</h2>
14191419
<p class="download-version">Latest stable release &middot; Windows, macOS &amp; Linux &middot; ~5 MB</p>
14201420

14211421
<div class="download-btn-group">
1422-
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.0.zip" class="btn btn-primary download-main">
1423-
<span class="icon">&#x2B07;</span> Download v3.31.0 (.zip)
1422+
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.1.zip" class="btn btn-primary download-main">
1423+
<span class="icon">&#x2B07;</span> Download v3.31.1 (.zip)
14241424
</a>
14251425
<div class="download-alt-links">
14261426
<a href="https://github.com/ancsemi/Haven" target="_blank">&#9965; View on GitHub</a>
@@ -1437,7 +1437,11 @@ <h2>&#x2B21; Haven Server &mdash; v3.31.0</h2>
14371437
<div class="version-list">
14381438
<div class="version-list-inner">
14391439
<div class="version-item">
1440-
<div><span class="v-name">v3.31.0</span><span class="v-tag latest">Latest</span> &mdash; <strong>Rich link preview cards for Bluesky and X posts, plus a fix for backups that include files.</strong> Social links now embed as full cards with the author&#39;s avatar, the post text, sized media, and engagement counts, matching the mobile app, and embed size is a single Off / Small / Medium / Full preference shared by Settings and a per-embed toggle (#5429, contributed by Amnibro). Backups that include files no longer crash the server: they used to build the whole archive in memory and run out of RAM once the uploads folder got large (around 30GB), and now stream straight to disk instead (#5434).</div>
1440+
<div><span class="v-name">v3.31.1</span><span class="v-tag latest">Latest</span> &mdash; <strong>Restoring a large backup works again.</strong> Restoring a full backup that included files used to fail after about 30 seconds with a &ldquo;failed to fetch&rdquo; error, because the server cut off long uploads, capped the upload at 4GB, and read the whole archive into memory at once. Restores now allow long uploads, accept large files, and stream straight to disk, so a 15GB or larger backup restores without crashing (#5436). The backup screen also now notes that only full backups, ones that include both Messages and Uploaded files, can be restored in place (#5435).</div>
1441+
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.1.zip">Download &rarr;</a>
1442+
</div>
1443+
<div class="version-item">
1444+
<div><span class="v-name">v3.31.0</span> &mdash; <strong>Rich link preview cards for Bluesky and X posts, plus a fix for backups that include files.</strong> Social links now embed as full cards with the author&#39;s avatar, the post text, sized media, and engagement counts, matching the mobile app, and embed size is a single Off / Small / Medium / Full preference shared by Settings and a per-embed toggle (#5429, contributed by Amnibro). Backups that include files no longer crash the server: they used to build the whole archive in memory and run out of RAM once the uploads folder got large (around 30GB), and now stream straight to disk instead (#5434).</div>
14411445
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.0.zip">Download &rarr;</a>
14421446
</div>
14431447
<div class="version-item">

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{
1+
{
22
"name": "haven",
3-
"version": "3.31.0",
3+
"version": "3.31.1",
44
"description": "Haven - self-hosted private chat for your server, your rules",
55
"license": "AGPL-3.0",
66
"main": "server.js",

website/index.html

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,12 +1415,12 @@ <h2>Download Haven</h2>
14151415
</div>
14161416

14171417
<div class="download-card fade-in">
1418-
<h2>&#x2B21; Haven Server &mdash; v3.31.0</h2>
1418+
<h2>&#x2B21; Haven Server &mdash; v3.31.1</h2>
14191419
<p class="download-version">Latest stable release &middot; Windows, macOS &amp; Linux &middot; ~5 MB</p>
14201420

14211421
<div class="download-btn-group">
1422-
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.0.zip" class="btn btn-primary download-main">
1423-
<span class="icon">&#x2B07;</span> Download v3.31.0 (.zip)
1422+
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.1.zip" class="btn btn-primary download-main">
1423+
<span class="icon">&#x2B07;</span> Download v3.31.1 (.zip)
14241424
</a>
14251425
<div class="download-alt-links">
14261426
<a href="https://github.com/ancsemi/Haven" target="_blank">&#9965; View on GitHub</a>
@@ -1437,7 +1437,11 @@ <h2>&#x2B21; Haven Server &mdash; v3.31.0</h2>
14371437
<div class="version-list">
14381438
<div class="version-list-inner">
14391439
<div class="version-item">
1440-
<div><span class="v-name">v3.31.0</span><span class="v-tag latest">Latest</span> &mdash; <strong>Rich link preview cards for Bluesky and X posts, plus a fix for backups that include files.</strong> Social links now embed as full cards with the author&#39;s avatar, the post text, sized media, and engagement counts, matching the mobile app, and embed size is a single Off / Small / Medium / Full preference shared by Settings and a per-embed toggle (#5429, contributed by Amnibro). Backups that include files no longer crash the server: they used to build the whole archive in memory and run out of RAM once the uploads folder got large (around 30GB), and now stream straight to disk instead (#5434).</div>
1440+
<div><span class="v-name">v3.31.1</span><span class="v-tag latest">Latest</span> &mdash; <strong>Restoring a large backup works again.</strong> Restoring a full backup that included files used to fail after about 30 seconds with a &ldquo;failed to fetch&rdquo; error, because the server cut off long uploads, capped the upload at 4GB, and read the whole archive into memory at once. Restores now allow long uploads, accept large files, and stream straight to disk, so a 15GB or larger backup restores without crashing (#5436). The backup screen also now notes that only full backups, ones that include both Messages and Uploaded files, can be restored in place (#5435).</div>
1441+
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.1.zip">Download &rarr;</a>
1442+
</div>
1443+
<div class="version-item">
1444+
<div><span class="v-name">v3.31.0</span> &mdash; <strong>Rich link preview cards for Bluesky and X posts, plus a fix for backups that include files.</strong> Social links now embed as full cards with the author&#39;s avatar, the post text, sized media, and engagement counts, matching the mobile app, and embed size is a single Off / Small / Medium / Full preference shared by Settings and a per-embed toggle (#5429, contributed by Amnibro). Backups that include files no longer crash the server: they used to build the whole archive in memory and run out of RAM once the uploads folder got large (around 30GB), and now stream straight to disk instead (#5434).</div>
14411445
<a href="https://github.com/ancsemi/Haven/archive/refs/tags/v3.31.0.zip">Download &rarr;</a>
14421446
</div>
14431447
<div class="version-item">

0 commit comments

Comments
 (0)