Nach updaten auf Pihole v5, zeigt das Dashboard nichts an

Aha ok... und wie mache ich das?

Um die Überprüfung auf Aktualität zu ermöglichen, hatte ich geschrieben:

Das deutet zusammengenommen nun darauf hin, dass /opt/pihole zwar aktuell ist, /usr/local/bin/pihole jedoch veraltet.

Nach Rückmeldung ist klar, dass /etc/.pihole aktualisiert wurde, dementsprechend das dort befindliche gravity.sh auch funktioniert, während /opt/pihole und /usr/local/bin/pihole veraltet sind.

Vielleicht ähnliche Symptome, aber Rockys System ist x86_64.
Eine für beide Fälle gemeinsame Lösung halte daher ich für unwahrscheinlich.

Zumal:

Das scheint hier nicht der Fall zu sein.

Einfach ein neues Topic in der FR-Kategorie aufmachen, hab's oben verlinkt.

Die Architektur sollte für alle shell scripts keine Rolle spielen, aber ich warte noch auf Rückmeldung beim anderen Thread ob das repo Verzeichnis dort ebenfalls aktuell ist. Immerhin wurde in beiden Fällen bei dem Update /opt/pihole nicht aktualisiert, was in beiden Fällen zur fehlenden gravity.db führte und in beiden Fällen zu entsprechend unvollständigem dashboard.

Bei mir sind sowohl /usr/local/bin/pihole als auch alles unter /opt/pihole veraltet.

@ MichaIng das kann ich wiederlegen, ich hab meinen backup pi angeschlossen, pihole -up durch geführt udn er hat alles ohne fehlermeldung geupdated, in der innstallation klappte auch das update der gravity.db, die hatte ich auf meine nas kopiert und dann hat er geblockt.

Wie hat das folgende dann funktioniert?

Das wird in derselben Funktion mit denselben Methoden aktualisiert :thinking:: pi-hole/automated install/basic-install.sh at 4d25f695267590b61a4061f9bb43448005d99b85 · pi-hole/pi-hole · GitHub

cd /etc/.pihole
install -o "$(id -un)" -Dm755 -t "/usr/local/bin" pihole

Klappt das bei dir fehlerfrei?


Das heißt zunächst nur dass es auf einem System geklappt hat (bei all meinen ARM und x86 Systemen hat es ebenfalls geklappt) und bei einem anderen nicht. Ob das an der Architektur oder irgendeinem Anderen von unzähligen Faktoren liegt, weiß ich nicht. Aber ich kenne mich mit Shell gut aus und was im Installer passiert hat praktisch nichts mit der Architektur zu tun, bis auf die APT/yum Paket Architekturen natürlich, aber das wäre dann ein sichtbarer e.g. dpkg Fehler.


Also so wie ich das sehe kommen wir dem ganzen am besten auf den Grund wenn der Installer mit set -x ausgeführt wird um zu sehen ob/wie die entsprechende Funktion aufgerufen wird.

sed -i '/^set -e/a\set -x' '/etc/.pihole/automated install/basic-install.sh'
pihole -r

/etc/.pihole/gravity.sh ist aktuell und legt eine gravity.db an. /opt/pihole/gravity.sh ist veraltet und bearbeitet die gravity.list. Das letztere scheint von pihole-g aufgerufen zu werden.

@MichaIng
Zum min. hier in diesem Thema hat sich herauskrstalisiert, das beim updaten auf die v5, der update vorgang nen knacks bekommt, wen er auf einem armv5l system durch geführt wird.
Auf deinem arm (welche version GENAU) und auf deinem x86 systeme war der ftl dienst bereits vorhanden und ist an der stelle nicht abgebrochen.

root@Qnap-NAS:~# sed -i '/^set -e/a\set -x' '/etc/.pihole/automated install/basic-install.sh'
root@Qnap-NAS:~# pihole -r

> ++ cat
> + DNS_SERVERS='Google (ECS);8.8.8.8;8.8.4.4;2001:4860:4860:0:0:0:0:8888;2001:4860:4860:0:0:0:0:8844
> OpenDNS (ECS);208.67.222.222;208.67.220.220;2620:119:35::35;2620:119:53::53
> Level3;4.2.2.1;4.2.2.2;;
> Comodo;8.26.56.26;8.20.247.20;;
> DNS.WATCH;84.200.69.80;84.200.70.40;2001:1608:10:25:0:0:1c04:b12f;2001:1608:10:25:0:0:9249:d69b
> Quad9 (filtered, DNSSEC);9.9.9.9;149.112.112.112;2620:fe::fe;2620:fe::9
> Quad9 (unfiltered, no DNSSEC);9.9.9.10;149.112.112.10;2620:fe::10;2620:fe::fe:10
> Quad9 (filtered + ECS);9.9.9.11;149.112.112.11;2620:fe::11;
> Cloudflare;1.1.1.1;1.0.0.1;2606:4700:4700::1111;2606:4700:4700::1001'
> + installLogLoc=/etc/pihole/install.log
> + setupVars=/etc/pihole/setupVars.conf
> + lighttpdConfig=/etc/lighttpd/lighttpd.conf
> + coltable=/opt/pihole/COL_TABLE
> + webroot=/var/www/html
> + webInterfaceGitUrl=https://github.com/pi-hole/AdminLTE.git
> + webInterfaceDir=/var/www/html/admin
> + piholeGitUrl=https://github.com/pi-hole/pi-hole.git
> + PI_HOLE_LOCAL_REPO=/etc/.pihole
> + PI_HOLE_FILES=(chronometer list piholeDebug piholeLogFlush setupLCD update version gravity uninstall webpage)
> + PI_HOLE_INSTALL_DIR=/opt/pihole
> + PI_HOLE_CONFIG_DIR=/etc/pihole
> + PI_HOLE_BIN_DIR=/usr/local/bin
> + PI_HOLE_BLOCKPAGE_DIR=/var/www/html/pihole
> + useUpdateVars=false
> + adlistFile=/etc/pihole/adlists.list
> + IPV4_ADDRESS=
> + IPV6_ADDRESS=
> + QUERY_LOGGING=true
> + INSTALL_WEB_INTERFACE=true
> + PRIVACY_LEVEL=0
> + '[' -z root ']'
> + '[' -t 0 ']'
> ++ stty size
> + screen_size='45 160'
> + printf -v rows %d 45
> + printf -v columns %d 160
> + r=22
> + c=80
> + r=22
> + c=80
> + skipSpaceCheck=false
> + reconfigure=false
> + runUnattended=false
> + INSTALL_WEB_SERVER=true
> + for var in "$@"
> + case "$var" in
> + reconfigure=true
> + [[ -f /opt/pihole/COL_TABLE ]]
> + source /opt/pihole/COL_TABLE
> ++ [[ -t 1 ]]
> +++ tput colors
> ++ [[ 8 -ge 8 ]]
> ++ COL_BOLD=''
> ++ COL_ULINE=''
> ++ COL_NC=''
> ++ COL_GRAY=''
> ++ COL_RED=''
> ++ COL_GREEN=''
> ++ COL_YELLOW=''
> ++ COL_BLUE=''
> ++ COL_PURPLE=''
> ++ COL_CYAN=''
> ++ COL_WHITE=''
> ++ COL_BLACK=''
> ++ COL_LIGHT_BLUE=''
> ++ COL_LIGHT_GREEN=''
> ++ COL_LIGHT_CYAN=''
> ++ COL_LIGHT_RED=''
> ++ COL_URG_RED=''
> ++ COL_LIGHT_PURPLE=''
> ++ COL_BROWN=''
> ++ COL_LIGHT_GRAY=''
> ++ COL_DARK_GRAY=''
> ++ TICK='[✓]'
> ++ CROSS='[✗]'
> ++ INFO='[i]'
> ++ QST='[?]'
> ++ DONE=' done!'
> ++ OVER='\r'
> + counter=0
> + [[ '' != true ]]
> + main --reconfigure
> + local 'str=Root user check'
> + printf '\n'
> 
> + [[ 0 -eq 0 ]]
> + printf '  %b %s\n' '[✓]' 'Root user check'
>   [✓] Root user check
> + show_ascii_berry
> + echo -e '
>         .;;,.
>         .ccccc:,.
>          :cccclll:.      ..,,
>           :ccccclll.   ;ooodc
>            '\''ccll:;ll .oooodc
>              .;cll.;;looo:.
>                  .. '\'','\''.
>                 .'\'',,,,,,'\''.
>               .'\'',,,,,,,,,,.
>             .'\'',,,,,,,,,,,,....
>           ....'\'''\'''\'',,,,,,,'\''.......
>         .........  ....  .........
>         ..........      ..........
>         ..........      ..........
>         .........  ....  .........
>           ........,,,,,,,'\''......
>             ....'\'',,,,,,,,,,,,.
>                .'\'',,,,,,,,,'\''.
>                 .'\'',,,,,,'\''.
>                   ..'\'''\'''\''.
> '
> 
>         .;;,.
>         .ccccc:,.
>          :cccclll:.      ..,,
>           :ccccclll.   ;ooodc
>            'ccll:;ll .oooodc
>              .;cll.;;looo:.
>                  .. ','.
>                 .',,,,,,'.
>               .',,,,,,,,,,.
>             .',,,,,,,,,,,,....
>           ....''',,,,,,,'.......
>         .........  ....  .........
>         ..........      ..........
>         ..........      ..........
>         .........  ....  .........
>           ........,,,,,,,'......
>             ....',,,,,,,,,,,,.
>                .',,,,,,,,,'.
>                 .',,,,,,'.
>                   ..'''.
> 
> + make_temporary_log
> ++ mktemp /tmp/pihole_temp.XXXXXX
> + TEMPLOG=/tmp/pihole_temp.VSYAAS
> + exec
> + rm /tmp/pihole_temp.VSYAAS
> + distro_check
> + is_command apt-get
> + local check_command=apt-get
> + command -v apt-get
> + PKG_MANAGER=apt-get
> + UPDATE_PKG_CACHE='apt-get update'
> + PKG_INSTALL=("${PKG_MANAGER}" --yes --no-install-recommends install)
> + PKG_COUNT='apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
> + APT_SOURCES=/etc/apt/sources.list
> + awk 'BEGIN{a=1;b=0}/bionic main/{a=0}/bionic.*universe/{b=1}END{exit a + b}' /etc/apt/sources.list
> + apt-get install --dry-run iproute2
> + iproute_pkg=iproute2
> + is_command php
> + local check_command=php
> + command -v php
> ++ php
> + printf '  %b Existing PHP installation detected : PHP version %s\n' '[i]' 7.3.14-1~deb10u1
>   [i] Existing PHP installation detected : PHP version 7.3.14-1~deb10u1
> ++ php
> + printf -v phpInsMajor %d 7
> ++ php
> + printf -v phpInsMinor %d 3
> + '[' 7 -ge 7 ']'
> + phpInsNewer=true
> + [[ true != true ]]
> + phpVer=php7.3
> + apt-get install --dry-run php7.3-sqlite3
> + phpSqlite=sqlite3
> + INSTALLER_DEPS=(dhcpcd5 git "${iproute_pkg}" whiptail)
> + PIHOLE_DEPS=(cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data libcap2)
> + PIHOLE_WEB_DEPS=(lighttpd "${phpVer}-common" "${phpVer}-cgi" "${phpVer}-${phpSqlite}" "${phpVer}-xml" "php-intl")
> + LIGHTTPD_USER=www-data
> + LIGHTTPD_GROUP=www-data
> + LIGHTTPD_CFG=lighttpd.conf.debian
> + [[ -f /etc/pihole/setupVars.conf ]]
> + [[ false == true ]]
> + update_dialogs
> + [[ true = true ]]
> + opt1a=Repair
> + opt1b='This will retain existing settings'
> + strAdd='You will remain on the same version'
> + opt2a=Reconfigure
> + opt2b='This will reset your Pi-hole and allow you to enter new settings.'
> ++ whiptail --title 'Existing Install Detected!' --menu '\n\nWe have detected an existing install.\n\nPlease choose from the following options: \n(You will remain on the same version)' 22 80 2 Repair 'This will retain existing settings' Reconfigure 'This will reset your Pi-hole and allow you to enter new settings.'
> + UpdateCmd=Repair
> + case ${UpdateCmd} in
> + printf '  %b %s option selected\n' '[i]' Repair
>   [i] Repair option selected
> + useUpdateVars=true
> + [[ false == true ]]
> + verifyFreeDiskSpace
> + local 'str=Disk space check'
> + local required_free_kilobytes=51200
> + local existing_free_kilobytes
> ++ df -Pk
> ++ awk '{print $4}'
> ++ grep -m1 '\/$'
> + existing_free_kilobytes=91146244
> + [[ 91146244 =~ ^([0-9])+$ ]]
> + [[ 91146244 -lt 51200 ]]
> + printf '  %b %s\n' '[✓]' 'Disk space check'
>   [✓] Disk space check
> + update_package_cache
> + local 'str=Update local cache of available packages'
> + printf '  %b %s...' '[i]' 'Update local cache of available packages'
>   [i] Update local cache of available packages...+ eval 'apt-get update'
> + printf '%b  %b %s\n' '\r' '[✓]' 'Update local cache of available packages'
>   [✓] Update local cache of available packages
> + notify_package_updates_available
> + local 'str=Checking apt-get for upgraded packages'
> + printf '\n  %b %s...' '[i]' 'Checking apt-get for upgraded packages'
> 
>   [i] Checking apt-get for upgraded packages...++ eval 'apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst || true'
> +++ apt-get -s -o Debug::NoLocking=true upgrade
> +++ grep -c '^Inst'
> + updatesToInstall=9
> ++ uname -r
> + [[ -d /lib/modules/3.16.0-10-kirkwood ]]
> + [[ 9 -eq 0 ]]
> + printf '%b  %b %s... %s updates available\n' '\r' '[✓]' 'Checking apt-get for upgraded packages' 9
>   [✓] Checking apt-get for upgraded packages... 9 updates available
> + printf '  %b %bIt is recommended to update your OS after installing the Pi-hole!%b\n\n' '[i]' '' ''
>   [i] It is recommended to update your OS after installing the Pi-hole!
> 
> + install_dependent_packages dhcpcd5 git iproute2 whiptail
> + counter=1
> + [[ 1 == 1 ]]
> + printf '  %b Installer Dependency checks...\n' '[i]'
>   [i] Installer Dependency checks...
> + declare -a installArray
> + is_command apt-get
> + local check_command=apt-get
> + command -v apt-get
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' dhcpcd5
>   [i] Checking for dhcpcd5...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' dhcpcd5
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' dhcpcd5
>   [✓] Checking for dhcpcd5
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' git
>   [i] Checking for git...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' git
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' git
>   [✓] Checking for git
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' iproute2
>   [i] Checking for iproute2...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' iproute2
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' iproute2
>   [✓] Checking for iproute2
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' whiptail
>   [i] Checking for whiptail...+ dpkg-query -W '-f=${Status}' whiptail
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' whiptail
>   [✓] Checking for whiptail
> + [[ 0 -gt 0 ]]
> + printf '\n'
> 
> + return 0
> + checkSelinux
> + local DEFAULT_SELINUX
> + local CURRENT_SELINUX
> + local SELINUX_ENFORCING=0
> + [[ -f /etc/selinux/config ]]
> + echo -e '  [i] SELinux not detected'
>   [i] SELinux not detected
> + [[ 0 -eq 1 ]]
> + [[ true == false ]]
> + installDefaultBlocklists
> + [[ -f /etc/pihole/adlists.list ]]
> + return
> + source /etc/pihole/setupVars.conf
> ++ BLOCKING_ENABLED=true
> ++ API_EXCLUDE_DOMAINS=pfclient-upload.planefinder.net,bolt.dropbox.com
> ++ API_EXCLUDE_CLIENTS=
> ++ API_QUERY_LOG_SHOW=all
> ++ API_PRIVACY_MODE=false
> ++ WEBPASSWORD=9718a6b2052a84432384872bcd820651f7b2f488dca566e8ded0f749cdb2f293
> ++ DHCP_ACTIVE=true
> ++ DHCP_START=192.168.1.80
> ++ DHCP_END=192.168.1.251
> ++ DHCP_ROUTER=192.168.1.1
> ++ DHCP_LEASETIME=2
> ++ PIHOLE_DOMAIN=fritz.box
> ++ DHCP_IPv6=true
> ++ DHCP_rapid_commit=false
> ++ PIHOLE_INTERFACE=eth0
> ++ IPV4_ADDRESS=192.168.1.111/24
> ++ IPV6_ADDRESS=2a02:8071:1b2:f100:208:9bff:fed9:232e
> ++ QUERY_LOGGING=true
> ++ INSTALL_WEB_SERVER=true
> ++ INSTALL_WEB_INTERFACE=true
> ++ LIGHTTPD_ENABLED=true
> ++ DNSMASQ_LISTENING=single
> ++ PIHOLE_DNS_1=8.8.8.8
> ++ PIHOLE_DNS_2=8.8.4.4
> ++ PIHOLE_DNS_3=2001:4860:4860:0:0:0:0:8888
> ++ PIHOLE_DNS_4=2001:4860:4860:0:0:0:0:8844
> ++ DNS_FQDN_REQUIRED=true
> ++ DNS_BOGUS_PRIV=true
> ++ DNSSEC=true
> ++ CONDITIONAL_FORWARDING=false
> + [[ -f /etc/pihole/pihole-FTL.conf ]]
> ++ sed -ne 's/PRIVACYLEVEL=\(.*\)/\1/p' /etc/pihole/pihole-FTL.conf
> + PRIVACY_LEVEL=0
> + PRIVACY_LEVEL=0
> + clone_or_update_repos
> + [[ true == true ]]
> + printf '  %b Performing reconfiguration, skipping download of local repos\n' '[i]'
>   [i] Performing reconfiguration, skipping download of local repos
> + resetRepo /etc/.pihole
> + local directory=/etc/.pihole
> + pushd /etc/.pihole
> + str='Resetting repository within /etc/.pihole...'
> + printf '  %b %s...' '[i]' 'Resetting repository within /etc/.pihole...'
>   [i] Resetting repository within /etc/.pihole......+ git reset --hard
> + chmod -R a+rX /etc/.pihole
> + printf '%b  %b %s\n' '\r' '[✓]' 'Resetting repository within /etc/.pihole...'
>   [✓] Resetting repository within /etc/.pihole...
> + popd
> + return 0
> + [[ true == true ]]
> + resetRepo /var/www/html/admin
> + local directory=/var/www/html/admin
> + pushd /var/www/html/admin
> + str='Resetting repository within /var/www/html/admin...'
> + printf '  %b %s...' '[i]' 'Resetting repository within /var/www/html/admin...'
>   [i] Resetting repository within /var/www/html/admin......+ git reset --hard
> + chmod -R a+rX /var/www/html/admin
> + printf '%b  %b %s\n' '\r' '[✓]' 'Resetting repository within /var/www/html/admin...'
>   [✓] Resetting repository within /var/www/html/admin...
> + popd
> + return 0
> + dep_install_list=("${PIHOLE_DEPS[@]}")
> + local dep_install_list
> + [[ true == true ]]
> + dep_install_list+=("${PIHOLE_WEB_DEPS[@]}")
> + install_dependent_packages cron curl dnsutils iputils-ping lsof netcat psmisc sudo unzip wget idn2 sqlite3 libcap2-bin dns-root-data libcap2 lighttpd php7.3-common php7.3-cgi php7.3-sqlite3 php7.3-xml php-intl
> + counter=2
> + [[ 2 == 1 ]]
> + printf '  %b Main Dependency checks...\n' '[i]'
>   [i] Main Dependency checks...
> + declare -a installArray
> + is_command apt-get
> + local check_command=apt-get
> + command -v apt-get
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' cron
>   [i] Checking for cron...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' cron
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' cron
>   [✓] Checking for cron
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' curl
>   [i] Checking for curl...+ dpkg-query -W '-f=${Status}' curl
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' curl
>   [✓] Checking for curl
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' dnsutils
>   [i] Checking for dnsutils...+ dpkg-query -W '-f=${Status}' dnsutils
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' dnsutils
>   [✓] Checking for dnsutils
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' iputils-ping
>   [i] Checking for iputils-ping...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' iputils-ping
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' iputils-ping
>   [✓] Checking for iputils-ping
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' lsof
>   [i] Checking for lsof...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' lsof
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' lsof
>   [✓] Checking for lsof
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' netcat
>   [i] Checking for netcat...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' netcat
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' netcat
>   [✓] Checking for netcat
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' psmisc
>   [i] Checking for psmisc...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' psmisc
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' psmisc
>   [✓] Checking for psmisc
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' sudo
>   [i] Checking for sudo...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' sudo
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' sudo
>   [✓] Checking for sudo
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' unzip
>   [i] Checking for unzip...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' unzip
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' unzip
>   [✓] Checking for unzip
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' wget
>   [i] Checking for wget...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' wget
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' wget
>   [✓] Checking for wget
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' idn2
>   [i] Checking for idn2...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' idn2
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' idn2
>   [✓] Checking for idn2
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' sqlite3
>   [i] Checking for sqlite3...+ dpkg-query -W '-f=${Status}' sqlite3
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' sqlite3
>   [✓] Checking for sqlite3
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' libcap2-bin
>   [i] Checking for libcap2-bin...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' libcap2-bin
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' libcap2-bin
>   [✓] Checking for libcap2-bin
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' dns-root-data
>   [i] Checking for dns-root-data...+ dpkg-query -W '-f=${Status}' dns-root-data
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' dns-root-data
>   [✓] Checking for dns-root-data
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' libcap2
>   [i] Checking for libcap2...+ dpkg-query -W '-f=${Status}' libcap2
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' libcap2
>   [✓] Checking for libcap2
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' lighttpd
>   [i] Checking for lighttpd...+ dpkg-query -W '-f=${Status}' lighttpd
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' lighttpd
>   [✓] Checking for lighttpd
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' php7.3-common
>   [i] Checking for php7.3-common...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' php7.3-common
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' php7.3-common
>   [✓] Checking for php7.3-common
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' php7.3-cgi
>   [i] Checking for php7.3-cgi...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' php7.3-cgi
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' php7.3-cgi
>   [✓] Checking for php7.3-cgi
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' php7.3-sqlite3
>   [i] Checking for php7.3-sqlite3...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' php7.3-sqlite3
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' php7.3-sqlite3
>   [✓] Checking for php7.3-sqlite3
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' php7.3-xml
>   [i] Checking for php7.3-xml...+ dpkg-query -W '-f=${Status}' php7.3-xml
> + grep 'ok installed'
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' php7.3-xml
>   [✓] Checking for php7.3-xml
> + for i in "$@"
> + printf '  %b Checking for %s...' '[i]' php-intl
>   [i] Checking for php-intl...+ grep 'ok installed'
> + dpkg-query -W '-f=${Status}' php-intl
> + printf '%b  %b Checking for %s\n' '\r' '[✓]' php-intl
>   [✓] Checking for php-intl
> + [[ 0 -gt 0 ]]
> + printf '\n'
> 
> + return 0
> + unset dep_install_list
> + [[ true == true ]]
> + enable_service lighttpd
> + local 'str=Enabling lighttpd service to start on reboot'
> + printf '  %b %s...' '[i]' 'Enabling lighttpd service to start on reboot'
>   [i] Enabling lighttpd service to start on reboot...+ is_command systemctl
> + local check_command=systemctl
> + command -v systemctl
> + systemctl enable lighttpd
> + printf '%b  %b %s...\n' '\r' '[✓]' 'Enabling lighttpd service to start on reboot'
>   [✓] Enabling lighttpd service to start on reboot...
> + check_service_active lighttpd
> + is_command systemctl
> + local check_command=systemctl
> + command -v systemctl
> + systemctl is-enabled lighttpd
> + LIGHTTPD_ENABLED=true
> + create_pihole_user
> + local 'str=Checking for user '\''pihole'\'''
> + printf '  %b %s...' '[i]' 'Checking for user '\''pihole'\'''
>   [i] Checking for user 'pihole'...+ id -u pihole
> + printf '%b  %b %s\n' '\r' '[✓]' 'Checking for user '\''pihole'\'''
>   [✓] Checking for user 'pihole'
> + local funcOutput
> ++ get_binary_name
> ++ local machine
> +++ uname -m
> ++ machine=armv5tel
> ++ local l_binary
> ++ local 'str=Detecting architecture'
> ++ printf '  %b %s...' '[i]' 'Detecting architecture'
> ++ [[ armv5tel == \a\r\m* ]]
> ++ local rev
> +++ uname -m
> +++ sed 's/[^0-9]//g;'
> ++ rev=5
> ++ local lib
> +++ grep -E '^\s*/lib'
> +++ ldd /bin/ls
> +++ awk '{ print $1 }'
> ++ lib=/lib/ld-linux.so.3
> ++ [[ /lib/ld-linux.so.3 == \/\l\i\b\/\l\d\-\l\i\n\u\x\-\a\a\r\c\h\6\4\.\s\o\.\1 ]]
> ++ [[ /lib/ld-linux.so.3 == \/\l\i\b\/\l\d\-\l\i\n\u\x\-\a\r\m\h\f\.\s\o\.\3 ]]
> ++ [[ -f /.dockerenv ]]
> ++ printf '%b  %b Detected ARM architecture\n' '\r' '[✓]'
> ++ binary=pihole-FTL-arm-linux-gnueabi
> ++ echo
>   [✓] Detected ARM architecture'
> + local binary
>   [✓] Detected ARM architecture'
> + local theRest
>   [✓] Detected ARM architecture'
>   [✓] Detected ARM architecture'
> + printf '\n  %b FTL Checks...\n\n' '[i]'
> 
>   [i] FTL Checks...
> 
>   [✓] Detected ARM architecture'
>   [✓] Detected ARM architecture'
> + printf '  %b Checking for existing FTL binary...\n' '[i]'
>   [i] Checking for existing FTL binary...
> + local ftlLoc
> ++ which pihole-FTL
> + ftlLoc=/usr/bin/pihole-FTL
> + local ftlBranch
> + [[ -f /etc/pihole/ftlbranch ]]
> + ftlBranch=master
> + local binary
>   [✓] Detected ARM architecture'
> + local remoteSha1
> + local localSha1
> + which dnsmasq
> + [[ ! master == \m\a\s\t\e\r ]]
> + [[ -n /usr/bin/pihole-FTL ]]
> + local FTLversion
> ++ /usr/bin/pihole-FTL tag
> + FTLversion=v5.0
> + local FTLlatesttag
> ++ curl -sI https://github.com/pi-hole/FTL/releases/latest
> ++ grep --color=never -i Location
> ++ awk -F / '{print $NF}'
> ++ tr -d '[:cntrl:]'
> + FTLlatesttag=v5.0
> + [[ v5.0 != \v\5\.\0 ]]
> + printf '  %b Latest FTL Binary already installed (%s). Confirming Checksum...\n' '[i]' v5.0
>   [i] Latest FTL Binary already installed (v5.0). Confirming Checksum...
> ++ cut -d ' ' -f 1
>   [✓] Detected ARM architecture.sha1'
> curl: (3) bad range in URL position 96:
>   [✓] Detected ARM architecture.sha1
>                                                                                                ^
> + remoteSha1=
> ++ cut -d ' ' -f 1
> +++ which pihole-FTL
> ++ sha1sum /usr/bin/pihole-FTL
> + localSha1=6d4867a677ed5409c3d2d50a9383aa5f0c3284f6
> + [[ '' != \6\d\4\8\6\7\a\6\7\7\e\d\5\4\0\9\c\3\d\2\d\5\0\a\9\3\8\3\a\a\5\f\0\c\3\2\8\4\f\6 ]]
> + printf '  %b Corruption detected...\n' '[i]'
>   [i] Corruption detected...
> + return 0
>   [✓] Detected ARM architecture'
> + local latesttag
> + local 'str=Downloading and Installing FTL'
> + printf '  %b %s...' '[i]' 'Downloading and Installing FTL'
>   [i] Downloading and Installing FTL...++ mktemp -d
> + pushd /tmp/tmp.ExFP3S7Ka3
> + install -T -m 0755 /etc/.pihole/advanced/Templates/pihole-FTL.service /etc/init.d/pihole-FTL
> + local ftlBranch
> + local url
> + [[ -f /etc/pihole/ftlbranch ]]
> + ftlBranch=master
> + local binary
>   [✓] Detected ARM architecture'
> + [[ master == \m\a\s\t\e\r ]]
> + url=https://github.com/pi-hole/ftl/releases/latest/download
>   [✓] Detected ARM architecture'
> curl: (3) bad range in URL position 98:
>   [✓] Detected ARM architecture
>                                                                                                  ^
> + popd
> + printf '%b  %b %s\n' '\r' '[✗]' 'Downloading and Installing FTL'
>   [✗] Downloading and Installing FTL
>   [✓] Detected ARM architecture' ''
>   [✓] Detected ARM architecture not found
> + return 1
> + return 1
> + printf '  %b FTL Engine not installed\n' '[✗]'
>   [✗] FTL Engine not installed
> + exit 1

