How to update and repair with nginx version?

I have a pihole version with nginx installed so the pihole web is served with nginx on port 85 with ssl
The port 443 is also nginx for dns ssl, with certbot.
When i run pihole -up i have a:
Error: Web Admin repo is missing from system!
Please re-run install script from https://pi-hole.net
when i run a pihole -r for repair, i have changed the cache from 10000 to 20000:
[i] Resetting repository within /var/www/html/admin...... Unable to reset /var/www/html/admin, exiting installer
is there a workaround for this so we can update and repair when we have installet pihole with nginx?

Please upload a debug log and post just the token URL that is generated after the log is uploaded by running the following command from the Pi-hole host terminal:

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log

https://tricorder.pi-hole.net/RRiA1Tqr/

What is the output of ls -la /var/www/html?

drwxr-xr-x 3 www-data www-data 4096 15. Apr 13:32 .
drwxr-xr-x 3 root     root     4096  7. Apr 21:59 ..
drwxr-xr-x 7 www-data www-data 4096  8. Apr 22:07 admin
-rwxr-xr-x 1 www-data www-data   27  8. Apr 16:17 index.html
-rwxr-xr-x 1 www-data www-data 3388  7. Apr 21:59 index.lighttpd.html
-rwxr-xr-x 1 www-data www-data  612 10. Apr 12:16 index.nginx-debian.html

The permissions look correct, but I think you are affected by a recent git change.
Now, git doesn't accept top-level directories owned by someone other than the current user.

You can read the details here: Git security vulnerability announced | The GitHub Blog

To allow git to run on this directory, execute this command, then try to update again:

git config --global --add safe.directory /var/www/htlm/admin
1 Like

ah yes, i run:
git config --global --add safe.directory /var/www/html/admin
and both commands:
pihole -up
pihole -r
are working :slight_smile:

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.