Skip to content

Commit aa5dde5

Browse files
committed
servarr: remove SQLite dependency and fix for Bullseye
It is actually not required. They come with their embedded client library. It is actually not required. They come with their embedded library. However, on Bullseye, the latest versions are incompatible with with the system's libc version. Hence install the SQLite library there, and replace the embedded library: - https://wiki.servarr.com/lidarr/faq#lidarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version - https://wiki.servarr.com/prowlarr/faq#prowlarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version
1 parent f46772a commit aa5dde5

3 files changed

Lines changed: 13 additions & 11 deletions

File tree

.github/workflows/dietpi-software.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ do
340340
180) (( $arch == 10 || $arch == 3 )) || Process_Software 170;;
341341
188) Process_Software 17;;
342342
213) Process_Software 17 188;;
343-
106|144|145|151|183|203) Process_Software 87;;
343+
183) Process_Software 87;;
344344
31|37|128|138|163|167|187) Process_Software 152;;
345345
75) Process_Software 83 87 89;;
346346
76) Process_Software 83 88 89;;

CHANGELOG.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Bug fixes:
66
- DietPi-Update | Resolved an issue on Debian Trixie systems with ZeroTier installed, where the update from DietPi v9.17 to v9.18 updated the ZeroTier APT repo falsely, leading to an "apt update" error. Many thanks to @randell1993 for reporting this isseue: https://dietpi.com/forum/t/cannot-update-to-v9-18-due-to-zerotier/24580
77
- DietPi-Software | Jellyfin: Resolved an issue where the service start failed due to new strict space requirements for logging (512 MiB) and temporary directories (2 GiB). To support low RAM devices, we use /mnt/dietpi_userdata/jellyfin/log for log files, and a subdirectory in /mnt/dietpi_userdata/jellyfin/cache for temporary files, restoring behaviour from Jellyfin before v10.10. This can be adjusted in /etc/default/jellyfin.
88
- DietPi-Software | Node.js: Resolved an issue where usage could have failed, including Node-RED, Blynk Server, and MineOS installation, since it requires libatomic now for all architectures. Many thanks to @devifast for reporting this issue: https://dietpi.com/forum/t/24574
9+
- DietPi-Software | Lidarr/Prowlarr: Resolved an issue on Bullseye systems where the service fails due to an incompatible embedded SQLite library: https://wiki.servarr.com/lidarr/faq#lidarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version, https://wiki.servarr.com/prowlarr/faq#prowlarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version
910

1011
As always, many smaller code performance and stability improvements, visual and spelling fixes have been done, too much to list all of them here. Check out all code changes of this release on GitHub: https://github.com/MichaIng/DietPi/pull/XXXX
1112

