Closed JackSabbath closed 6 years ago
same here, on debian
I'm running on a Synology and noticed that none of my settings seem to stick in the Web interface. I get a success message on the site but the form stays the same.
Same boat here. Can confirm that making changes via the web interface will change the underlying config files if mapped locally. So should be no reason to override them. Though I'm going to take a guess something is still set to override or re-write certain defaults. Where they are is the missing bit of information or why they're overriding when we have a listed config.
I noticed the same issue as will on my Ubuntu server running docker as well. I was able to get around it by changing the options for storage on my container to mount to a volume in docker instead. When I had done that, the configuration would persist and not revert to default. Oddly in both cases, log/statistical data still persists using the the commands in the guide and my work around.
Sorry for the delayed response, lets address these one by one:
Some settings are being reseted to default values, when docker is restarted. ... Upstream DNS Servers
Environment variables for DNS are maybe coded incorrectly. I think it assumes if they envs were blank you should take a default entry of googles' servers. I'll start checking for existing configuration values before overwriting them.
Settings are not read from folder, when the container gets instantiated.
This one perplexes me, I save my settings quite often and only the ones that are environment variable based should be discarded / overwritten. I just removed 1 list through the admin, saved, and destroyed/ran a new container without any problem so this one may have been fixed already?
Query Logging can't be re-enabled once it's disabled.
Confirmed, I think this is related to volume permissions though since I can reproduce it on my production container but a side container with no volumes doesn't have this issue. I'll see how
@diginc I believe the first and second are being viewed as one. Item one is a subset of Item two. The config settings I'm setting in my file that are overwritten, are in fact the DNS entries. I can confirm the lists seem to work fine (aka other non-env variables).
I'd say the best option to solve this would be to allow the container to first identify variables, if they don't exist, then set them with defaults, but if the Config file is present, let this override the defaults.
I've just installed on my Synology and am running into the same issue. It looks like anything that's passed in as an Env Var at creation sticks but from there, anything that i try to modify in the interface does not stick. Could this be some kind of permissions issue?
I am having the same problem on my Synology NAS. I tried mapping the "pihole","dnsmasq.d" and "lighttpd" folders to the Synology Docker folder, but it won't work.
Is there any workaround till it is patched?
Could this be some kind of permissions issue?
Some of the reports in this issue could be related to this issue if the problem only presents when volume mounting : https://github.com/diginc/docker-pi-hole/issues/278
So i tried with no mappings. The DNS is working, but the status shown is "unknown" and is still can't save any settings. I also get the following errors:
sudo: policy plugin failed session initialization sudo: pam_open_session: System error sudo: unable to send audit message: Unknown error -1
So i think i found a more accurate issue, which is #243
edit: Responded to wrong issue :)
I think the v4 image permissions changes will take care of any issues like the OP's. The synology issue may have similar problems but for different reasons due ot the sudo errors. Lets track that in the synology issue we having going.
I'm on Windows 10 with Docker for Windows CE with Hyper-V and am running the latest diginc/pi-hole:alpine image.
I observed a few bug, but they all seem related:
Some settings are being reseted to default values, when docker is restarted.
Settings are not read from folder, when the container gets instantiated.
Query Logging can't be re-enabled once it's disabled.