[GH-ISSUE #4031] [Issue]: Auto-update snapshot fails with ERR_INVALID_URL_SCHEME on Windows 11 #2172

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The update snapshot process fails after updating to v2.3.4, causing Marinara Engine to skip auto-updates to protect user data.

Expected behavior

Marinara Engine should create an update snapshot and proceed with the automatic update check.

Actual behavior

The snapshot script throws ERR_INVALID_URL_SCHEME because fileURLToPath receives a non-file URL. Auto-update is skipped, although Marinara Engine otherwise continues to work.

Steps to reproduce

  1. Run Marinara Engine v2.3.4 on Windows 11.
  2. Allow the launcher to check for automatic updates.
  3. Observe the failure in protect-launcher-data.mjs and the warning that auto-update was skipped.

Environment

  • Marinara Engine version: Release v2.3.4, build 2d23b0b, Latest Stable
  • Install type: Not provided
  • OS + version: Windows 11
  • Browser or app shell: Not provided

Logs, screenshots, or video

Console log:
[..] Aligning pnpm to 10.33.2 via Corepack...
[..] Checking for updates...
node:internal/url:1629
throw new ERR_INVALID_URL_SCHEME('file');
^

TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file
at fileURLToPath (node:internal/url:1629:11)
at file:///D:/Marinara-Engine/scripts/protect-launcher-data.mjs:161:59
at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
at async node:internal/modules/esm/loader:643:26
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
code: 'ERR_INVALID_URL_SCHEME'
}

Node.js v24.18.0
[WARN] Could not create an update snapshot. Skipping auto-update to protect your data.
[OK] Node.js found:
v24.18.0
[OK] pnpm 10.33.2 ready

Additional context

The issue began after an update around 02:00 GMT on 2026-07-24. Marinara Engine remains functional, but does not update. The user did not switch to staging due to concern that it might cause further problems.

Discord thread: [WARN] Could not create an update snapshot. Skipping auto-update to protect your data.
Discord thread link: https://discord.com/channels/1417099416812392641/1530124150662889502
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-24T08:07:05.850Z] Terahurts: I'm getting the above warning today, after updating around 2am GMT this morning.

Windows 11 
Latest Stable
Release: v2.3.4
Build: 2d23b0b

Console log:
` ` `[..] Aligning pnpm to 10.33.2 via Corepack...
 [..] Checking for updates...
node:internal/url:1629
    throw new ERR_INVALID_URL_SCHEME('file');
          ^

TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file
    at fileURLToPath (node:internal/url:1629:11)
    at file:///D:/Marinara-Engine/scripts/protect-launcher-data.mjs:161:59
    at ModuleJob.run (node:internal/modules/esm/module_job:439:25)
    at async node:internal/modules/esm/loader:643:26
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
  code: 'ERR_INVALID_URL_SCHEME'
}

Node.js v24.18.0
 [WARN] Could not create an update snapshot. Skipping auto-update to protect your data.
 [OK] Node.js found:
v24.18.0
 [OK] pnpm 10.33.2 ready` ` `

ME is working fine, just not updating. I haven't tried switching to staging in case it breaks something.
[Discord message: https://discord.com/channels/1417099416812392641/1530124150662889502/1530124150662889502]

[2026-07-24T08:18:10.652Z] Marinara: Let me check.
[Discord message: https://discord.com/channels/1417099416812392641/1530124150662889502/1530126939044577331]

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 (Jul 24, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4031 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The update snapshot process fails after updating to v2.3.4, causing Marinara Engine to skip auto-updates to protect user data. ## Expected behavior Marinara Engine should create an update snapshot and proceed with the automatic update check. ## Actual behavior The snapshot script throws ERR_INVALID_URL_SCHEME because fileURLToPath receives a non-file URL. Auto-update is skipped, although Marinara Engine otherwise continues to work. ## Steps to reproduce 1. Run Marinara Engine v2.3.4 on Windows 11. 2. Allow the launcher to check for automatic updates. 3. Observe the failure in protect-launcher-data.mjs and the warning that auto-update was skipped. ## Environment - Marinara Engine version: Release v2.3.4, build 2d23b0b, Latest Stable - Install type: Not provided - OS + version: Windows 11 - Browser or app shell: Not provided ## Logs, screenshots, or video Console log: [..] Aligning pnpm to 10.33.2 via Corepack... [..] Checking for updates... node:internal/url:1629 throw new ERR_INVALID_URL_SCHEME('file'); ^ TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file at fileURLToPath (node:internal/url:1629:11) at file:///D:/Marinara-Engine/scripts/protect-launcher-data.mjs:161:59 at ModuleJob.run (node:internal/modules/esm/module_job:439:25) at async node:internal/modules/esm/loader:643:26 at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) { code: 'ERR_INVALID_URL_SCHEME' } Node.js v24.18.0 [WARN] Could not create an update snapshot. Skipping auto-update to protect your data. [OK] Node.js found: v24.18.0 [OK] pnpm 10.33.2 ready ## Additional context The issue began after an update around 02:00 GMT on 2026-07-24. Marinara Engine remains functional, but does not update. The user did not switch to staging due to concern that it might cause further problems. Discord thread: [WARN] Could not create an update snapshot. Skipping auto-update to protect your data. Discord thread link: https://discord.com/channels/1417099416812392641/1530124150662889502 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-24T08:07:05.850Z] Terahurts: I'm getting the above warning today, after updating around 2am GMT this morning. Windows 11 Latest Stable Release: v2.3.4 Build: 2d23b0b Console log: ` ` `[..] Aligning pnpm to 10.33.2 via Corepack... [..] Checking for updates... node:internal/url:1629 throw new ERR_INVALID_URL_SCHEME('file'); ^ TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file at fileURLToPath (node:internal/url:1629:11) at file:///D:/Marinara-Engine/scripts/protect-launcher-data.mjs:161:59 at ModuleJob.run (node:internal/modules/esm/module_job:439:25) at async node:internal/modules/esm/loader:643:26 at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) { code: 'ERR_INVALID_URL_SCHEME' } Node.js v24.18.0 [WARN] Could not create an update snapshot. Skipping auto-update to protect your data. [OK] Node.js found: v24.18.0 [OK] pnpm 10.33.2 ready` ` ` ME is working fine, just not updating. I haven't tried switching to staging in case it breaks something. [Discord message: https://discord.com/channels/1417099416812392641/1530124150662889502/1530124150662889502] [2026-07-24T08:18:10.652Z] Marinara: Let me check. [Discord message: https://discord.com/channels/1417099416812392641/1530124150662889502/1530126939044577331] ``` </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:45:59 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 24, 2026):

Should be fixed.

<!-- gh-comment-id:5068627891 --> @SpicyMarinara commented on GitHub (Jul 24, 2026): Should be fixed.
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#2172
No description provided.