Closed janstenpickle closed 2 years ago
Came to report this. It started after the zlib update for 21.11, however on the unstable channel it works again. This suggests that some other library hasn't been updated for 21.11 (though I'm struggling to find it because both mono and radarr don't seem to have any recent updates in either branch).
The same issue seems to affect prowlarr. It might affect other *arr as well.
Edit: Looks like updating to master doesn't fix prowlarr. Maybe this is because it is using dotnet core instead of mono. I'll investigate more later.
Looks like arr services like to use the latest dotnet core versions. Since they seem to only test with and use dotnet I think we should stick with that. Converting the arr services to use dotnet-runtime should keep it up to date.
Edit: mono support was dropped https://github.com/Radarr/Radarr/commit/cc572729ff0ce6585f6737c5e4dbd692c2b18fa6
@illiusdope radarr does not work for me in nixos-unstable.
ok some progress I think. The following two seem to work correctly in nixos 21.11 (and probably unstable as well)
Nevermind. prowlarr and radarr both seem to work except when executed by the nixos module for some reason
If I try these, I get some certificate errors but it at least serves the webpages.
nix-shell --pure -p prowlarr --run Prowlarr
nix-shell --pure -p radarr --run Radarr
Not why it isn't already included somehow but adding zlib to LD_LIBRARY_PATH seems to fix it for me. After someone else confirms it works for them, I'll open a PR. I also set it to use latest dotnet-runtime
instead of the 3.1 runtime since upstream seems to test on the latest.
nixpkgs.overlays = [
(final: prev: {
radarr = prev.radarr.overrideAttrs (old: rec {
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/${old.pname}-${old.version}}
cp -r * $out/share/${old.pname}-${old.version}/.
makeWrapper "${final.dotnet-runtime}/bin/dotnet" $out/bin/Radarr \
--add-flags "$out/share/${old.pname}-${old.version}/Radarr.dll" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
final.curl final.sqlite final.libmediainfo final.mono final.openssl final.icu final.zlib ]}
runHook postInstall
'';
});
prowlarr = prev.prowlarr.overrideAttrs (old: {
installPhase = ''
runHook preInstall
mkdir -p $out/{bin,share/${old.pname}-${old.version}}
cp -r * $out/share/${old.pname}-${old.version}/.
makeWrapper "${final.dotnet-runtime}/bin/dotnet" $out/bin/Prowlarr \
--add-flags "$out/share/${old.pname}-${old.version}/Prowlarr.dll" \
--prefix LD_LIBRARY_PATH : ${lib.makeLibraryPath [
final.curl final.sqlite final.libmediainfo final.mono final.openssl final.icu final.zlib ]}
runHook postInstall
'';
});
})
];
I can confirm that @GoogleBot42's fix works for me as well
FWIW I just dropped this in my configuration:
systemd.services.prowlarr.environment.LD_LIBRARY_PATH="${lib.getLib pkgs.zlib}/lib"
Good enough until we have a fix in nixos.
Thank you for the temporary fix @GoogleBot42.
For those who are waiting it out until a solution is merged, don't forget to stop radarr.serivce, otherwise stuff like bazarr will not fully function or exit out.
Confirmed that @GoogleBot42's fix works in a Nix container too. Thank you @GoogleBot42!
the fix is now merged in master
seems fixed, closing the issue
Describe the bug
On Nixos, the current version of Radarr (
4.0.5.5981
) fails to accept or make HTTP requests due to a missing (I think) Dotnet dependency (liblibSystem.IO.Compression.Native
).Making requests without compression enabled does work, however search inside of Radarr doesn't as the Dotnet HTTP seems to also depend on Zlib.
Steps To Reproduce
Steps to reproduce the behavior:
services.radar...
optionsservices.radar.openFirewall
is set totrue
<hostname>:7878
radarr.service
Expected behavior
Radarr should be able to respond to and make HTTP requests with zlib compression enabled.
Screenshots
Technically not a screenshot, but a stacktrace
Additional context
I tried both inside and outside of a Nix container, which yielded the same result.
Notify maintainers
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.