While executing: attempt to write a readonly database & Teleport Import not working

Please follow the below template, it will help us to help you!

Please ensure that you are running the latest version of the beta code.
Run pihole -up to update to the latest, then verify that the problem still exists before reporting it.

Problem with Beta 5.0:
Adding a Domain in Webinterface white/black dont work.

Error, something went wrong!
While executing: attempt to write a readonly database

via SSH pihole -w domain its working

And Teleport Import is not Working. Just showing imported 0 on all Points.

Debug Token:

Please send us the token generated by

pihole -d

or do it through the Web interface:

Tools > Generate Debug Log



Can confirm thats a Beta 5 Failure. Rolled back to 4.4 and that works flawless.

Add Info:
System is DietPi Buster

Pi-hole V5 beta uses a new gravity database that is not present in V4.x. Let's looks at the permissions of the database files in /etc/pihole. What is the output of the following command from the Pi terminal

ls -lha /etc/pihole/*.db

-rw-rw-r-- 1 pihole pihole 294M Mär 2 12:15 /etc/pihole/gravity.db
-rw-r--r-- 1 pihole pihole 2.3M Mär 2 12:08 /etc/pihole/macvendor.db
-rw-r--r-- 1 pihole pihole 196K Mär 2 12:08 /etc/pihole/pihole-FTL.db

Also a Fresh Install wont Work.

It seems i have found the Problem.

Install Pi-Hole via DietPi Launcher = Problem
Install Pi-Hole via SSH Command = It seem working

Adding, Removing etc.. works now under Beta 5.0 and unbound.

Please let DietPi know that. We'd like to have their install method work as well as ours.

Done: DietPi PiHole installer corrupts 5.0 Beta - DietPi

1 Like

Could it be same issue as this ??