DDNS service broken (cannot detect local IP)

I am getting the following with my dyn dns scripts on my Archer C7. These used to work some time ago, I don't exactly know what might have broken them. I was fiddling around with a wireguard setup, and I did a mass package update as well, but cannot be sure either of them broke my services.

002821  note : PID '25973' started at 2020-06-14 00:28
 002822       : ddns version  : 2.7.8-13
 002822       : uci configuration:
ddns.myddns_ipv4.check_interval='5'
ddns.myddns_ipv4.domain=redacted
ddns.myddns_ipv4.enabled='1'
ddns.myddns_ipv4.force_interval='1'
ddns.myddns_ipv4.interface='wan'
ddns.myddns_ipv4.ip_network='wan'
ddns.myddns_ipv4.ip_source='network'
ddns.myddns_ipv4.lookup_host=redacted
ddns.myddns_ipv4.password='***PW***'
ddns.myddns_ipv4.service_name='afraid.org-basicauth'
ddns.myddns_ipv4.username=redacted
ddns.myddns_ipv4=service
 002822       : verbose mode  : 0 - run normal, NO console output
 002822       : check interval: 300 seconds
 002822       : force interval: 3600 seconds
 002822       : retry interval: 60 seconds
 002822       : retry counter : 0 times
 002822       : No old process
 002822       : last update: never
 002822       : Detect registered/public IP
 002822       : #> /usr/bin/nslookup redacted  >/var/run/ddns/myddns_ipv4.dat 2>/var/run/ddns/myddns_ipv4.err
 002822       : Registered IP '84.236.3.166' detected
 002822  info : Starting main loop at 2020-06-14 00:28
 002822       : Detect local IP on 'network'
 002822 ERROR : Can not detect local IP using network_get_ipaddr 'wan' - Error: '1' - TERMINATE
 002823  WARN : PID '25973' exit WITH ERROR '1' at 2020-06-14 00:28

Any idea what might cause this? I do have a public IP. Thanks,

Do you still have an interface named wan (case-sensitive)

I think so - that was the 1st thing I checked in LuCi, since the wg install plays around with creating interfaces and stuff. I wasn't sure in the upper- or lowercase name of the interface, so I checked through ssh.

Here is the output of uci show network:

network.loopback=interface
network.loopback.ifname='lo'
network.loopback.proto='static'
network.loopback.ipaddr='127.0.0.1'
network.loopback.netmask='255.0.0.0'
network.globals=globals
network.globals.ula_prefix='fd19:ef01:4d83::/48'
network.lan=interface
network.lan.type='bridge'
network.lan.ifname='eth1.1'
network.lan.proto='static'
network.lan.ipaddr='192.168.1.1'
network.lan.netmask='255.255.255.0'
network.lan.ip6assign='60'
network.wan=interface
network.wan.ifname='eth0.2'
network.wan.proto='pppoe'
network.wan.ipv6='auto'
network.wan.username='redacted'
network.wan.password='redacted'
network.wan6=interface
network.wan6.ifname='eth0.2'
network.wan6.proto='pppoe'
network.wan6.ipv6='auto'
network.wan6.username='redacted'
network.wan6.password='redacted'
network.@switch[0]=switch
network.@switch[0].name='switch0'
network.@switch[0].reset='1'
network.@switch[0].enable_vlan='1'
network.@switch_vlan[0]=switch_vlan
network.@switch_vlan[0].device='switch0'
network.@switch_vlan[0].vlan='1'
network.@switch_vlan[0].ports='2 3 4 5 0t'
network.@switch_vlan[1]=switch_vlan
network.@switch_vlan[1].device='switch0'
network.@switch_vlan[1].vlan='2'
network.@switch_vlan[1].ports='1 6t'
network.wg0=interface
network.wg0.proto='wireguard'
network.wg0.private_key='redacted'
network.wg0.listen_port='51820'
network.wg0.addresses='192.168.9.1/24' 'fdf1:7610:d152:3a9c::1/64'
network.wgclient=wireguard_wg0
network.wgclient.public_key='redacted'
network.wgclient.preshared_key='redacted'
network.wgclient.allowed_ips='192.168.9.0/24' 'fdf1:7610:d152:3a9c::1/64'

No, it looks fine to me.
Maybe the package upgrade you mentioned in the first post had something to do with it.
If there is no better idea, take a backup, reset to defaults, restore backup, and start installing one by one packages without upgrading, unless there is some known vulnerability and there is an advisory.

I ended up doing exactly this. Fortunately I had a backup from before I started configuring Wireguard. Now the ddns scipts seem to be working.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.