dietpi/dietpi-software

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -651,8 +651,7 @@ Available commands:
651651
aSOFTWARE_DESC[$software_id]='Automatically download TV shows'
652652
aSOFTWARE_CATX[$software_id]=3
653653
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/bittorrent/#sonarr'
654-
aSOFTWARE_DEPS[$software_id]='87'
655-
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]+=' 150'
654+
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]='150'
656655
# - RISC-V: https://github.com/Sonarr/Sonarr/releases
657656
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
658657
#------------------
@@ -661,8 +660,7 @@ Available commands:
661660
aSOFTWARE_DESC[$software_id]='Automatically download movies'
662661
aSOFTWARE_CATX[$software_id]=3
663662
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/bittorrent/#radarr'
664-
aSOFTWARE_DEPS[$software_id]='87'
665-
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]+=' 150'
663+
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]='150'
666664
# - RISC-V: https://github.com/Radarr/Radarr/releases
667665
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
668666
#------------------
@@ -671,8 +669,7 @@ Available commands:
671669
aSOFTWARE_DESC[$software_id]='Automatically download music'
672670
aSOFTWARE_CATX[$software_id]=3
673671
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/bittorrent/#lidarr'
674-
aSOFTWARE_DEPS[$software_id]='87'
675-
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]+=' 150'
672+
(( $G_HW_ARCH == 1 )) && aSOFTWARE_DEPS[$software_id]='150'
676673
# - RISC-V: https://github.com/Lidarr/Lidarr/releases
677674
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,11]=0
678675
#------------------
@@ -707,7 +704,6 @@ Available commands:
707704
aSOFTWARE_DESC[$software_id]='Indexer manager & proxy for PVR'
708705
aSOFTWARE_CATX[$software_id]=3
709706
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/bittorrent/#prowlarr'
710-
aSOFTWARE_DEPS[$software_id]='87'
711707
# - ARMv6
712708
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
713709
# - RISC-V: https://github.com/Prowlarr/Prowlarr/releases
@@ -718,7 +714,6 @@ Available commands:
718714
aSOFTWARE_DESC[$software_id]='Ebook and audiobook collection manager'
719715
aSOFTWARE_CATX[$software_id]=3
720716
aSOFTWARE_DOCS[$software_id]='https://dietpi.com/docs/software/bittorrent/#readarr'
721-
aSOFTWARE_DEPS[$software_id]='87'
722717
# - ARMv6
723718
aSOFTWARE_AVAIL_G_HW_ARCH[$software_id,1]=0
724719
# - RISC-V: https://github.com/Readarr/Readarr/releases
@@ -9850,7 +9845,7 @@ _EOF_
98509845
if (( $G_HW_ARCH != 1 ))
98519846
then
98529847
case $G_DISTRO in
9853-
6) aDEPS+=('libicu67');;
9848+
6) aDEPS+=('libicu67' 'libsqlite3-0');;
98549849
7) aDEPS+=('libicu72');;
98559850
*) aDEPS+=('libicu76');;
98569851
esac
@@ -9875,6 +9870,9 @@ _EOF_
98759870
fi
98769871
Download_Install "$url"
98779872

9873+
# Bullseye: Use system SQLite library: https://wiki.servarr.com/lidarr/faq#lidarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version
9874+
(( $G_DISTRO < 7 )) && G_EXEC ln -sf /usr/lib/*/libsqlite3.so.0 Lidarr/libe_sqlite3.so
9875+
98789876
# Install: Remove previous instance on reinstall
98799877
[[ -d '/opt/lidarr' ]] && G_EXEC rm -R /opt/lidarr
98809878
G_EXEC mv Lidarr /opt/lidarr
@@ -10194,7 +10192,7 @@ _EOF_
1019410192
then
1019510193
# .NET dependency: https://github.com/dotnet/docs/blob/main/docs/core/install/linux-debian.md#dependencies
1019610194
case $G_DISTRO in
10197-
6) aDEPS=('libicu67');;
10195+
6) aDEPS=('libicu67' 'libsqlite3-0');;
1019810196
7) aDEPS=('libicu72');;
1019910197
*) aDEPS=('libicu76');;
1020010198
esac
@@ -10208,6 +10206,9 @@ _EOF_
1020810206
local fallback_url="https://github.com/Prowlarr/Prowlarr/releases/download/v2.0.5.5160/Prowlarr.master.2.0.5.5160.linux-core-$arch.tar.gz"
1020910207
Download_Install "$(curl -sSfL 'https://api.github.com/repos/Prowlarr/Prowlarr/releases/latest' | mawk -F\" "/^ *\"browser_download_url\": \".*linux-core-$arch\.tar\.gz\"$/{print \$4}")"
1021010208

10209+
# Bullseye: Use system SQLite library: https://wiki.servarr.com/prowlarr/faq#prowlarr-wont-start-on-debian-11-or-older-systems-due-to-sqlite-version
10210+
(( $G_DISTRO < 7 )) && G_EXEC ln -sf /usr/lib/*/libsqlite3.so.0 Prowlarr/libe_sqlite3.so
10211+
1021110212
# Install: Remove previous instance on reinstall
1021210213
[[ -d '/opt/prowlarr' ]] && G_EXEC rm -R /opt/prowlarr
1021310214
G_EXEC mv Prowlarr /opt/prowlarr

0 commit comments

Comments
 (0)