[GH-ISSUE #8089] [Issue]: Backups fail when profile ZIP central directory exceeds 8 MiB #7558

Closed
opened 2026-10-24 04:04:14 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Automatic and manual backups fail with ProfileArchiveTooLargeError when the profile ZIP central directory is 8,388,615 bytes, exceeding the 8,388,608-byte limit.

Expected behavior

Automatic and manual backups should complete successfully, or report a clear, actionable way to handle a profile archive that exceeds the supported limit.

Actual behavior

Both automatic and manual backups fail with the same ProfileArchiveTooLargeError.

Steps to reproduce

  1. Use a profile whose ZIP central directory exceeds 8,388,608 bytes.
  2. Run an automatic backup or start a manual backup.
  3. Observe that the backup fails with ProfileArchiveTooLargeError.

Environment

  • Marinara Engine version: 2.5.0 (build/commit 25f8df7b0a)
  • Install type: source
  • OS + version: Windows 10.0.26300 (x64)
  • Browser or app shell: Opera 136.0.0.0 (Chromium 152.0.0.0)

Logs, screenshots, or video

Error: Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes). Stack includes writeStoredZipArchive, writeFullBackupArchive, and writeAutomaticBackup. No screenshots or video provided.

Additional context

The error was first noticed around October 19, 2026. The user later confirmed that manual backups fail with the same error.

Discord thread: Automatic backup: Profile archive central directory is too large for profile ZIP import/export error
Discord thread link: https://discord.com/channels/1417099416812392641/1562097886160752740
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (3 messages)
[2026-10-20T13:39:18.436Z] Terahurts: I'm getting:
` ` `"Paul-PC","bootId":"22195298","err":{"type":"ProfileArchiveTooLargeError","message":"Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes).","stack":"Error: Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes).\n    at writeStoredZipArchive (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:1924:23)\n    at async writeFullBackupArchive (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2755:5)\n    at async writeAutomaticBackup (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2781:36)\n    at async withAutomaticBackupLifecycleLock (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:212:16)\n    at async runAutomaticBackupIfDue (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2928:56)"},"msg":"[backup] Automatic backup failed"}` ` `

errors as of - I think - yesterday.
[Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562097886160752740]

[2026-10-20T13:39:22.125Z] Terahurts: ` ` `
Marinara Engine diagnostics
Version: 2.5.0
Build: 2.5.0+25f8df7b0a38
Commit: 25f8df7b0a38
Server OS: Windows 10.0.26300 (x64)
Server memory: heap 752.3 / 4288 MiB; RSS 389 MiB
Background wake lock: not reported
Last detected freeze: none detected
Previous session: restarted itself for an update or a settings restart at 2026-10-20T12:50:27.098Z
Sessions ended without shutdown: 10 recorded
Client OS: Windows 10.0
Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 OPR/136.0.0.0
Client runtime: {"build":"2.5.0+25f8df7b0a38","page":"mvgqadv6-85lr3dgh","persistence":"local","navigation":"navigate","standalone":false,"view":[683,0,683,0],"events":[{"at":1792500140612,"page":"mvgoawck-x8ylr6c3","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]},{"at":1792500214085,"page":"mvgoch1h-xdq5a3k3","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]},{"at":1792503475891,"page":"mvgqadv6-85lr3dgh","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]}]}
GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 4080 (0x00002704) Direct3D11 vs_5_0 ps_5_0, D3D11)
Server GPU: NVIDIA GeForce RTX 4080, 16376 MiB total, 3344 MiB used, driver 610.62
Main sidecar: not configured
Utility sidecar: not configured
Decision sidecar: not configured
Sidecar load: not measured
Active connection: Nano Longcat 2.5 preview (No Thinking)
Connection provider: nanogpt
LLM model: longcat-2.5-preview
Professor Mari last acted on: none recorded this session
` ` `
[Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562097901633544243]

