[BUG] - Sonarr & Radarr - xq command not found
Application Sonarr / Radarr
Host platform Unraid
Script https://github.com/RandomNinjaAtk/arr-scripts/blob/main/sonarr/scripts_init.bash
Script Version Please provide the script version number
Describe the bug Something in the scripts_init is buggy. Some package is missing and causes error logs.
To Reproduce Steps to reproduce the behavior: Just use the script.
Expected behavior No error logs.
Logs/Screenshots
[custom-init] scripts_init.bash: executing...
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com
[custom-init] scripts_init.bash: exited 0
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 22: xq: command not found
2025-01-27 13:48:06 :: AutoExtras :: 1.6 :: Script starting...
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 28: xq: command not found
2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Script is not enabled, enable by setting enableRecyclarr to "true" by modifying the "/config/extended.conf" config file...
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 28: xq: command not found
2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Sleeping (infinity)
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found
Seems to belong to DailySeriesEpisodeTrimmer.bash.
Edit: the same for Radarr and Extras.bash:
This indicates the setup script didn't run properly... Because your missing packages that are installed via the setup process...
You need to resolve this error:
0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com
Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest
What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq
Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest
What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq
Thats neat, but does not resolve the issue, the problem is something else with the users configuration as the container is getting an error when trying to connect to github... Either way this is not reproducible...
BTW for a month I faced too GH access problem with app based on python:3.9.2-slim-buster. From host OS everything is good. I'am starting to suspect something within Docker.
(Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7a0cf2bf10>: Failed to resolve 'api.github.com' ([Errno -5] No address associated with hostname)"))