[GH-ISSUE #2036] [Issue]: Noodle tries to make /.env outside docker #1884

Closed
opened 2026-11-07 16:37:24 +07:00 by bsakaguchi · 2 comments
Owner

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

Originally assigned to: @SpicyMarinara on GitHub.

Summary

Get a warning/error on every boot

Affected package

Noodle

Expected behavior

Uses my existing .env file probably

Actual behavior

Tries to make /.env

The bundled runtime-config resolves its root as ../../../.. from the module’s location, which gives / when packages run from capability-runtime-snapshots. Without MARINARA_ENV_FILE set, anyone not running in Docker will hit this.

Steps to reproduce

  1. Install noodle outside docker
  2. ./start.sh
  3. Warning/Error

Environment

  • Marinara Engine version: Staging
  • Package version: 1.5.12
  • Install type: source
  • OS + version: Linux 7.3.1
  • Browser or app shell: Firefox

Logs, screenshots, or video

{"level":40,"time":1793566881742,"pid":563960,"hostname":"Sintax","bootId":"06fba060","err":{"type":"Error","message":"EACCES: permission denied, open '/.env'","stack":"Error: EACCES: permission denied, open '/.env'\n    at Object.openSync (node:fs:556:18)\n    at writeFileSync (node:fs:2412:35)\n    at Tw (file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:50:78077)\n    at Ew (file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:50:78298)\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:54:3\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:54:53\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:55:671\n    at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83","errno":-13,"code":"EACCES","syscall":"open","path":"/.env"},"envPath":"/.env","msg":"[runtime-config] Could not auto-create .env file; continuing without it"}

Additional context

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 @Rojikku on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2036 Originally assigned to: @SpicyMarinara on GitHub. ## Summary <!-- What is wrong in one or two sentences? --> Get a warning/error on every boot ## Affected package <!-- Package name or ID, or "catalog/repository" if the issue is not package-specific. --> Noodle ## Expected behavior <!-- What should have happened? --> Uses my existing .env file probably ## Actual behavior Tries to make /.env The bundled runtime-config resolves its root as ../../../.. from the module’s location, which gives / when packages run from capability-runtime-snapshots. Without MARINARA_ENV_FILE set, anyone not running in Docker will hit this. <!-- What happened instead? --> ## Steps to reproduce 1. Install noodle outside docker 2. ./start.sh 3. Warning/Error ## Environment - Marinara Engine version: Staging - Package version: 1.5.12 - Install type: source - OS + version: Linux 7.3.1 - Browser or app shell: Firefox ## Logs, screenshots, or video <!-- Paste relevant logs and add screenshots when possible. Do not include API keys or private chat data. --> ```json {"level":40,"time":1793566881742,"pid":563960,"hostname":"Sintax","bootId":"06fba060","err":{"type":"Error","message":"EACCES: permission denied, open '/.env'","stack":"Error: EACCES: permission denied, open '/.env'\n at Object.openSync (node:fs:556:18)\n at writeFileSync (node:fs:2412:35)\n at Tw (file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:50:78077)\n at Ew (file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:50:78298)\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:54:3\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:54:53\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:55:671\n at file:///junk/marinara-data/capability-runtime-snapshots/noodle-1.5.12-57803448-487b-45b7-a9cd-726549b2d6cc/server.mjs:2:83","errno":-13,"code":"EACCES","syscall":"open","path":"/.env"},"envPath":"/.env","msg":"[runtime-config] Could not auto-create .env file; continuing without it"} ``` ## Additional context <!-- Optional: related issue links, temporary workaround, etc. --> ## 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-11-07 16:37:24 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

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

Thanks for the report. The fix belongs in the Engine: Pasta-Devs/Marinara-Engine#8669 (tracked as Pasta-Devs/Marinara-Engine#8668). Package runtimes now get the host's .env path before they load, so the code that Noodle, Conversation Calls and Slurp bundle reads your existing .env and never tries to create /.env. No package update is needed. On a default install, an older Engine may have left an empty, gitignored packages/.env behind. You can delete it.

<!-- gh-comment-id:6565027142 --> @SpicyMarinara commented on GitHub (Nov 1, 2026): Thanks for the report. The fix belongs in the Engine: Pasta-Devs/Marinara-Engine#8669 (tracked as Pasta-Devs/Marinara-Engine#8668). Package runtimes now get the host's `.env` path before they load, so the code that Noodle, Conversation Calls and Slurp bundle reads your existing `.env` and never tries to create `/.env`. No package update is needed. On a default install, an older Engine may have left an empty, gitignored `packages/.env` behind. You can delete it.
Author
Owner

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

Fixed in the Engine by Pasta-Devs/Marinara-Engine#8669, merged into staging. Package runtimes now read the host's .env; no package update is needed. It reaches stable releases when staging is promoted.

<!-- gh-comment-id:6565344158 --> @SpicyMarinara commented on GitHub (Nov 1, 2026): Fixed in the Engine by Pasta-Devs/Marinara-Engine#8669, merged into staging. Package runtimes now read the host's `.env`; no package update is needed. It reaches stable releases when staging is promoted.
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-Agents#1884
No description provided.