mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6046] [Issue]: Termux auto-update fails when protecting launcher data containing a socket #3353
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#3353
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 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6046
Originally assigned to: @Romuromylus on GitHub.
Summary
On Termux, Marinara Engine's startup auto-update fails while attempting to protect launcher data because it tries to copy the Unix socket
live.sock. The engine then starts without updating in failsafe mode, and the reported incomplete-update backup directory may be absent even though the error references it.Expected behavior
The startup auto-update should complete successfully, or safely skip socket files and handle missing or empty backup directories without failing. Marinara Engine should start with the update applied when one is available.
Actual behavior
Startup reports
Could not protect launcher data: Cannot copy a socket file: cp returned EINVALfordata/storage/.writer-lease/live.sock. It then starts without updating in failsafe mode. The error also appears when the engine update backup folder is empty, and the specific incomplete-update folder referenced in the error cannot be found.Steps to reproduce
data/storage/.writer-lease/live.sock.Environment
1411d71dad)Logs, screenshots, or video
Startup log:
[ERROR] Could not protect launcher data: Cannot copy a socket file: cp returned EINVAL (cannot copy a socket file: /data/data/com.termux/files/home/.marinara-engine-update-backups/.incomplete-update-2026-09-10T12-53-50-625Z-16930/data/storage/.writer-lease/live.sock) /data/data/com.termux/files/home/.marinara-engine-update-backups/.incomplete-update-2026-09-10T12-53-50-625Z-16930/data/storage/.writer-lease/live.sock. Support diagnostics also record achunk-errorwithTypeErrorfollowed by areload-requestedevent with reasonchunk-recovery.Additional context
The reporter states the error occurs even when the engine update backup folder is empty and that no matching incomplete-update folder is present. Support diagnostics report 10 sessions ended without shutdown, no detected freeze, and a background wake lock acquired. No screenshot or video was provided.
Discord thread: Bug report - Auto-update on Termux failed
Discord thread link: https://discord.com/channels/1417099416812392641/1547592863829729404
Requested by: Kuc0 (kuc0, Discord ID 108988150629531648)
Discord thread transcript (5 messages)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@Romuromylus commented on GitHub (Sep 11, 2026):
Fixed by #6056, squash-merged into
stagingas80b6bc04c. The update snapshot now leaves the per-process storage writer lease (and any socket or FIFO under the data directory) out of the copy, so the Termux/Linux launcher auto-update no longer aborts whenlive.sockis still on disk. Closing.