Namecheap with DynDNS receives "unknown response" after upgrade to 21.7

Started by eschmacher, November 19, 2021, 05:08:52 PM

Previous topic - Next topic
I recently upgraded from 21.1 to 21.7.5. I have one domain set up with namecheap, and recently received a pop up on the lobby page about an error.

The error was:
[19-Nov-2021 11:02:30 America/New_York] PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[19-Nov-2021 11:02:30 America/New_York] PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[19-Nov-2021 11:02:30 America/New_York] PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502


I submitted this error report and then tried forcing dyndns update manually to watch the log. Everything looked fine except for the final line:

/services_dyndns_edit.php: Dynamic DNS: (Unknown Response)

Is this something that got broken during the upgrade from 21.1? Should I consider wiping my dyndns settings and putting it in fresh?

So, I started with a fresh install, imported my config, and got the same error.

Then I removed my dyndns config entirely, and added my namecheap account again. Issue immediately returns after save and force update. Maybe namecheap changed something in their response?

Does the update work anyway? There are other dyndns services out there... ;-)
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....

It does update the IP in namecheap, but the "cached IP" in opnsense shows N/A.
Also, there are other dyndns clients plugins for opnsense? I'd rather keep it on my gateway.

no, I mean there are other dyndns service providers out there, look drop down menu under "Service type" in Services -> Dynamic DNS

Or try "Service type" -> Custom and enter the credentials you have...
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....


Quote from: ezhik on November 20, 2021, 10:19:04 PM
Can confirm, exact same issue here!

Thanks for chiming in! Seems like an issue with namecheap or the dyndns package then.


Same issue here and it generates a dump file every time has well, have submitted to the team.

Hopefully a fix soon

There should be a log line in the system log starting with "Dynamic DNS (namecheap): PAYLOAD". What does it say?

This seems like namecheap changed the response since the code hasn't changed or something with PHP 7.3 -> 7.4 migration. Not sure.


Cheers,
Franco

This is what my one says :

2021-11-19T01:11:00   opnsense[13440]   /usr/local/etc/rc.dyndns: Dynamic DNS (domain.com): PAYLOAD: <?xml version="1.0" encoding="utf-16"?>

I also get this just about every day when I log into the web Gui :

PHP Errors:

[25-Nov-2021 00:38:35  PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:35  PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:35 PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 00:38:42  PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 01:11:00 PHP Warning:  simplexml_load_string(): Entity: line 1: parser error : Document labelled UTF-16 but has UTF-8 content in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 01:11:00  PHP Warning:  simplexml_load_string():  in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502
[25-Nov-2021 01:11:00 PHP Warning:  simplexml_load_string():                                      ^ in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 1502

I would expect these errors to repeat if the issue is indeed not solved ;)

Please try the patch at https://github.com/opnsense/plugins/issues/2666#issuecomment-979154701

It's really just a POC to see if the remote end broken this.


Cheers,
Franco


This means the issue is on namecheap's end, as I understand it.

I already brought this up to a namecheap rep and they said they're investigating.
https://www.reddit.com/r/NameCheap/comments/qz1mjf/namecheap_dynamic_dns_returning_utf16_encoded/hljqzja