mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5194] [Issue]: Reclaim stale macOS writer leases after network changes #2872
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#2872
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 (Aug 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5194
Originally assigned to: @SpicyMarinara on GitHub.
Summary
A stale file-storage writer lease can block startup on macOS even after its owning process has exited. The lease's v1 host fingerprint includes all visible network-interface MAC addresses, so VPN, privacy, and virtual interfaces can make the same Mac appear to be a different host.
Expected behavior
When the PID recorded by a same-machine lease has exited, Marinara Engine should safely reclaim the stale lease and start.
Actual behavior
The changed network-interface set produces a different host fingerprint. Marinara Engine treats the stale lease as potentially foreign and throws
StorageWriterLeaseError, requiring manual removal of.writer-lease.Steps to reproduce
Environment
stagingatfeb276cd8Logs, screenshots, or video
The stale lease recorded a dead PID and the current hostname, but its
hostIdno longer matched the fingerprint computed from the current network-interface list. Startup failed withStorageWriterLeaseErrorinstead of reclaiming it.Additional context
Use a stable per-machine identifier on macOS and retain a narrowly scoped compatibility path for v1 leases already written with the unstable fingerprint. Live writer protection and foreign-host safety must remain intact.
Template check
@SpicyMarinara commented on GitHub (Aug 17, 2026):
Fixed and verified in #5195, now merged into staging.