[GH-ISSUE #5032] Unable to open on android #2786

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

Originally created by @ghost on GitHub (Aug 14, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5032

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Unable to open ME after upgrading to stable 2.4.2 on android

{"level":50,"time":1786730862021,"pid":14867,"hostname":"localhost","err":{"type":"StorageWriterLeaseError","message":"Another Marinara Engine process (PID 13993, 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 13993, 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"}

Originally created by @ghost on GitHub (Aug 14, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5032 Originally assigned to: @SpicyMarinara on GitHub. ## Summary <!-- What is wrong in one or two sentences? --> Unable to open ME after upgrading to stable 2.4.2 on android {"level":50,"time":1786730862021,"pid":14867,"hostname":"localhost","err":{"type":"StorageWriterLeaseError","message":"Another Marinara Engine process (PID 13993, 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 13993, 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"}
bsakaguchi 2026-10-21 05:55:27 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@ghost commented on GitHub (Aug 14, 2026):

Also happens after clean install

<!-- gh-comment-id:5296667863 --> @ghost commented on GitHub (Aug 14, 2026): Also happens after clean install
Author
Owner

@ghost commented on GitHub (Aug 14, 2026):

Note: seems to go away after switching to staging branch

<!-- gh-comment-id:5296763182 --> @ghost commented on GitHub (Aug 14, 2026): Note: seems to go away after switching to staging branch
Author
Owner

@SpicyMarinara commented on GitHub (Aug 14, 2026):

This is fixed on staging by #5027 (b3272aaf7), which lets Android/Termux reclaim an app-private storage lease after the recorded process has exited while preserving the live-PID and path-scope safety checks. The fix is covered by scripts/regressions/storage-writer-lock.regression.ts. The reported StorageWriterLeaseError matches that stale-lease case, and the reporter confirmed the problem goes away after switching to staging, so I am closing this as completed.

<!-- gh-comment-id:5298535862 --> @SpicyMarinara commented on GitHub (Aug 14, 2026): This is fixed on `staging` by #5027 (`b3272aaf7`), which lets Android/Termux reclaim an app-private storage lease after the recorded process has exited while preserving the live-PID and path-scope safety checks. The fix is covered by `scripts/regressions/storage-writer-lock.regression.ts`. The reported `StorageWriterLeaseError` matches that stale-lease case, and the reporter confirmed the problem goes away after switching to `staging`, so I am closing this as completed.
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#2786
No description provided.