Conversation
…UrlBase The configure step writes UrlBase=/public-<user>/<app> into config.xml before servarr_auth_seed runs, so the prefix is live on the seed start. Unprefixed API paths then answer an empty 307, which curl -f accepts: the readiness probe passes, the host-config fetch writes an empty body, and json_decode fails with "Invalid Servarr host-config JSON", aborting the install. Add servarr_host_config_url: read UrlBase from config.xml (trailing slash stripped, empty or missing = no prefix) and build the host-config URL under it. servarr_auth_seed uses it for the probe, the fetch, the PUT and the unauthenticated check. Refs MagnaCapax#858 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
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.
Fixes the Servarr auth-seed failure (
Invalid Servarr host-config JSON) tracked in #858. Refs #858.Cause:
servarr_install_from_urlwrites<UrlBase>/public-<user>/<app></UrlBase>beforeservarr_auth_seedruns, so the prefix is live on the seed start.base_urlinservarr_auth_seedhas no prefix:curl -fsS(no-L) exits 0 on the 307, so the empty body reachesjson_decode.Change:
servarr_host_config_urlreads UrlBase fromconfig.xml(trailing slash stripped; empty, self-closing or missing UrlBase means no prefix) and builds the host-config URL under it.servarr_auth_seeduses it forbase_url, so the probe, the fetch, the PUT and the unauthenticated 401 check all go to the prefixed path.Tests:
testServarrHostConfigUrlUsesUrlBase: Radarr prefix (v3), Prowlarr prefix with trailing slash (v1), empty UrlBase,<UrlBase />, and a missing config file.testServarrAuthSeedAuthenticatesProbeReadAndWritenow extracts the helper too, and the string assertion intestServarrAuthSeedingUsesLocalApiAndFailsClosedchecks the new call.installMediaStackScriptTest.php: 55/55 pass (PHP 8.4).scripts/testing/test-bash.sh: OK.Live verification on a Pulsed Media seedbox (Debian 12) with the same one-line change in the installer: a fresh install with Sonarr, Radarr, Prowlarr, SABnzbd, Autobrr and Jellyfin (plus the #952 fix) completed. All three Servarr apps reported
app-level auth configured, and the proxied URLs redirected to the login pages. Without the change, the same install aborted withFailed to build Sonarr auth payload.🤖 Generated with Claude Code