From c0afccc8b0f445658e71260929836d2e61452829 Mon Sep 17 00:00:00 2001 From: Mikei386 <44135113+Mikei386@users.noreply.github.com> Date: Sat, 17 Oct 2026 12:53:54 +0200 Subject: [PATCH] Rebuild Hermes WebUI with independent source and fresh home --- .../webui/CLEAN-INSTALL-2026-10-17.md | 92 +++++++++++++++++++ integrations/hermes-unraid/webui/README.md | 9 +- .../webui/my-Hermes-Agent-Web-UI.xml | 19 ++-- 3 files changed, 105 insertions(+), 15 deletions(-) create mode 100644 integrations/hermes-unraid/webui/CLEAN-INSTALL-2026-10-17.md diff --git a/integrations/hermes-unraid/webui/CLEAN-INSTALL-2026-10-17.md b/integrations/hermes-unraid/webui/CLEAN-INSTALL-2026-10-17.md new file mode 100644 index 0000000..ca40917 --- /dev/null +++ b/integrations/hermes-unraid/webui/CLEAN-INSTALL-2026-10-17.md @@ -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. diff --git a/integrations/hermes-unraid/webui/README.md b/integrations/hermes-unraid/webui/README.md index 55df0a6..6576ac0 100644 --- a/integrations/hermes-unraid/webui/README.md +++ b/integrations/hermes-unraid/webui/README.md @@ -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 diff --git a/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml b/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml index 4990863..0169736 100644 --- a/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml +++ b/integrations/hermes-unraid/webui/my-Hermes-Agent-Web-UI.xml @@ -14,28 +14,25 @@ bash false --env-file=/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/private/runtime.env --cpus=2 --memory=4g --memory-swap=4g --restart=unless-stopped - Published Hermes-WebUI image; existing read-only Hermes source volume; SSH Webtop workspace. + Published upstream WebUI image and a private clone of NousResearch/hermes-agent in this container home; existing Webtop workspace. - Separater Test: Hermes Agent direkt im WebUI-Prozess, ohne Gateway-Weiterleitung. Getrennte Konfiguration und Chats; gemeinsamer Webtop-Workspace. + 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. https://github.com/nesquena/hermes-webui 2026-10-16 - 2026-10-17: Native in-process Hermes test, isolated appdata, retained old containers stopped. + 2026-10-17: Fully recreated with fresh appdata, private upstream checkout and only two home/workspace bind mounts. 8787 - /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home - /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/app + /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home /mnt/nvme-storage/appdata/Hermes-Workspace - /mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/cache - 99 - 100 + 1000 + 1000 /home/hermeswebui/.hermes /home/hermeswebui/.hermes/webui 0.0.0.0 8787 Europe/Berlin - hermes-agent-source 3.14 - /app/python-runtime - /opt/data/cache/mnt/nvme-storage/appdata/Hermes-Agent-Web-UI/home \ No newline at end of file + /config + \ No newline at end of file