infra/forgejo: give the LAN runner's PATH ~/.local/bin #84
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Jinemi/thermograph#84
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/lan-runner-path"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The
thermograph-lanrunner's systemd --user unit had noEnvironment=PATH=..., so it inherited systemd's bare default PATH, missing~/.local/binwheresops/agelive. Once this box was flipped into SOPS-configured mode (adding/etc/thermograph/secrets-env, needed to fix the daemon's crash-loop on a missingTHERMOGRAPH_AUTH_SECRET), every LAN deploy failed outright at the render step:sops not installed but this host is configured for SOPS secrets. Also explains the earlier, less legiblegit clone: some refs were not updated/Health check failed for daemon (status=none)noise in PR #83's LAN-deploy check -- same PATH-starved runner environment.Applied live to
~/.config/systemd/user/forgejo-runner.servicealready and confirmed the LAN deploy succeeds andthermograph-dev-daemon-1is healthy. This PR is the fix landing in the provisioning script (register-lan-runner.sh) so a future re-provision doesn't regress it.No tests -- shell provisioning script, verified live on the one box it provisions.
sops (and other user-installed CLI tools) live in ~/.local/bin, which isn't on systemd --user's default PATH. Once a host is flipped into SOPS-configured mode (the /etc/thermograph/secrets-env marker), render-secrets.sh's own render step fails outright ("sops not installed but this host is configured for SOPS secrets") even though it's installed for the interactive user -- the runner just can't see it. Found via the LAN dev daemon crash-looping on a missing THERMOGRAPH_AUTH_SECRET after dev.yaml correctly gained one.