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

Wireguard card fails

Open nroach44 opened this issue 7 months ago • 6 comments

Hi, thanks for your work on this!

I'm trying to use the wireguard client with my DJA0231 (on 20.3), but at some point (typically after a reboot) the wireguard connection won't come up, and the card will bring up a spinner and never load when clicked.

The following shows in logread -f at the time:

Thu Jun 27 20:39:45 2024 daemon.err nginx: 2024/06/27 20:39:45 [error] 7681#0: *117 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/wireguard-modal.lp"]:297: in function 'content' 	/usr/lib/lua/web/web.lua:249: in function 'process' 	content_by_lua(nginx.conf:128):4: in function <content_by_lua(nginx.conf:128):1>, client: <<CLIENT>>, server: localhost, request: "GET /modals/wireguard-modal.lp HTTP/1.1", host: "<<DJA0231>>", referrer: "http://<<DJA0231>>/gateway.lp"
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 2024/06/27 20:39:45 [error] 7681#0: *117 lua entry thread aborted: runtime error: /usr/lib/lua/web/taint.lua:280: bad argument #2 to 'format' (string expected, got nil)
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: stack traceback:
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: coroutine 0:
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 	[C]: in function 'format'
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 	/usr/lib/lua/web/taint.lua:280: in function 'format'
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 	[string "/modals/wireguard-modal.lp"]:297: in function 'content'
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 	/usr/lib/lua/web/web.lua:249: in function 'process'
Thu Jun 27 20:39:45 2024 daemon.err nginx[7549]: 	content_by_lua(nginx.conf:128):4: in function <content_by_lua(nginx.conf:128):1>, client: <<CLIENT>>, server: localhost, request: "GET /modals/wireguard-modal.lp HTTP/1.1", host: "<<DJA0231>>", referrer: "http://<<DJA0231>>/gateway.lp"

So far I've only managed to fix this by factory resetting the device.

So far I have tried

  • Rebooting the unit
  • Removing the config file in /var/wireguard
  • Uninstalling the wireguard package, uninstalling the extra, and re-installing

nroach44 avatar Jun 29 '24 08:06 nroach44