Skip to content

Backups: Improve commands to better handle large index dumps #3140

Closed
@dsuresh-ap

Description

@dsuresh-ap

It appears that if the SQL db is too large, the backup command silently fails when writing the buffer to string.

I have 2 photoprism containers, the one with a 1.17GB DB fails to output the dump while the 260MB DB dumps successfully.

Looking at the logic and the run time of the command, it looks like this block is not running properly. I suspect its due to the size of my DB and maybe out.String() on either 162 (both file and stdout doesn't work) or 165 is reaching some limitation. Clearly the logic is dropping off somewhere between line 152 and 169...

macOS 13.1 M1
Docker 4.15.0 (4 CPUs, 6GB RAM allocated)
photoprism:latest
MariaDB:10.10

Full context and details in the discussion.
Originally posted by @dsuresh-ap in #772 (comment)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingprioritySupported by early sponsors or popular demandreleasedAvailable in the stable release

Type

No type

Projects

Status

Release 🌈

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions