-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
some settings tabs often will not load #1539
Comments
Do you see any errors in the "Console" (check the developer tools you can summon using F12)? |
One more question:
|
Please, post your current compose file or |
No... Actually this could explain what you see in the browser. If the page is incomplete, one or more tabs will be incomplete. The real question is: What is causing this? Why the pages are broken? You are trying with many different images, but no other users saw this behavior, so it is very unlikely the issue is on the images. It must be something on your system. Are you using a volume to store the web interface ( |
OK, I think you could be on to something. In order to get past an error showing in a red banner at the top I set a couple of variables. Error: Specifically I set WEB_UID or PIHOLE_GID. They're marked Experimental in the docker README. Setting these allowed me to get past the error and save changes. # https://hub.docker.com/r/pihole/pihole
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pinhole
hostname: pi.hole
image: pihole/pihole:2024.01.0
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
ports:
- "53:53/tcp"
- "53:53/udp"
# - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "80:80/tcp"
environment:
TZ: $TZ
WEBPASSWORD: $PW
WEB_UID: 1003
PIHOLE_GID: 100
# Volumes store your data between container upgrades
volumes:
- CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc-pihole:/etc/pihole
- CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# cap_add:
# - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
networks:
pihole_ipvlan:
ipv4_address: 192.168.0.203
networks:
pihole_ipvlan:
external: true Note: You can ignore If you can point me toward any documentation on the UID/GID settings it might help in further debugging. What I had known based on the README is:
Also the container UID/GIDs
There was technically a conflict with PIHOLE_GID being set to 100 (hosts's users account overlapping docker's users account) but I'm able to reproduce the issue even after removing PIHOLE_GID (and of course restarting) so I don't think that's it. |
There isn't any further documentation on those UID/GID variables. The Pull Request that introduced them is here: #982, maybe there is some relevant discussion that gives you some pointers. One possible hint in here though, is that the files inside Of course, what might actually turn out to be the simplest solution (given it's nearing complete-state) is switching to the v6 beta image tag |
So far I can't reproduce the issue in :development-v6, likely because the tabs are just gone and each page loads separately. I'm using PIHOLE_UID and GID there. I like that it only needs 1 user, will continue testing it. |
I'll take a look at this soon. Thanks for pointing to it - I failed to find it earlier.
I tried a few other configs - probably should have written them down. With PIHOLE_UID:1003 and PIHOLE_GID: 100 I get the banner error. Pretty clearly the web server's user also needs access to this file. FWIW here's what the etc dir looks like in that case (from the host)
Similarly with PIHOLE_UID:1003 and WEB_GID:100 - same alert banner. I'm not sure how that banner is persisted - even if I 777 the files in that directory I see the error banner. However I do see the setupVars.conf theme change when I change it from the webUI. That's seems weird to me. All of the above is using the official 2024.01.0 image. |
This got me thinking. I ended up inspecting the docker data directory a little bit more and recreated it without an ACL attached.
Though the image with the following still has the intermittent loading issue...
I don't understand how an ACL could cause a web-server to intermittently render only part of a page though and worry that I'm just having intermittent luck. |
I just switched to using docker and had the same issue with the settings tabs sporadically not loading. I had created a user/group specifically for the web and assigned |
This issue is stale because it has been open 30 days with no activity. Please comment or update this issue or it will be closed in 5 days. |
Not sure if this should be closed or not. On the one hand it seems like it might be fixed in the development branch. On the other hand the behavior exhibited of the server rendering only parts of its templates in a somewhat random fashion may indicate a deeper issue. I don't see how that could be explained in full by permissions or ACLs since in general file-system permissions should make a file readable or not rather than an inconsistent "partly-readable". (Are two processes fighting over ownership?) I don't have enough knowledge of the architecture of this project to even come close to anything that might explain it - I'm only extrapolating from the web world I've worked in. If it was one of my sites I would find the behavior suspicious enough to want to get to the bottom of it. |
why was this issue closed? I just installed PiHole in Docker on my OMV machine and I'm getting more or less the same issue. There's a "fix" that doesn't help at all: creating the container without volumes in docker-compose.yml but that really doesn't help when I need a persistent install that survives updates (which PiHole designed in a way that you have to remove the container...). Just a handful of people who have/had the same issue with no real solution in sight. I don't know if I want to give EVERY user all privileges just to test out if that fixes anything, but I'm pretty certain these issues are related and should be addressed. |
nevermind, this stems from the "wonky" mount points (maybe add that somewhere in the documentation anyone?). |
Thank you to above!!!. Crazy this worked. I struggled to find a solution for months. |
If this is directed at me, no problem. Besides, check again if it REALLY works like it's supposed to. I had more issues still that I had to resolve. You can check this comment for a workaround. |
Versions
Platform
Expected behavior
All tabs on the Settings page should load when clicked.
Actual behavior / bug
They do not load. Specifically the following tabs do not load:
But sometimes they do load. I think this may be related to a JS tab implementation. I haven't checked what tech is behind the pihole web app but inspecting the HTML when the problem is happening is showing that the
active in
andfade
classes on the relevant panels are not swapping as I believe they should...possibly a race condition.Steps to reproduce
Steps to reproduce the behavior:
a. repeat for API, Privacy and Teleporter tabs
a. click the System tab
b. hard refresh (in Chrome on MacOS Cmd+Shift+R)
c. observe system tab
d. return to step 2 and repeat
Note that having the chrome dev tools open seemed to have a latching effect on the issue...though, given the intermittency, I'm not totally sure.
Debug Token
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
I spent two days thinking this was a permissions issue and then a cookies issue. Now I think it's JS. If I still sound sane and someone wants to point me towards where the relevant source code is I'd be happy to take a first peek at it. 😅
Seen in
The text was updated successfully, but these errors were encountered: