You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
any additional info to help reproduce
Can be reproduced in 2 ways:
Visit the web UI > go to Settings > Click "Flush network table"
Run docker exec pihole pihole-FTL sqlite3 "/tmp/pihole-FTL.db" "DELETE FROM network_addresses"
If I add -u pihole the problem is gone
These common fixes didn't work for my issue
I have tried removing/destroying my container, and re-creating a new container
I have tried fresh volume data by backing up and moving/removing the old volume data
I have tried running the stock docker run example(s) in the readme (removing any customizations I added)
I have tried a newer or older version of Docker Pi-hole (depending what version the issue started in for me)
I have tried running without my volume data mounts to eliminate volumes as the cause
If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
The tmps path inside the container has more than enough space
docker exec pihole df -h /tmp
Filesystem Size Used Avail Use% Mounted on
tmpfs 14G 80K 14G 1% /tmp
Writing to tmp is allowed inside the container e.g. docker exec pihole touch /tmp/hello.txt works just fine
As an additional precaution I made sure that Pi-hole was completely initialized (by checking the docker log) and I did a ls to the respective paths to check if the pihole-FTL.db existed
The text was updated successfully, but these errors were encountered:
Thanks for the hint, indeed seems like a permission issue. The /tmp directory (mounted as tmpfs) is owned by root:root, but when I mount tmpfs at /run/pihole, the owner of that directory is pihole:pihole, and if store the FTL database at /run/pihole, the issue is gone.
Clicking the "Flush network table" button under settings does not work and shows a
stepping, attempt to write a readonly database (8)
errorThis is a: Bug
Details
The full message as provided by Pi-hole's web UI is:
The issue happens when the pihole-FTL.db file is placed on a tmpfs directory like
/dev/shm
or/tmp
Related Issues
How to reproduce the issue
Can be reproduced in 2 ways:
docker exec pihole pihole-FTL sqlite3 "/tmp/pihole-FTL.db" "DELETE FROM network_addresses"
-u pihole
the problem is goneThese common fixes didn't work for my issue
docker run
example(s) in the readme (removing any customizations I added)If the above debugging / fixes revealed any new information note it here.
Add any other debugging steps you've taken or theories on root cause that may help.
docker exec pihole touch /tmp/hello.txt
works just finels
to the respective paths to check if thepihole-FTL.db
existedThe text was updated successfully, but these errors were encountered: