Skip to content

Out-of-memory corrupts catalog #4

@lyonel

Description

@lyonel

When Snebu reaches an out-of-memory condition (after eating all system memory + swap) running snebu expire or during a backup, it crashes, leaving a corrupted catalog DB. Further tries (either using various snebu commands or sqlite3 directly) often lead to SQLITE_CORRUPT (11) errors.

Recovery with sqlite3 snebu-catalog.db .dump | sqlite3 recovered-snebu-catalog.db is (usually) possible

PS: After a few months backuping 4 Linux boxes, my catalog DB is now 27GiB (mostly due to the various indices Snebu creates), which means that its DB journal often gets bigger than the available memory+swap (8GiB).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions