Skip to content

SHM file gets deleted when backing up sqlite3 db, causing db to unusable until restarting app #423

Closed

Description

@Iceman248

Summary

It seems to trigger a checkpoint to move data from WAL file to main DB file, then backs up that file, then I noticed WAL file was zeroed out, but that SHM file was deleted and I was getting I/O errors and DB ultimately wouldn't work, had to restart app to get it going again. It recreated the SHM file.

Steps to reproduce

  1. Backup sqlite3 db file

What is the expected correct behavior?

Either doesn't delete SHM file or recreates it if needs to

Relevant logs and/or screenshots

Environment

  • Image version / tag: 4.1.21 / latest
  • Host OS: Unraid
Any logs | docker-compose.yml

Possible fixes

Activity

  1. locked and limited conversation to collaborators on Sep 4, 2026
  2. converted this issue into a discussion #512 on Sep 4, 2026
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions