Ansuel / tch-nginx-gui

Modified file to apply to a stock technicolor GUI
GNU General Public License v3.0
340 stars 52 forks source link

DGA4331 Compatibility #1099

Open lorenzocanalelc opened 2 years ago

lorenzocanalelc commented 2 years ago

Device Model/Firmware: DGA4331 AGTHF_1.1.1_CLOSED Homeware 19.4.0666-4661022 GUI Version: 9.6.81 Attach the debug file here: DebugHelper2021-07-29-1844.tar.gz

First installation of the GUI on this type of device Open Points:

Gateway Card:

Wireless Card:

IP Extras Card:

Nat Helper Card:

So far these are the problem I encountered.

This is a logread | grep "daemon.err nginx" send during tests:

Thu Jul 29 18:36:10 2021 daemon.err nginx: 2021/07/29 18:36:10 [error] 6792#0: *2 [lua] accesscontrol_token.lua:187: log_error(): no allowed_paths or disallowed_paths for role device2, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Thu Jul 29 18:36:10 2021 daemon.err nginx: 2021/07/29 18:36:10 [error] 6792#0: *2 [lua] accesscontrol_token.lua:187: invalid 'token_is' value optional_certificate, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Thu Jul 29 18:36:10 2021 daemon.err nginx: 2021/07/29 18:36:10 [error] 6792#0: *2 [lua] accesscontrol_token.lua:187: invalid 'token_is' value certificate, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Thu Jul 29 18:36:10 2021 daemon.err nginx: 2021/07/29 18:36:10 [error] 6792#0: *2 [lua] accesscontrol_token.lua:187: invalid role device2 given for user admin, client: 127.0.0.1, server: 127.0.0.1, request: "GET /api/reload HTTP/1.1", host: "localhost:55555"
Thu Jul 29 18:39:20 2021 daemon.err nginx: 2021/07/29 18:39:20 [error] 6792#0: *4 open() "/www/docroot/img/gateway_MediaAccess DGA4331.png" failed (2: No such file or directory), client: 192.168.1.145, server: localhost, request: "GET /img/gateway_MediaAccess%20DGA4331.png HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:40:44 2021 daemon.err nginx: 2021/07/29 18:40:44 [error] 6792#0: *10 open() "/www/docroot/img/gateway_MediaAccess DGA4331.png" failed (2: No such file or directory), client: 192.168.1.145, server: localhost, request: "GET /img/gateway_MediaAccess%20DGA4331.png HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:42:37 2021 daemon.err nginx: 2021/07/29 18:42:37 [error] 6792#0: *4 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #7 to 'format' (no value) stack traceback: coroutine 0:     [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    /usr/lib/lua/web/ui_helper.lua:678: in function '?'     [string "/modals/wireless-modal.lp"]:1104: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_5G&iface=wl1 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:42:41 2021 daemon.err nginx: 2021/07/29 18:42:41 [error] 6792#0: *14 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #7 to 'format' (no value) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    /usr/lib/lua/web/ui_helper.lua:678: in function '?'     [string "/modals/wireless-modal.lp"]:1104: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_5G&iface=wl1_2 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:44:23 2021 daemon.err nginx: 2021/07/29 18:44:23 [error] 6792#0: *20 open() "/www/docroot/img/gateway_MediaAccess DGA4331.png" failed (2: No such file or directory), client: 192.168.1.145, server: localhost, request: "GET /img/gateway_MediaAccess%20DGA4331.png HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:50:38 2021 daemon.err nginx: 2021/07/29 18:50:38 [error] 6792#0: *23 lua entry thread aborted: runtime error: [string "/modals/wireless-modal.lp"]:62: bad argument #1 to 'ipairs' (table expected, got nil) stack traceback: coroutine 0:    [C]: in function 'ipairs'   [string "/modals/wireless-modal.lp"]:62: in function 'listboxToText'    [string "/modals/wireless-modal.lp"]:1082: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_2G&iface=wl0_1 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:50:43 2021 daemon.err nginx: 2021/07/29 18:50:43 [error] 6792#0: *24 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #7 to 'format' (no value) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    /usr/lib/lua/web/ui_helper.lua:678: in function '?'     [string "/modals/wireless-modal.lp"]:1104: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_5G&iface=wl1 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:50:47 2021 daemon.err nginx: 2021/07/29 18:50:47 [error] 6792#0: *25 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #7 to 'format' (no value) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    /usr/lib/lua/web/ui_helper.lua:678: in function '?'     [string "/modals/wireless-modal.lp"]:1063: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_5G&iface=wl1_1 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:50:50 2021 daemon.err nginx: 2021/07/29 18:50:50 [error] 6792#0: *26 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #7 to 'format' (no value) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    /usr/lib/lua/web/ui_helper.lua:678: in function '?'     [string "/modals/wireless-modal.lp"]:1104: in function 'content'    /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/wireless-modal.lp?radio=radio_5G&iface=wl1_2 HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:09 2021 daemon.err nginx: 2021/07/29 18:53:09 [error] 6792#0: *28 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:11 2021 daemon.err nginx: 2021/07/29 18:53:11 [error] 6792#0: *29 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:13 2021 daemon.err nginx: 2021/07/29 18:53:13 [error] 6792#0: *30 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:16 2021 daemon.err nginx: 2021/07/29 18:53:15 [error] 6792#0: *31 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:18 2021 daemon.err nginx: 2021/07/29 18:53:18 [error] 6792#0: *32 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:20 2021 daemon.err nginx: 2021/07/29 18:53:20 [error] 6792#0: *33 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:23 2021 daemon.err nginx: 2021/07/29 18:53:23 [error] 6792#0: *34 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:26 2021 daemon.err nginx: 2021/07/29 18:53:25 [error] 6792#0: *36 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:28 2021 daemon.err nginx: 2021/07/29 18:53:28 [error] 6792#0: *37 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:31 2021 daemon.err nginx: 2021/07/29 18:53:31 [error] 6792#0: *35 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:33 2021 daemon.err nginx: 2021/07/29 18:53:33 [error] 6792#0: *38 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:36 2021 daemon.err nginx: 2021/07/29 18:53:36 [error] 6792#0: *39 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:38 2021 daemon.err nginx: 2021/07/29 18:53:38 [error] 6792#0: *40 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:40 2021 daemon.err nginx: 2021/07/29 18:53:40 [error] 6792#0: *41 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:43 2021 daemon.err nginx: 2021/07/29 18:53:43 [error] 6792#0: *42 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:46 2021 daemon.err nginx: 2021/07/29 18:53:46 [error] 6792#0: *43 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:50 2021 daemon.err nginx: 2021/07/29 18:53:49 [error] 6792#0: *44 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:53:52 2021 daemon.err nginx: 2021/07/29 18:53:52 [error] 6792#0: *45 lua entry thread aborted: runtime error: [string "/modals/diagnostics-network-modal.lp"]:203: attempt to index field '?' (a nil value) stack traceback: coroutine 0:     [string "/modals/diagnostics-network-modal.lp"]:203: in function 'content'  /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "POST /modals/diagnostics-network-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:54:46 2021 daemon.err nginx: 2021/07/29 18:54:45 [error] 6792#0: *46 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #2 to 'format' (string expected, got nil) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    [string "/modals/bridge-grouping-modal.lp"]:78: in function 'content'   /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/bridge-grouping-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
Thu Jul 29 18:54:49 2021 daemon.err nginx: 2021/07/29 18:54:48 [error] 6792#0: *47 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #2 to 'format' (string expected, got nil) stack traceback: coroutine 0:    [C]: in function 'format'   /usr/lib/lua/web/taint.lua:280: in function 'format'    [string "/modals/bridge-grouping-modal.lp"]:78: in function 'content'   /usr/lib/lua/web/web.lua:268: in function 'process'     content_by_lua(nginx.conf:108):4: in function <content_by_lua(nginx.conf:108):1>, client: 192.168.1.145, server: localhost, request: "GET /modals/bridge-grouping-modal.lp HTTP/1.1", host: "192.168.1.1", referrer: "http://192.168.1.1/"
N1c0o commented 2 years ago

This is the tim hub+ tch right ?

ale-rinaldi commented 2 years ago

@N1c0o yes it is.

@lorenzocanalelc how did you root it? O.o

lorenzocanalelc commented 2 years ago

@ale-rinaldi You can find all the information in this thread https://www.ilpuntotecnico.com/forum/index.php/topic,84353.0.html