question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

luci-app-ddns displays error on load

See original GitHub issue

Upgrading OpernWRT on my TP-Link 1043ND v1 and completely clearing the configurations due to some weird behavior and instability.

I Installed luci-app-ddns version 2.4.9-3 and when navigating to the “Services” > “Dynamic DNS” menu item, I am confronted with the following error message:

Failed to execute cbi dispatcher target for entry '/admin/services/ddns'.
The called action terminated with an exception:
/usr/lib/lua/luci/controller/ddns.lua:107: attempt to index field '?' (a nil value)
stack traceback:
	/usr/lib/lua/luci/controller/ddns.lua:107: in function 'service_version'
	/usr/lib/lua/luci/controller/ddns.lua:117: in function 'service_ok'
	/usr/lib/lua/luci/model/cbi/ddns/overview.lua:20: in function 'func'
	/usr/lib/lua/luci/cbi.lua:66: in function 'load'
	/usr/lib/lua/luci/dispatcher.lua:845: in function </usr/lib/lua/luci/dispatcher.lua:839>

The ddns-scripts package is version 2.7.8-1 and the configuration file is the default one generated upon install.

Release Info:

root@OpenWrt:~# cat /etc/os-release
NAME="OpenWrt"
VERSION="18.06.5"
ID="openwrt"
ID_LIKE="lede openwrt"
PRETTY_NAME="OpenWrt 18.06.5"
VERSION_ID="18.06.5"
HOME_URL="http://openwrt.org/"
BUG_URL="http://bugs.openwrt.org/"
SUPPORT_URL="http://forum.lede-project.org/"
BUILD_ID="r7897-9d401013fc"
LEDE_BOARD="ar71xx/generic"
LEDE_ARCH="mips_24kc"
LEDE_TAINTS=""
LEDE_DEVICE_MANUFACTURER="OpenWrt"
LEDE_DEVICE_MANUFACTURER_URL="http://openwrt.org/"
LEDE_DEVICE_PRODUCT="Generic"
LEDE_DEVICE_REVISION="v0"
LEDE_RELEASE="OpenWrt 18.06.5 r7897-9d401013fc"

Installed Packages:

root@OpenWrt:~# opkg list-installed
base-files - 194.2-r7897-9d401013fc
busybox - 1.28.4-3
ddns-scripts - 2.7.8-1
dnsmasq - 2.80-1.4
dropbear - 2017.75-7.1
firewall - 2018-08-13-1c4d5bcd-1
fstools - 2019-03-28-ff1ded63-5
fwtool - 1
hostapd-common - 2018-05-21-62566bc2-8
ip6tables - 1.6.2-3
iptables - 1.6.2-3
iw - 4.14-1
iwinfo - 2018-07-31-65b8333f-1
jshn - 2018-07-25-c83a84af-2
jsonfilter - 2018-02-04-c7e938d6-1
kernel - 4.9.198-1-2b8f9dfe583e5c09aadd9474da55137f
kmod-ath - 4.9.198+2017-11-01-10
kmod-ath9k - 4.9.198+2017-11-01-10
kmod-ath9k-common - 4.9.198+2017-11-01-10
kmod-cfg80211 - 4.9.198+2017-11-01-10
kmod-gpio-button-hotplug - 4.9.198-2
kmod-ip6tables - 4.9.198-1
kmod-ipt-conntrack - 4.9.198-1
kmod-ipt-core - 4.9.198-1
kmod-ipt-nat - 4.9.198-1
kmod-lib-crc-ccitt - 4.9.198-1
kmod-mac80211 - 4.9.198+2017-11-01-10
kmod-nf-conntrack - 4.9.198-1
kmod-nf-conntrack6 - 4.9.198-1
kmod-nf-ipt - 4.9.198-1
kmod-nf-ipt6 - 4.9.198-1
kmod-nf-nat - 4.9.198-1
kmod-nf-reject - 4.9.198-1
kmod-nf-reject6 - 4.9.198-1
kmod-nls-base - 4.9.198-1
kmod-ppp - 4.9.198-1
kmod-pppoe - 4.9.198-1
kmod-pppox - 4.9.198-1
kmod-slhc - 4.9.198-1
kmod-usb-core - 4.9.198-1
kmod-usb-ehci - 4.9.198-1
kmod-usb-ledtrig-usbport - 4.9.198-1
kmod-usb2 - 4.9.198-1
libblobmsg-json - 2018-07-25-c83a84af-2
libc - 1.1.19-2
libgcc - 7.3.0-2
libip4tc - 1.6.2-3
libip6tc - 1.6.2-3
libiwinfo - 2018-07-31-65b8333f-1
libiwinfo-lua - 2018-07-31-65b8333f-1
libjson-c - 0.12.1-2
libjson-script - 2018-07-25-c83a84af-2
liblua - 5.1.5-1
liblucihttp - 2019-07-05-a34a17d5-1
liblucihttp-lua - 2019-07-05-a34a17d5-1
libmbedtls - 2.16.3-1
libnl-tiny - 0.1-5
libpthread - 1.1.19-2
libubox - 2018-07-25-c83a84af-2
libubus - 2018-10-06-221ce7e7-1
libubus-lua - 2018-10-06-221ce7e7-1
libuci - 2019-05-17-f199b961-1
libuclient - 2018-11-24-3ba74ebc-1
libustream-mbedtls - 2018-07-30-23a3f283-2
libxtables - 1.6.2-3
logd - 2018-02-14-128bc35f-2
lua - 5.1.5-1
luci - git-19.309.48729-bc17ef6-1
luci-app-ddns - 2.4.9-3
luci-app-firewall - git-19.309.48729-bc17ef6-1
luci-base - git-19.309.48729-bc17ef6-1
luci-lib-ip - git-19.309.48729-bc17ef6-1
luci-lib-jsonc - git-19.309.48729-bc17ef6-1
luci-lib-nixio - git-19.309.48729-bc17ef6-1
luci-mod-admin-full - git-19.309.48729-bc17ef6-1
luci-proto-ipv6 - git-19.309.48729-bc17ef6-1
luci-proto-ppp - git-19.309.48729-bc17ef6-1
luci-ssl - git-19.334.34552-3a3d8f4-1
luci-theme-bootstrap - git-19.309.48729-bc17ef6-1
mtd - 23
netifd - 2019-01-31-a2aba5c7-2.1
odhcp6c - 2018-07-14-67ae6a71-15
odhcpd-ipv6only - 1.15-3
openwrt-keyring - 2018-05-18-103a32e9-1
opkg - 2019-06-14-dcbc142e-1
ppp - 2.4.7-12
ppp-mod-pppoe - 2.4.7-12
procd - 2018-03-28-dfb68f85-1
px5g-mbedtls - 6
rpcd - 2018-11-28-3aa81d0d-2
rpcd-mod-rrdns - 20170710
swconfig - 11
uboot-envtools - 2018.03-1
ubox - 2018-02-14-128bc35f-2
ubus - 2018-10-06-221ce7e7-1
ubusd - 2018-10-06-221ce7e7-1
uci - 2019-05-17-f199b961-1
uclient-fetch - 2018-11-24-3ba74ebc-1
uhttpd - 2018-11-28-cdfc902a-3
usign - 2019-08-06-5a52b379-1
wireless-regdb - 2017-10-20-4343d359
wpad-mini - 2018-05-21-62566bc2-8

