OPNsense Forum

Archive => 23.1 Legacy Series => Topic started by: tracerrx on May 31, 2023, 03:53:00 PM

Title: [Solved] ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 03:53:00 PM
Using ddclient and dyndns, my logs are full of FAILED: was not updated because protocol <undefined> is not supported.

The fix appears to be adding curl=yes to the config file as documented here: https://forums.gentoo.org/viewtopic-t-1157764.html?sid=68e7996f3c1d84fa9568be5d94fb83b9

Anyone else seeing or try this? 
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 03:53:40 PM
This just began happening somewhere in the 23.1.x series... Was working fine before that...
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 04:26:28 PM
Legacy appears to work just fine... however is this still true?

Please make sure to upgrade to os-ddclient before 23.7 is released as this plugin will be removed from our repository
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: chemlud on May 31, 2023, 04:47:03 PM
...deadly true. and no discussion/debat possible apparently.

I asked for an amount of money to be raised, to fix this once and for ever. I never got a reply

https://forum.opnsense.org/index.php?topic=32355.msg160640#msg160640
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 04:58:45 PM
I truly understand @franco frustration with the devs running these projects and lack of willingness to keep their projects up-to-date.  If we could find a stable and active client that supports the multitude of services out there, I'm sure he would be willing to do the work to get it integrated.

Hopefully @mimugmail will move the legacy plugin into his repo for now so that those of us who need a working dyndns solution have one.
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 05:13:43 PM
Did you try 23.1.9's update? https://github.com/opnsense/plugins/commit/ff873cc2f1659

But it needs a restart of ddclient which the update doesn't do if there is no reboot to cause it.


Cheers,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 05:17:21 PM
I had just installed 23.1.9 and noticed I was still having the issue.  I did not restart the service before I moved over to the legacy client however.  Will give it a quick try and report back shortly.
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 05:20:33 PM
Nope.. still fails:


2023-05-31T11:18:27-04:00 Notice ddclient[32622] 37956 - [meta sequenceId="7"] WARNING: Wait at least 5 minutes between update attempts.
2023-05-31T11:18:27-04:00 Notice ddclient[32622] 37956 - [meta sequenceId="6"] WARNING: last updated <never> but last attempt on Wed May 31 11:18:23 2023 failed.
2023-05-31T11:18:27-04:00 Notice ddclient[32622] 37956 - [meta sequenceId="5"] WARNING: skipping update of XXXXXXXXX.homeip.net from <nothing> to 1XX.XXX.XXX.XXX.
2023-05-31T11:18:23-04:00 Notice ddclient[6866] 23450 - [meta sequenceId="4"] FAILED: was not updated because protocol <undefined> is not supported.
2023-05-31T11:18:23-04:00 Notice ddclient[6866] 20074 - [meta sequenceId="3"] FAILED: updating : unexpected status (0)
2023-05-31T11:18:23-04:00 Notice ddclient[6866] 17246 - [meta sequenceId="2"] WARNING: updating : nochg: No update required; unnecessary attempts to change to the current address are considered abusive
2023-05-31T11:18:23-04:00 Notice ddclient[6866] 14493 - [meta sequenceId="1"] FAILED: updating saraniti-boniello.homeip.net: unexpected status (12)
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 05:38:23 PM
Can you check the ddclient config? Might also be wrong still.

# grep ifv4 /usr/local/etc/ddclient.conf

Should yield at least one result if properly applied.


Cheers,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 05:43:45 PM
PS: Which provider is that? This seems related: https://github.com/ddclient/ddclient/issues/481
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 05:44:21 PM
When service is stopped its empty.  When service is running:

root@OPN-Boniello:~ # grep ifv4 /usr/local/etc/ddclient.conf
usev4=ifv4, ifv4=igb0, \


Provider is DynDNS
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 05:59:45 PM
Thanks that should be dyndns2 and we may be missing this fix https://github.com/ddclient/ddclient/commit/fa6c95f5110

I can build a test version tomorrow

EDIT: Or today... https://github.com/opnsense/ports/commit/9318efdf3d1 build coming soon.


Cheers,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 06:05:38 PM
It is DynDNS2! Will take a look at the patch and see if I can apply without you doing a release...
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 06:09:05 PM
Snapshot test version:

# opnsense-revert -z ddclient-devel

To get back to "stable" one:

# opnsense-revert ddclient-devel

Make sure to restart again. I'm not sure if patches work cleanly but I'm positive you can try and help me.

Side note: there is a commit about version 3.11.0 in the works... https://github.com/ddclient/ddclient/commit/d3a353990

And let's please not complain about lack of effort :)


Thanks,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: chemlud on May 31, 2023, 06:36:45 PM
Franco, no one ever complained about unmotivated admins in this project iirc. :-)

But the frustration with dyndns nearly let the dev team abandon this functionality completely, if I got your comments over the last months/years correct. So: Nice to see that apparently even with 23.7 onwards there will be some kind of dyndns functionality in OPNsense... ;-)
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 07:16:00 PM
Applied patch, cleared log, restarted service and I still get the below:

