firmware icon indicating copy to clipboard operation
firmware copied to clipboard

admin/freifunk/assistent/wireless - Failed to execute cbi dispatcher target

Open ilippert opened this issue 5 years ago • 1 comments

Bug report

What is the problem? I want to use the assistant to change bandwidth and location of the router.

Instead of being able to do this, I get this error

Failed to execute cbi dispatcher target for entry '/admin/freifunk/assistent/wireless'.
The called action terminated with an exception:
...b/lua/luci/model/cbi/freifunk/assistent/wireless.lua:361: bad argument #2 to 'tonumber' (integer expected, got string)
stack traceback:
	[C]: in function 'tonumber'
	...b/lua/luci/model/cbi/freifunk/assistent/wireless.lua:361: in function 'getchannel'
	...b/lua/luci/model/cbi/freifunk/assistent/wireless.lua:160: in function 'i'
	/usr/lib/lua/luci/model/uci.lua:203: in function 'foreach'
	...b/lua/luci/model/cbi/freifunk/assistent/wireless.lua:122: in function 'write'
	...b/lua/luci/model/cbi/freifunk/assistent/wireless.lua:100: in function 'parse'
	/usr/lib/lua/luci/cbi.lua:201: in function 'parse'
	/usr/lib/lua/luci/cbi.lua:201: in function 'parse'
	/usr/lib/lua/luci/cbi.lua:559: in function 'parse'
	/usr/lib/lua/luci/dispatcher.lua:871: in function </usr/lib/lua/luci/dispatcher.lua:863>

This occurs on a gl-mt300n-v2 router

What is the expected behaviour? I should be able to use the assistant to adapt bandwidth.

Firmware Version: git-19.249.30590-a328a50) / Freifunk Berlin Development abc3c31

Site Configuration: I have freshly installed firmware. Then restored an old configuration from the same router that has worked successfully for years.

ilippert avatar May 12 '20 22:05 ilippert

This is a very old Development build (a branch from master from 13 Dec 2019). Can you retest with a recent build? There have been some upstream fixes, which already might fix the problem.

  • e.g. https://github.com/freifunk-berlin/firmware-packages/commit/b03e01ed5a3b691a19cf284627aab9820ce6c2b8
  • https://github.com/freifunk-berlin/firmware/issues/754

SvenRoederer avatar May 13 '20 22:05 SvenRoederer