Closed jehlybean closed 4 months ago
2024-02-08T01:32:00Z INFO reading JSON config from file /updater/data/config.json
2024-02-08T01:32:00Z WARN Found no setting to update record
Check the config.json file is bind mounted correctly? It seems it doesn't find it (so it creates it as empty)
It created an empty file which I later filled. How do I verify if bind is mounted? I followed each step.
Where is your config.json file on your host system, and what's your bind mount configured for the /updater/data
directory?
/mnt/user/appdata/ddns-updater/data
I donβt follow on bind mount - is that the βtouchβ command? I followed each line from the unraid instructions exactly.
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)
Correct. Thatβs how mine is setup. /updater/data in the container and /mnt/user/appdata/ddns-updater/data is where config is stored.
Try running it with LOG_LEVEL=debug
and see what logs it has? It should log out the entire configuration read, I guess in this case likely just {}
?
Running version latest built on 2024-02-08T13:09:44.329Z (commit e676983)
π§ Need help? https://github.com/qdm12/ddns-updater/discussions/new
π Bug? https://github.com/qdm12/ddns-updater/issues/new
β¨ New feature? https://github.com/qdm12/ddns-updater/issues/new
β Discussion? https://github.com/qdm12/ddns-updater/discussions/new
π» Email? ***@***.***
π° Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12
2024-02-08T17:05:31Z INFO Settings summary:
βββ HTTP client
| βββ Timeout: 10s
βββ Update
| βββ Period: 5m0s
| βββ Cooldown: 5m0s
βββ Public IP fetching
| βββ HTTP enabled: yes
| βββ HTTP IP providers
| | βββ all
| βββ HTTP IPv4 providers
| | βββ all
| βββ HTTP IPv6 providers
| | βββ all
| βββ DNS enabled: yes
| βββ DNS timeout: 3s
| βββ DNS over TLS providers
| βββ all
βββ Resolver: use Go default resolver
βββ Server
| βββ Listening address: :8000
| βββ Root URL: /
βββ Health
| βββ Server listening address: 127.0.0.1:9999
βββ Paths
| βββ Data directory: /updater/data
βββ Backup: disabled
βββ Logger
βββ Level: debug
βββ Caller: hidden
2024-02-08T17:05:31Z INFO reading JSON config from file /updater/data/config.json
2024-02-08T17:05:31Z DEBUG config read: {}
2024-02-08T17:05:31Z WARN Found no setting to update record
2024-02-08T17:05:32Z DEBUG configured to fetch IP: v4 or v6: false, v4: false, v6: false
2024-02-08T17:05:32Z INFO [healthcheck server] listening on 127.0.0.1:9999
2024-02-08T17:05:32Z INFO [backup] disabled
2024-02-08T17:05:32Z DEBUG your public IP address are: v4 or v6: invalid IP, v4: invalid IP, v6: invalid IP
2024-02-08T17:05:32Z INFO [http server] listening on :8000
2024/02/08 17:06:06 "GET http://192.168.1.100:8000/ HTTP/1.1" from 192.168.3.3:64069 - 200 1273B in 17.391Β΅s
2024/02/08 17:06:06 "GET http://192.168.1.100:8000/favicon.ico HTTP/1.1" from 192.168.3.3:64069 - 404 19B in 6.801Β΅s
Yes it doesn't find the file /updater/data/config.json
.
DEBUG config read: {}
so it creates as an empty json object {}
.
Try accessing a terminal on your Unraid machine and run
docker inspect --format "{{json .Mounts}}" $(docker ps --filter "label=org.opencontainers.image.title=ddns-updater" --latest --format "{{.ID}}" --no-trunc)
That should print out the bind mounts
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