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

    PHP crashing - OpenVPN services down

    Scheduled Pinned Locked Moved OpenVPN
    phpcrashingcrl
    4 Posts 2 Posters 900 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.
    • D
      davebu
      last edited by

      Netgate SG-5100 hardware with latest version:
      2.4.5-RELEASE (amd64)
      built on Tue Mar 24 15:25:53 EDT 2020
      FreeBSD 11.3-STABLE

      PHP keeps crashing. Seems to have an issue in x509 CRL (Cert Revocation List).
      Impacts all OpenVPN instances, which show status "[error] Unable to contact daemon 0 Service not running?"

      I'm going to roll back to last-known-good config before latest use of Cert. Manager to see if I can recover.

      Contents of the Crash Report:
      "------------------------------------
      Crash report begins. Anonymous machine information:

      amd64
      11.3-STABLE
      FreeBSD 11.3-STABLE #233 2c992b2181a(factory-RELENG_2_4_5): Tue Mar 24 15:26:54 EDT 2020 root@buildbot1-nyi.netgate.com:/build/factory-crossbuild-245-amd64/obj/amd64/kkVaWThR/build/factory-crossbuild-245-amd64/sources/FreeBSD-src/sys/pfSense

      Crash report details:

      PHP Errors:
      [12-May-2020 08:51:57 America/Toronto] PHP Fatal error: Uncaught Error: Call to a member function findContext() on null in /usr/local/share/openssl_x509_crl/X509_CERT.php:56
      Stack trace:
      #0 /usr/local/share/openssl_x509_crl/X509_CRL.php(100): Ukrbublik\openssl_x509_crl\X509_CERT::getExtVal_Subject('')
      #1 /etc/inc/certs.inc(1000): Ukrbublik\openssl_x509_crl\X509_CRL::create(Array, Resource id #253, false)
      #2 /etc/inc/openvpn.inc(1252): crl_update(Array)
      #3 /etc/inc/openvpn.inc(1418): openvpn_reconfigure('server', Array)
      #4 /etc/inc/openvpn.inc(1641): openvpn_restart('server', Array)
      #5 /etc/inc/openvpn.inc(1696): openvpn_resync('server', Array)
      #6 /etc/rc.bootup(236): openvpn_resync_all()
      #7 {main}
      thrown in /usr/local/share/openssl_x509_crl/X509_CERT.php on line 56
      [12-May-2020 08:52:06 America/Toronto] PHP Fatal error: Uncaught Error: Call to a member function findContext() on null in /usr/local/share/openssl_x509_crl/X509_CERT.php:56
      Stack trace:
      #0 /usr/local/share/openssl_x509_crl/X509_CRL.php(100): Ukrbublik\openssl_x509_crl\X509_CERT::getExtVal_Subject('')
      #1 /etc/inc/certs.inc(1000): Ukrbublik\openssl_x509_crl\X509_CRL::create(Array, Resource id #348, false)
      #2 /etc/inc/openvpn.inc(1252): crl_update(Array)
      #3 /etc/inc/openvpn.inc(1418): openvpn_reconfigure('server', Array)
      #4 /etc/inc/openvpn.inc(1641): openvpn_restart('server', Array)
      #5 /etc/inc/openvpn.inc(1696): openvpn_resync('server', Array)
      #6 /etc/rc.newwanip(250): openvpn_resync_all('wan')
      #7 {main}
      thrown in /usr/local/share/openssl_x509_crl/X509_CERT.php on line 56

      No FreeBSD crash data found.
      ---------------------------------"

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

        @davebu said in PHP crashing - OpenVPN services down:

        Revoked

        You actually revoked a certificate ?

        Go here https://forum.netgate.com/search and feed it with findContext

        It was an issue in previous releases....

        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
        • D
          davebu
          last edited by

          No, did not revoke a cert. Actually I had not properly associated a CRL with the CA that is used by the OpenVPN Server(s). So crash was a reaction to bad config.
          i.e. its a 'newbie' issue.

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

            Ok, perfect.

            @davebu said in PHP crashing - OpenVPN services down:

            i.e. its a 'newbie' issue.

            I guess you nail that one also asap.

            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
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.