Normalerweise ja, aber hier tut sie das sehr wohl:
Bei beiden OPs verwenden eine selbst-kompilierte pihole-FTL für arm5vtel, wodurch das normale Upgrade scheitert.

Ich behalte beide Topics diesbezüglich im Blick, zu dem anderen hatte ich Dich ja selbst um Hilfe gebeten. :wink:

1 Like

Formatting tip for this forum. When you paste a block of output text, it is easier to read if you format that block of text as "Preformatted text" using the </> icon on the format bar in your reply window.

3 Likes

Ahh, okay dann ergibt das auch alles einen Sinn. Entschuldige dass ich es nicht von Anfang an noch mal durchgelesen habe.

Basierend auf @Conan179 output wird tatsächlich wird das repo nach /etc/.pihole geklont aber der Installer bricht ab bevor die Skripte nach /opt/pihole und das pihole Binary von dort installiert werden.

1 Like

I'm sorry.
I don't know, this forum software is still new to me.
I apologize.

1 Like

Absolutely no need for an apology. I didn't know about this format feature when I first started here, and one of the devs pointed it out to me. It's not very obvious unless you know to look for it.

1 Like

Ich glaub ich habs: pi-hole/basic-install.sh at 4d25f695267590b61a4061f9bb43448005d99b85 · pi-hole/pi-hole · GitHub
Da ist ein Fehler im Skript, inzwischen gefixt aber noch nicht so veröffentlicht: binary, here, should be l_binary · pi-hole/pi-hole@987ae38 · GitHub

