From 8c149a55d71a1f5387136cd3deb95bce90d6b2bf Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Wed, 25 Feb 2026 15:09:13 +0000 Subject: [PATCH] Fix ffprobe not found by Sonarr: symlink system ffprobe to /app/sonarr/bin/ Sonarr v4 configures FFMpegCore to look for ffprobe exclusively in its own binary directory (/app/sonarr/bin/) via AppDomain.CurrentDomain.BaseDirectory. The addon already installs ffmpeg via apt (providing /usr/bin/ffprobe), but Sonarr never looks there. This init script creates a symlink so Sonarr can find the system-installed ffprobe. Fixes #2451 Co-authored-by: alexbelgium <44178713+alexbelgium@users.noreply.github.com> --- sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh diff --git a/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh b/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh new file mode 100755 index 000000000..a85702477 --- /dev/null +++ b/sonarr/rootfs/etc/cont-init.d/21-ffprobe.sh @@ -0,0 +1,12 @@ +#!/usr/bin/with-contenv bashio +# shellcheck shell=bash +set -e + +# Sonarr v4 looks for ffprobe in its own binary directory (/app/sonarr/bin/) +# via GlobalFFOptions.Configure(options => options.BinaryFolder = AppDomain.CurrentDomain.BaseDirectory) +# Symlink the system-installed ffprobe there so Sonarr can find a working copy + +if [ -f /usr/bin/ffprobe ] && [ -d /app/sonarr/bin ]; then + ln -sf /usr/bin/ffprobe /app/sonarr/bin/ffprobe + echo "Symlinked /usr/bin/ffprobe to /app/sonarr/bin/ffprobe" +fi