rpcd info:

root@OpenWrt:~# ps ww | grep rpcd
  835 root      1528 S    /sbin/rpcd -s /var/run/ubus.sock -t 30
14684 root      1200 S    grep rpcd

board info:

root@OpenWrt:~# lua -lluci.util -lubus -e 'luci.util.dumptable(ubus.connect():call("system", "board", {}))'
board_name      tl-wr1043nd
hostname        OpenWrt
release table: 0x431cb0
        distribution    OpenWrt
        revision        r7897-9d401013fc
        version 18.06.5
        target  ar71xx/generic
        description     OpenWrt 18.06.5 r7897-9d401013fc
model   TP-Link TL-WR1043N/ND v1
kernel  4.9.198
system  Atheros AR9132 rev 2

ubus Login:

root@OpenWrt:~# ubus call session login '{ "username": "root", "password": "********" }'
{
        "ubus_rpc_session": "08c797a0968473e16845b11bbe1b1760",
        "timeout": 300,
        "expires": 299,
        "acls": {
                "access-group": {
                        "uci-access": [
                                "read",
                                "write"
                        ],
                        "unauthenticated": [
                                "read"
                        ]
                },
                "ubus": {
                        "session": [
                                "access",
                                "login"
                        ]
                },
                "uci": {
                        "*": [
                                "read",
                                "write"
                        ]
                }
        },
        "data": {
                "username": "root"
        }
}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
gdamjancommented, May 4, 2020

Slightly related to this, I’m getting the following error, and I suspect it is because I don’t have opkg installed at all (I build my own image with all I need). Should opkg be optional somehow, or at least specified as a package dependency?

Failed to execute cbi dispatcher target for entry '/admin/services/ddns'.
The called action terminated with an exception:
/usr/lib/lua/luci/controller/ddns.lua:116: attempt to index field '?' (a nil value)
stack traceback:
	/usr/lib/lua/luci/controller/ddns.lua:116: in function 'service_version'
	/usr/lib/lua/luci/controller/ddns.lua:126: in function 'service_ok'
	/usr/lib/lua/luci/model/cbi/ddns/overview.lua:20: in function 'func'
	/usr/lib/lua/luci/cbi.lua:66: in function 'load'
	/usr/lib/lua/luci/dispatcher.lua:943: in function </usr/lib/lua/luci/dispatcher.lua:937>

(this is on 19.07-HEAD)

0reactions
qingshengwencommented, Nov 2, 2020

you need to clear luci cache

rm -r /tmp/luci-*

yes, It works

Read more comments on GitHub >

github_iconTop Results From Across the Web

ERROR luci-app-ddns - Installing and Using OpenWrt
Hi support, Any time that use the package luci-ddns-app, after a lit bit of time not start more, i must to reboot router...
Read more >
[luci] [applications] ddns: New/rewritten Version to support ...
-15,16 +16,238 @@ module("luci.controller.ddns", package.seeall) +require ... "check_unit", "not displayed, but needed otherwise error", ...
Read more >
luci-app-sqm "404 Not Found" after sysupgrade to 18.06.1
There were still stale state in SQM files. Notice that your remove command did not remove a sqm package. The correct name is...
Read more >
How to update IP from OpenWRT? - OpenDNS
This screen shot significantly differs from the documentation at openwrt.org. :( "Under the DDNS configuration section I selected OpenDNS as ...
Read more >
Openwrt ddns setup for Namecheap - ELECTROpit
Installed “luci-app-ddns” package; Existing host record in Namecheap advanced DNS settings; Enabled Dynamic DNS service in Namecheap dashboard ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found