Das folgende behebt den Fehler:

sed -i 's/ binary="pihole-FTL-armel-native"/ l_binary="pihole-FTL-armel-native"/' '/etc/.pihole/automated install/basic-install.sh'
sed -i 's/ binary="pihole-FTL-arm-linux-gnueabi"/ l_binary="pihole-FTL-arm-linux-gnueabi"/' '/etc/.pihole/automated install/basic-install.sh'

Betrifft also alle ARMs nur ARM kleiner 6.

Ja, sieht danach aus, als könnte ein Update damit durchlaufen.

Dann hätten unsere OPs immer noch ein falsches Binary, aber das könnte ja dann relativ einfach ersetzt werden.

Nein.
Wenn ich das richtig lese, nur solche Architekturen, für die kein passendes Binary gefunden wurde (was hier der Fall ist).

@Conan179 und @Schultze:
Das bedeutet für euch, dass mit der von MichaIng vorgeschlagenen Änderung ein Update möglich bzw. immerhin weiter kommen sollte als jetzt. Wenn das Skript das erste mal versucht, pihole-FTL zu starten, kann es natürlich wegen der ggf. nicht passenden Architektur immer noch zum Abbruch kommen.

auser dem v7l meines reserve Pis, da lief er ohne probleme durch.

Ein pihole -r sollte das binary und alle scripts aktualisieren.

Exact, sorry eben auch schon gesehen und korrigiert. Sonst hätten wir auch eine ganze Menge mehr solcher Fehlermeldungen.

Okay soweit so gut, und in der Tat scheint es in dem anderen Thread dann ein anderes Problem zu sein, ich vermute mal ebenfalls ein abgebrochener Installer, der tut das wegen set -e nämlich nicht immer lautstark.

A post was merged into an existing topic: FTL not running / offline