Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    manually killing OpenVPN connection in dashboard widget crashes after upgrade to 2.6.0

    webGUI
    5
    8
    2.4k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • E
      elemy
      last edited by

      Hi,

      today i got this error messages after trying to manually kill a openvpn connection via the dashboard widget.

      Crash report begins.  Anonymous machine information:
      
      amd64
      12.3-STABLE
      FreeBSD 12.3-STABLE RELENG_2_6_0-n226742-1285d6d205f pfSense
      
      Crash report details:
      
      PHP Errors:
      [28-Feb-2022 17:58:08 Europe/Berlin] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function openvpn_kill_client(), 2 passed in /usr/local/www/widgets/widgets/openvpn.widget.php on line 285 and exactly 3 expected in /etc/inc/openvpn.inc:2106
      Stack trace:
      #0 /usr/local/www/widgets/widgets/openvpn.widget.php(285): openvpn_kill_client('server1', '12.34.56.78:...')
      #1 {main}
        thrown in /etc/inc/openvpn.inc on line 2106
      [28-Feb-2022 17:58:31 Europe/Berlin] PHP Fatal error:  Uncaught ArgumentCountError: Too few arguments to function openvpn_kill_client(), 2 passed in /usr/local/www/widgets/widgets/openvpn.widget.php on line 285 and exactly 3 expected in /etc/inc/openvpn.inc:2106
      Stack trace:
      #0 /usr/local/www/widgets/widgets/openvpn.widget.php(285): openvpn_kill_client('server1', '12.34.56.78:...')
      #1 {main}
        thrown in /etc/inc/openvpn.inc on line 2106
      
      
      
      No FreeBSD crash data found.
      

      Worked before i did the upgrade from previous version.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan @elemy
        last edited by

        @elemy

        Function definition got changed a couple of month ago, for 2.6.0. But not all the one that call it.

        To make a long story short :
        Edit /usr/local/www/widgets/widgets/openvpn.widget.php line 285, make it look like this :

        			$retval = openvpn_kill_client($port, $remipp, "");
        

        That adds the missing third parameter. That will do it.
        Or, forget about the widget, goto Status > OpenVPN and kill there. No edits needed then.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        E 1 Reply Last reply Reply Quote 1
        • E
          elemy @Gertjan
          last edited by

          @gertjan

          Hi,

          that worked perfectly fine. Thanks a lot.

          I just wanted to point that out so it can be fixed.

          I like the widget as i see everything on the dashboard and i can even do some actions there without the need to click around.

          Anyway, thanks again!

          Have a nice time and stay safe.

          1 Reply Last reply Reply Quote 0
          • viktor_gV
            viktor_g Netgate
            last edited by

            Fixed in upstream:
            https://redmine.pfsense.org/issues/12817

            You can install the System Patches pkg:
            https://docs.netgate.com/pfsense/en/latest/development/system-patches.html

            and apply patch id 3ade222beb2cae2c0681ed69d4e5a0c82c6303f9

            GertjanG 1 Reply Last reply Reply Quote 0
            • GertjanG
              Gertjan @viktor_g
              last edited by Gertjan

              @viktor_g said in manually killing OpenVPN connection in dashboard widget crashes after upgrade to 2.6.0:

              https://redmine.pfsense.org/issues/12817

              Thanks, the issue was already known for 12 days - I forgot to look at the Regression list.

              Btw : Not related : This would normally do :

              06fc51ea-bc21-419e-8255-27e08ce630a6-image.png

              but this does nothing. After a "Save" and a "Fetch" :

              dbae3240-fba0-47c9-b65e-0c959bcb3277-image.png

              The URL got extended to :

              https://github.com/pfsense/pfsense/commit/3ade222beb2cae2c0681ed69d4e5a0c82c6303f9.patch

              and that URL is correct.
              But .....

              98eb00b6-98dd-4917-9e55-43615c03b520-image.png

              No Test Debug Apply View buttons, as the patch didn't got fetched ?! The Patch Contents box in the patch stays empty.

              The Patcher needs to be patcher ? Or it's just late (01h43 AM here).

              Anyway, copy pasting the patch content manually in the Patch Contents box, and all is fine : I could patch.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              S 1 Reply Last reply Reply Quote 0
              • S
                serbus @Gertjan
                last edited by

                @gertjan said in manually killing OpenVPN connection in dashboard widget crashes after upgrade to 2.6.0:

                No Test Debug Apply View buttons, as the patch didn't got fetched ?! The Patch Contents box in the patch stays empty.
                The Patcher needs to be patcher ? Or it's just late (01h43 AM here).

                Hello!

                Are you running the new 2.0x System Patches package? It is broken when trying to use custom patches.

                https://forum.netgate.com/topic/170300/new-system-patches-v2-0/9

                John

                Lex parsimoniae

                GertjanG 1 Reply Last reply Reply Quote 0
                • GertjanG
                  Gertjan @serbus
                  last edited by

                  @serbus said in manually killing OpenVPN connection in dashboard widget crashes after upgrade to 2.6.0:

                  Are you running the new 2.0x System Patches package?

                  ba698114-62ea-4a72-9234-25c09c866d75-image.png

                  The latest ... for now.

                  I copy pasted the patch from https://github.com/pfsense/pfsense/commit/3ade222beb2cae2c0681ed69d4e5a0c82c6303f9.patch that woks.

                  Normally, when you enter an ID like 3ade222beb2cae2c0681ed69d4e5a0c82c6303f9 and a Description, it should figure out the rest all by itself.

                  No "help me" PM's please. Use the forum, the community will thank you.
                  Edit : and where are the logs ??

                  1 Reply Last reply Reply Quote 0
                  • jimpJ
                    jimp Rebel Alliance Developer Netgate
                    last edited by

                    There is a bug when fetching patches, I'll have a fix in shortly. In the meantime, visit the URL for that patch and copy/paste the text into the patch entry manually rather than using the URL.

                    Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                    Need help fast? Netgate Global Support!

                    Do not Chat/PM for help!

                    1 Reply Last reply Reply Quote 1
                    • GertjanG Gertjan referenced this topic on
                    • GertjanG Gertjan referenced this topic on
                    • PTZ-MP PTZ-M referenced this topic on
                    • PTZ-MP PTZ-M referenced this topic on
                    • viktor_gV viktor_g referenced this topic on
                    • First post
                      Last post
                    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.