[GH-ISSUE #8668] [Issue]: Package runtimes look for .env outside the data folder (Noodle: EACCES '/.env') #8451

Closed
opened 2026-11-07 16:43:02 +07:00 by bsakaguchi · 1 comment
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Engine-side tracking for Pasta-Devs/Marinara-Agents#2036, reported by Rojikku: on a source install outside Docker, every boot with Noodle logs [runtime-config] Could not auto-create .env file ... EACCES open '/.env'.

Cause

Some package servers bundle the Engine's runtime-config: Noodle 1.5.12, Conversation Calls 1.1.7 and Slurp 0.4.15. The Engine runs each from a runtime copy under DATA_DIR/capability-runtime-snapshots/<id>-<version>-<uuid>/. Without MARINARA_ENV_FILE, the bundled runtime-config takes the folder four levels above server.mjs as its root. That is two folders above the data folder, and it then tries to create .env there:

  • with a short DATA_DIR such as /data, that is /, so creating it fails with EACCES;
  • on a default install it is <engine>/packages/, so a stray packages/.env is created there without any message.

The Engine already hands package runtimes an absolute DATA_DIR before importing them (prepareCapabilityRuntimeEnvironment), but not the .env path. Fixing this is host package loading, so it belongs in the Engine; no package needs a rebuild.

Expected

Package runtimes read the same .env as the host and never create one of their own.

Originally created by @SpicyMarinara on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/8668 Originally assigned to: @SpicyMarinara on GitHub. ### Summary Engine-side tracking for Pasta-Devs/Marinara-Agents#2036, reported by Rojikku: on a source install outside Docker, every boot with Noodle logs `[runtime-config] Could not auto-create .env file ... EACCES open '/.env'`. ### Cause Some package servers bundle the Engine's `runtime-config`: Noodle 1.5.12, Conversation Calls 1.1.7 and Slurp 0.4.15. The Engine runs each from a runtime copy under `DATA_DIR/capability-runtime-snapshots/<id>-<version>-<uuid>/`. Without `MARINARA_ENV_FILE`, the bundled `runtime-config` takes the folder four levels above `server.mjs` as its root. That is two folders above the data folder, and it then tries to create `.env` there: - with a short `DATA_DIR` such as `/data`, that is `/`, so creating it fails with EACCES; - on a default install it is `<engine>/packages/`, so a stray `packages/.env` is created there without any message. The Engine already hands package runtimes an absolute `DATA_DIR` before importing them (`prepareCapabilityRuntimeEnvironment`), but not the `.env` path. Fixing this is host package loading, so it belongs in the Engine; no package needs a rebuild. ### Expected Package runtimes read the same `.env` as the host and never create one of their own.
bsakaguchi 2026-11-07 16:43:02 +07:00
Author
Owner

@SpicyMarinara commented on GitHub (Nov 1, 2026):

Fixed by #8669, merged into staging.

<!-- gh-comment-id:6565343593 --> @SpicyMarinara commented on GitHub (Nov 1, 2026): Fixed by #8669, merged into staging.
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#8451
No description provided.