Cloudflare DDNS Failing update after hostname change
-
Hello,
I had Cloudflare/DDNS working fine since 2.4.5-1 and updated to 22.01 on a SG-5100.
I recently tried to change the hostname of the firewall and soon noticed that DDNS was not updating cloudflare using API token.
Seeing below message when forcing an update:
Jun 20 19:08:45 php-fpm 2421 /services_dyndns_edit.php: phpDynDNS (gateway1): PAYLOAD: {"success":false,"errors":[{"code":6003,"message":"Invalid request headers","error_chain":[{"code":6103,"message":"Invalid format for X-Auth-Key header"}]}],"messages":[],"result":null} Jun 20 19:08:45 php-fpm 2421 /services_dyndns_edit.php: phpDynDNS (gateway1): UNKNOWN ERROR - Invalid request headers
-
This post is deleted! -
-
@bob-dig thanks for the response but this issue started yesterday June 20 EST.
They said its resolved but I am still seeing the following screen shots:
-
I am currently seeing this on dashboard
Int. Service Hostname Cached IP WAN Cloudflare NEW_HOSTNAME.DOMAIN.XZY N/A 11:14:16 There are also two files located in /conf directory
-rw-r--r-- 1 root wheel 24 Jun 19 15:04 dyndns_wancloudflare'old_hostname.DOMAIN.XYZ'0.cache -rw-r--r-- 1 root wheel 24 Jun 20 22:53 dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache
Could these files have anything to do with cached IP status? I have tried to delete them using 'rm -f' command but not sure they are doing anything.
Later logs:
Jun 20 22:53:05 php-fpm 52454 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache: WAN_IP_ADDRESS Jun 20 22:53:05 php-fpm 52454 /services_dyndns_edit.php: phpDynDNS (new_hostname): (Success) new_hostname updated to WAN_IP_ADDRESS <output omitted> Jun 20 22:59:45 php-fpm 75932 /rc.dyndns.update: phpDynDNS (new_hostname.DOMAIN.XYZ): No change in my IP address and/or 25 days has not passed. Not updating dynamic DNS entry.
I reset the API Key with DNS edit permission and confirmed it work. What I see now is that it using .cache files?
-
I just tried turning on verbose logging and after clicking force update it timed out. saw the following and the session timed out:
Jun 21 23:48:39 php-fpm 52454 /services_dyndns_edit.php: Configuration Change: USERNAME@IP_ADDRESS (Local Database): Dynamic DNS client configured. Jun 21 23:48:39 check_reload_status 2461 Syncing firewall Jun 21 23:48:39 php-fpm 52454 /services_dyndns_edit.php: Beginning configuration backup to https://acb.netgate.com/save Jun 21 23:48:40 php-fpm 52454 /services_dyndns_edit.php: phpDynDNS: updating cache file /conf/dyndns_wancloudflare'new_hostname.DOMAIN.XYZ'.cache: WAN_IP_ADDRESS Jun 21 23:48:40 php-fpm 52454 /services_dyndns_edit.php: phpDynDNS (NEW_HOSTNAME): (Success) NEW_HOSTNAME updated to WAN_IP_ADDRESS Jun 21 23:49:00 php 97241 /usr/local/sbin/acbupload.php: End of configuration backup to https://acb.netgate.com/save (success). Jun 21 23:51:39 nginx 2022/06/21 23:51:39 [error] 2017#100213: *2126 upstream timed out (60: Operation timed out) while reading response header from upstream, client: IP_ADDRESS, server: , request: "POST /services_dyndns_edit.php?id=0 HTTP/2.0", upstream: "fastcgi://unix:/var/run/php-fpm.socket", host: "new_hostname.DOMAIN.XYZ", referrer: "https://new_hostname.DOMAIN.XYZ/services_dyndns_edit.php?id=0"
-
Is there any way to resolve the Cached IP status?
-
Hello,
Can anyone offer guidance/assistance as to why I am still seeing N/A under cached IP?
-
Issue has been resolved successfully upgraded to 22.05.