Hi!
Ich habe auf Pi-Hole v5 ge-updated und habe nur Ärger damit.
Ich habe keine Lust ca. 4000 domains einzeln unter Admin-panel @ Blacklist einzugetragen.
Ich fand es bei Pi-Hole v4 einfacher, einfach in die blacklist.list eintragen und man hatte Ruhe.
Außerdem kann ich nicht in die Pi-Hole v5 Database schreiben.
Ich hatte das immer alles manuell unter /etc/pihole gemacht, mit v5 geht es
nicht mehr wegen dieser blöden Database.
Gibt es einen Befehl unter v5 um meine blacklist komplett manuell zu importieren?
Dazu kannst du dir ein Skript zusammenbasteln, dass per SQL die Einträge aus einer Datei in die Datenbank importiert. Allerdings wird das fehlschlagen, da dein Grundproblem ja noch nicht behoben ist:
Du soll dir überlegen, ob es sinnvoll ist, 4000 Einträge in der Blacklist zu haben, oder ob davon nicht 3999 durch Adlisten bereits abgedeckt werden.
Der best Weg für dich (wenn du in die Datenbank schreiben kannst) ist sicherlich, die Domains als *.txt file irgendwo auf dem Device abzulegen und dann als Adlist zu importieren. Adresse wäre dann z.B.
file:///home/nanopi/blacklist_manuell.txt
@ yubiuser,
ich habe bereits eine blacklist.txt von Pi-Hole V4 noch. Diese würde ich gerne
weiter benutzen.
Wie ich bereits erwähnte, kann ich nicht in die Pi-Hole Database schreiben
und es ist nicht ersichtlich in welche Datei Pi-Hole reinschreiben will.
Siehe Lighttpd error.log
> (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly database in /var/www/html/admin/scripts/pi-hole/php/groups.php on line 265
Jedes mal wenn ich in die Database reinschreiben möchte, erscheint dieser Fehler.
Ich habe schon alles Mögliche ausprobiert, siehe meinen Thread hier:
Hi!
Ich habe auf Pi-Hole v5 ge-updated und habe nur Ärger damit.
Ich habe keine Lust ca. 4000 domains einzeln unter Admin-panel @ Blacklist einzugetragen.
Ich fand es bei Pi-Hole v4 einfacher, einfach in die blacklist.list eintragen und man hatte Ruhe.
Außerdem kann ich nicht in die Pi-Hole v5 Database schreiben.
Ich hatte das immer alles manuell unter /etc/pihole gemacht, mit v5 geht es
nicht mehr wegen dieser blöden Database.
Gibt es einen Befehl unter v5 um meine blacklist komplett man…
Es muss doch irgendwas mit den Zugriffsrechten zu tun haben. Ich kann mir
das sonst nicht erklären.
Ansonsten läuft Pi-Hole V5 mit https aktiviert in Lighttpd, Blocking funzt, Stats funzt.
Alles nur kein schreiben in die Database über das Pi-Hole Admin-Panel möglich.
Vielleicht kannst du mir ja weiter helfen, (evtl. per PM schreiben) wäre sehr dankbar dafür denn
im englisch-sprachigen Pi-Hole Forum will man mir nicht mehr weiter helfen
da meine Lighttpd config von den Default Einstellungen von Pi-Hole.net
abweicht.
Ich überlege schon mein Pi-Hole V4 Backup raus zu suchen und das wieder einzuspielen, damit
lief es wenigstens rund.
Grüße!
Da das Skript in groups.php
liegt gehe ich davon aus, dass es sich um /etc/pihole/gravity.db
handelt.
Was hast du denn geändert?
Du kannst einfach mal ganz hart folgendes machen.
sudo service pihole-FTL stop
sudo mv /etc/pihole/gravity.db /etc/pihole/gravity_old.db
sudo service pihole-FTL start
pihole -g
Habe ich soeben gemacht.
komische Dateien in /etc/pihole danach
sed1Hoc5z
sedw6IYYJ
lighttpd error:
2020-05-28 13:30:32: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly database in /var/www/html/admin/scripts/pi-hole/php/groups.php on line 729
-rw-rw-r-- 1 pihole pihole 49M Mai 26 19:42 gravity.db
pihole -g über's Terminal funzt und Pi-Hole schreibt in die Database.
Übers Admin-Panel im Browser geht es immer nocht nicht.
Es kann doch nicht am https welches ich in Lighttpd aktiviert habe.
Komme ja auf Pi-Hole in meinem Web-Browser drauf. Ad-Blocking funzt auch sowie Stats. Alles wird richtig angezeigt.
Ist doch richtig so in "/etc/group?
www-data:x:33:pihole
pihole:x:999:www-data
Muss hier noch was hinzugefügt werden?
lighttpd:x:1002:
evtl.? lighttpd:x:1002:www-data:pi-hole ?
Kannst du mal bei dir in der group Datei nachschauen?
Grüße!
2020-05-28 15:49:40: (server.c.2059) server stopped by UID = 0 PID = 1
2020-05-28 15:50:00: (server.c.1464) server started (lighttpd/1.4.53)
2020-05-28 18:32:25: (mod_fastcgi.c.421) FastCGI-stderr: PHP Warning: SQLite3Stmt::execute(): Unable to execute statement: attempt to write a readonly database in /var/www/html/admin/scripts/pi-hole/php/groups.php on line 610
Ich habe gerade https aus meiner lighttpd.conf entfernt und die Default-Einstellungen verwendet.
Das gleiche Problem mit der Database, speichern über Pi-Hole Admin-Panel geht nicht, speichern geht nur über Terminal in die Pi-Hole Database.
Siehe hier:
sudo pihole --wild startpage.com
[i] Adding (^|.)startpage.com$ to the regex blacklist...
[✓] Reloading DNS lists
startpage.com wird unter Blacklist unter Pi-Hole Admin-Panel angezeigt.
nanopi@nanopi:~$ groups pihole
pihole : pihole www-data
nanopi@nanopi:~$ groups www-data
www-data : www-data pihole
nanopi@nanopi:~$ ls -la /etc/pihole/
total 234844
drwxrwxr-x 2 pihole pihole 4096 Mai 28 20:17 .
drwxr-xr-x 94 root root 4096 Mai 26 20:33 ..
-rw-r--r-- 1 root root 276 Mai 12 20:02 adlists.list
-rw-r--r-- 1 root root 515 Mai 27 13:27 custom.list
-rw-r--r-- 1 pihole pihole 0 Mai 27 13:27 dhcp.leases
-rw-r--r-- 1 root root 596 Mai 26 20:33 dns-servers.conf
-rw-r--r-- 1 root root 16 Mai 17 19:53 ftlbranch
-rw-r--r-- 1 root root 14 Mai 28 12:36 GitHubVersions
-rw-rw-r-- 1 pihole pihole 22171648 Mai 27 13:12 gravity.db
-rw-r--r-- 1 root root 4497925 Jan 19 04:30 gravity.list
-rw-r--r-- 1 root root 1051 Mai 26 20:33 install.log
-rw-r--r-- 1 root root 1139586 Mai 26 20:33 list.0.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 412413 Mai 26 20:33 list.1.sysctl.org.domains
-rw-r--r-- 1 root root 1477573 Mai 26 20:33 list.2.gitlab.com.domains
-rw-r--r-- 1 root root 2295 Mai 26 20:33 list.3.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 289047 Mai 26 20:33 list.4.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 9671 Mai 26 20:33 list.5.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 22384 Mai 26 20:33 list.6.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 20810 Mai 26 20:33 list.7.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 3416569 Mai 26 20:33 list.8.www.github.developerdan.com.domains
-rw-r--r-- 1 root root 1077859 Mai 26 20:33 list.9.raw.githubusercontent.com.domains
-rw-r--r-- 1 root root 43 Mai 28 20:10 localbranches
-rw-r--r-- 1 root root 33 Mai 26 20:33 local.list
-rw-r--r-- 1 root root 48 Mai 28 20:10 localversions
-rw-r--r-- 1 root root 234 Mai 26 20:33 logrotate
-rw-r--r-- 1 pihole pihole 2465792 Mai 26 20:33 macvendor.db
-rw-rw-r-- 1 pihole root 203 Mai 26 20:33 pihole-FTL.conf
-rw-r--r-- 1 pihole pihole 203382784 Mai 28 20:17 pihole-FTL.db
-rw-r--r-- 1 root root 505 Mai 26 20:33 setupVars.conf
-rw-r--r-- 1 root root 505 Mai 26 20:33 setupVars.conf.update.bak
nanopi@nanopi:~$ cat /etc/group
root:x:0:
daemon:x:1:
bin:x:2:
sys:x:3:
adm:x:4:
tty:x:5:nanopi
disk:x:6:nanopi
lp:x:7:
mail:x:8:
news:x:9:
uucp:x:10:
man:x:12:
proxy:x:13:
kmem:x:15:
dialout:x:20:nanopi
fax:x:21:
voice:x:22:
cdrom:x:24:
floppy:x:25:
tape:x:26:
sudo:x:27:nanopi
audio:x:29:nanopi
dip:x:30:
www-data:x:33:pihole
backup:x:34:
operator:x:37:
list:x:38:
irc:x:39:
src:x:40:
gnats:x:41:
shadow:x:42:
utmp:x:43:
video:x:44:nanopi
sasl:x:45:
plugdev:x:46:nanopi
staff:x:50:
games:x:60:nanopi
users:x:100:nanopi
nogroup:x:65534:
systemd-journal:x:101:nanopi
systemd-timesync:x:102:
systemd-network:x:103:
systemd-resolve:x:104:
input:x:105:nanopi
kvm:x:106:
render:x:107:
crontab:x:108:
netdev:x:109:nanopi
ntp:x:110:
messagebus:x:111:
sunxi-fel:x:112:
avahi-autoipd:x:113:
ssh:x:114:nanopi
systemd-coredump:x:999:
nanopi:x:1000:
pihole:x:998:www-data
unbound:x:115:
bei mir:
$ groups pihole
pihole : pihole www-data
$ groups www-data
www-data : www-data pihole
$ ls -la /etc/pihole/
> total 69308
> drwxrwxr-x 3 pihole pihole 4096 Mai 28 21:01 .
> drwxr-xr-x 145 root root 16384 Mai 28 10:56 ..
> -rw-r--r-- 1 root root 112872 Mai 20 17:08 black.list
> -rw-r--r-- 1 root root 0 Mai 28 13:24 custom.list
> -rw-r--r-- 1 pihole pihole 0 Mai 28 19:38 dhcp.leases
> -rw-r--r-- 1 root root 604 Mai 28 12:15 dns-servers.conf
> -rw-r--r-- 1 root root 14 Mai 28 17:40 GitHubVersions
> -rw-rw-r-- 1 pihole pihole 51052544 Mai 28 18:58 gravity.db
> -rw-r--r-- 1 root root 1051 Mai 26 18:22 install.log
> -rw-r--r-- 1 root root 4745136 Mai 26 19:42 list.0.adblock.mahakala.is.domains
> -rw-r--r-- 1 root root 594591 Mai 26 19:42 list.10.mirror1.malwaredomains.com.domains
> -rw-r--r-- 1 root root 412413 Mai 26 19:42 list.11.sysctl.org.domains
> -rw-r--r-- 1 root root 0 Mai 28 13:18 list.12.zeustracker.abuse.ch.domains
> -rw-r--r-- 1 root root 54921 Mai 28 13:18 list.13.pgl.yoyo.org.domains
> -rw-r--r-- 1 root root 43530 Mai 28 13:18 list.14.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 78124 Mai 28 13:18 list.15.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 0 Mai 28 13:18 list.16.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 51959 Mai 28 13:18 list.17.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 287285 Mai 28 13:18 list.18.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 53129 Mai 28 13:18 list.19.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 2039381 Mai 28 13:18 list.1.www.dshield.org.domains
> -rw-r--r-- 1 root root 15720 Mai 28 13:18 list.20.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 1077859 Mai 28 13:18 list.22.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 5695 Mai 28 13:18 list.23.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 556647 Mai 28 13:18 list.24.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 2305 Mai 28 13:18 list.25.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 54789 Mai 28 13:18 list.26.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 197940 Mai 28 13:18 list.27.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 38337 Mai 28 13:18 list.28.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 128371 Mai 28 13:18 list.29.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 31661 Mai 28 13:18 list.2.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 257155 Mai 28 13:18 list.30.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 12505 Mai 28 13:18 list.31.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 557744 Mai 28 13:18 list.32.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 1076162 Mai 28 13:18 list.33.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 43530 Mai 28 13:18 list.34.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 44068 Mai 28 13:18 list.35.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 28 Mai 28 13:18 list.36.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 521 Mai 28 13:18 list.37.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 40246 Mai 28 13:18 list.38.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 52748 Mai 28 13:18 list.39.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 48060 Mai 28 13:18 list.3.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 19470 Mai 28 13:18 list.40.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 31661 Mai 28 13:18 list.41.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 364 Mai 28 13:18 list.42.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 48060 Mai 28 13:18 list.43.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 1503 Mai 28 13:18 list.44.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 199544 Mai 28 13:18 list.45.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 22125 Mai 28 13:18 list.46.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 50615 Mai 28 13:18 list.47.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 30395 Mai 28 13:18 list.48.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 13689 Mai 28 13:18 list.49.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 1503 Mai 28 13:18 list.4.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 287289 Mai 28 13:18 list.51.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 131887 Mai 28 13:18 list.52.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 63211 Mai 28 13:18 list.53.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 5862 Mai 28 13:18 list.54.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 244872 Mai 28 13:18 list.55.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 11991 Mai 28 13:18 list.56.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 169067 Mai 28 13:18 list.57.gitlab.com.domains
> -rw-r--r-- 1 root root 5690 Mai 28 13:18 list.58.gitlab.com.domains
> -rw-r--r-- 1 root root 249382 Mai 28 13:18 list.59.www.stopforumspam.com.domains
> -rw-r--r-- 1 root root 199870 Mai 28 13:18 list.5.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 50813 Mai 28 13:18 list.60.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 9671 Mai 28 13:18 list.61.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 145589 Mai 28 13:18 list.6.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 214145 Mai 26 19:42 list.7.winhelp2002.mvps.org.domains
> -rw-r--r-- 1 root root 1163138 Mai 28 13:18 list.8.www.joewein.net.domains
> -rw-r--r-- 1 root root 1133238 Mai 28 13:18 list.9.raw.githubusercontent.com.domains
> -rw-r--r-- 1 root root 20 Mai 28 21:00 localbranches
> -rw-r--r-- 1 root root 61 Mai 28 15:47 local.list
> -rw-r--r-- 1 root root 42 Mai 28 21:00 localversions
> -rw-r--r-- 1 root root 234 Mai 26 18:22 logrotate
> -rw-r--r-- 1 pihole pihole 2465792 Mai 26 18:22 macvendor.db
> drwxr-xr-x 2 root root 4096 Mai 28 13:18 migration_backup
> -rw-rw-r-- 1 pihole root 352 Mai 28 19:37 pihole-FTL.conf
> -rw-r--r-- 1 pihole pihole 45056 Mai 28 21:01 pihole-FTL.db
> -rw-r--r-- 1 pihole pihole 537 Mai 28 19:36 setupVars.conf
$ cat /etc/group
> root:x:0:
> daemon:x:1:
> bin:x:2:
> sys:x:3:
> adm:x:4:syslog,blabla
> tty:x:5:
> disk:x:6:blabla
> lp:x:7:
> mail:x:8:
> news:x:9:
> uucp:x:10:
> man:x:12:
> proxy:x:13:
> kmem:x:15:
> dialout:x:20:
> fax:x:21:
> voice:x:22:blabla
> cdrom:x:24:blabla
> floppy:x:25:
> tape:x:26:
> sudo:x:27:
> audio:x:29:blabla,root
> dip:x:30:blabla
> www-data:x:33:pihole
> backup:x:34:
> operator:x:37:
> list:x:38:
> irc:x:39:
> src:x:40:
> gnats:x:41:
> shadow:x:42:
> utmp:x:43:
> video:x:44:blabla
> sasl:x:45:
> plugdev:x:46:blabla
> staff:x:50:
> games:x:60:
> users:x:100:
> nogroup:x:65534:
> systemd-journal:x:101:
> systemd-timesync:x:102:
> systemd-network:x:103:
> systemd-resolve:x:104:
> input:x:106:
> crontab:x:107:
> syslog:x:108:
> messagebus:x:109:
> netdev:x:110:
> mlocate:x:111:
> uuidd:x:112:
> rtkit:x:113:
> ssl-cert:x:117:
> lightdm:x:120:
> nopasswdlogin:x:121:
> lpadmin:x:123:
> scanner:x:129:saned
> saned:x:131:
> blabla:x:1000:
> firejail:x:1001:blabla
> avahi:x:114:
> dnsmasq:x:998:
> pihole:x:999:www-data
> kvm:x:105:
> systemd-coredump:x:997:
> rdma:x:119:
> vde2-net:x:122:
> libvirt:x:124:blabla
> libvirt-qemu:x:64055:libvirt-qemu
> libvirt-dnsmasq:x:125:
> lighttpd:x:1002:
> nvidia-persistenced:x:115:
hmm,
> www-data:x:33:pihole
> pihole:x:999:www-data - bei dir ist pihole:x:998:www-data
ist das so richtig gesetzt?
deine 10-fastcgi.conf + 15-fastcgi-php.conf bitte noch posten, danke.
(von: /etc/lighttpd/conf-enabled)
Ich denke, du solltest einfach nochmal pihole komplett neu aufsetzen und ohne modification schauen, ob es bei dir läuft. Wenn nicht, sind die devs bestimmt auch bereit dir dabei zu helfen.
Habe pihole mehrmals aufgesetzt,es kommt wie bereits erwähnt immer der gleiche Fehler.
Ich sitze schon seit Tagen davor, alles mögliche Erdenkliche ausprobiert.
Meinen Pc neu zu installieren kommt für mich nicht in Frage da
ich seit ca. 2 Jahren dran rum schraube und es läuft ansonsten ohne Probleme. Nur Pi-Hole macht seit Version 5 Probleme.
Am Liebsten würde ich mir wieder Version 4 installieren, wenn ich richtig
gesehen habe gibt es die Version 4 nicht mehr online zum installieren oder?
Nein, das geht nicht mehr. Höchstens du hast ein altes Backup, dass du einspielen kannst.
Sorry, ich weiß auch nicht weiter.
Viel Glück!
Ein altes Backup müßte ich noch irgendwo haben, mal schauen, trotzdem danke für deine Mühe mir zu helfen.