You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Full backup of large DuckDB history fails at the production memory limit #1234
Creating a full backup on a Raspberry Pi running v3.4.2-beta.4 fails while exporting DuckDB history to the portable SQLite backup. The API returns an error instead of publishing a verified archive.
Reproduction: call POST /api/backups with an empty JSON body on a site with roughly 7.5 GiB of DuckDB history and 889 MiB of hot history. Historical migration is complete; the site has about 3 GiB of available RAM and 34 GiB of free disk.
Observed error: backup history: Out of Memory Error: could not allocate block of size 256.0 KiB (243.8 MiB/244.1 MiB used). Core configures DuckDB with a 256 MB memory limit. The error occurred before any Core update; no successful new archive was reported.
Inspect the hot-history seal and ordered history export in go/internal/state/history_duckdb.go. The failing phase still needs an exact local reproduction. Test at the production memory and temporary-disk limits with representative history volume; prove bounded export, complete row/hash verification, clean failure, retry, and uninterrupted control. Increasing the global memory limit alone is not a robust fix.
Found during the v3.5.0-beta.1 installation check. That candidate carries the same backup implementation, so the limitation also applies until fixed. Local evidence is retained outside the public repository; no household records are attached.
Closing. #1248 removed the code path this issue names: go/internal/state/history_duckdb.go is gone, and Core no longer exports DuckDB history during a backup. History is now SQLite and Parquet, so this failure cannot occur on master in the form described.
DuckDB survives only in the one-off tool go/tools/history-migrate. It opens the beta database with the same 256 MB memory limit and a 512 MB temp cap. No one has yet run it against history of the size reported here (about 7.5 GiB). If it fails there, open a new issue against the tool.
Activity
frahlg commentedon Sep 18, 2026
Closing. #1248 removed the code path this issue names:
go/internal/state/history_duckdb.gois gone, and Core no longer exports DuckDB history during a backup. History is now SQLite and Parquet, so this failure cannot occur on master in the form described.What stays open elsewhere:
go/tools/history-migrate. It opens the beta database with the same 256 MB memory limit and a 512 MB temp cap. No one has yet run it against history of the size reported here (about 7.5 GiB). If it fails there, open a new issue against the tool.