Rebuild Hermes WebUI with independent source and fresh home

This commit is contained in:
Mikei386 committed 2026-10-17 12:53:54 +02:00
1 parent 31d1e16dd6
commit c0afccc8b0
3 files changed
+105 -15

No files matched your search

@@ -0,0 +1,92 @@
# Independent Hermes WebUI — clean installation, 17 October 2026
This supersedes the earlier shared-source native test described in README.md.
At the user's explicit request, `Hermes-Agent-Web-UI` was stopped and removed,
and its entire `/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI` directory deleted.
No copy of its chats, memory, skills, MCP configuration or application runtime
was restored. Only the existing login password and Athena provider connection
(including model catalogue metadata) were transferred internally into minimal
fresh settings; credentials were not printed or committed.
## Installed layout
- Container: `Hermes-Agent-Web-UI`, bridge, LAN port 8787.
- Published image: `ghcr.io/nesquena/hermes-webui:latest`.
- Installed image digest: `sha256:24fe95d29e6f2b53fe3e0ae959f674e461cbaa346cc297ae5997cde0d43dd39f`.
- Unmodified image command: `/hermeswebui_init.bash`.
- UID/GID: 1000:1000, matching the existing Webtop workspace owner.
- Limits: 2 CPUs, 4 GiB RAM, no additional swap allowance; restart unless-stopped.
- Only two mounts:
- Own `.../Hermes-Agent-Web-UI/home` -> `/home/hermeswebui/.hermes`, writable.
- Existing `.../Hermes-Workspace` -> `/config`, writable.
- The private login env file under `.../Hermes-Agent-Web-UI/private/runtime.env`
is passed with Docker `--env-file`; it is not a mounted shared directory.
- No named/shared agent source volume, `/opt/data` compatibility alias, persisted
`/app`, custom entrypoint, extra gateway process, custom image, Docker socket,
privileged flag or GPU mapping.
The old `Hermes-Agent` and `Hermes-WebUI` containers remain stopped and untouched.
Their source volume and data belong to them, not this new installation. Webtop
was not restarted.
## Hermes source and lifecycle
An independent public clone of https://github.com/NousResearch/hermes-agent was
downloaded into this installation's own `home/hermes-agent`. Its initial revision
is `7e9eb8d9a30f4a9bb9f8ecaf816b4b0ffdf47357` (`git.7e9eb8d`). It is not copied
from or mounted from an old container. The stock WebUI image entrypoint discovers
this source and stages/installs it into its own internal `/app` environment.
Important: this is the upstream single-container pattern with pre-existing agent
source. The stock Docker entrypoint does not itself clone Hermes. The clone is an
installation step, not an automatic update mechanism. Restart alone does not
guarantee reinstalling changed agent source because `.deps_installed` skips it.
For an intentional source update, update the own clone as its owning UID, then
recreate this container using its template. Its internal, unmounted `/app` is
fresh on recreation, so the official entrypoint installs the updated source.
Image updates separately use the registry image and container recreation.
Official references:
- https://github.com/nesquena/hermes-webui/blob/master/docs/docker.md
- https://github.com/nesquena/hermes-webui/blob/master/docker-compose.yml
- https://github.com/nesquena/hermes-webui/blob/master/docker_init.bash
- https://github.com/NousResearch/hermes-agent
## Workspace
`HERMES_WEBUI_DEFAULT_WORKSPACE=/config`; Hermes `terminal.cwd=/config`.
The terminal uses the existing supported SSH backend to Webtop at
`192.168.1.2:2224`, user `abc`. A new dedicated key was generated in this own
home, with its public key added to Webtop's existing authorized_keys. The host
public key was obtained directly from Webtop and pinned in the new container's
known_hosts. No private key contents were printed. UI file browsing and the
terminal refer to the same existing Webtop home. No new working subdirectory
was introduced. UID1000 keeps root workspace ownership unchanged during the
stock entrypoint's default-workspace chown.
## Verification
- Registry image pulled; independent source HEAD verified.
- Docker health: healthy, stock command confirmed.
- Mount inventory: exactly the two mounts listed above; no shared source volume.
- HTTP root responds 302 to the password-protected login; browser login renders.
- Direct SSH test: `WEBTOP_SSH_OK cwd=/config`.
- Actual Hermes `terminal_tool`: `echo HERMES_FRESH_WORKSPACE_OK; pwd` returned
that marker and `/config`, exit code 0.
- Official profile workspace resolver returned `/config`; backend `ssh`.
- Fresh config has zero migrated MCP definitions and the Athena model catalogue.
- Browser chat acceptance requires operator login. Automatic approval rejected
transferring the stored password to the local browser test; no workaround used.
No media, MCP or old memory migration is claimed. Scheduled background jobs need
the upstream gateway scheduler; this single WebUI process does not replace it.
## Restore
Keep the own home, its private runtime env, the Unraid template and the existing
Webtop home in private encrypted backup. SSH private keys and provider credentials
must never enter Git. Restoring those files and recreating the container from the
template regenerates the image's internal runtime using the own Hermes checkout.
This recipe is for this optional Docker UI, not proof of a full Athena native
Debian restore; no full restore drill was performed here.
+5 -4
View File
@@ -1,9 +1,10 @@
# Hermes-WebUI on Unraid
**Current test deployment, 2026-10-17:** `Hermes-Agent-Web-UI` runs Hermes directly
in-process at the same LAN URL. Previous `Hermes-WebUI` and `Hermes-Agent` are
stopped and retained. See the final section. The gateway layout below records
the preserved previous deployment, not the active chat execution mode.
**Current deployment, 2026-10-17:** `Hermes-Agent-Web-UI` was deleted with its
own appdata and rebuilt independently. Only the Webtop workspace is shared.
See the [clean installation and restore recipe](CLEAN-INSTALL-2026-10-17.md).
The sections below record earlier states; their shared agent-source mounts and
copied chat/skill state no longer describe the active installation.
## Provenance and supported architecture
@@ -14,28 +14,25 @@
<Shell>bash</Shell>
<Privileged>false</Privileged>
<ExtraParams>--env-file=/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/private/runtime.env --cpus=2 --memory=4g --memory-swap=4g --restart=unless-stopped</ExtraParams>
<Requires>Published Hermes-WebUI image; existing read-only Hermes source volume; SSH Webtop workspace.</Requires>
<Requires>Published upstream WebUI image and a private clone of NousResearch/hermes-agent in this container home; existing Webtop workspace.</Requires>
<PostArgs />
<Overview>Separater Test: Hermes Agent direkt im WebUI-Prozess, ohne Gateway-Weiterleitung. Getrennte Konfiguration und Chats; gemeinsamer Webtop-Workspace.</Overview>
<Overview>Eigenständige Hermes WebUI mit eigener Hermes-Kopie und frischen Daten. Nur der Webtop-Workspace wird gemeinsam genutzt. Offizieller Image-Start ohne Gateway oder zusätzliche Startskripte.</Overview>
<Readme>https://github.com/nesquena/hermes-webui</Readme>
<Date>2026-10-16</Date>
<Changes>2026-10-17: Native in-process Hermes test, isolated appdata, retained old containers stopped.</Changes>
<Changes>2026-10-17: Fully recreated with fresh appdata, private upstream checkout and only two home/workspace bind mounts.</Changes>
<CPUset />
<DonateText />
<DonateLink />
<Config Name="WebUI Port" Target="8787" Default="8787" Mode="tcp" Description="WebUI Port" Type="Port" Display="always" Required="true" Mask="false">8787</Config>
<Config Name="Shared Hermes home" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home" Mode="rw" Description="Appdata home" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home</Config>
<Config Name="Persistent application runtime" Target="/app" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app" Mode="rw" Description="Persistent application runtime" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app</Config>
<Config Name="Own Hermes home and source" Target="/home/hermeswebui/.hermes" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home" Mode="rw" Description="Independent home with its own upstream Hermes checkout; never shared with other agent containers" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home</Config>
<Config Name="Shared Webtop home / workspace" Target="/config" Default="/mnt/nvme-storage/appdata/Hermes-Workspace" Mode="rw" Description="Own workspace" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Workspace</Config>
<Config Name="Dependency cache" Target="/uv_cache" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache" Mode="rw" Description="Dependency cache" Type="Path" Display="always" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache</Config>
<Config Name="WANTED_UID" Target="WANTED_UID" Default="99" Mode="" Description="WANTED_UID" Type="Variable" Display="advanced" Required="true" Mask="false">99</Config>
<Config Name="WANTED_GID" Target="WANTED_GID" Default="100" Mode="" Description="WANTED_GID" Type="Variable" Display="advanced" Required="true" Mask="false">100</Config>
<Config Name="WANTED_UID" Target="WANTED_UID" Default="1000" Mode="" Description="WANTED_UID" Type="Variable" Display="advanced" Required="true" Mask="false">1000</Config>
<Config Name="WANTED_GID" Target="WANTED_GID" Default="1000" Mode="" Description="WANTED_GID" Type="Variable" Display="advanced" Required="true" Mask="false">1000</Config>
<Config Name="HERMES_HOME" Target="HERMES_HOME" Default="/home/hermeswebui/.hermes" Mode="" Description="HERMES_HOME" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes</Config>
<Config Name="HERMES_WEBUI_STATE_DIR" Target="HERMES_WEBUI_STATE_DIR" Default="/home/hermeswebui/.hermes/webui" Mode="" Description="HERMES_WEBUI_STATE_DIR" Type="Variable" Display="advanced" Required="true" Mask="false">/home/hermeswebui/.hermes/webui</Config>
<Config Name="HERMES_WEBUI_HOST" Target="HERMES_WEBUI_HOST" Default="0.0.0.0" Mode="" Description="HERMES_WEBUI_HOST" Type="Variable" Display="advanced" Required="true" Mask="false">0.0.0.0</Config>
<Config Name="HERMES_WEBUI_PORT" Target="HERMES_WEBUI_PORT" Default="8787" Mode="" Description="HERMES_WEBUI_PORT" Type="Variable" Display="advanced" Required="true" Mask="false">8787</Config>
<Config Name="TZ" Target="TZ" Default="Europe/Berlin" Mode="" Description="TZ" Type="Variable" Display="advanced" Required="true" Mask="false">Europe/Berlin</Config>
<Config Name="Shared Hermes source volume" Target="/home/hermeswebui/.hermes/hermes-agent" Default="hermes-agent-source" Mode="ro" Description="Hermes public source" Type="Path" Display="advanced" Required="true" Mask="false">hermes-agent-source</Config>
<Config Name="Compatible Python" Target="UV_PYTHON" Default="3.14" Mode="" Description="Compatible Python" Type="Variable" Display="advanced" Required="true" Mask="false">3.14</Config>
<Config Name="Persistent Python installs" Target="UV_PYTHON_INSTALL_DIR" Default="/app/python-runtime" Mode="" Description="Keep managed Python in persistent application directory" Type="Variable" Display="advanced" Required="true" Mask="false">/app/python-runtime</Config>
<Config Name="MEDIA_ALLOWED_ROOTS" Target="MEDIA_ALLOWED_ROOTS" Default="/opt/data/cache" Mode="" Description="Upstream media endpoint allowlist for the shared artifact cache" Type="Variable" Display="advanced" Required="true" Mask="false">/opt/data/cache</Config><Config Name="Hermes home absolute-path compatibility" Target="/opt/data" Default="/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home" Mode="rw" Description="Same isolated home at the existing absolute paths used by configured tools and old artifacts" Type="Path" Display="advanced" Required="true" Mask="false">/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home</Config></Container>
<Config Name="Default Webtop workspace" Target="HERMES_WEBUI_DEFAULT_WORKSPACE" Default="/config" Mode="" Description="Shared Webtop home is the default workspace" Type="Variable" Display="always" Required="true" Mask="false">/config</Config>
</Container>