ddclient / ddclient

Ddclient updates dynamic DNS entries for accounts on a wide range of dynamic DNS services.

Home Page:https://ddclient.net

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SOLVED Funky ddclient log message: FAILED: was not updated because protocol <undefined> is not supported.

roundmonkey opened this issue · comments

I report that on Debian12 ddclient is fully functional. Even SSL works! Sweet!

The issue is this absolutely horrible looking error message that apparently means diddly squat. It seems to just be the way the script is handling the exit on an error out generated when it doesn't need to push an update. This only shows on a first run when it has no /var/cache/ddclient/ddclient.cache file. After that it seems to quieten down.

Unbelievably just seeing that message can be enough to convince some people that ddclient is completely broken, especially if one finds other lost misguided souls posting compelling insanity on the subject and one tries their commands to fix something that's not actually broken. Take a wild guess how I know this.

journalctl -t 'ddclient'
ddclient[2454]: SUCCESS: updating test.monkeys.us: IP address set to 9.9.9.9 (201: no update required for test.monkey.us to 9.9.9.9)
ddclient[2456]: SUCCESS: updating : IP address set to 9.9.9.9 (200: test.monkeys.us updated to 9.9.9.9)
ddclient[2458]: FAILED: was not updated because protocol is not supported.

However, the error is easily repeatable.

/usr/bin/ddclient -daemon=0 -noquiet -debug -verbose -force
/....lots mo' stuff..../
RECEIVE: Connection: close
RECEIVE: Content-Type: text/html; charset=UTF-8
RECEIVE:
RECEIVE:
RECEIVE:
SUCCESS: updating test.monkeys.us: IP address set to 9.9.9.9 (201: no update required for test.monkeys.us to 9.9.9.9)
Use of uninitialized value $h in hash element at /usr/bin/ddclient line 4556.
Use of uninitialized value $h in hash element at /usr/bin/ddclient line 4557.
Use of uninitialized value $h in hash element at /usr/bin/ddclient line 4558.
Use of uninitialized value $_[0] in sprintf at /usr/bin/ddclient line 2160.
SUCCESS: updating : IP address set to 9.9.9.9 (200: test.monkeys.us updated to 9.9.9.9)
FAILED: was not updated because protocol is not supported.

Configuration file for ddclient generated by debconf

/etc/ddclient.conf

ssl=yes
protocol=zoneedit1
use=web, web=zoneedit
login=monkeydo
password='********'
test.monkeys.us

ddclient version 3.10.0,
originally written by Paul Burry, paul+ddclient@burry.ca
project now maintained on https://github.com/ddclient/ddclient

The fix is to just download from https://github.com/ddclient/ddclient/releases like maybe v3.11.2 and overwrite the perl file at
/usr/bin/ddclient

The file in the zip is ddclient.in so just extract and rename

chmod +x /usr/bin/ddclient

He moved the ddclient.conf file.

mkdir /etc/ddclient
mv /etc/ddclient.conf /etc/ddclient/

Remove old cache file. It seems a bit confused otherwise.
rm /var/cache/ddclient/ddclient.cache

Viola! No more wacky messages.