Repository navigation
Fixing install-hub.sh Hub Updater creator with Working Directory - #2801
Merged
Merged
Conversation
Currently, the Working Directory of the hub updater is `/`, i.e. root, because it is run as a service under /etc/systemd/system without a mentioned working directory. The updater tries to `mkdir beszel-data` at root. This is incorrect, because the real target is the already existing ./beszel-data, which is at $HUB_DIR. Moreover, this execution fails when run on an immutable system.
4 tasks done
ivanch
added a commit
to ivanch/haven
that referenced
this pull request
Nov 15, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [henrygd/beszel-agent](https://github.com/henrygd/beszel) | patch | `0.21.1` → `0.21.2` | --- ### Release Notes <details> <summary>henrygd/beszel (henrygd/beszel-agent)</summary> ### [`v0.21.2`](https://github.com/henrygd/beszel/releases/tag/v0.21.2) [Compare Source](henrygd/beszel@v0.21.1...v0.21.2) #### What's Changed - Add an actions menu with alert settings to the system detail page ([#​2803](henrygd/beszel#2803)) - Add `FAN_SENSORS` to include or exclude fan sensors ([#​2713](henrygd/beszel#2713)) - Add styled HTML alert emails ([#​2697](henrygd/beszel#2697)) - Add `no_self_update` build tag to disable hub and agent self-updates ([#​2724](henrygd/beszel#2724)) - Add warnings for missing automatic login users and trusted proxy configuration ([#​2824](henrygd/beszel#2824), [#​2812](henrygd/beszel#2812)) - Add video encode/decode engine usage to GPU metrics when using nvtop ([#​2749](henrygd/beszel#2749)) - Limit sign-in attempts to 10 per minute per address ([#​2642](henrygd/beszel#2642)) - Improve GPU collection retries and back off slow or repeatedly failing reads ([#​2705](henrygd/beszel#2705), [#​2687](henrygd/beszel#2687), [#​2709](henrygd/beszel#2709), [#​2656](henrygd/beszel#2656)) - Fix hub crashes caused by null entries in agent data ([#​2834](henrygd/beszel#2834)) - Fix agent health checks incorrectly reporting disconnected agents as healthy ([#​2825](henrygd/beszel#2825)) - Fix agent connections timing out while waiting for a slow hub ([#​2772](henrygd/beszel#2772)) - Fix container requests being canceled by requests for other systems ([#​2838](henrygd/beszel#2838)) - Fix agents being able to overwrite another system's container, service, S.M.A.R.T., or ZFS records ([#​2835](henrygd/beszel#2835)) - Fix non-admin users being able to change system users - Fix missing permission checks when moving network monitors between systems ([#​2714](henrygd/beszel#2714)) - Fix container refreshes overlapping the initial load on the All Containers page - Fix system users being overwritten when editing a system - Fix network monitors remaining on the old agent after moving to another system ([#​2739](henrygd/beszel#2739)) - Fix bulk monitor copy and import for URLs containing commas ([#​2716](henrygd/beszel#2716)) - Fix alerts not all being saved when enabling multiple alerts quickly ([#​2781](henrygd/beszel#2781)) - Fix automatic login briefly showing the login form and making redundant requests ([#​2810](henrygd/beszel#2810)) - Fix password validation on the initial setup form ([#​2744](henrygd/beszel#2744), [#​2745](henrygd/beszel#2745)) - Fix hub updates failing due to database access, working directory, or SELinux context issues ([#​2800](henrygd/beszel#2800), [#​2801](henrygd/beszel#2801), [#​2794](henrygd/beszel#2794)) - Fix historical averages including records from the previous interval ([#​2807](henrygd/beszel#2807)) - Fix failed systemd services being omitted when they have never been active ([#​2776](henrygd/beszel#2776), [#​2777](henrygd/beszel#2777)) - Fix NVMe S.M.A.R.T. data being lost when large counters exceed 64 bits ([#​2732](henrygd/beszel#2732)) - Fix degraded RAID1 arrays with remaining redundancy being reported as failed ([#​2760](henrygd/beszel#2760)) - Fix LXC memory usage incorrectly subtracting the host's ZFS ARC ([#​2767](henrygd/beszel#2767)) - Fix swap reporting on macOS ([#​2778](henrygd/beszel#2778)) - Fix container CPU counts to respect assigned CPU sets ([#​2728](henrygd/beszel#2728)) - Fix AMD GPU memory usage including GTT on devices without unified memory ([#​2715](henrygd/beszel#2715)) - Fix stale dnf5 metadata in package update checks ([#​2790](henrygd/beszel#2790)) - Fix battery data decoding with Go's experimental JSON implementation ([#​2746](henrygd/beszel#2746), [#​2748](henrygd/beszel#2748)) - Fix the agent's `-k` flag not accepting a key file path ([#​2764](henrygd/beszel#2764), [#​2765](henrygd/beszel#2765)) - Fix unreported S.M.A.R.T. power-on hours and cycles showing as zero ([#​2719](henrygd/beszel#2719)) - Update Go and Go dependencies #### New Contributors - [@​BiFangKNT](https://github.com/BiFangKNT) made their first contribution in [#​2685](henrygd/beszel#2685) - [@​metronom72](https://github.com/metronom72) made their first contribution in [#​2729](henrygd/beszel#2729) - [@​lightsabit](https://github.com/lightsabit) made their first contribution in [#​2656](henrygd/beszel#2656) - [@​cobalt-kite12](https://github.com/cobalt-kite12) made their first contribution in [#​2687](henrygd/beszel#2687) - [@​sghng](https://github.com/sghng) made their first contribution in [#​2758](henrygd/beszel#2758) - [@​aditya-rai-5](https://github.com/aditya-rai-5) made their first contribution in [#​2748](henrygd/beszel#2748) - [@​pcbeingused333](https://github.com/pcbeingused333) made their first contribution in [#​2715](henrygd/beszel#2715) - [@​duongynhi000005-oss](https://github.com/duongynhi000005-oss) made their first contribution in [#​2714](henrygd/beszel#2714) - [@​crispyaus](https://github.com/crispyaus) made their first contribution in [#​2790](henrygd/beszel#2790) - [@​rowschank](https://github.com/rowschank) made their first contribution in [#​2801](henrygd/beszel#2801) - [@​kevin9327](https://github.com/kevin9327) made their first contribution in [#​2799](henrygd/beszel#2799) - [@​Karanvir1729](https://github.com/Karanvir1729) made their first contribution in [#​2781](henrygd/beszel#2781) - [@​m1h4](https://github.com/m1h4) made their first contribution in [#​2810](henrygd/beszel#2810) - [@​ColumbusLabs](https://github.com/ColumbusLabs) made their first contribution in [#​2732](henrygd/beszel#2732) - [@​toothywalrus](https://github.com/toothywalrus) made their first contribution in [#​2812](henrygd/beszel#2812) - [@​HocVoNgThai](https://github.com/HocVoNgThai) made their first contribution in [#​2716](henrygd/beszel#2716) **Full Changelog**: <henrygd/beszel@v0.21.1...v0.21.2> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODEuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MS41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: Renovate Bot <bot@renovateapp.com> Reviewed-on: https://git.ivanch.me/ivanch/haven/pulls/47
ivanch
added a commit
to ivanch/haven
that referenced
this pull request
Nov 15, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [ghcr.io/henrygd/beszel/beszel](https://github.com/henrygd/beszel) | patch | `0.21.1` → `0.21.2` | --- ### Release Notes <details> <summary>henrygd/beszel (ghcr.io/henrygd/beszel/beszel)</summary> ### [`v0.21.2`](https://github.com/henrygd/beszel/releases/tag/v0.21.2) [Compare Source](henrygd/beszel@v0.21.1...v0.21.2) #### What's Changed - Add an actions menu with alert settings to the system detail page ([#​2803](henrygd/beszel#2803)) - Add `FAN_SENSORS` to include or exclude fan sensors ([#​2713](henrygd/beszel#2713)) - Add styled HTML alert emails ([#​2697](henrygd/beszel#2697)) - Add `no_self_update` build tag to disable hub and agent self-updates ([#​2724](henrygd/beszel#2724)) - Add warnings for missing automatic login users and trusted proxy configuration ([#​2824](henrygd/beszel#2824), [#​2812](henrygd/beszel#2812)) - Add video encode/decode engine usage to GPU metrics when using nvtop ([#​2749](henrygd/beszel#2749)) - Limit sign-in attempts to 10 per minute per address ([#​2642](henrygd/beszel#2642)) - Improve GPU collection retries and back off slow or repeatedly failing reads ([#​2705](henrygd/beszel#2705), [#​2687](henrygd/beszel#2687), [#​2709](henrygd/beszel#2709), [#​2656](henrygd/beszel#2656)) - Fix hub crashes caused by null entries in agent data ([#​2834](henrygd/beszel#2834)) - Fix agent health checks incorrectly reporting disconnected agents as healthy ([#​2825](henrygd/beszel#2825)) - Fix agent connections timing out while waiting for a slow hub ([#​2772](henrygd/beszel#2772)) - Fix container requests being canceled by requests for other systems ([#​2838](henrygd/beszel#2838)) - Fix agents being able to overwrite another system's container, service, S.M.A.R.T., or ZFS records ([#​2835](henrygd/beszel#2835)) - Fix non-admin users being able to change system users - Fix missing permission checks when moving network monitors between systems ([#​2714](henrygd/beszel#2714)) - Fix container refreshes overlapping the initial load on the All Containers page - Fix system users being overwritten when editing a system - Fix network monitors remaining on the old agent after moving to another system ([#​2739](henrygd/beszel#2739)) - Fix bulk monitor copy and import for URLs containing commas ([#​2716](henrygd/beszel#2716)) - Fix alerts not all being saved when enabling multiple alerts quickly ([#​2781](henrygd/beszel#2781)) - Fix automatic login briefly showing the login form and making redundant requests ([#​2810](henrygd/beszel#2810)) - Fix password validation on the initial setup form ([#​2744](henrygd/beszel#2744), [#​2745](henrygd/beszel#2745)) - Fix hub updates failing due to database access, working directory, or SELinux context issues ([#​2800](henrygd/beszel#2800), [#​2801](henrygd/beszel#2801), [#​2794](henrygd/beszel#2794)) - Fix historical averages including records from the previous interval ([#​2807](henrygd/beszel#2807)) - Fix failed systemd services being omitted when they have never been active ([#​2776](henrygd/beszel#2776), [#​2777](henrygd/beszel#2777)) - Fix NVMe S.M.A.R.T. data being lost when large counters exceed 64 bits ([#​2732](henrygd/beszel#2732)) - Fix degraded RAID1 arrays with remaining redundancy being reported as failed ([#​2760](henrygd/beszel#2760)) - Fix LXC memory usage incorrectly subtracting the host's ZFS ARC ([#​2767](henrygd/beszel#2767)) - Fix swap reporting on macOS ([#​2778](henrygd/beszel#2778)) - Fix container CPU counts to respect assigned CPU sets ([#​2728](henrygd/beszel#2728)) - Fix AMD GPU memory usage including GTT on devices without unified memory ([#​2715](henrygd/beszel#2715)) - Fix stale dnf5 metadata in package update checks ([#​2790](henrygd/beszel#2790)) - Fix battery data decoding with Go's experimental JSON implementation ([#​2746](henrygd/beszel#2746), [#​2748](henrygd/beszel#2748)) - Fix the agent's `-k` flag not accepting a key file path ([#​2764](henrygd/beszel#2764), [#​2765](henrygd/beszel#2765)) - Fix unreported S.M.A.R.T. power-on hours and cycles showing as zero ([#​2719](henrygd/beszel#2719)) - Update Go and Go dependencies #### New Contributors - [@​BiFangKNT](https://github.com/BiFangKNT) made their first contribution in [#​2685](henrygd/beszel#2685) - [@​metronom72](https://github.com/metronom72) made their first contribution in [#​2729](henrygd/beszel#2729) - [@​lightsabit](https://github.com/lightsabit) made their first contribution in [#​2656](henrygd/beszel#2656) - [@​cobalt-kite12](https://github.com/cobalt-kite12) made their first contribution in [#​2687](henrygd/beszel#2687) - [@​sghng](https://github.com/sghng) made their first contribution in [#​2758](henrygd/beszel#2758) - [@​aditya-rai-5](https://github.com/aditya-rai-5) made their first contribution in [#​2748](henrygd/beszel#2748) - [@​pcbeingused333](https://github.com/pcbeingused333) made their first contribution in [#​2715](henrygd/beszel#2715) - [@​duongynhi000005-oss](https://github.com/duongynhi000005-oss) made their first contribution in [#​2714](henrygd/beszel#2714) - [@​crispyaus](https://github.com/crispyaus) made their first contribution in [#​2790](henrygd/beszel#2790) - [@​rowschank](https://github.com/rowschank) made their first contribution in [#​2801](henrygd/beszel#2801) - [@​kevin9327](https://github.com/kevin9327) made their first contribution in [#​2799](henrygd/beszel#2799) - [@​Karanvir1729](https://github.com/Karanvir1729) made their first contribution in [#​2781](henrygd/beszel#2781) - [@​m1h4](https://github.com/m1h4) made their first contribution in [#​2810](henrygd/beszel#2810) - [@​ColumbusLabs](https://github.com/ColumbusLabs) made their first contribution in [#​2732](henrygd/beszel#2732) - [@​toothywalrus](https://github.com/toothywalrus) made their first contribution in [#​2812](henrygd/beszel#2812) - [@​HocVoNgThai](https://github.com/HocVoNgThai) made their first contribution in [#​2716](henrygd/beszel#2716) **Full Changelog**: <henrygd/beszel@v0.21.1...v0.21.2> </details> --- ### Configuration 📅 **Schedule**: (UTC) - Branch creation - At any time (no schedule defined) - Automerge - At any time (no schedule defined) 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate CLI](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0NC4xODEuNSIsInVwZGF0ZWRJblZlciI6IjQ0LjE4MS41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119--> --------- Co-authored-by: Renovate Bot <bot@renovateapp.com> Reviewed-on: https://git.ivanch.me/ivanch/haven/pulls/46
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📃 Description
Currently, the Working Directory of the hub updater is
/, i.e. root, because it is run as a service under /etc/systemd/system without a mentioned working directory. The updater tries tomkdir beszel_dataat root. This is incorrect, because the real target is the already existing ./beszel_data, which is at $HUB_DIR. Moreover, this execution fails when run on an immutable system.This has been reported in Bug #2800.
The systemd service creator has been provided with
WorkingDirectory=$HUB_DIRjust beforeExecStartto fix this.📖 Documentation
No documentation changes required. This addition only corrects the systemd service generated by the Beszel-Hub installer.
🪵 Changelog
➕ Added
WorkingDirectory=$HUB_DIR✏️ Changed
🔧 Fixed
/🗑️ Removed
📷 Screenshots
Not Relevant