[GH-ISSUE #5717] [Issue]: Large lorebook vectorization times out #3163

Closed
opened 2026-10-21 06:00:08 +07:00 by bsakaguchi · 0 comments
Owner

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

Originally assigned to: @Gunterlie on GitHub.

Summary

Vectorizing a lorebook with 72 entries fails because embedding batch requests to a llama.cpp embedding server time out.

Expected behavior

All lorebook entries should be vectorized successfully without embedding requests timing out.

Actual behavior

Lorebook vectorization fails with repeated TypeError: fetch failed errors caused by read ETIMEDOUT.

Steps to reproduce

  1. Configure llama.cpp as the embedding provider using Qwen3-Embedding-8B.i1-Q6_K.gguf.
  2. Load a large lorebook containing 72 entries.
  3. Start lorebook vectorization.
  4. Observe embedding batch failures caused by request timeouts.

Environment

  • Marinara Engine version: 2.4.5 (build 2.4.5+e96412040c3c, commit e96412040c)
  • Install type: Not provided
  • OS + version: Linux 6.8.0-138-generic (x64)
  • Browser or app shell: Not provided

Logs, screenshots, or video

Repeated log entries: {"level":40,"time":1788245200792,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"} and a second equivalent failure at time 1788245311384. Attachments: https://cdn.discordapp.com/attachments/1544239330825080892/1544239331923726346/image.png?ex=6a97c873&is=6a9676f3&hm=de72c6129832e410d2df879e27f903729d43c68fc4ef5eeb23ba1b65a58c1313& and https://cdn.discordapp.com/attachments/1544239330825080892/1544239332305535016/image.png?ex=6a97c873&is=6a9676f3&hm=7aac429347fbab54c963fdc6d0321be42b6e6a424242c88ea125da9700f466f4&

Additional context

Embedding is served by llama.cpp with Qwen3-Embedding-8B.i1-Q6_K.gguf. Diagnostics reported heap usage of 690 / 4288 MiB, RSS of 926.4 MiB, no detected freeze, and background wake lock status not reported.

Discord thread: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization
Discord thread link: https://discord.com/channels/1417099416812392641/1544239330825080892
Requested by: gunterlie (gunterlie, Discord ID 282074442962829312)

Discord thread transcript (3 messages)
[2026-09-01T06:55:47.048Z] m;aemoifmpfmmafe: Hi,

I just encountered an issue with vectorizing a large lorebook with 72 entries. Attached is a sample.
Embedding is served with llamacpp with Qwen3-Embedding-8B.i1-Q6_K.gguf.

Below is the error:
 {"level":40,"time":1788245200792,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"}
{"level":40,"time":1788245311384,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n    at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"}

Marinara Engine diagnostics
Version: 2.4.5
Build: 2.4.5+e96412040c3c
Commit: e96412040c3c
Server OS: Linux 6.8.0-138-generic (x64)
Server memory: heap 690 / 4288 MiB; RSS 926.4 MiB
Background wake lock: not reported
Last detected freeze: none detected

[attached image 1: https://cdn.discordapp.com/attachments/1544239330825080892/1544239331923726346/image.png?ex=6a97c873&is=6a9676f3&hm=de72c6129832e410d2df879e27f903729d43c68fc4ef5eeb23ba1b65a58c1313&]
[attached image 2: https://cdn.discordapp.com/attachments/1544239330825080892/1544239332305535016/image.png?ex=6a97c873&is=6a9676f3&hm=7aac429347fbab54c963fdc6d0321be42b6e6a424242c88ea125da9700f466f4&]
[Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239330825080892]

[2026-09-01T06:55:48.212Z] Professor Mari [bot]: Howdy!

Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.**

**Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab:

`Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.`

If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here:

`Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version`

Thank you, this will help tremendously.

This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case.

Cheers!
[Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239335707254857]

[2026-09-01T06:56:14.973Z] m;aemoifmpfmmafe: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization
[Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239447951020072]

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 (Sep 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/5717 Originally assigned to: @Gunterlie on GitHub. ## Summary Vectorizing a lorebook with 72 entries fails because embedding batch requests to a llama.cpp embedding server time out. ## Expected behavior All lorebook entries should be vectorized successfully without embedding requests timing out. ## Actual behavior Lorebook vectorization fails with repeated `TypeError: fetch failed` errors caused by `read ETIMEDOUT`. ## Steps to reproduce 1. Configure llama.cpp as the embedding provider using `Qwen3-Embedding-8B.i1-Q6_K.gguf`. 2. Load a large lorebook containing 72 entries. 3. Start lorebook vectorization. 4. Observe embedding batch failures caused by request timeouts. ## Environment - Marinara Engine version: 2.4.5 (build 2.4.5+e96412040c3c, commit e96412040c3c) - Install type: Not provided - OS + version: Linux 6.8.0-138-generic (x64) - Browser or app shell: Not provided ## Logs, screenshots, or video Repeated log entries: `{"level":40,"time":1788245200792,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"}` and a second equivalent failure at time `1788245311384`. Attachments: https://cdn.discordapp.com/attachments/1544239330825080892/1544239331923726346/image.png?ex=6a97c873&is=6a9676f3&hm=de72c6129832e410d2df879e27f903729d43c68fc4ef5eeb23ba1b65a58c1313& and https://cdn.discordapp.com/attachments/1544239330825080892/1544239332305535016/image.png?ex=6a97c873&is=6a9676f3&hm=7aac429347fbab54c963fdc6d0321be42b6e6a424242c88ea125da9700f466f4& ## Additional context Embedding is served by llama.cpp with `Qwen3-Embedding-8B.i1-Q6_K.gguf`. Diagnostics reported heap usage of 690 / 4288 MiB, RSS of 926.4 MiB, no detected freeze, and background wake lock status not reported. Discord thread: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization Discord thread link: https://discord.com/channels/1417099416812392641/1544239330825080892 Requested by: gunterlie (gunterlie, Discord ID 282074442962829312) <details> <summary>Discord thread transcript (3 messages)</summary> ```text [2026-09-01T06:55:47.048Z] m;aemoifmpfmmafe: Hi, I just encountered an issue with vectorizing a large lorebook with 72 entries. Attached is a sample. Embedding is served with llamacpp with Qwen3-Embedding-8B.i1-Q6_K.gguf. Below is the error: {"level":40,"time":1788245200792,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"} {"level":40,"time":1788245311384,"pid":9,"hostname":"7b200db02d62","err":{"type":"TypeError","message":"fetch failed: read ETIMEDOUT","stack":"TypeError: fetch failed\ncaused by: Error: read ETIMEDOUT\n at TCP.onStreamRead (node:internal/stream_base_commons:216:20)"},"msg":"[lorebooks] Embedding batch failed"} Marinara Engine diagnostics Version: 2.4.5 Build: 2.4.5+e96412040c3c Commit: e96412040c3c Server OS: Linux 6.8.0-138-generic (x64) Server memory: heap 690 / 4288 MiB; RSS 926.4 MiB Background wake lock: not reported Last detected freeze: none detected [attached image 1: https://cdn.discordapp.com/attachments/1544239330825080892/1544239331923726346/image.png?ex=6a97c873&is=6a9676f3&hm=de72c6129832e410d2df879e27f903729d43c68fc4ef5eeb23ba1b65a58c1313&] [attached image 2: https://cdn.discordapp.com/attachments/1544239330825080892/1544239332305535016/image.png?ex=6a97c873&is=6a9676f3&hm=7aac429347fbab54c963fdc6d0321be42b6e6a424242c88ea125da9700f466f4&] [Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239330825080892] [2026-09-01T06:55:48.212Z] Professor Mari [bot]: Howdy! Thank you for submitting a new bug report/feature request, your support means a lot. A member of the team will look into it as soon as possible, and if they find it valid, they will open a GitHub Issue out of it. You can check whether it was addressed on the staging build of Marinara Engine. **Do not ping any of the developers, this will not speed up the process.** **Please include a Support Diagnostic in the post if you haven't done it yet.** Otherwise, ignore this step. To grab it, go to the Marinara Engine tab: `Settings -> Advanced -> Support Diagnostics -> Copy Support Diagnostics.` If your report is about any of the **Agents**, please provide **the Agent's version** which you can grab from here: `Agents -> Download Agents -> Installed Agents -> Selected Agent -> Installed Version` Thank you, this will help tremendously. This is an automated message, but if you reply to it, I will do my best to assist you using my LLM-powered brain. That said, it's best for a human to handle this case. Cheers! [Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239335707254857] [2026-09-01T06:56:14.973Z] m;aemoifmpfmmafe: [BUG]: Timeout / Fetch Failed on Large Lorebook Vectorization [Discord message: https://discord.com/channels/1417099416812392641/1544239330825080892/1544239447951020072] ``` </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 06:00:08 +07:00
  • closed this issue
  • added the
    in-pr
    bug
    labels
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#3163
No description provided.