Skip to content

cache does not work #731

@KLelong

Description

@KLelong

Hi,
A few days ago I installed ddclient 3.11.2 after using an older version for a while.
I did that because I got errors like this :
"WARNING: found neither ipv4 nor ipv6 address"
But now the ip-address is updated every time the sleep-period is over, so I presume something is wrong with the cache.
This is my configuration :

#
# /etc/ddclient/ddclient.conf

usev4=webv4
webv4=zoneedit
daemon=600                              # check every 300 seconds
syslog=yes                              # log update msgs to syslog
pid=/var/run/ddclient.pid               # record PID in file.
ssl=yes                                 # use ssl-support.  Works with
                                                # ssl-library

mail=<redacted email>                 # mail all msgs to root
mail-failure=<redacted email>         # mail failed update msgs to root

server=dynamic.zoneedit.com/auth/dynamic.html, \
protocol=zoneedit1, \
login=<redacted user>,  \
password=<redacted paswword> \
<redacted host>

Now I started ddclient like this :
ddclient -foreground -debug -verbose

That results to this :

  === opt ====
opt{cache}                           : <undefined>
opt{cmd}                             : <undefined>
opt{cmd-skip}                        : <undefined>
opt{cmdv4}                           : <undefined>
opt{cmdv6}                           : <undefined>
opt{daemon}                          : <undefined>
opt{debug}                           : 1
opt{exec}                            : <undefined>
opt{facility}                        : <undefined>
opt{file}                            : <undefined>
opt{force}                           : <undefined>
opt{foreground}                      : 1
opt{fw}                              : <undefined>
opt{fw-banlocal}                     : CODE(0x55f42382a3e8)
opt{fw-login}                        : <undefined>
opt{fw-password}                     : <undefined>
opt{fw-skip}                         : <undefined>
opt{fw-ssl-validate}                 : <undefined>
opt{fwv4}                            : <undefined>
opt{fwv4-skip}                       : <undefined>
opt{fwv6}                            : <undefined>
opt{fwv6-skip}                       : <undefined>
opt{geturl}                          : <undefined>
opt{help}                            : <undefined>
opt{host}                            : <undefined>
opt{if}                              : <undefined>
opt{if-skip}                         : CODE(0x55f42382a3e8)
opt{ifv4}                            : <undefined>
opt{ifv6}                            : <undefined>
opt{ip}                              : <undefined>
opt{ipv4}                            : <undefined>
opt{ipv6}                            : <undefined>
opt{list-devices}                    : CODE(0x55f423a89238)
opt{list-protocols}                  : CODE(0x55f423a89628)
opt{list-web-services}               : CODE(0x55f423aa3378)
opt{login}                           : <redacted>
opt{mail}                            : <undefined>
opt{mail-failure}                    : <undefined>
opt{max-interval}                    : 2160000
opt{max-warn}                        : <undefined>
opt{min-error-interval}              : 300
opt{min-interval}                    : 30
opt{options}                         : <undefined>
opt{password}                        : <redacted>
opt{pid}                             : <undefined>
opt{postscript}                      : <undefined>
opt{priority}                        : <undefined>
opt{protocol}                        : <undefined>
opt{proxy}                           : <undefined>
opt{query}                           : <undefined>
opt{quiet}                           : 0
opt{retry}                           : <undefined>
opt{server}                          : <undefined>
opt{ssl}                             : <undefined>
opt{ssl_ca_dir}                      : <undefined>
opt{ssl_ca_file}                     : <undefined>
opt{syslog}                          : <undefined>
opt{test}                            : <undefined>
opt{timeout}                         : <undefined>
opt{use}                             : <undefined>
opt{usev4}                           : <undefined>
opt{usev6}                           : <undefined>
opt{verbose}                         : 1
opt{web}                             : <undefined>
opt{web-skip}                        : <undefined>
opt{web-ssl-validate}                : <undefined>
opt{webv4}                           : <undefined>
opt{webv4-skip}                      : <undefined>
opt{webv6}                           : <undefined>
opt{webv6-skip}                      : <undefined>
=== globals ====
globals{daemon}                      : 600
globals{debug}                       : 1
globals{foreground}                  : 1
globals{mail}                        : <redacted email>
globals{mail-failure}                : <redacted email>
globals{pid}                         : /var/run/ddclient.pid
globals{quiet}                       : 0
globals{ssl}                         : 1
globals{syslog}                      : 1
globals{usev4}                       : webv4
globals{verbose}                     : 1
globals{webv4}                       : zoneedit
=== config ====
config{<redacted host>}{atime} : 0
config{<redacted host>}{cacheable} : ARRAY(0x55f42331b030)
config{<redacted host>}{cmd} : <undefined>
config{<redacted host>}{cmd-skip} : 
config{<redacted host>}{cmdv4} : <undefined>
config{<redacted host>}{cmdv6} : <undefined>
config{<redacted host>}{fw}  : 
config{<redacted host>}{fw-login} : <undefined>
config{<redacted host>}{fw-password} : 
config{<redacted host>}{fw-skip} : 
config{<redacted host>}{fw-ssl-validate} : 1
config{<redacted host>}{fwv4} : 
config{<redacted host>}{fwv4-skip} : 
config{<redacted host>}{fwv6} : 
config{<redacted host>}{fwv6-skip} : 
config{<redacted host>}{host} : <redacted host>
config{<redacted host>}{if}  : ppp0
config{<redacted host>}{ifv4} : default
config{<redacted host>}{ifv6} : default
config{<redacted host>}{ip}  : <undefined>
config{<redacted host>}{ipv4} : <undefined>
config{<redacted host>}{ipv6} : <undefined>
config{<redacted host>}{login} : <redacted>
config{<redacted host>}{max-interval} : 2160000
config{<redacted host>}{min-error-interval} : 300
config{<redacted host>}{min-interval} : 600
config{<redacted host>}{mtime} : 0
config{<redacted host>}{password} : <redacted>
config{<redacted host>}{protocol} : zoneedit1
config{<redacted host>}{server} : dynamic.zoneedit.com/auth/dynamic.html
config{<redacted host>}{status} : 
config{<redacted host>}{status-ipv4} : 
config{<redacted host>}{status-ipv6} : 
config{<redacted host>}{use} : ip
config{<redacted host>}{usev4} : webv4
config{<redacted host>}{usev6} : disabled
config{<redacted host>}{warned-min-error-interval} : 0
config{<redacted host>}{warned-min-interval} : 0
config{<redacted host>}{web} : dyndns
config{<redacted host>}{web-skip} : 
config{<redacted host>}{web-ssl-validate} : 1
config{<redacted host>}{webv4} : zoneedit
config{<redacted host>}{webv4-skip} : 
config{<redacted host>}{webv6} : googledomains
config{<redacted host>}{webv6-skip} : 
config{<redacted host>}{wtime} : 30
config{<redacted host>}{zone} : <undefined>
=== cache ====
cache{<redacted host>}{atime} : 1723551053
cache{<redacted host>}{host} : <redacted host>
cache{<redacted host>}{ip}   : <redacted IP>
cache{<redacted host>}{mtime} : 0
cache{<redacted host>}{status} : failed
cache{<redacted host>}{status-ipv4} : noconnect
cache{<redacted host>}{status-ipv6} : noconnect
cache{<redacted host>}{warned-min-error-interval} : 0
cache{<redacted host>}{warned-min-interval} : 0
cache{<redacted host>}{wtime} : 30
DEBUG:    proxy    = <undefined>
DEBUG:    protocol = https
DEBUG:    server   = dynamic.zoneedit.com
DEBUG:    url      = checkip.html
DEBUG:    ip ver   = 4
SENDING:  Curl system cmd to https://dynamic.zoneedit.com
SENDING:  silent
SENDING:  include
SENDING:  ipv4
SENDING:  user-agent="ddclient/3.11.2"
SENDING:  connect-timeout=120
SENDING:  max-time=120
SENDING:  request=GET
SENDING:  url="https://dynamic.zoneedit.com/checkip.html"
DEBUG:    CURL: \/usr\/bin\/curl
DEBUG:    CURL Tempfile: /tmp/ddclient_KOWsMbbhAs
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Date: Tue, 13 Aug 2024 12:20:54 GMT
RECEIVE:  Server: Apache
RECEIVE:  Content-Length: 14
RECEIVE:  Content-Type: text/html; charset=UTF-8
RECEIVE:  
RECEIVE:  <redacted IP>
DEBUG:    get_ipv4: using (webv4, https://dynamic.zoneedit.com/checkip.html) reports <redacted IP>
DEBUG:    
DEBUG:    nic_zoneedit1_update -------------------
INFO:     setting IP address to <redacted IP> for <redacted host>
UPDATE:   updating <redacted host>
DEBUG:    proxy    = <undefined>
DEBUG:    protocol = https
DEBUG:    server   = dynamic.zoneedit.com
DEBUG:    url      = auth/dynamic.html/auth/dynamic.html?<redacted>
DEBUG:    ip ver   = 0
SENDING:  Curl system cmd to https://dynamic.zoneedit.com
SENDING:  silent
SENDING:  include
SENDING:  user-agent="ddclient/3.11.2"
SENDING:  connect-timeout=120
SENDING:  max-time=120
SENDING:  request=GET
SENDING:  user="<redacted user>:<redacted password>"
SENDING:  url="https://dynamic.zoneedit.com/auth/dynamic.html/auth/dynamic.html?host=<redacted host>&dnsto=<redacted IP>"
DEBUG:    CURL: \/usr\/bin\/curl
DEBUG:    CURL Tempfile: /tmp/ddclient_4Etl5dXCmn
RECEIVE:  HTTP/1.1 200 OK
RECEIVE:  Date: Tue, 13 Aug 2024 12:20:54 GMT
RECEIVE:  Server: Apache
RECEIVE:  Set-Cookie: PHPSESSID=d59198536f8306987dd5382ac6557d41; path=/
RECEIVE:  Expires: Thu, 19 Nov 1981 08:52:00 GMT
RECEIVE:  Cache-Control: no-store, no-cache, must-revalidate
RECEIVE:  Pragma: no-cache
RECEIVE:  Vary: Accept-Encoding
RECEIVE:  Content-Length: 217
RECEIVE:  Content-Type: text/html; charset=UTF-8
RECEIVE:  
RECEIVE:  <SUCCESS CODE="201" TEXT="no update required for <redacted host> to <redacted IP>" ZONE="<redacted zone>">
RECEIVE:  <SUCCESS CODE="200" TEXT="<redacted host> updated to <redacted IP>" ZONE="<redacted zone>">
SUCCESS:  updating <redacted host>: IP address set to <redacted IP> (201: no update required for <redacted host> to <redacted IP>)
DEBUG:    sleep 600

Every "round" of ddclient results in similar output.
The cache is updated everytime ddclient does its thing , like this :

## ddclient-3.11.2
## last updated at Tue Aug 13 14:10:53 2024 (1723551053)
atime=1723551053,host=<redacted host>,ip=<redacted IP>,mtime=0,status=failed,status-ipv4=noconnect,status-ipv6=noconnect,warned-min-error-interval=0,warned-min-interval=0,wtime=0 <redacted host>

Remark : times are not synchronized.
Looking at the cache-files it seems there is never a status-ipv4 other than noconnect, although the debug-log seems to say otherwise (it correctly gets the good ip-address).
Is my configuration somehow wrong ? Is is there anything else not OK ?
Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions