Closed shirogitsune closed 4 years ago
@Ansuel any opinion? I think the root cause of the problem is this line https://github.com/openwrt/luci/blob/openwrt-18.06/applications/luci-app-ddns/luasrc/controller/ddns.lua#L117 @shirogitsune Could you change this line and return always true?
problem is in
ver = IPKG.info(srv_name)[srv_name].Version
for some reason IPKG.info can't find srv_name (ddns_scripts) and fail to access the key with index srv_name A bug in IPKG.info ? Or the module was different in 18.06 ?
The module.ipkg
class is extremely expensive, isn't there some more lightweight way to obtain the installed version?
Well i think use the os.popen is equally expensive... Should we use it and remove ipkg module ?
@Ansuel any opinion? I think the root cause of the problem is this line https://github.com/openwrt/luci/blob/openwrt-18.06/applications/luci-app-ddns/luasrc/controller/ddns.lua#L117 @shirogitsune Could you change this line and return always true?
@feckert. I tried that along with verifying that the helper script returned a valid version number. Still failed. :(
you need to clear luci cache
rm -r /tmp/luci-*
@Ansuel I was going to try what you suggested once I got home from work. However, I clicked on the "Dynamic DNS" and it has apparently decided to begin working. I checked the lua script and it was unmodified so I cleared the luci cache as you suggested and it's still working. One of three things has apparently happened:
I suspect #3 is what fixed it, but I'm not going to rule out 1 or 2. Thanks everyone.
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)
you need to clear luci cache
rm -r /tmp/luci-*
yes, It works
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:The
ddns-scripts
package is version 2.7.8-1 and the configuration file is the default one generated upon install.Release Info:
Installed Packages:
rpcd info:
board info:
ubus Login: