[GH-ISSUE #5029] [Issue]: Unable to launch Marinara Engine 2.4.3 Staging in Termux on Android #2782

Closed
opened 2026-10-21 05:55:22 +07:00 by bsakaguchi · 2 comments
Owner

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

  1. Install or use Marinara Engine 2.4.3 Staging through Termux on an Android device.
  2. Launch Marinara Engine from Termux.
  3. Observe that Termux crashes with the reported error instead of opening Marinara Engine.

Environment

  • Marinara Engine version: 2.4.3 Staging
  • Install type: termux
  • OS + version: Android; OnePlus 10 Pro
  • Browser or app shell: Termux

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"}

[2026-08-14T14:50:51.690Z] DSBwizzard: ME 2.4.3 Staging
Oneplus10Pro/Termux installation

I can't open the ME app on my personal Android/Oneplus10Pro. Termux keeps crashing for me with the provided error message. And I feel like this is a my-device thing otherwise a lot of people on Android would be seeing this... Right?
I did notice Termux asked me for permission to run in the background, and after granting it Termux on startup says '[OK] Android wake lock acquired for background reliability'. Nice, I assume this is for https://discord.com/channels/1417099416812392641/1534559002787315844,  but I can't even test that because of this issue preventing me from accessing my ME at all - I tried multiple device restarts and ME restarts.

As for the error, i'm pretty sure I have zero additional instances of ME running since this occurs after I hard restart my phone, and Termux isn't doing anything after a phone restart.
[attached file: termuxerror.txt — https://cdn.discordapp.com/attachments/1537835906378244230/1537835906793345165/termuxerror.txt?ex=6a807ccb&is=6a7f2b4b&hm=9e0d85db8acefd6cbffc688218daa1188411c396aceceb1d2ab504d07e61116f&]
[Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537835906378244230]

[2026-08-14T15:14:45.459Z] (´。• ω •。`): I am also getting this so not just you problem
[Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537841920041029744]

[2026-08-14T15:21:31.571Z] Star: Not just you

[attached image 1: https://cdn.discordapp.com/attachments/1537835906378244230/1537843622769066004/Screenshot_20260814_104618_Termux.jpg?ex=6a8083fb&is=6a7f327b&hm=2917775a043e2cb2449fe1ae289398a747585e698f5d34c8d665860232481473&]
[Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537843623398346783]

[2026-08-14T15:27:49.210Z] DSBwizzard: Im going to modify this to High as we are seeing multiple people report this.
[Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537845207331250286]

[2026-08-14T16:17:00.099Z] Patrick1987: It happened to me too!!!

[attached image 1: 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&]
[Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537857584256516176]

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
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 1. Install or use Marinara Engine 2.4.3 Staging through Termux on an Android device. 2. Launch Marinara Engine from Termux. 3. Observe that Termux crashes with the reported error instead of opening Marinara Engine. ## Environment - Marinara Engine version: 2.4.3 Staging - Install type: termux - OS + version: Android; OnePlus 10 Pro - Browser or app shell: Termux ## 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) <details> <summary>Discord thread transcript (5 messages)</summary> {"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"} ```text [2026-08-14T14:50:51.690Z] DSBwizzard: ME 2.4.3 Staging Oneplus10Pro/Termux installation I can't open the ME app on my personal Android/Oneplus10Pro. Termux keeps crashing for me with the provided error message. And I feel like this is a my-device thing otherwise a lot of people on Android would be seeing this... Right? I did notice Termux asked me for permission to run in the background, and after granting it Termux on startup says '[OK] Android wake lock acquired for background reliability'. Nice, I assume this is for https://discord.com/channels/1417099416812392641/1534559002787315844, but I can't even test that because of this issue preventing me from accessing my ME at all - I tried multiple device restarts and ME restarts. As for the error, i'm pretty sure I have zero additional instances of ME running since this occurs after I hard restart my phone, and Termux isn't doing anything after a phone restart. [attached file: termuxerror.txt — https://cdn.discordapp.com/attachments/1537835906378244230/1537835906793345165/termuxerror.txt?ex=6a807ccb&is=6a7f2b4b&hm=9e0d85db8acefd6cbffc688218daa1188411c396aceceb1d2ab504d07e61116f&] [Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537835906378244230] [2026-08-14T15:14:45.459Z] (´。• ω •。`): I am also getting this so not just you problem [Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537841920041029744] [2026-08-14T15:21:31.571Z] Star: Not just you [attached image 1: https://cdn.discordapp.com/attachments/1537835906378244230/1537843622769066004/Screenshot_20260814_104618_Termux.jpg?ex=6a8083fb&is=6a7f327b&hm=2917775a043e2cb2449fe1ae289398a747585e698f5d34c8d665860232481473&] [Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537843623398346783] [2026-08-14T15:27:49.210Z] DSBwizzard: Im going to modify this to High as we are seeing multiple people report this. [Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537845207331250286] [2026-08-14T16:17:00.099Z] Patrick1987: It happened to me too!!! [attached image 1: 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&] [Discord message: https://discord.com/channels/1417099416812392641/1537835906378244230/1537857584256516176] ``` </details> ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:55:23 +07:00
Author
Owner

@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.

<!-- gh-comment-id:5295621000 --> @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.
Author
Owner

@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-private HOME; live/reused PIDs and paths outside HOME remain blocked. The storage writer-lock regression and server TypeScript lint pass.

<!-- gh-comment-id:5295677739 --> @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-private `HOME`; live/reused PIDs and paths outside `HOME` remain blocked. The storage writer-lock regression and server TypeScript lint pass.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#2782
No description provided.