Bug 1213181

Summary: ddclient dose not work for cloudflare
Product: [openSUSE] openSUSE Distribution Reporter: Hillwood Yang <hillwoodroc>
Component: NetworkAssignee: Valentin Lefebvre <valentin.lefebvre>
Status: IN_PROGRESS --- QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: meissner
Version: Leap 15.4   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Hillwood Yang 2023-07-10 13:39:02 UTC
openSUSE-HW:/home/hillwood # ddclient
FATAL:    Error loading the Perl module JSON::Any needed for cloudflare update.

It's my config:
# /etc/ddclient.conf
daemon=300                              # check every 300 seconds
syslog=yes                              # log update msgs to syslog
#mail=root                              # mail all msgs to root
mail-failure=root               # mail failed update msgs to root
pid=/run/ddclient/ddclient.pid          # record PID in file.
ssl=yes
protocol=cloudflare
ttl=1
# use=web
# web=checkip.dyndns.org
usev6=if, if=br0
login=email
password=API Key
zone=hillwoodhome.net
cloud.home.hillwoodhome.net

ddclient 3.10.0 works fine with this config. We should provide an update for Leap.
Comment 1 hui 2023-07-10 17:01:42 UTC
*** Bug 1213182 has been marked as a duplicate of this bug. ***
Comment 2 Marcus Meissner 2023-07-17 14:08:27 UTC
obs rq show -d 1098919

is a submit of a major version to ddclient to openSUSE Maintenance.

but as ddclient comes from SLE , can you take a look on how to fix this.

We can consider a version update, but the changes should stay linear probably.
Comment 4 Valentin Lefebvre 2023-07-19 13:56:17 UTC
(In reply to Hillwood Yang from comment #0)
> openSUSE-HW:/home/hillwood # ddclient
> FATAL:    Error loading the Perl module JSON::Any needed for cloudflare
> update.
> 
> It's my config:
> # /etc/ddclient.conf
> daemon=300                              # check every 300 seconds
> syslog=yes                              # log update msgs to syslog
> #mail=root                              # mail all msgs to root
> mail-failure=root               # mail failed update msgs to root
> pid=/run/ddclient/ddclient.pid          # record PID in file.
> ssl=yes
> protocol=cloudflare
> ttl=1
> # use=web
> # web=checkip.dyndns.org
> usev6=if, if=br0
> login=email
> password=API Key
> zone=hillwoodhome.net
> cloud.home.hillwoodhome.net
> 
> ddclient 3.10.0 works fine with this config. We should provide an update for
> Leap.

Thanks for the report.

May I suggest to give a try to patch ddclient before trying to update it via an ECO process.
I provided one that fix the warning message. The fixed package is available at this link: https://download.opensuse.org/repositories/home:/vlefebvre:/branches:/openSUSE:/Leap:/15.2:/Update/Leap_15.4/noarch/ddclient-3.8.3-lp154.4.6.1.noarch.rpm

Should it be possible for you to test it? If you have a configured environment ?

To do that here is the process:

```
cd /tmp
wget https://download.opensuse.org/repositories/home:/vlefebvre:/branches:/openSUSE:/Leap:/15.2:/Update/Leap_15.4/noarch/ddclient-3.8.3-lp154.4.6.1.noarch.rpm
zypper in --oldpackage ./ddclient-3.8.3-lp154.4.6.1.noarch.rpm
Ignore Signature process
rm ./ddclient-3.8.3-lp154.4.6.1.noarch.rpm
```

If it is suitable for you, I will backport it to SLE, and it will be available on Leap 15.4.
Otherwise, We will go through a version update on SLE/Leap.
Comment 5 Hillwood Yang 2023-07-25 12:33:41 UTC
This backport version no longer output error. But there still is not any change after I start ddclient deamon. Test it on my VPS Leap 15.4.
Comment 6 Valentin Lefebvre 2023-07-25 15:50:22 UTC
(In reply to Hillwood Yang from comment #5)
> This backport version no longer output error. But there still is not any
> change after I start ddclient deamon. Test it on my VPS Leap 15.4.

Thanks for your feed-back. We will go to an update from 3.8.1 to 3.10.0 on SLE.