[GH-ISSUE #361] [Issue]: #156

Closed
opened 2026-10-20 17:25:44 +07:00 by bsakaguchi · 2 comments
Owner

Originally created by @frynohedgehog-svg on GitHub (May 3, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/361

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The Engine would not start up

Expected behavior

After starting the engine in termux, it would redirect to my chrome browser and automatically open

Actual behavior

It provides the following error after the engine startup:.
{"level":50,"time":1777795751455,"pid":13111,"hostname":"localhost","err":{"type":"Error","message":"database disk image is malformed","stack":"Error: database disk image is malformed\n at e.handleError (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:90:192)\n at e.run (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:87:256)\n at createWithSqlJs (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:59:11)\n at async buildApp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/app.js:51:16)\n at async main (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/index.js:10:17)"},"msg":"[startup] Unhandled error during server bootstrap"}

Steps to reproduce

  1. Making a Lorebook
  2. The app suddenly getting killed
  3. App no longer launches

Environment

  • Marinara Engine version: Latest Version as of 5/3/2026
  • Install type: Termux
  • OS + version: Android 14
  • Browser or app shell: App Shell

Logs, screenshots, or video

~/Marinara-Engine $ ./start-termux.sh

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

[OK] Node.js v24.14.1 found
[..] Aligning pnpm to 10.30.3 via Corepack...
[OK] pnpm 10.30.3 ready
[..] Checking for updates...
[OK] Already up to date
[..] Downloading prebuilt better-sqlite3 for Android ARM64...
[WARN] Prebuilt binary not available or incompatible with Node.js v24.14.1.
[..] Using sql.js (pure JavaScript SQLite — no compilation needed)
Lockfile is up to date, resolution step is skipped
Done in 2.2s using pnpm v10.30.3
[OK] sql.js ready
[..] Syncing database schema...

@marinara-engine/server@1.5.6 db:push /data/data/com.termux/files/home/Marinara-Engine/packages/server
drizzle-kit push --config=drizzle.config.cts

Reading config file '/data/data/com.termux/files/home/Marinara-Engine/packages/server/drizzle.config.cts'

══════════════════════════════════════════
Starting Marinara Engine on http://127.0.0.1:7860
LAN access: http://192.168.0.184:7860

Open the URL above in your mobile browser.
Press Ctrl+C to stop

══════════════════════════════════════════

{"level":50,"time":1777795751455,"pid":13111,"hostname":"localhost","err":{"type":"Error","message":"database disk image is malformed","stack":"Error: database disk image is malformed\n at e.handleError (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:90:192)\n at e.run (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:87:256)\n at createWithSqlJs (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:59:11)\n at async buildApp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/app.js:51:16)\n at async main (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/index.js:10:17)"},"msg":"[startup] Unhandled error during server bootstrap"}

Additional context

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 @frynohedgehog-svg on GitHub (May 3, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/361 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The Engine would not start up ## Expected behavior After starting the engine in termux, it would redirect to my chrome browser and automatically open ## Actual behavior It provides the following error after the engine startup:. {"level":50,"time":1777795751455,"pid":13111,"hostname":"localhost","err":{"type":"Error","message":"database disk image is malformed","stack":"Error: database disk image is malformed\n at e.handleError (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:90:192)\n at e.run (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:87:256)\n at createWithSqlJs (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:59:11)\n at async buildApp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/app.js:51:16)\n at async main (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/index.js:10:17)"},"msg":"[startup] Unhandled error during server bootstrap"} ## Steps to reproduce 1. Making a Lorebook 2. The app suddenly getting killed 3. App no longer launches ## Environment - Marinara Engine version: Latest Version as of 5/3/2026 - Install type: Termux - OS + version: Android 14 - Browser or app shell: App Shell ## Logs, screenshots, or video ~/Marinara-Engine $ ./start-termux.sh ╔══════════════════════════════════════════╗ ║ Marinara Engine — Termux Launcher ║ ╚══════════════════════════════════════════╝ [OK] Node.js v24.14.1 found [..] Aligning pnpm to 10.30.3 via Corepack... [OK] pnpm 10.30.3 ready [..] Checking for updates... [OK] Already up to date [..] Downloading prebuilt better-sqlite3 for Android ARM64... [WARN] Prebuilt binary not available or incompatible with Node.js v24.14.1. [..] Using sql.js (pure JavaScript SQLite — no compilation needed) Lockfile is up to date, resolution step is skipped Done in 2.2s using pnpm v10.30.3 [OK] sql.js ready [..] Syncing database schema... > @marinara-engine/server@1.5.6 db:push /data/data/com.termux/files/home/Marinara-Engine/packages/server > drizzle-kit push --config=drizzle.config.cts Reading config file '/data/data/com.termux/files/home/Marinara-Engine/packages/server/drizzle.config.cts' ══════════════════════════════════════════ Starting Marinara Engine on http://127.0.0.1:7860 LAN access: http://192.168.0.184:7860 Open the URL above in your mobile browser. Press Ctrl+C to stop ══════════════════════════════════════════ {"level":50,"time":1777795751455,"pid":13111,"hostname":"localhost","err":{"type":"Error","message":"database disk image is malformed","stack":"Error: database disk image is malformed\n at e.handleError (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:90:192)\n at e.run (/data/data/com.termux/files/home/Marinara-Engine/node_modules/.pnpm/sql.js@1.14.1/node_modules/sql.js/dist/sql-wasm.js:87:256)\n at createWithSqlJs (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/db/connection.js:59:11)\n at async buildApp (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/app.js:51:16)\n at async main (file:///data/data/com.termux/files/home/Marinara-Engine/packages/server/dist/index.js:10:17)"},"msg":"[startup] Unhandled error during server bootstrap"} ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## 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-20 17:25:44 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@frynohedgehog-svg commented on GitHub (May 3, 2026):

At the very least, is it possible to access my loreboox files?

<!-- gh-comment-id:4365734756 --> @frynohedgehog-svg commented on GitHub (May 3, 2026): At the very least, is it possible to access my loreboox files?
Author
Owner

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

v1.5.7.

<!-- gh-comment-id:4366559323 --> @SpicyMarinara commented on GitHub (May 3, 2026): v1.5.7.
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#156
No description provided.