mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6674] [Issue]: Intermittent writer lease error persists across Marinara Engine restarts #3736
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#3736
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 (Sep 25, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6674
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Marinara Engine intermittently reports a writer lease error after a fresh computer and application boot. For the original report, restarting Marinara Engine, including as administrator, does not resolve it; a full computer reboot is required.
Expected behavior
Marinara Engine should acquire the writer lease and operate normally without requiring manual lock cleanup or a device reboot.
Actual behavior
A writer lease error occurs randomly and sparsely. Restarting Marinara Engine does not reliably clear it, even when run as administrator, and the original reporter must fully reboot the computer to recover.
Steps to reproduce
Environment
Logs, screenshots, or video
Support diagnostics were provided for build 2.4.6+12a0acd5b782, including 10 recorded sessions ended without shutdown and a previous session that ended without shutting down. An image was attached: https://cdn.discordapp.com/attachments/1553047204250394674/1553047204456046642/image.png?ex=6ab7d36b&is=6ab681eb&hm=8a2bf5f8ab81d0a2e209eb998b2df5206cfc7e8439e0bb9bc83d9a92e0f151e0&
Additional context
The issue has reportedly recurred despite being fixed multiple times. Another user experiences it occasionally on Windows 11 and Termux; restarting Marinara Engine clears it for them, while another user manually deletes the writer lease folder. The issue was confirmed on the latest staging build. No exact error log text was provided.
Discord thread: writer lease error
Discord thread link: https://discord.com/channels/1417099416812392641/1553047204250394674
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (12 messages)
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 (Sep 26, 2026):
Investigated current staging as part of SpicyMarinara's assigned-issue sweep. The existing
storage-writer-lock.regression.tspasses locally (macOS), including the stale-owner recovery and live-writer exclusion cases. That does not reproduce the reported Windows/Termux failure.The supplied diagnostics do not contain the actual
StorageWriterLeaseErrormessage. The code reports different errors for an active/unverified owner, incomplete lease metadata, lease replacement, and writes arriving while storage is closing. Those require different fixes. Windows identity/process-start probes can also fail conservatively, but there is no evidence yet that this caused this report.Please capture the exact writer-lease error and surrounding server log on the next occurrence, plus whether another Marinara/Node process is still running. That will identify the failing path without weakening the single-writer protection. This issue remains open pending that evidence; no speculative recovery change is being claimed as a fix.