mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #3997] [Issue]: Update snapshot fails with ERR_INVALID_URL_SCHEME on staging #2157
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2157
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 23, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3997
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Restarting Marinara Engine on the staging branch consistently fails to create an update snapshot because protect-launcher-data.mjs passes a non-file URL to fileURLToPath.
Expected behavior
Marinara Engine should create the update snapshot, check for updates, and start normally.
Actual behavior
The update snapshot process throws ERR_INVALID_URL_SCHEME and skips auto-update to protect existing data. Node.js and pnpm initialization continue successfully.
Steps to reproduce
2d23b0b.Environment
2d23b0bLogs, screenshots, or video
[..] Aligning pnpm to 10.33.2 via Corepack...
[..] Checking for updates...
node:internal/url:1608
throw new ERR_INVALID_URL_SCHEME('file');
^
TypeError [ERR_INVALID_URL_SCHEME]: The URL must be of scheme file
at fileURLToPath (node:internal/url:1608:11)
at file:///D:/Users/AgentX/AppData/Local/MarinaraEngine/scripts/protect-launcher-data.mjs:161:59
at ModuleJob.run (node:internal/modules/esm/module_job:437:25)
at async node:internal/modules/esm/loader:639:26
at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) {
code: 'ERR_INVALID_URL_SCHEME'
}
Node.js v24.15.0
[WARN] Could not create an update snapshot. Skipping auto-update to protect your data.
[OK] Node.js found: v24.15.0
[OK] pnpm 10.33.2 ready
Additional context
The error occurs consistently after several restarts. Marinara Engine was working before the restart performed to obtain a fresh staging branch. It is unclear whether the issue is staging-specific or caused by the local system.
Discord message: Discord message from AgentX
Discord message link: https://discord.com/channels/1417099416812392641/1528844323011956847/1529909435122847795
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord message transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 23, 2026):
Taking this one: SpicyMarinara (with Claude) is preparing a fix. Root cause: the run-directly guard in protect-launcher-data.mjs (and read-launcher-env.mjs) builds
new URL(process.argv[1], "file:")— on Windows theD:drive prefix parses as the URL scheme, sofileURLToPaththrows ERR_INVALID_URL_SCHEME at module load and the launcher skips the update snapshot. PR against staging incoming.