[GH-ISSUE #3179] [Issue]: Termux staging update fails with missing chats.ts module #1706

Closed
opened 2026-10-21 05:41:52 +07:00 by bsakaguchi · 1 comment
Owner

Originally created by @SpicyMarinara on GitHub (Jul 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3179

Originally assigned to: @SpicyMarinara on GitHub.

Summary

On Android Termux, updating Marinara Engine 2.0.9 Stable to staging fails at startup. The server throws ERR_MODULE_NOT_FOUND for packages/server/dist/db/schema/chats.ts imported by gallery.js.

Expected behavior

Marinara Engine should update to staging and start successfully on Termux.

Actual behavior

Startup fails with a Node.js ERR_MODULE_NOT_FOUND error because chats.ts cannot be found under packages/server/dist/db/schema/.

Steps to reproduce

  1. Install Marinara Engine 2.0.9 Stable on Termux.
  2. Attempt to update to staging manually by copying the command shown for staging upgrade.
  3. If that fails, delete the Marinara Engine folder and reinstall from scratch.
  4. Set UPDATES_APPLY_ENABLED=true in .env.
  5. Attempt an automatic update to staging.
  6. Start Marinara Engine.

Environment

  • Marinara Engine version: 2.0.9 Stable, updating to staging
  • Install type: termux
  • OS + version: Android on Samsung S26 Ultra, 12 GB RAM, 256 GB storage
  • Browser or app shell: Not provided

Logs, screenshots, or video

node:internal/modules/esm/resolve:271
throw new ERR_MODULE_NOT_FOUND(
^

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' imported from /data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/gallery.js
at finalizeResolution (node:internal/modules/esm/resolve:271:11)
at moduleResolve (node:internal/modules/esm/resolve:865:10)
at defaultResolve (node:internal/modules/esm/resolve:992:11)
at #cachedDefaultResolve (node:internal/modules/esm/loader:691:20)
at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:708:38)
at ModuleLoader.resolveSync (node:internal/modules/esm/loader:740:52)
at #resolve (node:internal/modules/esm/loader:673:17)
at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:593:35)
at ModuleJob.syncLink (node:internal/modules/esm/module_job:163:33)
at ModuleJob.link (node:internal/modules/esm/module_job:253:17) {
code: 'ERR_MODULE_NOT_FOUND',
url: 'file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts'
}

Node.js v24.17.0

Additional context

The same error occurred both when attempting the manual staging upgrade and after a fresh reinstall followed by enabling automatic updates to staging.

Discord thread: Staging installation on Termux error
Discord thread link: https://discord.com/channels/1417099416812392641/1522572393434841169
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)

Discord thread transcript (2 messages)
[2026-07-03T11:59:06.622Z] Ruler: OS: Android (Samsung S26 Ultra 12gb RAM, 256 GB of storage)
Installation method: Termux.
Version: 2.0.9 (Stable)

I don't known if this is the right place to post it. Sorry if it is not.

I've tried to update my 2.0.9 to staging maually, by copying the command that appears when you select staging upgrade.
It did not work.

So, I deleted ME folder and reinstalled from scratch. Then I, on, .env, enabled theUPDATES_APPLY_ENABLED=true and tried to do an automatic update to staging.

Now, when I start it appears the same error of when I tried to install manually. 


