mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #2108] [Issue]: Docker build fails after cache bust + profile import broken for large exports via remote runtime #1029
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#1029
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 @felorhik on GitHub (Jun 4, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/2108
Originally assigned to: @Xelvanis on GitHub.
Docker build fails after cache bust + profile import broken for large exports via remote runtime
Labels: bug
Summary
Two separate bugs affect the Docker remote runtime: docker compose build fails with a missing file error whenever the build cache is invalidated, and profile import is non-functional for large exports when using a remote runtime — both the ZIP and JSON-only paths fail for different reasons.
Expected behavior
Actual behavior
Build failure: After any change to src-tauri/src/ busts Docker's layer cache, cargo build fails:
error: couldn't read
src/commands/storage/../../../../src/engine/generation/prompt-overrides.manifest.json: No such file or directory--> src/commands/storage/prompt_overrides.rs:8:5
error: could not compile
marinara-engine(lib) due to 1 previous errorZIP import: The import UI fails silently with "base64 is required". For large exports (~400MB) the browser cannot produce a valid DataURL, readFileAsBase64 resolves with an empty string. Even if the browser succeeded, the server's 256MB body limit (MAX_API_BODY_BYTES) would reject a ~535MB base64-encoded payload regardless.
JSON-only import: Extracting the JSON from the ZIP and importing it fails:
Profile asset avatars/.png is missing base64 data
There is no fallback to skip missing assets and import data only.
Steps to reproduce
Build failure:
Profile import:
Impact area
Environment
Regression notes
Build failure: Introduced in #1762 — prompt_overrides.rs added an include_str! referencing src/engine/generation/prompt-overrides.manifest.json which is outside src-tauri/. The Dockerfile was not updated to copy src/. The build appeared to work before because Docker's layer cache preserved the previously compiled binary.
Profile import: profile_import_file (import from a file path, no size constraint) exists in the codebase but is Tauri-only and not exposed over the HTTP API, leaving remote runtime users with no viable import path for large exports.
Additional context
Build workaround: Create a gitignored docker-compose.override.yml pointing at a local Dockerfile.local that adds COPY src ./src before the cargo build step. Remove once the upstream Dockerfile is fixed.
Build fix: Add one line to Dockerfile before cargo build:
COPY src ./src
Import fix suggestions:
I had claude write this, as I did a bunch of debugging with it and this is a rundown of the results of that.