Help: custom config error #526

Open
opened 2025-11-20 04:24:43 -05:00 by saavagebueno · 3 comments
Owner

Originally created by @Phill23 on GitHub (May 14, 2025).

This is my docker compose:

  services:
   ddns-updater:
     container_name: ddns-updater
     environment:
       - CONFIG=/updater/data/config.json
       - PERIOD=5m
       - UPDATE_COOLDOWN_PERIOD=5m
       - PUBLICIP_FETCHERS=all
       - PUBLICIP_HTTP_PROVIDERS=all
       - PUBLICIPV4_HTTP_PROVIDERS=all
       - PUBLICIPV6_HTTP_PROVIDERS=all
       - PUBLICIP_DNS_PROVIDERS=all
       - PUBLICIP_DNS_TIMEOUT=3s
       - HTTP_TIMEOUT=10s
       - LISTENING_ADDRESS=:8000
       - BACKUP_PERIOD=0
       - BACKUP_DIRECTORY=/updater/data
       - LOG_LEVEL=info
       - LOG_CALLER=hidden
       - SHOUTRRR_ADDRESSES=
     image: qmcgaw/ddns-updater
     network_mode: bridge
     ports:
       - 8000:8000/tcp
     restart: always
     volumes:
       - /mnt/configs/ddns-updater:/updater/data
 version: '3.7'

This is my config:

{
  "settings": [
    {
      "provider": "custom",
      "domain": "mydomain.com",
      "url": "https://api.org-dns.com/dyndns/?user=myusername&key=pass&domain=mydomain.com",
      "ip_version": "ipv4",
      "provider_ip": true
    }
  ]
}

but the container crashes with this error:
ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value

any ideas what is wrong?

Originally created by @Phill23 on GitHub (May 14, 2025). This is my docker compose: ``` services: ddns-updater: container_name: ddns-updater environment: - CONFIG=/updater/data/config.json - PERIOD=5m - UPDATE_COOLDOWN_PERIOD=5m - PUBLICIP_FETCHERS=all - PUBLICIP_HTTP_PROVIDERS=all - PUBLICIPV4_HTTP_PROVIDERS=all - PUBLICIPV6_HTTP_PROVIDERS=all - PUBLICIP_DNS_PROVIDERS=all - PUBLICIP_DNS_TIMEOUT=3s - HTTP_TIMEOUT=10s - LISTENING_ADDRESS=:8000 - BACKUP_PERIOD=0 - BACKUP_DIRECTORY=/updater/data - LOG_LEVEL=info - LOG_CALLER=hidden - SHOUTRRR_ADDRESSES= image: qmcgaw/ddns-updater network_mode: bridge ports: - 8000:8000/tcp restart: always volumes: - /mnt/configs/ddns-updater:/updater/data version: '3.7' ``` This is my config: ``` { "settings": [ { "provider": "custom", "domain": "mydomain.com", "url": "https://api.org-dns.com/dyndns/?user=myusername&key=pass&domain=mydomain.com", "ip_version": "ipv4", "provider_ip": true } ] } ``` but the container crashes with this error: `ERROR configuration given: cannot unmarshal common settings: invalid character '/' looking for beginning of value` any ideas what is wrong?
Author
Owner

@stktyagi commented on GitHub (May 14, 2025):

remove

- CONFIG=/updater/data/config.json

from your docker compose file.
also double check if config.json is correctly mounted on

volumes:
  - /mnt/configs/ddns-updater:/updater/data
@stktyagi commented on GitHub (May 14, 2025): remove ```yaml - CONFIG=/updater/data/config.json ``` from your docker compose file. also double check if config.json is correctly mounted on ```yaml volumes: - /mnt/configs/ddns-updater:/updater/data ```
Author
Owner

@Phill23 commented on GitHub (May 14, 2025):

Thanks @stktyagi
removing CONFIG= worked and config.json is correctly mounted.
The updater ist trying to update the domain itself and sets the subdomain as owner is that how it is supposed to be?
I get ERROR unknown response received: not updated - record is already up to date but the IP is not updating.

@Phill23 commented on GitHub (May 14, 2025): Thanks @stktyagi removing CONFIG= worked and config.json is correctly mounted. The updater ist trying to update the domain itself and sets the subdomain as owner is that how it is supposed to be? I get `ERROR unknown response received: not updated - record is already up to date` but the IP is not updating.
Author
Owner

@stktyagi commented on GitHub (May 14, 2025):

You're welcome,

The ddns-updater image does not support setting the config file path via an environment variable. The container automatically looks for config.json at

/updater/data/config.json.

@stktyagi commented on GitHub (May 14, 2025): You're welcome, The ddns-updater image does not support setting the config file path via an environment variable. The container automatically looks for config.json at /updater/data/config.json.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ddns-updater#526