-
-
Notifications
You must be signed in to change notification settings - Fork 501
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unauthenticated packages called when updating #4529
Comments
Hi, can you try following
|
EDIT: Too slow 😄. But same idea at least. Many thanks for your report. Please run the following commands and paste the full output: /boot/dietpi/func/dietpi-set_software apt-cache clean
apt update
apt upgrade It appears that you have the PHP meta packages installed, likely in combination with Ondrej's PHP repository (which DietPi-Software uses on Stretch systems to install PHP 7.3). In case this is true: dpkg -l | grep php |
|
Hi, Ondrej PHP repository key expired. Similar to this one #4219 Pls do following
|
@Joulinar
I may have to contact them as I'm not sure you can help with this issue... |
No this is a side effect of Ondrej's PHP repository. Usually @MichaIng knows how to correct this. I guess you have multiple PHP version installed at the moment. |
maybe yes, multiple versions? |
Ah nope, PHP 8.0 only, so then it's fine. Did you install Ondrej's repository manually? Or probably you uninstalled PHP some time in the past and the repository was left. However, the Pi-hole installer does not yet support PHP 8.0: The JSON module does not exist as separate package, but has been merged into the PHP core). I fixed it already, but it has not yet been released: pi-hole/pi-hole#4135 sed -i 's/ "\${phpVer}-json"//' '/etc/.pihole/automated install/basic-install.sh'
pihole -up You'll need to apply this once again for the next Pi-hole release. |
@MichaIng Below is the result of your code... I'm a noob so I don't have a lot of experience other than error messages and google...LOL
|
Maybe better to go back to PHP 7.4 @MichaIng ? |
@Joulinar |
Ah sorry space at the wrong place. Please try again: sed -i 's/ "\${phpVer}-json"//' '/etc/.pihole/automated install/basic-install.sh'
pihole -up Otherwise remove that manually from the installer script, should be easy to find. |
@MichaIng
LOL I ran the debug and found this:
Any ideas? |
Let me do a quick test, probably there is something in the AdminLTE code not PHP 8.0 compatible yet. |
Works fine here with PHP 8.0 on Stretch. Can you check webserver logs after you tried to access? journalctl -u lighttpd
cat /var/log/lighttpd/error.log |
@MichaIng
|
Ah, the FPM config is still in place. This needs to be overwritten with the CGI config: cat << '_EOF_' > /etc/lighttpd/conf-available/15-fastcgi-php.conf
# -*- depends: fastcgi -*-
# /usr/share/doc/lighttpd/fastcgi.txt.gz
# http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ConfigurationOptions#mod_fastcgi-fastcgi
## Start an FastCGI server for php (needs the php5-cgi package)
fastcgi.server += ( ".php" =>
((
"bin-path" => "/usr/bin/php-cgi",
"socket" => "/var/run/lighttpd/php.socket",
"max-procs" => 1,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "4",
"PHP_FCGI_MAX_REQUESTS" => "10000"
),
"bin-copy-environment" => (
"PATH", "SHELL", "USER"
),
"broken-scriptfilename" => "enable"
))
)
_EOF_
systemctl restart lighttpd |
@MichaIng Thanks for your quick responses!! |
Great that it works now. I'll mark this issue as closed then. Feel free to reopen if required. |
@BTW: you should think of migrating to Debian Buster as you still running Stretch. Next Debian version Bullseye will be released soon and Stretch become oldold resulting in limited support 😉 |
Yes, thinking about moving to a Pi4 w/ SSD to run my Unifi Controller, VPN, and PiHole all on one device. I'm investigating if I want to have everything on one or keep them separate as they are currently. |
VPN and Pihole did not require that much resources and should be fine to have it running on a RPi3B+. Not sure about Unifi but usually it should fit as well. As long as you did not plan to use a torrent client or anything like Nextcloud, a SSD might be oversized. Personally I'm using a 16GB USB3 stick to host my Pihole + Wireguard server. |
@Joulinar |
Well Docker is quite a heave application and you could reach your goal without as all apps are available natively on DietPi. It's way more lightweight compare running docker. |
Could I update the DietPi OS without having to reinstall everything or is it best to do a clean install? |
An upgrade worked well in all cases where we got feedback. Which software titles do you have installed? Upgrade instructions: https://dietpi.com/phpbb/viewtopic.php?p=18988#p18988 |
I have WireGuard on a regular Raspbian distro, and 2 PiHoles with DietPi. I was going to add Wireguard to one of the DietPi's and use it as both VPN and PiHole on one and free up the other two for other projects. I'm curious when talking though as to if I could transfer the settings, keys, etc from one pi to the next to keep from having to reconfigure all my devices that can access the vpn... |
Wireguard can be copied quite easily.
|
Well, that does sound easy!! |
Details:
Linux PiHole-1 4.19.66-v7+ #1253 SMP Thu Aug 15 11:49:46 BST 2019 armv7l GNU/Linux
Steps to reproduce:
Expected behaviour:
Actual behaviour:
Extra details:
Additional logs:
The text was updated successfully, but these errors were encountered: