mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #4224] [Issue]: KoboldCPP Router Mode causes instant fetch failures #2286
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#2286
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SpicyMarinara on GitHub (Jul 28, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/4224
Originally assigned to: @SpicyMarinara on GitHub.
Summary
Requests to KoboldCPP fail immediately when Router Mode is enabled for automatic model unloading and reloading. The same KoboldCPP setup reportedly works with SillyTavern and SillyBunny.
Expected behavior
Marinara Engine should send requests through KoboldCPP Router Mode and allow an unloaded model to wake and reload automatically.
Actual behavior
Marinara Engine immediately reports "fetch failed." KoboldCPP shows no terminal activity, including when the model is already loaded.
Steps to reproduce
Environment
e938ee4, staging branchLogs, screenshots, or video
No logs, screenshots, or video provided. The user reports that nothing appears in the KoboldCPP terminal when the failure occurs.
Additional context
KoboldCPP Router Mode uses a reverse proxy router and requires admin mode. The feature is intended to hotswap models and configurations within a request, allowing automatically unloaded models to wake again. The reporter notes that the setup works in SillyTavern and SillyBunny, and another user reportedly has similar automatic sleep behavior working with llama-server.
Discord thread: FR/BUG - KoboldCPP's Router Mode causes instant 'fetch failed' errors (works in ST)
Discord thread link: https://discord.com/channels/1417099416812392641/1531703603562151977
Requested by: Marinara (marinara_spaghetti, Discord ID 169561011928432653)
Discord thread transcript (1 message)
Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:
@SpicyMarinara commented on GitHub (Jul 28, 2026):
Claimed by @SpicyMarinara and added to existing draft PR #4223 at the maintainer’s request. Root cause: KoboldCPP Router Mode exposes its public proxy on IPv4, while Marinara’s rebinding-safe outbound resolver can pin
localhostto the first DNS result (::1on affected systems), so the connection fails before KoboldCPP receives or logs the request. The planned compatibility fix will prefer IPv4 for ambiguous loopback hostnames while preserving explicit IPv6 loopback URLs.@SpicyMarinara commented on GitHub (Jul 28, 2026):
The compatibility fix is now pushed as separate commit
ba3b28662in draft PR #4223: https://github.com/Pasta-Devs/Marinara-Engine/pull/4223. The new IPv4-onlylocalhostregression reproducedfetch failed/ECONNREFUSED ::1before the fix and passes afterward for both streaming and non-streaming requests. Fullpnpm checkand the request-security regression also pass.