mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #5029] [Issue]: Unable to launch Marinara Engine 2.4.3 Staging in Termux on Android #2782
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#2782
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 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5029
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Marinara Engine cannot be opened through the Termux installation on Android. Termux crashes with an error during launch, and multiple users reported the same issue.
Expected behavior
Marinara Engine should launch successfully through Termux on Android.
Actual behavior
Termux crashes while launching Marinara Engine, preventing access to the app. Multiple device and app restarts did not resolve the issue.
Steps to reproduce
Environment
Logs, screenshots, or video
Termux error file: https://cdn.discordapp.com/attachments/1537835906378244230/1537835906793345165/termuxerror.txt?ex=6a807ccb&is=6a7f2b4b&hm=9e0d85db8acefd6cbffc688218daa1188411c396aceceb1d2ab504d07e61116f&; screenshots: https://cdn.discordapp.com/attachments/1537835906378244230/1537843622769066004/Screenshot_20260814_104618_Termux.jpg?ex=6a8083fb&is=6a7f327b&hm=2917775a043e2cb2449fe1ae289398a747585e698f5d34c8d665860232481473&, https://cdn.discordapp.com/attachments/1537835906378244230/1537857583963045918/Screenshot_2026-08-14-13-14-40-899_com.termux-edit.jpg?ex=6a8090fc&is=6a7f3f7c&hm=08349d67ae81c668be8a4d90a67f9acf1a2e109080b0c8753897803832bc3070&
Additional context
The reporter granted Termux permission to run in the background and saw '[OK] Android wake lock acquired for background reliability' on startup. They reported no additional Marinara Engine instances running after a hard phone restart. Other Discord users confirmed the same problem, indicating it is not isolated to one device.
Discord thread: Unable to Launch ME on latest Staging - Termux/Android
Discord thread link: https://discord.com/channels/1417099416812392641/1537835906378244230
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)
Discord thread transcript (5 messages)
{"level":50,"time":1786715776233,"pid":15546,"hostname":"localhost","err":{"type":"StorageWriterLeaseError","message":"Another Marinara Engine process (PID 25508, host localhost) may be using /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage. Close it before retrying. If it no longer exists, verify every process is stopped and remove only /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage/.writer-lease.","stack":"StorageWriterLeaseError: Another Marinara Engine process (PID 25508, host localhost) may be using /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage. Close it before retrying. If it no longer exists, verify every process is stopped and remove only /data/data/com.termux/files/home/Marinara-Engine/packages/server/data/storage/.writer-lease.\n at FileTableStore.acquireWriterLease (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/file-backed-store.js:1023:15)\n at FileTableStore.initialize (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/file-backed-store.js:1099:16)\n at createFileNativeDB (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/file-backed-store.js:2277:15)\n at createStorage (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:7:20)\n at getDB (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:17:17)\n at buildApp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/app.js:71:20)\n at process.processTicksAndRejections (node:internal/process/task_queues:104:5)\n at async main (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/index.js:32:15)","name":"StorageWriterLeaseError"},"msg":"[startup] Unhandled error during server bootstrap"}
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 (Aug 14, 2026):
Claimed by @SpicyMarinara / Codex. I am reproducing this against staging and the existing consolidated PR #5027. If confirmed, the smallest fix will be folded into #5027; no duplicate PR will be opened.
@SpicyMarinara commented on GitHub (Aug 14, 2026):
Confirmed. On affected Termux installs the lease has no stable host ID, so startup treats the old lease as foreign and never reaches the stale-PID (
ESRCH) check after Android restarts. The focused fix prepared for #5027 permits that stale-PID check only for Android storage inside Termux’s app-privateHOME; live/reused PIDs and paths outsideHOMEremain blocked. The storage writer-lock regression and server TypeScript lint pass.