[2026-10-21T08:27:41.382Z] Terahurts: Manual backup are also failing with the same errror.
[Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562381852898107424]

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 (Oct 22, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8089 Originally assigned to: @SpicyMarinara on GitHub. ## Summary Automatic and manual backups fail with `ProfileArchiveTooLargeError` when the profile ZIP central directory is 8,388,615 bytes, exceeding the 8,388,608-byte limit. ## Expected behavior Automatic and manual backups should complete successfully, or report a clear, actionable way to handle a profile archive that exceeds the supported limit. ## Actual behavior Both automatic and manual backups fail with the same `ProfileArchiveTooLargeError`. ## Steps to reproduce 1. Use a profile whose ZIP central directory exceeds 8,388,608 bytes. 2. Run an automatic backup or start a manual backup. 3. Observe that the backup fails with `ProfileArchiveTooLargeError`. ## Environment - Marinara Engine version: 2.5.0 (build/commit 25f8df7b0a38) - Install type: source - OS + version: Windows 10.0.26300 (x64) - Browser or app shell: Opera 136.0.0.0 (Chromium 152.0.0.0) ## Logs, screenshots, or video Error: `Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes).` Stack includes `writeStoredZipArchive`, `writeFullBackupArchive`, and `writeAutomaticBackup`. No screenshots or video provided. ## Additional context The error was first noticed around October 19, 2026. The user later confirmed that manual backups fail with the same error. Discord thread: Automatic backup: Profile archive central directory is too large for profile ZIP import/export error Discord thread link: https://discord.com/channels/1417099416812392641/1562097886160752740 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-10-20T13:39:18.436Z] Terahurts: I'm getting: ` ` `"Paul-PC","bootId":"22195298","err":{"type":"ProfileArchiveTooLargeError","message":"Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes).","stack":"Error: Profile archive central directory is too large for profile ZIP import/export (8388615 bytes, limit 8388608 bytes).\n at writeStoredZipArchive (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:1924:23)\n at async writeFullBackupArchive (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2755:5)\n at async writeAutomaticBackup (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2781:36)\n at async withAutomaticBackupLifecycleLock (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:212:16)\n at async runAutomaticBackupIfDue (file:///C:/Users/terah/Marinara-Engine/packages/server/dist/routes/backup.routes.js:2928:56)"},"msg":"[backup] Automatic backup failed"}` ` ` errors as of - I think - yesterday. [Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562097886160752740] [2026-10-20T13:39:22.125Z] Terahurts: ` ` ` Marinara Engine diagnostics Version: 2.5.0 Build: 2.5.0+25f8df7b0a38 Commit: 25f8df7b0a38 Server OS: Windows 10.0.26300 (x64) Server memory: heap 752.3 / 4288 MiB; RSS 389 MiB Background wake lock: not reported Last detected freeze: none detected Previous session: restarted itself for an update or a settings restart at 2026-10-20T12:50:27.098Z Sessions ended without shutdown: 10 recorded Client OS: Windows 10.0 Browser / app shell: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/152.0.0.0 Safari/537.36 OPR/136.0.0.0 Client runtime: {"build":"2.5.0+25f8df7b0a38","page":"mvgqadv6-85lr3dgh","persistence":"local","navigation":"navigate","standalone":false,"view":[683,0,683,0],"events":[{"at":1792500140612,"page":"mvgoawck-x8ylr6c3","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]},{"at":1792500214085,"page":"mvgoch1h-xdq5a3k3","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]},{"at":1792503475891,"page":"mvgqadv6-85lr3dgh","build":"2.5.0+25f8df7b0a38","kind":"page-start","view":[683,0,683,0]}]} GPU: ANGLE (NVIDIA, NVIDIA GeForce RTX 4080 (0x00002704) Direct3D11 vs_5_0 ps_5_0, D3D11) Server GPU: NVIDIA GeForce RTX 4080, 16376 MiB total, 3344 MiB used, driver 610.62 Main sidecar: not configured Utility sidecar: not configured Decision sidecar: not configured Sidecar load: not measured Active connection: Nano Longcat 2.5 preview (No Thinking) Connection provider: nanogpt LLM model: longcat-2.5-preview Professor Mari last acted on: none recorded this session ` ` ` [Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562097901633544243] [2026-10-21T08:27:41.382Z] Terahurts: Manual backup are also failing with the same errror. [Discord message: https://discord.com/channels/1417099416812392641/1562097886160752740/1562381852898107424] ``` </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-24 04:04:14 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Implementation owner: @SpicyMarinara (Codex). I am reproducing the central-directory limit failure in disposable archives and tracing both export and import before changing it. The fix will preserve archive integrity checks, memory bounds and existing backups.

<!-- gh-comment-id:6345552973 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Implementation owner: @SpicyMarinara (Codex). I am reproducing the central-directory limit failure in disposable archives and tracing both export and import before changing it. The fix will preserve archive integrity checks, memory bounds and existing backups.
Author
Owner

@SpicyMarinara commented on GitHub (Oct 22, 2026):

Resolved by #8094, merged to staging as 0eaca9efe3. Verified reviewed-head ancestry. Full backups now have a bounded 32 MiB directory budget while ordinary/native profile archives keep 8 MiB. Oversized directories are structurally validated before entry materialization, with bounded read windows and the real deferred-note writer order preserved. Final pnpm check, 4/4 backup and 3/3 profile-import regression files pass; all eight required hosted checks and final-head Dottore review passed, and all review threads are resolved. The app/browser-driven and physical-device manual checks remain documented separately.

<!-- gh-comment-id:6347509140 --> @SpicyMarinara commented on GitHub (Oct 22, 2026): Resolved by #8094, merged to staging as 0eaca9efe3a1374733753c366a864abbd72796d7. Verified reviewed-head ancestry. Full backups now have a bounded 32 MiB directory budget while ordinary/native profile archives keep 8 MiB. Oversized directories are structurally validated before entry materialization, with bounded read windows and the real deferred-note writer order preserved. Final pnpm check, 4/4 backup and 3/3 profile-import regression files pass; all eight required hosted checks and final-head Dottore review passed, and all review threads are resolved. The app/browser-driven and physical-device manual checks remain documented separately.
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#7558
No description provided.