Skip to content

autofix: fix failed systemd services on 203-media - #44

Draft
phonkd wants to merge 1 commit into
mainfrom
autofix/203-media-failed-services
Draft

autofix: fix failed systemd services on 203-media#44
phonkd wants to merge 1 commit into
mainfrom
autofix/203-media-failed-services

Conversation

@phonkd

@phonkd phonkd commented Jul 23, 2026

Copy link
Copy Markdown
Owner

Alert context

Two SystemdServiceFailed alerts on 203-media:

1. network-local-commands.service — Exit code 2/INVALIDARGUMENT

  • networking.localCommands runs ip route add ... onlink
  • The onlink keyword was placed after dev + table, which some
    iproute2 versions reject as a syntax error
  • Fix: Move onlink right after via (before dev), which is
    the portable syntax across iproute2 versions

2. prowlarr-indexers.service — Exit code 1/FAILURE

  • Nixflix oneshot that configures Prowlarr indexers via API
  • Fails when Prowlarr isn't ready yet (startup ordering)
  • Fix: Add Restart=on-failure + RestartSec=10s so transient
    API failures retry automatically (same pattern as seerr-sonarr)

Verification

  • Apply the config: deploy 203-media
  • After deploy, confirm both services are active:
    systemctl status network-local-commands.service
    systemctl status prowlarr-indexers.service
    
  • Monitor that the SystemdServiceFailed alerts clear

Related

Closes ongoing SystemdServiceFailed critical alerts on 203-media.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant