OPNsense Forum

Archive => 19.7 Legacy Series => Topic started by: SoGX on July 17, 2019, 05:01:46 pm

Title: dynDNS does not work after upgrade
Post by: SoGX on July 17, 2019, 05:01:46 pm
Hello erverybody,

after Upgrading from 19.1.10 to 19.70 dynDNS isn't working anymore.

[17-Jul-2019 17:00:17 Europe/Berlin] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758

Did anyone have the same bug after an upgrade and have already fixed it?

Title: Re: dynDNS not working after upgrade
Post by: franco on July 17, 2019, 05:21:08 pm
Hi,

We turned warnings for PHP back on in 19.7. Are you sure there is a bug that goes along with this or are you assuming it is buggy now?

The warning by itself shouldn't be problematic and will be fixed in 19.7.1 for sure.


Cheers,
Franco
Title: Re: dynDNS not working after upgrade
Post by: SoGX on July 17, 2019, 08:03:08 pm
Hi,

i found out that is has something to do with gateway groups. If i use a single gateway for dyndns it works. If i switch to a gateway group dyndns won't work anymore.

Regards

Stephan
Title: Re: dynDNS does not work after upgrade
Post by: kodiak879 on July 18, 2019, 11:02:52 am
I am experiencing the same issue.  DynDNS works with a single gateway but fails when you set it to monitor a gateway group.
Title: Re: dynDNS does not work after upgrade
Post by: katamadone [CH] on July 19, 2019, 11:35:09 am
I've got the same error.

Code: [Select]
PHP Errors:

[19-Jul-2019 05:52:02 Europe/Zurich] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758
[19-Jul-2019 05:52:42 Europe/Zurich] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758
[19-Jul-2019 05:53:19 Europe/Zurich] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758

May this is the case because IPv6 isn't disabled, and tries to update with the fe80: adress? I don't monitor a gateway group, but the WAN interface - which is listed as WAN_DHCP6 / WAN_DHCP under Single Gateway.

But actually the Update itself works regardless of the failure.
Title: Re: dynDNS does not work after upgrade
Post by: SoGX on July 21, 2019, 11:02:29 pm
Hello,

as Franco has already written, this is just a PHP warning. This can be ignored.
The problem right now is that you can't use gateway groups for DynDNS anymore. Of course this is not nice, because you can't implement failover scenarios anymore.


Regards

Stephan
Title: Re: dynDNS does not work after upgrade
Post by: SoGX on July 22, 2019, 10:57:56 am
Maybe it has something to do with an additional IPv6 gateway that appeared after the update.
This cannot be deleted or changed.
Title: Re: dynDNS does not work after upgrade
Post by: keropiko on July 29, 2019, 01:49:24 pm
Hello,
after upgrade to 19.7, i also have problem that dyndns cannot monitor failover gateway group.
Title: Re: dynDNS does not work after upgrade
Post by: firewall on August 08, 2019, 03:01:43 am
This error is still present with the upgrade to 19.7.2.  All good with dismissing and ignoring given that it's non-critical but mentioning still because I'm not sure devs test this scenario.

Code: [Select]
PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758
Title: Re: dynDNS does not work after upgrade
Post by: DanMc85 on August 15, 2019, 03:59:33 pm
Same here:
[14-Aug-2019 18:00:27 America/New_York] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758
Title: Re: dynDNS does not work after upgrade
Post by: tyler on August 19, 2019, 09:46:07 pm
Still same here on OPNsense 19.7.2.

[17-Aug-2019 23:40:05 America/Chicago] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 758

Any news? Between this and some other issues I've been encountering, I've wondered if it might be safer to switch to pfSense?
Title: Re: dynDNS does not work after upgrade
Post by: firewall on October 21, 2019, 05:38:12 pm
This error is still present with the upgrade to 19.7.5_5.
Title: Re: dynDNS does not work after upgrade
Post by: MBfromOK on February 16, 2020, 09:18:23 pm
Still an issue with OPNsense 19.7.5 bb0e6e52c

Instead of claiming that this is not an issue and pointing to the fact that PHP warnings were turned back on in 19.7, please explain what is causing this and how to fix it.  This message is indicating that an action is SUPPOSED to be performed "For Each" instance of something...

Based on the discussion it seems to be stating that an action is supposed to be performed for each Gateway in a list... How do we fix our configs so that our error log isn't listing this supposedly not important error (so that we can focus on things that are actual security / operational concerns)?
Title: Re: dynDNS does not work after upgrade
Post by: franco on February 17, 2020, 11:18:11 am
Why don't you try 19.7.10 before posting about 19.7.5. ;)


Cheers,
Franco
Title: Re: dynDNS does not work after upgrade
Post by: firewall on February 17, 2020, 09:39:45 pm
Why don't you try 19.7.10 before posting about 19.7.5. ;)


Cheers,
Franco

i'm still seeing this error in 20.1.1
Title: Re: dynDNS does not work after upgrade
Post by: franco on February 18, 2020, 10:05:24 am
Good, install os-debug plugin and post full stack trace error please.


Thanks,
Franco
Title: Re: dynDNS does not work after upgrade
Post by: firewall on February 21, 2020, 12:52:59 am
Here you are sir:

Code: [Select]
[20-Feb-2020 01:49:27 Internet/Forums] PHP Warning:  Invalid argument supplied for foreach() in /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc on line 775
[20-Feb-2020 01:49:27 Internet/Forums] PHP Stack trace:
[20-Feb-2020 01:49:27 Internet/Forums] PHP   1. {main}() /usr/local/etc/rc.dyndns:0
[20-Feb-2020 01:49:27 Internet/Forums] PHP   2. dyndns_configure_do() /usr/local/etc/rc.dyndns:49
[20-Feb-2020 01:49:27 Internet/Forums] PHP   3. dyndns_configure_client() /usr/local/etc/inc/plugins.inc.d/dyndns.inc:204
[20-Feb-2020 01:49:27 Internet/Forums] PHP   4. updatedns->__construct() /usr/local/etc/inc/plugins.inc.d/dyndns.inc:179
[20-Feb-2020 01:49:27 Internet/Forums] PHP   5. updatedns->_update() /usr/local/etc/inc/plugins.inc.d/dyndns/phpDynDNS.inc:361
Title: Re: dynDNS does not work after upgrade
Post by: franco on February 21, 2020, 09:39:44 am
It means there is no result from Cloudflare zone request. Are your settings correct? Anything in the system log regarding dyndns?