Skip to content

Full backup of large DuckDB history fails at the production memory limit #1234

Closed

Description

@frahlg

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.

Activity

  1. frahlg commented on Sep 18, 2026

    @frahlg
    MemberAuthor

    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.

    What stays open elsewhere:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions