bonsi
December 23, 2021, 1:44pm
1
Hi.
I've got a warning in "Pi-hole diagnosis".
When trying to delete that i get the following error message:
Error, something went wrong!
While executing message statement: attempt to write a readonly database
The entry itself is:
2021-12-23 14:28:17 DNSMASQ_WARN Warning in dnsmasq
core:
reducing DNS packet size for nameserver 172.18.0.1 to 1280
Versions: * Docker Tag 2021.12
DL6ER
December 23, 2021, 3:12pm
2
From inside the container, what is the output of
ls -lh /etc/pihole
?
DL6ER
December 23, 2021, 7:23pm
5
This file should be owned by pihole:pihole
not root:root
.
1 Like
bonsi
December 23, 2021, 7:42pm
6
Ok, thanks^^.
Fixed that; after restarting the container it still belongs to pihole.
Because I deleted the database an hour ago i've got no error in the log to delete. Will have to wait for a diagnosis-entry to appear.
First of all: Merry Christmas!
Could you please describe how do you fixed that?
Because I have the same error on my PiHole Docker.
Thanks in advance!
Best,
Christian
bonsi
December 27, 2021, 11:04am
16
Sure:) (If pihole is the name of your docker container, if it isn't, youi'll have to replace pihole with the actual name)
docker exec pihole chown -v pihole:pihole /etc/pihole/pihole-FTL.db
This fixed that and i can confirm that i now can delete log-entries.
4 Likes
Thank you very much!
I changed the permission successfully and can confirm that it´s works.
Have a nice day!
Best,
Christian
Did have the same error, fixed with #16 .
I do suggest to give more details in the error message (suggesting, not demanding! )
DL6ER
December 27, 2021, 8:51pm
19
Thanks for the suggestion. The error you've seen is generated by the SQLite3 database engine, not some code we write or maintain. We could try catching and transcribing it but that would have to be done in many places. Not sure if it would improve the overall situation as sticking to the database engine's standard (= well-known) error messages seems beneficial, too.
toph
December 30, 2021, 3:22pm
20
Thanks, this solved it for me. To prevent this from happening in the future, see here:
opened 10:09AM - 29 Dec 21 UTC
### Versions
### Platform
Docker Tag 2021.12.1 Pi-hole v5.7 FTL v5.12.1 Web … Interface v5.9
### Expected behavior
Able to delete any diagnosis message.
### Actual behavior / bug
Unable to delete LOAD diagnosis message: "Error, something went wrong! While executing message statement: attempt to write a readonly database"
### Steps to reproduce
Use latest stable Docker Image and wait for high system load. ;-)
### Screenshots
<img width="1203" alt="screenshot" src="https://user-images.githubusercontent.com/15087554/147651027-ca28a27f-47ca-4d8a-af58-806f9702b5cb.png">
### Additional context
My DB is writeable as any other stuff in Pi-Hole works as normal. Just deleting this message is not possible.