docs(wiki): Periphery v2.2.0 --user installer defaults root_directory=/etc/komodo
Lab box (park-test) crash-looped: panic writing the agent key to /etc/komodo/keys/periphery.key (Permission denied). Gotcha #9 was framed as a hand-config hazard; v2.2.0's installer now writes the system-style default even with --user. §7a: verify root_directory after every install + sed fix + reset-failed/restart; user-unit vs sudo note; the onboarding key survives a pre-connect crash. Claude-Session: https://claude.ai/code/session_01Xcm6ikLgGoCxxHrxtjkk5V
This commit is contained in:
@@ -287,8 +287,16 @@ sudo loginctl enable-linger admin # so the user service starts at boot witho
|
|||||||
NOT `:9120` — Core's container port `9120` is exposed-not-published; the agent reaches it through
|
NOT `:9120` — Core's container port `9120` is exposed-not-published; the agent reaches it through
|
||||||
the proxy. (Gotcha #7 below.)
|
the proxy. (Gotcha #7 below.)
|
||||||
- Config lands at `~/.config/komodo/periphery.config.toml`. The key field is **`core_address`**
|
- Config lands at `~/.config/komodo/periphery.config.toml`. The key field is **`core_address`**
|
||||||
(singular); `root_directory` must be a path `admin` can write (user-mode default is fine — a
|
(singular); `root_directory` must be a path `admin` can write. **⚠ VERIFY THIS after install —
|
||||||
`/etc/komodo` default from a system install would `Permission denied` for the user service).
|
Periphery v2.2.0's installer writes `root_directory = "/etc/komodo"` even with `--user`**
|
||||||
|
(bit the lab box 2026-07-07: panic `Failed to write private key pem to "/etc/komodo/keys/
|
||||||
|
periphery.key" … Permission denied`, crash-loop until systemd gives up). Fix + restart:
|
||||||
|
```bash
|
||||||
|
sed -i 's|^root_directory = .*|root_directory = "'"$HOME"'/.komodo"|' ~/.config/komodo/periphery.config.toml
|
||||||
|
systemctl --user reset-failed periphery && systemctl --user restart periphery
|
||||||
|
```
|
||||||
|
NB `sudo systemctl restart periphery` says *unit not found* — it's a USER unit; always
|
||||||
|
`systemctl --user …`. The onboarding key survives a pre-connect crash (unused until first dial).
|
||||||
|
|
||||||
Verify: `systemctl --user status periphery` → active; the server **`park-buzi`** appears and goes
|
Verify: `systemctl --user status periphery` → active; the server **`park-buzi`** appears and goes
|
||||||
**OK/green** in Core → Servers. Then **delete the onboarding key**.
|
**OK/green** in Core → Servers. Then **delete the onboarding key**.
|
||||||
|
|||||||
+10
@@ -2467,3 +2467,13 @@ Ubuntu's perl adduser/deluser tooling rejects the hyphenated username. [[applian
|
|||||||
§5c now uses `gpasswd -d <operator> sudo|lxd|lpadmin` (shadow-suite, no perl sanitize) and notes
|
§5c now uses `gpasswd -d <operator> sudo|lxd|lpadmin` (shadow-suite, no perl sanitize) and notes
|
||||||
that group removal applies at NEXT login — the auto-login operator session keeps old memberships
|
that group removal applies at NEXT login — the auto-login operator session keeps old memberships
|
||||||
until reboot/relog, so verify `groups` from inside the session afterwards.
|
until reboot/relog, so verify `groups` from inside the session afterwards.
|
||||||
|
|
||||||
|
## [2026-07-07] update | Periphery v2.2.0 --user installer writes /etc/komodo root_directory
|
||||||
|
|
||||||
|
Lab test box (park-test): periphery crash-looped at startup — panic writing the private key to
|
||||||
|
/etc/komodo/keys/periphery.key, Permission denied. Gotcha #9 was documented as a hand-config
|
||||||
|
hazard, but v2.2.0's installer now DEFAULTS root_directory to /etc/komodo even with --user (the
|
||||||
|
June park-buzi install defaulted under $HOME). [[appliance-provisioning]] §7a now says: verify
|
||||||
|
root_directory after every install + the sed one-liner fix; also notes `sudo systemctl restart
|
||||||
|
periphery` → "unit not found" (user unit) and that the single-use onboarding key survives a
|
||||||
|
pre-connect crash.
|
||||||
|
|||||||
Reference in New Issue
Block a user