guidol Posted May 15, 2019 Share Posted May 15, 2019 Yesterday i did install Armbian_5.86_Aml-s905_Debian_buster_default_5.1.0_20190514.img from @balbes150 on my Sunvell T95KPro (S912). While installing Pihole the Installation does break when trying to start lighttpd. After checking with journalctl -u lighttpd it turns out that the file /usr/share/lighttpd/create-mime.assign.pl is missing, because in the newer lighttpd-version of debian buster the file has be renamed to /usr/share/lighttpd/create-mime.conf.pl (see also https://discourse.pi-hole.net/t/lighttpd-does-not-start/6207/11 ) Pihole doesnt know/use the new name with debian buster, so it fails to start the lighttpd So I did find 2 ways to resolve the problem. First (quick and dirty?) way: cp /usr/share/lighttpd/create-mime.conf.pl /usr/share/lighttpd/create-mime.assign.pl or ln -s /usr/share/lighttpd/create-mime.conf.pl /usr/share/lighttpd/create-mime.assign.pl read also:Pihole breaks lighttpd on Debian Buster #2557 https://github.com/pi-hole/pi-hole/issues/2557 the second way (found it at https://forum.kuketz-blog.de/viewtopic.php?t=3067 ) is to edit /etc/lighttpd/lighttpd.conf and search for the 2 following lines and comment them out (found the 2nd one at the end of the file): #include_shell "/usr/share/lighttpd/create-mime.assign.pl" #include_shell "cat external.conf 2>/dev/null" and add the follwoing line to the file: include_shell "/usr/share/lighttpd/create-mime.conf.pl" After saving the file you should be able to restart lighttpd via sudo /etc/init.d/lighttpd restart or sudo service lighttpd restart or sudo service lighttpd stop sudo service lighttpd start BUT second way does not work good with updating or repair-install of pihole, because I think this will set the config-file to the old state (also for server.error-handler-404) So maybe the first way will work better while pihole doenst know the new file-name - or you also can do both ways BTW: If you are experience a 400 Bad Request while only using the IP for getting to the Pihole-Webpage (and the redirect should ask you if you want to use the /admin page - but it doenst) then try the follwing small resolution - edit a line in the file /etc/lighttpd/lighttpd.conf from: server.error-handler-404 = "pihole/index.php" to: server.error-handler-404 = "/pihole/index.php" lighttpd.conf 2 Link to comment Share on other sites More sharing options...
renedis Posted June 19, 2019 Share Posted June 19, 2019 There is a new update from PiHole that should fix this issue. Link to comment Share on other sites More sharing options...
Dan M Posted July 2, 2019 Share Posted July 2, 2019 (edited) On 6/19/2019 at 6:54 AM, renedis said: There is a new update from PiHole that should fix this issue. Although it (v.4.3.1) has been cited as fixing this issue I am still getting this error after a clean install 4.3.1. Strange. Edited July 2, 2019 by Dan M Link to comment Share on other sites More sharing options...
guidol Posted July 26, 2019 Author Share Posted July 26, 2019 -deleted- Link to comment Share on other sites More sharing options...
guidol Posted July 26, 2019 Author Share Posted July 26, 2019 On 7/2/2019 at 12:49 PM, Dan M said: Although it (v.4.3.1) has been cited as fixing this issue I am still getting this error after a clean install 4.3.1. Strange. Today I gave buster a new try with pihole on my T95K Pro S912 TVBox. I compiled a actual version of debian buster for it (thanks to @balbes150): Debian Buster with Armbian Linux 5.3.0-rc1-next-20190726-aml-s912 package bsp-kernel[5.91] dtb[5.91] firmware[5.91] config[5.91] and started the pihole install via: curl -sSL https://install.pi-hole.net | bash The installation didnt broke like before with debian buster (no problem with lighttpd). In the middle of the installation I did get the following error-message between the installation-messages: [i] Backing up /etc/dnsmasq.conf to /etc/dnsmasq.conf.old iptables/1.8.2 Failed to initialize nft: Protocol not supported iptables/1.8.2 Failed to initialize nft: Protocol not supported Installation went fine, but I did search for the error and found the following page:https://gist.github.com/nickfox-taterli/fcddd0ac724ec066b51f8e777800fea2 The is listed that buster has as default now nftables and not xtables. The problem can be fixed with the following commands: sudo update-alternatives --set iptables /usr/sbin/iptables-legacy sudo update-alternatives --set ip6tables /usr/sbin/ip6tables-legacy This will set some new symbolic links ( to other symbolic links ) : ls -l /etc/alternatives/iptables lrwxrwxrwx 1 root root 25 Jul 26 15:42 /etc/alternatives/iptables -> /usr/sbin/iptables-legacy ls -l /usr/sbin/iptables-legacy lrwxrwxrwx 1 root root 20 Mar 1 15:28 /usr/sbin/iptables-legacy -> xtables-legacy-multi ls -l /etc/alternatives/ip6tables lrwxrwxrwx 1 root root 26 Jul 26 15:42 /etc/alternatives/ip6tables -> /usr/sbin/ip6tables-legacy ls -l /usr/sbin/ip6tables-legacy lrwxrwxrwx 1 root root 20 Mar 1 15:28 /usr/sbin/ip6tables-legacy -> xtables-legacy-multi Version is 4.3.1 (like the Pihole-team said the fixed the buster lighttpd problem): Pi-hole Version v4.3.1 Web Interface Version v4.3 FTL Version v4.3.1 But now it seems to work with buster BTW: for the redirect to the /admin page (400 Bad Request before) I also had to edit /etc/lighttpd/lighttpd.conf like before Link to comment Share on other sites More sharing options...
guidol Posted September 12, 2019 Author Share Posted September 12, 2019 Today I did test to install pihole 4.3.1 on a Odroid C2 with Debian Buster with Armbian Linux 5.3.0-rc8-meson64 package bsp-kernel[5.96] u-boot[5.96] dtb[5.96] firmware[5.96] config[5.96] The installer did quit while setting up php (serveral times) So I did a apt upgrade and apt did complete to install 9 packages (including php). After that I restarted the pihole installer - he did found the php-installation and did install pihole FTLL an so on... and completed the installation successfully Link to comment Share on other sites More sharing options...
guidol Posted September 16, 2019 Author Share Posted September 16, 2019 Pihole Core update to 4.3.2 https://github.com/pi-hole/pi-hole/releases also fixed: - Fix for 404 error when browsing to http://pi.hole/ (without /admin) #2826 Link to comment Share on other sites More sharing options...
guidol Posted January 20, 2020 Author Share Posted January 20, 2020 On 9/12/2019 at 1:14 PM, guidol said: The installer did quit while setting up php (serveral times) So I did a apt upgrade and apt did complete to install 9 packages (including php). After that I restarted the pihole installer - he did found the php-installation and did install pihole FTLL an so on... and completed the installation successfully Yesterday pihole 5.0 Beta was announced https://pi-hole.net/2020/01/19/announcing-a-beta-test-of-pi-hole-5-0/ As a test-device I took a NanoPi K1 Plus where I installed armbian bullseye kernel 5.5.0-rc6 and installed pihole 4.3.2 bullseye needs the same apt upgrade and second install restart, but installs pihole 4.3.2 successfully after the 4.3.2 installation I could update to the 5.0 Beta with echo "release/v5.0" | sudo tee /etc/pihole/ftlbranch pihole checkout core release/v5.0 pihole checkout web release/v5.0 5.0 Beta is now running on my test-system Link to comment Share on other sites More sharing options...
guidol Posted April 19, 2020 Author Share Posted April 19, 2020 On 9/12/2019 at 1:14 PM, guidol said: The installer did quit while setting up php (serveral times) So I did a apt upgrade and apt did complete to install 9 packages (including php). After that I restarted the pihole installer - he did found the php-installation and did install pihole FTLL an so on... and completed the installation successfully additional information from another thread about dependencies: Link to comment Share on other sites More sharing options...
guidol Posted May 16, 2020 Author Share Posted May 16, 2020 Pi-hole 5.0 is out of the BETA-Phase ! and has NO PROBLEMS to be installed on armbian focal ( System diagnosis information has been uploaded to http://ix.io/2mgt ) Just use: sudo apt install php-cgi php-common php php-sqlite3 -y && curl -sSL https://install.pi-hole.net | bash Pi-hole v5.0 is here! (2020-05-10 ) see: https://pi-hole.net/2020/05/10/pi-hole-v5-0-is-here/#page-content After a successful beta testing and development period (many thanks to the beta testers!), we are pleased to announce the release of 5.0 for general availability! Important notice (One-way-ticket) There are many fundamental changes between Pi-hole 4.x and 5.0 – as such, this is strictly a one way operation. Once you move from 4.x to 5.0, there is no way to go back; you will need to restore from a backup. Pi-hole 4.x to 5.0 To update to this new version from version 4.x, run pihole -up Pi-hole 5.0 BETA to new 5.0 release: If you have been running the 5.0 beta release, run pihole checkout master to move from the beta to the master branch. 1 Link to comment Share on other sites More sharing options...
Recommended Posts