From cdd58626215de580e6bf87f47d77d6a1be6f87d5 Mon Sep 17 00:00:00 2001 From: wtclaude Date: Fri, 27 Nov 2026 01:58:13 -0600 Subject: [PATCH] docs(installer): running-shard detection covers every launch shape (installer#47) PLAN.md records how the check resolves a relative ServUO.exe against the process's working directory, fails closed when that cannot be read, and skips thread entries. INSTALL.md troubleshooting gains the new refusal. Co-Authored-By: Claude Opus 5.5 Claude-Session: https://claude.ai/code/session_014HJEmd5sBSpNXicS4gmT1t --- installer/INSTALL.md | 3 ++- installer/PLAN.md | 12 ++++++++++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/installer/INSTALL.md b/installer/INSTALL.md index 7732efd..68d2526 100644 --- a/installer/INSTALL.md +++ b/installer/INSTALL.md @@ -630,7 +630,8 @@ release tarball is gone, and the report tells you to diff against them. | Symptom | Cause and fix | |---|---| | **Windows asks for Administrator as soon as you launch it** | Expected, and it needs Administrator anyway. Windows applies *installer detection* to unsigned executables whose file name contains `install` and elevates them before the program starts. Run it from an already-elevated PowerShell and you will not see the prompt. | -| **"ServUO is running — stop it before installing"** | Correct, and not overridable. `ServUO.exe` locks `Scripts.dll` and rewrites `Saves/` on exit; deploying underneath it corrupts one or both. Stop the shard, install, start it again. | +| **"ServUO is running — stop it before installing"** | Correct, and not overridable. `ServUO.exe` locks `Scripts.dll` and rewrites `Saves/` on exit; deploying underneath it corrupts one or both. Stop the shard, install, start it again. It is detected however it was started — `ServUO.exe` directly, `mono /path/ServUO.exe`, or `mono ServUO.exe` from inside the server directory (systemd, tmux, screen). | +| **"A ServUO process is running … its working directory cannot be read"** | The installer found a `ServUO.exe` launched with a relative path but, not running as root, cannot read where it was started from — so it cannot rule out that it is this shard, and refuses. Stop that process, or re-run the installer with `sudo` so it can check. Not overridable. | | Shard boots clean but nothing reaches the site | The classic silent failure: ServUO ignores the script build's exit code and reloaded a **stale `Scripts.dll`**. Run `dotnet build Scripts/Scripts.csproj -c Release -p:Platform=x64` and read the errors it prints. | | `[bridge status` says `connected=False` | The sidecar is not listening on `127.0.0.1:7788`. Check the service is running, and that `[shard] bind` in `sidecar.toml` matches `Host`/`Port` in `Bridge.cfg`. | | `[bridge` is not a command | The plugin did not compile, or `Bridge.cfg` has the bridge disabled. See the row above. | diff --git a/installer/PLAN.md b/installer/PLAN.md index bbfb423..9d617c2 100644 --- a/installer/PLAN.md +++ b/installer/PLAN.md @@ -554,9 +554,17 @@ not already settled above: - **The shard-running check matches by path, not by process name.** `deploy.ps1` can look for a process called `ServUO` because it only runs on Windows; on Linux the same shard is `mono` or `dotnet` with `ServUO.exe` as an argument, and a name match would answer "not running" for a live - shard — the one wrong answer that corrupts `Scripts.dll`. The installer requires a process whose - executable or command line names *both* the tree being deployed into and `ServUO.exe`, so a second + shard — the one wrong answer that corrupts `Scripts.dll`. The installer requires a process that + names `ServUO.exe` *and* whose assembly resolves into the tree being deployed into, so a second shard elsewhere on the host does not block this deploy, and the installer never matches itself. + "Resolves into the tree" covers every launch shape (installer#47): `ServUO.exe` as the + executable (Windows) is decided by its path; `mono /abs/ServUO.exe` by the command line; and + `mono ServUO.exe` started from inside the root — systemd `WorkingDirectory=`, tmux — by resolving + the relative argument against the process's **working directory**, where the root is the only + place it appears. When that working directory cannot be read (another user's process, installer + not run as root) the check **fails closed**: install/update refuse, saying they could not check + and to stop the process or re-run with `sudo`; `doctor` counts only certain matches. Linux lists + each thread beside its process; threads are skipped so the refusal names the real pid. - **ServUO's version is read from `Server/AssemblyInfo.cs`**, not from `ServUO.exe`'s PE metadata: it is the same *source* tree the patch tier diffs against, needs no dependency, and works identically on Linux. `57.4.0.0` and `57.4` are normalized to compare equal. An unreadable version