mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-29 09:02:38 -04:00
Docker does not read/update from config.json #369
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @jehlybean on GitHub (Feb 7, 2024).
TLDR: Describe your issue in a one liner here
I've set up the config.json several times and it wont update when I check the webui.
I recently rebuilt a corrupt docker.img and it was working perfectly before.
Is this urgent: No
DNS provider(s) you use: Cloudflare
Program version:
Running version latest built on 2020-03-13T01:30:06Z (commit d0f678c)What are you using to run the container: unraid
Extra information (optional)
Logs:
Host OS:
Unraid
@qdm12 commented on GitHub (Feb 7, 2024):
Check the config.json file is bind mounted correctly? It seems it doesn't find it (so it creates it as empty)
@jehlybean commented on GitHub (Feb 7, 2024):
It created an empty file which I later filled. How do I verify if bind is mounted? I followed each step.
@qdm12 commented on GitHub (Feb 8, 2024):
Where is your config.json file on your host system, and what's your bind mount configured for the
/updater/datadirectory?@jehlybean commented on GitHub (Feb 8, 2024):
/mnt/user/appdata/ddns-updater/dataI don’t follow on bind mount - is that the “touch” command? I followed each line from the unraid instructions exactly.@qdm12 commented on GitHub (Feb 8, 2024):
You should a volume mount (aka bind mount) between
/mnt/user/appdata/ddns-updater/data(on your host system) and/updater/data(in the container)@jehlybean commented on GitHub (Feb 8, 2024):
Correct. That’s how mine is setup. /updater/data in the container and /mnt/user/appdata/ddns-updater/data is where config is stored.
@qdm12 commented on GitHub (Feb 8, 2024):
Try running it with
LOG_LEVEL=debugand see what logs it has? It should log out the entire configuration read, I guess in this case likely just{}?@jehlybean commented on GitHub (Feb 8, 2024):
@qdm12 commented on GitHub (Feb 9, 2024):
Yes it doesn't find the file
/updater/data/config.json.so it creates as an empty json object
{}.Try accessing a terminal on your Unraid machine and run
That should print out the bind mounts