IceWhaleTech / CasaOS-AppStore

Manifest files for CasaOS Apps
Apache License 2.0
155 stars 258 forks source link

[Feedback] how to solve pi.hole readonly database #203

Open Kordrad opened 1 year ago

Kordrad commented 1 year ago

Description

After install Pi.hole I have problem with permissions to update my domain list, group list etc.

X Error, something went wrong!
While executing: attempt to write a readonly database
Added 0 out of 1 adlists

I resolved this problem in console by providing something like this:

$ sudo docker exec *CONTAINER ID* chown -R www-data:pihole /etc/pihole

but after "Update Gravity (list of blocked domains)" in web UI, the prompt shows again. I tried to provide env variables, but it didn't help to me. Anyone has other suggestion how I can fix this?

Additional Information

 - OS: linux
 - CasaOS Version: 0.4.3
 - Disk Total: 27712 
 - Disk Used: 13002 
 - System Info: [Debian GNU/Linux 11   \l Bit:64 Mem:7789M Core:4 Linux CasaOS 5.10.0-23-amd64 IceWhaleTech/CasaOS#1 SMP Debian 5.10.179-1 (2023-05-12) x86_64 GNU/Linux]
 - Remote Version: 0.4.3
 - Browser: Edge 
 - Version: 114.0.1823.51

image image

tigerinus commented 1 year ago

Transferring this issue over to CasaOS-AppStore, since it seems to be specific to this app.

Honestly we are not Pi-hole experts, so I'm marking this issue as Help Wanted - hopefully someone from the lovely community can give a hand.

Kordrad commented 11 months ago

@tigerinus I found solution https://github.com/pi-hole/docker-pi-hole/issues/860#issuecomment-1060104737

image Maybe the WEB_GID should be as default?

tigerinus commented 11 months ago

Sounds like an area @CorrectRoadH has been looking at.

CorrectRoadH commented 11 months ago

👀I can't reproduce the bug. Do your pi.hole installed from the app store?

Kordrad commented 11 months ago

👀I can't reproduce the bug. Do your pi.hole installed from the app store?

yup, I reinstalled today on latest version of CasaOS (v0.4.4)

Kordrad commented 11 months ago

You can try to use Update Gravity (list of blocked domains) and then try to add something to Adlist

CorrectRoadH commented 11 months ago
CleanShot 2023-07-18 at 10 29 41@2x CleanShot 2023-07-18 at 10 29 34@2x

I can't reproduce it yet. It works very fine on my computer😭

rickyashe commented 10 months ago

This fixed my issue also is there an update planned to ensure this does not happen to other users?

CMSprocket commented 10 months ago

I'm having this issue, fresh installed from the CasaOS AppStore when I'm trying to add RegEx entries. It's under Domains and the RegEx tab.

I'm new to CasaOS and PiHole, so the whole changing the WEB_GUI is unfamiliar to me. Can someone explain?

as far as @rickyashe, what fixed your issue?