2023-05-31T13:13:39-04:00 Notice ddclient[31901] 36422 - [meta sequenceId="7"] WARNING: Wait at least 5 minutes between update attempts.
2023-05-31T13:13:39-04:00 Notice ddclient[31901] 36422 - [meta sequenceId="6"] WARNING: last updated <never> but last attempt on Wed May 31 13:13:31 2023 failed.
2023-05-31T13:13:39-04:00 Notice ddclient[31901] 36422 - [meta sequenceId="5"] WARNING: skipping update of XXXXXXXXXX.homeip.net from <nothing> to 1XX.XXX.XXX.XXX.
2023-05-31T13:13:31-04:00 Notice ddclient[6081] 20843 - [meta sequenceId="4"] FAILED: was not updated because protocol <undefined> is not supported.
2023-05-31T13:13:31-04:00 Notice ddclient[6081] 18500 - [meta sequenceId="3"] FAILED: updating : unexpected status (0)
2023-05-31T13:13:31-04:00 Notice ddclient[6081] 16680 - [meta sequenceId="2"] WARNING: updating : nochg: No update required; unnecessary attempts to change to the current address are considered abusive
2023-05-31T13:13:31-04:00 Notice ddclient[6081] 14514 - [meta sequenceId="1"] FAILED: updating XXXXXXXXXX.homeip.net: unexpected status (12)
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on May 31, 2023, 07:29:28 PM
@franco sent you a PM with complete output of /usr/local/etc/ddclient.conf and created a test domain for you to use
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on May 31, 2023, 09:21:02 PM
I debugged this just now (yay, it's Perl!) and this is the bad line inside nic_dyndns2_update():

https://github.com/ddclient/ddclient/blob/841ffcbdaa009687e5fb390c4527055e929f959a/ddclient.in#L4197

Replace with:

my $h = $hosts[0];

In all honesty I don't understand how it tries to handle multiple host names here by browsing through the result line by line (one hostname one line????).


Cheers,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on June 01, 2023, 09:26:03 AM
PS: https://github.com/ddclient/ddclient/pull/542
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: franco on June 01, 2023, 12:53:07 PM
Here we go!

https://github.com/ddclient/ddclient/commit/1c91a5aa84
https://github.com/opnsense/ports/commit/87bbf9d6d9

# opnsense-revert -z ddclient-devel

Should install ddclient-devel-3.10.0_3...


Cheers,
Franco
Title: Re: ddclient, dyndns protocol <undefined> is not supported
Post by: tracerrx on June 01, 2023, 03:46:26 PM
Looks good! Thanks for the fix!

2023-06-01T09:43:27-04:00 Notice ddclient[45849] 75262 - [meta sequenceId="9"] FAILED: updating XXXXXX.homeip.net: unexpected status (0)
2023-06-01T09:43:27-04:00 Notice ddclient[45849] 73342 - [meta sequenceId="8"] SUCCESS: updating XXXXXX.homeip.net: good: IPv4 address set to 100.XXX.XXX.XXX
2023-06-01T09:43:27-04:00 Notice ddclient[45849] 72011 - [meta sequenceId="7"] FAILED: updating XXXXXXXX.homeip.net: unexpected status (12)
2023-06-01T09:43:21-04:00 Notice ddclient[26837] 32556 - [meta sequenceId="6"] WARNING: Wait at least 5 minutes between update attempts.
2023-06-01T09:43:21-04:00 Notice ddclient[26837] 32556 - [meta sequenceId="5"] WARNING: last updated Thu Jun 1 09:42:32 2023 but last attempt on Thu Jun 1 09:42:32 2023 failed.
2023-06-01T09:43:21-04:00 Notice ddclient[26837] 32556 - [meta sequenceId="4"] WARNING: skipping update of XXXXXXX.homeip.net from 1XX.XXX.XXX.XXX to 100.XXX.XXX.XXX.
2023-06-01T09:42:33-04:00 Notice ddclient[55964] 68145 - [meta sequenceId="3"] FAILED: updating XXXXXXXX.homeip.net: unexpected status (0)
2023-06-01T09:42:33-04:00 Notice ddclient[55964] 65768 - [meta sequenceId="2"] WARNING: updating XXXXXXXX.homeip.net: nochg: No update required; unnecessary attempts to change to the current address are considered abusive
2023-06-01T09:42:33-04:00 Notice ddclient[55964] 63951 - [meta sequenceId="1"] FAILED: updating XXXXXXXX.homeip.net: unexpected status (12)
Title: Re: [Solved] ddclient, dyndns protocol <undefined> is not supported
Post by: dcol on June 20, 2023, 12:29:31 AM
Works!
But still doesn't show Current IP or time updated in GUI.
Is it suppose to do this?
Title: Re: [Solved] ddclient, dyndns protocol <undefined> is not supported
Post by: franco on June 20, 2023, 06:27:12 AM
I'm not sure about the GUI, but it does show up in the status file:

/var/tmp/ddclient.cache

But that's only for dyndns2. I think duckdns and other code paths are still broken upstream.


Cheers,
Franco