[GH-ISSUE #5124] [Issue]: Pre-update snapshot backs up re-downloadable files #2834

Closed
opened 2026-10-21 05:56:29 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Aug 16, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5124

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Before applying an update, the launcher snapshots the entire data directory, including re-downloadable model weights and runtime files. This causes multi-gigabyte copies, long apparent hangs, and unnecessary disk-space requirements.

Expected behavior

The pre-update snapshot should protect irreplaceable user data while excluding regenerable directories such as models/ and sidecar-runtime/, and potentially backups/ and storage_backup_*.

Actual behavior

start.bat runs node scripts\protect-launcher-data.mjs snapshot, which recursively copies the entire data directory without exclusions. A real install copied approximately 7.1 GiB, including about 5.8 GB of model weights and vendored CUDA binaries, and required roughly 7 GB of free space before updating.

Steps to reproduce

  1. Use a Marinara Engine installation with downloaded models, sidecar runtime files, and other large data-directory contents.
  2. Start an update using start.bat.
  3. Observe that node scripts\protect-launcher-data.mjs snapshot runs before the update.
  4. Observe that the complete data directory is copied, with no progress output during the multi-gigabyte copy.

Environment

  • Marinara Engine version: 2.4.1
  • Install type: Not provided
  • OS + version: Windows 11 Pro 26200
  • Browser or app shell: Not provided

Logs, screenshots, or video

Relevant code: await cp(dataDir, resolve(incompleteDir, "data"), { recursive: true, preserveTimestamps: true, errorOnExist: true, }). No screenshots or video provided. Reported directory sizes: models/ 5,072 MB; sidecar-runtime/ 722 MB; capability-packages/ 536 MB; storage/ 666 MB; gallery/ 232 MB; storage_backup_20260613/ 171 MB; game-assets/ 76 MB; backups/ 59 MB; total approximately 7.1 GiB.

Additional context

Environment also included Node v24.17.0 and pnpm 10.34.5. The snapshot is intended to make updates reversible, but model weights and sidecar binaries can be re-downloaded and do not add equivalent safety. Excluding models/, sidecar-runtime/, backups/, and storage_backup_* was suggested.

Discord thread: Backing up too much
Discord thread link: https://discord.com/channels/1417099416812392641/1538418870736519168
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-08-16T05:27:21.224Z] ChrisDay: Issue 2 — the pre-update snapshot copies the entire data directory, including re-downloadable model and runtime files
Environment: Windows 11 Pro 26200 · Node v24.17.0 · pnpm 10.34.5 · Marinara Engine 2.4.1, 

What happens
Before applying an update, start.bat runs node scripts\protect-launcher-data.mjs snapshot, which copies the whole data directory with no exclusions:

await cp(dataDir, resolve(incompleteDir, "data"), {
  recursive: true,
  preserveTimestamps: true,
  errorOnExist: true,
})
On a real install that directory is dominated by files that are not user data:

models/                  5,072 MB   downloaded model weights (.gguf)
sidecar-runtime/           722 MB   CUDA DLLs
capability-packages/       536 MB
storage/                   666 MB   <-- the part that actually needs protecting
gallery/                   232 MB
storage_backup_20260613/   171 MB   <-- a previous backup
game-assets/                76 MB
backups/                    59 MB   <-- backups
avatars/ backgrounds/       35 MB
----------------------------------
total                     7.1 GiB
So roughly 5.8 GB of the 7.1 GB copied on every single update is re-downloadable artifacts — model weights and vendored CUDA binaries — plus a further ~230 MB of previous backups being backed up again.

