autofix: fix failed systemd services on 203-media - #44
Draft
phonkd wants to merge 1 commit into
Draft
Conversation
Two fixes for failing systemd units on 203-media:
1. network-local-commands.service (networking.localCommands)
- Exit code 2/INVALIDARGUMENT from 'ip route add ... onlink'
- Move 'onlink' keyword right after the 'via' address (before
'dev'), which is the more portable syntax across iproute2
versions. Some versions parse 'onlink' as a route flag that
must precede the device name.
2. prowlarr-indexers.service (nixflix Prowlarr indexer config)
- Exit code 1/FAILURE — API call to Prowlarr fails when the
service isn't ready yet
- Add Restart=on-failure + RestartSec=10s so the oneshot retries
on transient startup-order failures, matching the existing
seerr-sonarr pattern.
Fixes firing SystemdServiceFailed alerts on 203-media.
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.
Alert context
Two SystemdServiceFailed alerts on 203-media:
1.
network-local-commands.service— Exit code 2/INVALIDARGUMENTnetworking.localCommandsrunsip route add ... onlinkonlinkkeyword was placed afterdev+table, which someiproute2 versions reject as a syntax error
onlinkright aftervia(beforedev), which isthe portable syntax across iproute2 versions
2.
prowlarr-indexers.service— Exit code 1/FAILURERestart=on-failure+RestartSec=10sso transientAPI failures retry automatically (same pattern as
seerr-sonarr)Verification
deploy 203-mediaRelated
Closes ongoing SystemdServiceFailed critical alerts on 203-media.