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

    2.1 Failure after upgrade

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    15 Posts 7 Posters 5.7k Views
    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.
    • K
      kejianshi
      last edited by

      Alix system?  (Guessing)

      1 Reply Last reply Reply Quote 0
      • P
        phil.davis
        last edited by

        Fatal error: Call to undefined function find_service_by_openvpn_vpnid() in /usr/local/www/status_openvpn.php on line 196
        

        find_service_by_openvpn_vpnid() is in /etc/inc/service-utils.inc - but there is no require_once() call in status_openvpn.php to explicitly include it.
        On my system, that code is executing fine. I can display OpenVPN status, and the Road Warrior connected in shows fine, and the service status button etc.
        What interesting sequence are you following before displaying OpenVPN status?
        Somehow it is getting there without going through anything that includes service-utils.inc

        As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
        If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

        1 Reply Last reply Reply Quote 0
        • R
          robi
          last edited by

          @it_wyp:

          • The Status : OpenVPN displays : Fatal error: Call to undefined function find_service_by_openvpn_vpnid() in /usr/local/www/status_openvpn.php on line 196

          Same here. It's a full install inside VmWare on a HP DL380 server.

          1 Reply Last reply Reply Quote 0
          • I
            it_wyp
            last edited by

            Alix system?

            Nop, sorry.
            I'm on two HP DL320 - G6 (Intel(R) Xeon(R) CPU E5606, 2Gb Ram, 4x1Gb Intel for lan).

            What interesting sequence are you following before displaying OpenVPN status?

            Not sure to understand the question, i've just used my mouse to get the "Status" then "OpenVPN" :D

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              Not sure to understand the question, i've just used my mouse to get the "Status" then "OpenVPN"

              That's fine, you understood. That's what I am doing also, from the dashboard select "Status", "OpenVPN". It works for me. I was thinking you might have had a direct shortcut to it, or whatever, that resulted in bypassing some dashboard code that included the necessary "service-utils.inc"
              Another thought, do you have the OpenVPN status dashboard widget displayed?
              I do, and perhaps that ensures the necessary includes are there.
              Or maybe something else different in my dashboard settings to yours that makes it OK for me or ?…

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • I
                it_wyp
                last edited by

                Just added the widget : seems to work as it lists my configs (but no users as it is the passive firewall).
                The status page keeps says :
                Fatal error: Call to undefined function find_service_by_openvpn_vpnid() in /usr/local/www/status_openvpn.php on line 196

                However, I'm more worried about the displayed yellow bar with empty message… it seems there is a problem but pfsense doesn't know where it hurts.

                1 Reply Last reply Reply Quote 0
                • I
                  it_wyp
                  last edited by

                  I've just noticed that CPU usage is stuck at 20% for a long time now.

                  Another test : I've tried to remove all my OpenVPN config (status page says : "No OpenVPN instance defined" ) and create a new fresh VPN instance , the fatal error is there again…

                  Seems that something crashed seriously here, don't think that Openvpn is the cause, just the consequence

                  CPU usage done by :
                  /usr/sbin/tcpdump -s 256 -v -S -l -n -e -ttt -i pflog0
                  /usr/sbin/syslogd -s -c -c -l /var/dhcpd/var/run/log -f /var/etc/syslog.conf

                  Perist after reboot, exactly the same command

                  1 Reply Last reply Reply Quote 0
                  • R
                    robi
                    last edited by

                    it_wyp, check this thread, I've had exactly the same OpenVPN status error, and some others which I discovered by comparing two upgraded pfSense boxes.
                    Fixed by installing from scratch and restoring back the config.xml…

                    1 Reply Last reply Reply Quote 0
                    • I
                      it_wyp
                      last edited by

                      Thanks Robi.

                      I'm a little disappointed about the "fixed by installing from scratch"… will wait a little more before trying that, i prefer to give a chance to community support.

                      1 Reply Last reply Reply Quote 0
                      • R
                        robi
                        last edited by

                        @it_wyp:

                        will wait a little more before trying that, i prefer to give a chance to community support.

                        Agree with you, I'll do the same with the system I have at home. But since this was a live production system in an enterprise environment, I didn't want to wait any longer….

                        1 Reply Last reply Reply Quote 0
                        • I
                          it_wyp
                          last edited by

                          Actually its an enterprise environment here to.

                          But as it is "only" my secondary firewall, i can wait a little (unless someone update the active one  ::) )

                          1 Reply Last reply Reply Quote 0
                          • G
                            grazzianos
                            last edited by

                            Hey Guys, I had the same problem and received an instruction to edit the file  /usr/local/www/status_openvpn.php, bellow the line with:

                            require_once("shortcuts.inc");

                            Add this:

                            require_once("service-utils.inc");

                            This worked for me. Try and report, ok?

                            1 Reply Last reply Reply Quote 0
                            • L
                              lmontinola
                              last edited by

                              @grazzianos:

                              Hey Guys, I had the same problem and received an instruction to edit the file  /usr/local/www/status_openvpn.php, bellow the line with:

                              require_once("shortcuts.inc");

                              Add this:

                              require_once("service-utils.inc");

                              This worked for me. Try and report, ok?

                              this worked with me…

                              1 Reply Last reply Reply Quote 0
                              • F
                                fungi
                                last edited by

                                @lmontinola:

                                @grazzianos:

                                Hey Guys, I had the same problem and received an instruction to edit the file  /usr/local/www/status_openvpn.php, bellow the line with:

                                require_once("shortcuts.inc");

                                Add this:

                                require_once("service-utils.inc");

                                This worked for me. Try and report, ok?

                                this worked with me…

                                this also worked for me! thanks!

                                1 Reply Last reply Reply Quote 0
                                • First post
                                  Last post
                                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.