• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 Feb 28, 2022, 5:04 PM

    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.

    G 1 Reply Last reply Mar 1, 2022, 2:39 PM Reply Quote 0
    • G
      Gertjan @elemy
      last edited by Mar 1, 2022, 2:39 PM

      @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 Mar 1, 2022, 3:47 PM Reply Quote 1
      • E
        elemy @Gertjan
        last edited by Mar 1, 2022, 3:47 PM

        @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
        • V
          viktor_g Netgate
          last edited by Mar 1, 2022, 4:39 PM

          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

          G 1 Reply Last reply Mar 2, 2022, 12:44 AM Reply Quote 0
          • G
            Gertjan @viktor_g
            last edited by Gertjan Mar 2, 2022, 12:45 AM Mar 2, 2022, 12:44 AM

            @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 :

            🔒 Log in to view

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

            🔒 Log in to view

            The URL got extended to :

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

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

            🔒 Log in to view

            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 Mar 2, 2022, 12:56 AM Reply Quote 0
            • S
              serbus @Gertjan
              last edited by Mar 2, 2022, 12:56 AM

              @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

              G 1 Reply Last reply Mar 2, 2022, 1:26 AM Reply Quote 0
              • G
                Gertjan @serbus
                last edited by Mar 2, 2022, 1:26 AM

                @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?

                🔒 Log in to view

                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 Mar 3, 2022, 1:42 PM

                  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
                  • G Gertjan referenced this topic on Mar 22, 2022, 5:39 PM
                  • G Gertjan referenced this topic on Mar 22, 2022, 5:39 PM
                  • PTZ-MP PTZ-M referenced this topic on May 10, 2022, 6:17 PM
                  • PTZ-MP PTZ-M referenced this topic on May 10, 2022, 6:18 PM
                  • V viktor_g referenced this topic on May 11, 2022, 4:59 PM
                  1 out of 8
                  • First post
                    1/8
                    Last post
                  Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.