So, I request any assistance on this issue.
[Discord message: https://discord.com/channels/1417099416812392641/1522572393434841169/1522572393434841169]

[2026-07-03T11:59:45.468Z] Ruler: The error log:

node:internal/modules/esm/resolve:271                    throw new ERR_MODULE_NOT_FOUND(                            ^                                                                                               Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' imported from /data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/gallery.js                         at finalizeResolution (node:internal/modules/esm/resolve:271:11)                                          at moduleResolve (node:internal/modules/esm/resolve:865:10)                                               at defaultResolve (node:internal/modules/esm/resolve:992:11)                                              at #cachedDefaultResolve (node:internal/modules/esm/loader:691:20)                                        at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:708:38)                          at ModuleLoader.resolveSync (node:internal/modules/esm/loader:740:52)                                     at #resolve (node:internal/modules/esm/loader:673:17)                                                     at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:593:35)
    at ModuleJob.syncLink (node:internal/modules/esm/module_job:163:33)
    at ModuleJob.link (node:internal/modules/esm/module_job:253:17) {
  code: 'ERR_MODULE_NOT_FOUND',
  url: 'file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts'
}

Node.js v24.17.0
[Discord message: https://discord.com/channels/1417099416812392641/1522572393434841169/1522572556366909512]

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 (Jul 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3179 Originally assigned to: @SpicyMarinara on GitHub. ## Summary On Android Termux, updating Marinara Engine 2.0.9 Stable to staging fails at startup. The server throws ERR_MODULE_NOT_FOUND for packages/server/dist/db/schema/chats.ts imported by gallery.js. ## Expected behavior Marinara Engine should update to staging and start successfully on Termux. ## Actual behavior Startup fails with a Node.js ERR_MODULE_NOT_FOUND error because chats.ts cannot be found under packages/server/dist/db/schema/. ## Steps to reproduce 1. Install Marinara Engine 2.0.9 Stable on Termux. 2. Attempt to update to staging manually by copying the command shown for staging upgrade. 3. If that fails, delete the Marinara Engine folder and reinstall from scratch. 4. Set UPDATES_APPLY_ENABLED=true in .env. 5. Attempt an automatic update to staging. 6. Start Marinara Engine. ## Environment - Marinara Engine version: 2.0.9 Stable, updating to staging - Install type: termux - OS + version: Android on Samsung S26 Ultra, 12 GB RAM, 256 GB storage - Browser or app shell: Not provided ## Logs, screenshots, or video node:internal/modules/esm/resolve:271 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' imported from /data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/gallery.js at finalizeResolution (node:internal/modules/esm/resolve:271:11) at moduleResolve (node:internal/modules/esm/resolve:865:10) at defaultResolve (node:internal/modules/esm/resolve:992:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:691:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:708:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:740:52) at #resolve (node:internal/modules/esm/loader:673:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:593:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:163:33) at ModuleJob.link (node:internal/modules/esm/module_job:253:17) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' } Node.js v24.17.0 ## Additional context The same error occurred both when attempting the manual staging upgrade and after a fresh reinstall followed by enabling automatic updates to staging. Discord thread: Staging installation on Termux error Discord thread link: https://discord.com/channels/1417099416812392641/1522572393434841169 Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653) <details> <summary>Discord thread transcript (2 messages)</summary> ```text [2026-07-03T11:59:06.622Z] Ruler: OS: Android (Samsung S26 Ultra 12gb RAM, 256 GB of storage) Installation method: Termux. Version: 2.0.9 (Stable) I don't known if this is the right place to post it. Sorry if it is not. I've tried to update my 2.0.9 to staging maually, by copying the command that appears when you select staging upgrade. It did not work. So, I deleted ME folder and reinstalled from scratch. Then I, on, .env, enabled theUPDATES_APPLY_ENABLED=true and tried to do an automatic update to staging. Now, when I start it appears the same error of when I tried to install manually. So, I request any assistance on this issue. [Discord message: https://discord.com/channels/1417099416812392641/1522572393434841169/1522572393434841169] [2026-07-03T11:59:45.468Z] Ruler: The error log: node:internal/modules/esm/resolve:271 throw new ERR_MODULE_NOT_FOUND( ^ Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' imported from /data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/gallery.js at finalizeResolution (node:internal/modules/esm/resolve:271:11) at moduleResolve (node:internal/modules/esm/resolve:865:10) at defaultResolve (node:internal/modules/esm/resolve:992:11) at #cachedDefaultResolve (node:internal/modules/esm/loader:691:20) at #resolveAndMaybeBlockOnLoaderThread (node:internal/modules/esm/loader:708:38) at ModuleLoader.resolveSync (node:internal/modules/esm/loader:740:52) at #resolve (node:internal/modules/esm/loader:673:17) at ModuleLoader.getOrCreateModuleJob (node:internal/modules/esm/loader:593:35) at ModuleJob.syncLink (node:internal/modules/esm/module_job:163:33) at ModuleJob.link (node:internal/modules/esm/module_job:253:17) { code: 'ERR_MODULE_NOT_FOUND', url: 'file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/schema/chats.ts' } Node.js v24.17.0 [Discord message: https://discord.com/channels/1417099416812392641/1522572393434841169/1522572556366909512] ``` </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:41:52 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@SpicyMarinara commented on GitHub (Jul 3, 2026):

Codex is taking this in draft PR #3181.

<!-- gh-comment-id:4876911846 --> @SpicyMarinara commented on GitHub (Jul 3, 2026): Codex is taking this in draft PR #3181.
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#1706
No description provided.