bnhf / openvpn-admin-plus

Docker-based web interface (with golang backend) for monitoring and admin of an OpenVPN TAP/TUN server setup with PiVPN or other OpenVPN server installations. This project has been renamed from pivpn-tap-web-ui, to reflect its new broader scope.
MIT License
141 stars 23 forks source link

500 error on status page when clients connected #64

Closed juanappsoft closed 12 months ago

juanappsoft commented 12 months ago

The status page stops working when clients are connected.

Here is the error log

2023-09-08T19:52:53.466876207Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] the request url is / 2023-09-08T19:52:53.466885370Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] Handler crashed with error runtime error: index out of range [12] with length 12 2023-09-08T19:52:53.466890300Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /usr/local/go/src/runtime/panic.go:1038 2023-09-08T19:52:53.466894503Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /usr/local/go/src/runtime/panic.go:90 2023-09-08T19:52:53.466897400Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /go/src/github.com/bnhf/pivpn-tap-web-ui/vendor/github.com/bnhf/go-openvpn/server/mi/parse.go:105 2023-09-08T19:52:53.466900577Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /go/src/github.com/bnhf/pivpn-tap-web-ui/vendor/github.com/bnhf/go-openvpn/server/mi/client.go:48 2023-09-08T19:52:53.466903515Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /go/src/github.com/bnhf/pivpn-tap-web-ui/controllers/default.go:29 2023-09-08T19:52:53.466906375Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /go/src/github.com/bnhf/pivpn-tap-web-ui/vendor/github.com/astaxie/beego/router.go:877 2023-09-08T19:52:53.466909363Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /usr/local/go/src/net/http/server.go:2879 2023-09-08T19:52:53.466912176Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /usr/local/go/src/net/http/server.go:1930 2023-09-08T19:52:53.466914984Z 2023/09/08 19:52:53.466 [C] [panic.go:1038] /usr/local/go/src/runtime/asm_amd64.s:1581