[GH-ISSUE #5038] Android errors #2787

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

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

Originally assigned to: @SpicyMarinara on GitHub.

Clean install of marinara engine, updated to staging due to errors. Imported everything from sillytavern, set everything up. After closing amd reopening through termux, this error came

╔══════════════════════════════════════════╗
║ Marinara Engine — Termux Launcher ║
╚══════════════════════════════════════════╝

[OK] Node.js v24.18.0 found
[OK] Node.js heap limit raised for large profiles
[..] Aligning pnpm to 10.34.5 via Corepack...
[OK] pnpm 10.34.5 ready
[..] Checking for updates...
[OK] Already up to date

[..] Installing dependencies...
This may take several minutes on mobile.

[..] Reclaiming dependency cache space from older releases...
Scope: all 4 workspace projects
Lockfile is up to date, resolution step is skipped
Already up to date
 WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/.pnpm/vite@7.3.6_@types+node@24.12.2_jiti@2.6.1_light_ec5a18d91cdd527e57b3ab381fdb86a1/node_modules/vite/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/.pnpm/vite@7.3.6_@types+node@24.12.2_jiti@2.6.1_light_ec5a18d91cdd527e57b3ab381fdb86a1/node_modules/@types/node/bin/node'
 WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.3_@types+node@24.12.2/node_modules/sharp/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.3_@types+node@24.12.2/node_modules/@types/node/bin/node'
 WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/node_modules/@types/node/bin/node'
. preinstall$ node ./scripts/clean-stale-client-artifacts.mjs
└─ Done in 86ms
. postinstall$ node ./scripts/ensure-native-deps.mjs
│ [native-deps] Skipping onnxruntime-node check for unsupported runtime android/arm64.
└─ Done in 90ms
 WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/packages/server/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/packages/server/node_modules/@types/node/bin/node'
Done in 824ms using pnpm v10.34.5
[..] Building shared types...

@marinara-engine/shared@2.4.2 build /data/data/com.termux/files/home/Marinara-Engine/packages/shared
node -e "const fs=require('fs');['dist','tsconfig.tsbuildinfo'].forEach(p=>{try{fs.rmSync(p,{recursive:true,force:true})}catch{}})" && node scripts/generate-feature-registries.mjs && tsc

node:internal/fs/promises:956
const result = await PromisePrototypeThen(
^

Error: ENOENT: no such file or directory, scandir '/data/data/com.termux/files/home/Marinara-Engine/packages/shared/src/features/function-calls/tools'
at async readdir (node:internal/fs/promises:956:18)
at async readManifestFolders (file:///data/data/com.termux/files/home/Marinara-Engine/packages/shared/scripts/generate-feature-registries.mjs:30:19)
at async file:///data/data/com.termux/files/home/Marinara-Engine/packages/shared/scripts/generate-feature-registries.mjs:65:3 {
errno: -2,
code: 'ENOENT',
syscall: 'scandir',
path: '/data/data/com.termux/files/home/Marinara-Engine/packages/shared/src/features/function-calls/tools'
}

Node.js v24.18.0
/data/data/com.termux/files/home/Marinara-Engine/packages/shared:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @marinara-engine/shared@2.4.2 build: node -e "const fs=require('fs');['dist','tsconfig.tsbuildinfo'].forEach(p=>{try{fs.rmSync(p,{recursive:true,force:true})}catch{}})" && node scripts/generate-feature-registries.mjs && tsc

Originally created by @jonstone14 on GitHub (Aug 15, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5038 Originally assigned to: @SpicyMarinara on GitHub. Clean install of marinara engine, updated to staging due to errors. Imported everything from sillytavern, set everything up. After closing amd reopening through termux, this error came ╔══════════════════════════════════════════╗ ║ Marinara Engine — Termux Launcher ║ ╚══════════════════════════════════════════╝ [OK] Node.js v24.18.0 found [OK] Node.js heap limit raised for large profiles [..] Aligning pnpm to 10.34.5 via Corepack... [OK] pnpm 10.34.5 ready [..] Checking for updates... [OK] Already up to date [..] Installing dependencies... This may take several minutes on mobile. [..] Reclaiming dependency cache space from older releases... Scope: all 4 workspace projects Lockfile is up to date, resolution step is skipped Already up to date  WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/.pnpm/vite@7.3.6_@types+node@24.12.2_jiti@2.6.1_light_ec5a18d91cdd527e57b3ab381fdb86a1/node_modules/vite/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/.pnpm/vite@7.3.6_@types+node@24.12.2_jiti@2.6.1_light_ec5a18d91cdd527e57b3ab381fdb86a1/node_modules/@types/node/bin/node'  WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.3_@types+node@24.12.2/node_modules/sharp/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/.pnpm/sharp@0.35.3_@types+node@24.12.2/node_modules/@types/node/bin/node'  WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/node_modules/@types/node/bin/node' . preinstall$ node ./scripts/clean-stale-client-artifacts.mjs └─ Done in 86ms . postinstall$ node ./scripts/ensure-native-deps.mjs │ [native-deps] Skipping onnxruntime-node check for unsupported runtime android/arm64. └─ Done in 90ms  WARN  Failed to create bin at /data/data/com.termux/files/home/Marinara-Engine/packages/server/node_modules/.bin/node. ENOENT: no such file or directory, open '/data/data/com.termux/files/home/Marinara-Engine/packages/server/node_modules/@types/node/bin/node' Done in 824ms using pnpm v10.34.5 [..] Building shared types... > @marinara-engine/shared@2.4.2 build /data/data/com.termux/files/home/Marinara-Engine/packages/shared > node -e "const fs=require('fs');['dist','tsconfig.tsbuildinfo'].forEach(p=>{try{fs.rmSync(p,{recursive:true,force:true})}catch{}})" && node scripts/generate-feature-registries.mjs && tsc node:internal/fs/promises:956 const result = await PromisePrototypeThen( ^ Error: ENOENT: no such file or directory, scandir '/data/data/com.termux/files/home/Marinara-Engine/packages/shared/src/features/function-calls/tools' at async readdir (node:internal/fs/promises:956:18) at async readManifestFolders (file:///data/data/com.termux/files/home/Marinara-Engine/packages/shared/scripts/generate-feature-registries.mjs:30:19) at async file:///data/data/com.termux/files/home/Marinara-Engine/packages/shared/scripts/generate-feature-registries.mjs:65:3 { errno: -2, code: 'ENOENT', syscall: 'scandir', path: '/data/data/com.termux/files/home/Marinara-Engine/packages/shared/src/features/function-calls/tools' } Node.js v24.18.0 /data/data/com.termux/files/home/Marinara-Engine/packages/shared:  ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @marinara-engine/shared@2.4.2 build: `node -e "const fs=require('fs');['dist','tsconfig.tsbuildinfo'].forEach(p=>{try{fs.rmSync(p,{recursive:true,force:true})}catch{}})" && node scripts/generate-feature-registries.mjs && tsc`
Author
Owner

@Xelvanis commented on GitHub (Aug 15, 2026):

I had a quick look into this. The missing tools directory is tracked in the current staging branch, so your local checkout appears to have lost some tracked source files even though Git reports the commit itself is up to date.

Please run this in Termux:

cd ~/Marinara-Engine
git status --short packages/shared/src/features/function-calls/tools
git restore --source=HEAD --worktree -- packages/shared/src/features/function-calls/tools
./start-termux.sh

This restores application source only and won't touch your imported profile data.

If it still fails, please share the output of:

git rev-parse HEAD
git branch --show-current
git remote -v
git sparse-checkout list

The pnpm bin-link warnings may indicate a separate damaged dependency cache, but they're not the direct cause of the missing source-directory error.

<!-- gh-comment-id:5300519446 --> @Xelvanis commented on GitHub (Aug 15, 2026): I had a quick look into this. The missing tools directory is tracked in the current staging branch, so your local checkout appears to have lost some tracked source files even though Git reports the commit itself is up to date. Please run this in Termux: cd ~/Marinara-Engine git status --short packages/shared/src/features/function-calls/tools git restore --source=HEAD --worktree -- packages/shared/src/features/function-calls/tools ./start-termux.sh This restores application source only and won't touch your imported profile data. If it still fails, please share the output of: git rev-parse HEAD git branch --show-current git remote -v git sparse-checkout list The pnpm bin-link warnings may indicate a separate damaged dependency cache, but they're not the direct cause of the missing source-directory error.
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#2787
No description provided.