Why it matters
Every update begins with a multi-gigabyte file copy before git is touched. On a normal disk that's minutes of apparent hang with no progress output.
It needs 7 GB of free space to update an install whose irreplaceable data is under 1 GB.
The snapshot exists to make an update reversible. Model weights and sidecar binaries can be re-downloaded; including them adds cost without adding safety.
Suggested fix
A filter on the cp() call excluding known-regenerable directories — at minimum models/ and sidecar-runtime/, and arguably backups/ and any storage_backup_*.
[Discord message: https://discord.com/channels/1417099416812392641/1538418870736519168/1538418870736519168]

[2026-08-16T05:27:22.026Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1538418870736519168/1538418874100350977]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Aug 16, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5124 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Before applying an update, the launcher snapshots the entire data directory, including re-downloadable model weights and runtime files. This causes multi-gigabyte copies, long apparent hangs, and unnecessary disk-space requirements. ## Expected behavior The pre-update snapshot should protect irreplaceable user data while excluding regenerable directories such as models/ and sidecar-runtime/, and potentially backups/ and storage_backup_*. ## Actual behavior start.bat runs node scripts\protect-launcher-data.mjs snapshot, which recursively copies the entire data directory without exclusions. A real install copied approximately 7.1 GiB, including about 5.8 GB of model weights and vendored CUDA binaries, and required roughly 7 GB of free space before updating. ## Steps to reproduce 1. Use a Marinara Engine installation with downloaded models, sidecar runtime files, and other large data-directory contents. 2. Start an update using start.bat. 3. Observe that node scripts\protect-launcher-data.mjs snapshot runs before the update. 4. Observe that the complete data directory is copied, with no progress output during the multi-gigabyte copy. ## Environment - Marinara Engine version: 2.4.1 - Install type: Not provided - OS + version: Windows 11 Pro 26200 - Browser or app shell: Not provided ## Logs, screenshots, or video Relevant code: await cp(dataDir, resolve(incompleteDir, "data"), { recursive: true, preserveTimestamps: true, errorOnExist: true, }). No screenshots or video provided. Reported directory sizes: models/ 5,072 MB; sidecar-runtime/ 722 MB; capability-packages/ 536 MB; storage/ 666 MB; gallery/ 232 MB; storage_backup_20260613/ 171 MB; game-assets/ 76 MB; backups/ 59 MB; total approximately 7.1 GiB. ## Additional context Environment also included Node v24.17.0 and pnpm 10.34.5. The snapshot is intended to make updates reversible, but model weights and sidecar binaries can be re-downloaded and do not add equivalent safety. Excluding models/, sidecar-runtime/, backups/, and storage_backup_* was suggested. Discord thread: Backing up too much Discord thread link: https://discord.com/channels/1417099416812392641/1538418870736519168 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-08-16T05:27:21.224Z] ChrisDay: Issue 2 — the pre-update snapshot copies the entire data directory, including re-downloadable model and runtime files Environment: Windows 11 Pro 26200 · Node v24.17.0 · pnpm 10.34.5 · Marinara Engine 2.4.1, What happens Before applying an update, start.bat runs node scripts\protect-launcher-data.mjs snapshot, which copies the whole data directory with no exclusions: await cp(dataDir, resolve(incompleteDir, "data"), { recursive: true, preserveTimestamps: true, errorOnExist: true, }) On a real install that directory is dominated by files that are not user data: models/ 5,072 MB downloaded model weights (.gguf) sidecar-runtime/ 722 MB CUDA DLLs capability-packages/ 536 MB storage/ 666 MB <-- the part that actually needs protecting gallery/ 232 MB storage_backup_20260613/ 171 MB <-- a previous backup game-assets/ 76 MB backups/ 59 MB <-- backups avatars/ backgrounds/ 35 MB ---------------------------------- total 7.1 GiB So roughly 5.8 GB of the 7.1 GB copied on every single update is re-downloadable artifacts — model weights and vendored CUDA binaries — plus a further ~230 MB of previous backups being backed up again. Why it matters Every update begins with a multi-gigabyte file copy before git is touched. On a normal disk that's minutes of apparent hang with no progress output. It needs 7 GB of free space to update an install whose irreplaceable data is under 1 GB. The snapshot exists to make an update reversible. Model weights and sidecar binaries can be re-downloaded; including them adds cost without adding safety. Suggested fix A filter on the cp() call excluding known-regenerable directories — at minimum models/ and sidecar-runtime/, and arguably backups/ and any storage_backup_*. [Discord message: https://discord.com/channels/1417099416812392641/1538418870736519168/1538418870736519168] [2026-08-16T05:27:22.026Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1538418870736519168/1538418874100350977] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:56:29 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Aug 16, 2026):

@SpicyMarinara is taking this issue. I am also auditing whether sidecar runtimes or model weights enter the normal install path; the focused draft PR will document and fix the verified scope.

<!-- gh-comment-id:5306324562 --> @SpicyMarinara commented on GitHub (Aug 16, 2026): @SpicyMarinara is taking this issue. I am also auditing whether sidecar runtimes or model weights enter the normal install path; the focused draft PR will document and fix the verified scope.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2834
No description provided.