mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #640] [Issue]: Docker failing to create .env on a fresh run #299
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#299
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 @Talref on GitHub (May 10, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/640
Originally assigned to: @SpicyMarinara on GitHub.
Summary
The Docker image treats
/appas non-writable, but Marinara Engine still attempts to create and persist runtime configuration in/app/.env.This causes permission errors with the official Docker Compose configuration and makes some runtime configuration features (such as
IP_ALLOWLIST) unusable unless/app/.envis manually bind-mounted from the host.There also appears to be inconsistent handling of
DATA_DIR, where some storage paths still resolve inside the image filesystem instead of the configured writable data directory.Expected behavior
The official Docker Compose configuration should work without requiring additional bind mounts.
Runtime configuration should either:
/app/data(or another writable mounted path).The application should not attempt to write inside the immutable image filesystem.
DATA_DIR=/app/datashould consistently affect all storage paths.Actual behavior
With the official compose file:
the container logs:
The app continues running, but runtime config features depending on
/app/.envdo not work correctly unless/app/.envis manually mounted from the host.Additionally, when using bind-mounted storage (
./data:/app/data), the application attempts to create:instead of using the configured
DATA_DIR.This results in:
and the container enters a restart loop.
Steps to reproduce
/app/.envmust be writable/mounted for these settings to persist/work correctly.Additional reproduction for the storage issue:
instead of
/app/data/storage.Environment
Logs, screenshots, or video
.envpermission issue:Storage path issue:
followed by:
Additional context
Current workaround:
with:
before startup.
This allows runtime-config persistence to function correctly.
It may make sense to:
/app/data/app/.envin containerized environmentsDATA_DIRTemplate check
@SpicyMarinara commented on GitHub (May 10, 2026):
Fixed on
mainin commit8d16c06.What changed:
FILE_STORAGE_DIR=/app/data/storageand mark the runtime as Docker explicitly..envauto-creation now targets the persistent Docker data volume at/app/data/.envby default, while preserving explicitMARINARA_ENV_FILEoverrides and legacy/app/.envmounts..envand storage paths.Validation run:
pnpm exec prettier --write ...pnpm --filter @marinara-engine/server exec tsx --import ./test/setup-env.ts --test test/sidecar-runtime-selection.test.tspnpm impeccable:checkpnpm lintpnpm build