tch-nginx-gui icon indicating copy to clipboard operation
tch-nginx-gui copied to clipboard

GUI becoming slow after a failed Refresh Data

Open Dark4Codrutz opened this issue 4 years ago • 2 comments

DebugHelper2020-01-29-0339.tar.gz

Device Model: DGA4132 Gui Version: 9.5.17, 9.5.14 , 9.5.13 (when I first noticed it)

Description of problem Using the GUI to see connected devices and doing multiple data refreshes during the process it will eventually hang at Loading screen after a data refresh. After that, upon refreshing the web page to attempt resuming, the Wireless card doesn't show any information and the GUI is partially unusable and very slow like for eg. it hangs again in certain situations while loading data when opening some cards.

The logs show this error:


daemon.err nginx: 2020/01/29 03:37:18 [error] 10630#0: *108 lua entry thread aborted: runtime error: [string "/modals/hostmap-modal.lp"]:19: attempt to index a nil value stack traceback: coroutine 0: 	[string "/modals/hostmap-modal.lp"]:19: in function 'AJAX' 	[string "/modals/hostmap-modal.lp"]:48: in function 'content' 	/usr/lib/lua/web/web.lua:268: in function 'process' 	content_by_lua(nginx.conf:109):4: in function , client: 192.168.1.3, server: localhost, request: "GET /modals/hostmap-modal.lp?isAjax=1&path=sys.hosts.host.28&mac=a0%3A6f%3Aaa%3A52%3A72%3Afe&ap=ap1 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"

daemon.err transformer[10564]: getter(sys.hosts., ActiveEthernetNumberOfEntries) threw an error: /usr/share/transformer/mappings/rpc/sys.hosts.map:84: retrieving hosts failed stack traceback: 	[C]: in function 'error' 	/usr/share/transformer/mappings/rpc/sys.hosts.map:84: in function 'updateLanCache' 	/usr/share/transformer/mappings/rpc/sys.hosts.map:135: in function /share/transformer/mappings/rpc/sys.hosts.map:133> 	[C]: in function 'xpcall' 	navigation.lua:169: in function 'get_parameter_value' 	navigation.lua:207: in function 'get' 	api.lua:190: in function <181><86><441><464><492>

""

Annotation 2020-01-29 034219

Dark4Codrutz avatar Jan 29 '20 03:01 Dark4Codrutz

Still an issue on 9.5.17 Edited OP: added How to reproduce steps

Dark4Codrutz avatar Feb 28 '20 00:02 Dark4Codrutz

new error encountered:


2020/04/07 23:54:40 [error] 2124#0: *54 lua entry thread aborted: runtime error: [string "/modals/wireless-modal.lp"]:146: bad argument #1 to 'ipairs' (table expected, got nil) stack traceback: coroutine 0: [C]: in function 'ipairs' [string "/modals/wireless-modal.lp"]:146: in function 'content' /usr/lib/lua/web/web.lua:268: in function 'process' content_by_lua(nginx.conf:117):4: in function , client: 192.168.1.3, server: localhost, request: "GET /modals/wireless-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"

again, a nil value returned and this starts to become a pattern. Also seen here #893 (and where else?)

Can this be caused by my system having a 554KB ngnix binary in /usr/sbin from 2019 instead of the nginx binary from upgrade-pack, that is 2018 date and 1,2MB ?

I know the errors suggest things go wrong in different functions but the traceback goes all the way to nginx.conf and (this is my theory) the issue might be in nginx binary used. So the big question is which ngnix binary should I have ?

Dark4Codrutz avatar Apr 08 '20 01:04 Dark4Codrutz