hermes - 💡(How to fix) Fix [Setup]: Persistent `[Errno 13] Permission denied` on `/opt/data/config.yaml` during/after setup on NAS Docker (UGOS Pro) [2 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
NousResearch/hermes-agent#15290Fetched 2026-04-25 06:23:11
View on GitHub
Comments
2
Participants
2
Timeline
5
Reactions
1
Author
Timeline (top)
labeled ×3commented ×2

Error Message

The core issue is that even though the container has successfully created the config.yaml file during the setup process, it immediately fails to read it or modify it afterwards, throwing a Permission denied error. This happens despite the container running as root and having a volume mapped to the host filesystem. 5. As soon as the wizard attempts to save or the gateway tries to reload the config, the error triggers.

Full Error Output

  1. Privileged Mode: Enabled "Privileged Mode" in the Docker settings, but the error persists.
  2. File Recreation: Deleted config.yaml and reran the setup; the error reappears the moment the new file is generated.

Code Example



---

Warning: Failed to load config: [Errno 13] Permission denied: '/opt/data/config.yaml'
RAW_BUFFERClick to expand / collapse

What's Going Wrong?

I am attempting to deploy Hermes Agent on a UGreen DX4600 NAS (running UGOS Pro, a Linux-based NAS OS) using Docker. I am using the official image nousresearch/hermes-agent:latest.

The core issue is that even though the container has successfully created the config.yaml file during the setup process, it immediately fails to read it or modify it afterwards, throwing a Permission denied error. This happens despite the container running as root and having a volume mapped to the host filesystem.

Curiously, other AI agent Docker applications (e.g., agentscope-qwenpaw) work perfectly with identical volume mapping settings on the same hardware, suggesting that Hermes' specific method of writing or rotating configuration files might be conflicting with the host's ACL/filesystem permissions.

Steps Taken

  1. Created a host directory for persistent data (mapped to /opt/data in the container).
  2. Started the container in interactive mode (-it).
  3. Ran the setup wizard: /opt/hermes/.venv/bin/hermes setup.
  4. Successfully completed the interactive configuration (API keys, etc.).
  5. As soon as the wizard attempts to save or the gateway tries to reload the config, the error triggers.

Installation Method

Docker

Operating System

Debian 12

Python Version

No response

Hermes Version

No response

Debug Report

Full Error Output

Warning: Failed to load config: [Errno 13] Permission denied: '/opt/data/config.yaml'

What I've Already Tried

  1. Privileged Mode: Enabled "Privileged Mode" in the Docker settings, but the error persists.
  2. Manual Permission Change: Attempted chmod 777 /opt/data/config.yaml inside the container terminal. Even with root privileges inside the container, the operation was either ineffective or blocked by the host's underlying filesystem security.
  3. File Recreation: Deleted config.yaml and reran the setup; the error reappears the moment the new file is generated.
  4. Host-side Edit: Edited and saved the file via the NAS host GUI to force a reset of the owner/ACLs, but the container still cannot maintain access after its own subsequent write operations.
  5. Environment Variables (PUID/PGID): Attempted to pass PUID=1000 / PGID=10 (the NAS user ID) and PUID=0 / PGID=0 (Root) as environment variables to the container. Neither configuration resolved the permission conflict, suggesting the image may lack native support for these variables to manage filesystem access.
  6. Comparison: Confirmed that other Docker containers using the same volume path can read/write without issue, which points to a potential issue in the atomic-write or file-rotation logic used by Hermes Agent's config manager.

extent analysis

TL;DR

The most likely fix involves adjusting the permissions or ownership of the /opt/data directory on the host system to ensure the Hermes Agent container can write to it without encountering a Permission denied error.

Guidance

  • Verify the ownership and permissions of the /opt/data directory on the host system using ls -l and adjust them if necessary to allow write access for the user running the Docker container.
  • Consider using a different directory for the volume mapping that is known to have the correct permissions, to isolate if the issue is specific to /opt/data.
  • Check if the Hermes Agent image supports environment variables for setting user and group IDs (PUID/PGID) and if so, ensure they are correctly set to match the host system's user and group IDs.
  • Investigate the file system type and ACL settings on the UGreen DX4600 NAS, as these might be contributing to the permission issues.

Example

No specific code example is applicable here, as the issue seems to be related to file system permissions and Docker configuration rather than code.

Notes

The exact solution may depend on the specifics of the UGreen DX4600 NAS's file system and the Hermes Agent's handling of file permissions, which are not fully detailed in the provided information.

Recommendation

Apply a workaround by adjusting the host directory permissions or using a different directory for the volume mapping, as the root cause seems to be related to file system permissions rather than an issue with the Hermes Agent itself that could be fixed by an upgrade.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

hermes - 💡(How to fix) Fix [Setup]: Persistent `[Errno 13] Permission denied` on `/opt/data/config.yaml` during/after setup on NAS Docker (UGOS Pro) [2 comments, 2 participants]