ddns-updater icon indicating copy to clipboard operation
ddns-updater copied to clipboard

Bug: ... ERROR /config/updates.json validation error: IP 2 of 2 is empty for record

Open Narflar opened this issue 3 years ago • 0 comments

If a domain from the config never gets an IP, the updates.json stays empty (ip": "",), If I start ddns-updater it registers that empty IP as an error and shuts down. I have to delete the updates.json before I restart ddns-updater.

TLDR: blank IPs in updates.json crash the app.

  1. Is this urgent: No
  2. DNS provider(s) you use: Cloudflare / google
  3. Program version: Running version latest built on 2021-12-04T21:55:55Z (commit fa15abb)
  4. What are you using to run the container: docker, Synology
  5. Extra information (optional)

Logs:

today at 3:21:36 PMRunning version latest built on 2021-12-04T21:55:55Z (commit fa15abb) today at 3:21:36 PM today at 3:21:36 PM🔧 Need help? https://github.com/qdm12/ddns-updater/discussions/new today at 3:21:36 PM🐛 Bug? https://github.com/qdm12/ddns-updater/issues/new today at 3:21:36 PM✨ New feature? https://github.com/qdm12/ddns-updater/issues/new today at 3:21:36 PM☕ Discussion? https://github.com/qdm12/ddns-updater/discussions/new today at 3:21:36 PM💻 Email? [email protected] today at 3:21:36 PM💰 Help me? https://www.paypal.me/qmcgaw https://github.com/sponsors/qdm12 today at 3:21:36 PM2021/12/17 15:21:36 ERROR /config/updates.json validation error: IP 2 of 2 is empty for record {"domain":"something.com","host":"@","ips":[{"ip":"0.0.0.0","time":"2021-12-17T13:35:17.276441783-05:00"},{"ip":"","time":"2021-12-17T13:35:17.276441783-05:00"}]} today at 3:21:36 PM2021/12/17 15:21:36 INFO Shutdown successful

Configuration file (remove your credentials!):

config.json { "settings": [ { "provider": "google", "domain": "something.com", "host": "@", "username": "username", "password": "password", "ip_version": "ipv4" }, { "provider": "google", "domain": "something.com", "host": "@", "username": "username", "password": "password", "ip_version": "ipv6" } ] }

updates.json { "records": [ { "domain": "something.com", "host": "@", "ips": [ { "ip": "0.0.0.0", "time": "2021-12-17T15:22:15.588023297-05:00" }, { "ip": "", "time": "2021-12-17T15:22:15.588023297-05:00" } ] } ] }

Host OS: Synology 7 DSM

Narflar avatar Dec 17 '21 21:12 Narflar