os-ddclient 1.7 - PHP Error

Started by Souljacker, June 24, 2022, 08:08:45 AM

Previous topic - Next topic
I've done the update, fixed a few oddities in our plugin and finally tested version 0.3.10 and it break my duckdns test case:

FAILED:   updating xxx.duckdns.org: Server said: '0'

On the currently available version:

SUCCESS:  updating xxx.duckdns.org: good: IP address set to x.y.z.a

For anyone who wants to try the commit for ports is https://github.com/opnsense/ports/commit/34c7fd00d8f1c


Cheers,
Franco


This one solve the issue but when you update or add a new domain error message shows again.

Quote from: AdSchellevis on June 24, 2022, 08:26:37 PM
can you try https://github.com/opnsense/plugins/commit/339993680de4453962d21546a181550bd1cc0f0f ?

To install via a console, use the following command:


opnsense-patch -c plugins 33999368


the /var/tmp/ddclient.cache  file likely contains incomplete data.

Best regards,

Ad

ddclient does not work for me. the older legacy work fine for a couple years
I did the update to 1.7_2 which did fix the PHP errors.

Here is what I get now
2022-06-29T14:34:28-07:00   Notice   ddclient[96998]   34730 - [meta sequenceId="4"] WARNING: found neither ipv4 nor ipv6 address   
2022-06-29T14:34:17-07:00   Notice   ddclient[9503]   24521 - [meta sequenceId="3"] WARNING: file /usr/local/etc/ddclient.conf: file /usr/local/etc/ddclient.conf must be accessible only by its owner (fixed).

How to fix?

dyndns checkip service with forced TLS doesn't yield an address it seems, e.g. freedns checkip service works fine. legacy plugin never used https for checkip so "it" wasn't an "issue".


Cheers,
Franco

What about the other item 'must be accessible only by its owner (fixed)'
Is this something I need to address?

What really concerns me is that ddclient is not presenting itself to my Dynamic DNS service. Updates are not occurring. There are no log entries for this either.

I am seeing the same "file /usr/local/etc/ddclient.conf must be accessible only by its owner (fixed)" error messages. When I check the file I see:


root@OPNsense:/usr/local/etc # ll ddclient.conf
-rw-------  1 root  wheel  239 Jun 29 06:26 ddclient.conf


ddclient appears to be running as "root", so I believe the message is bogus.
- Jim

I've added a "fix" for the permission to the next version, but I agree that it is more or less esoteric.

https://github.com/opnsense/plugins/commit/8e7ec17828f3


Cheers,
Franco