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

During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc"

Plus 23.01 Development Snapshots (Retired)
4
14
1.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.
  • G
    Gertjan @stephenw10
    last edited by Gertjan Jul 28, 2022, 1:53 PM Jul 28, 2022, 1:53 PM

    @stephenw10
    Not a cert.
    A file went missing : Failed opening required 'ASN1_NULL.php'
    This file should be here : /usr/local/share/openssl_x509_crl/ which is in the PHP search path.

    Using 22.05, the file is there.
    It's not part of "22.11" any more ? /or/ something went wrong during the update.

    @nrgia said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

    If I comment line 1021 I got:

    even more mess. That is ok and normal.

    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 1
    • S
      stephenw10 Netgate Administrator
      last edited by Jul 28, 2022, 2:14 PM

      It should be there:

      [22.09-DEVELOPMENT][admin@6100.stevew.lan]/root: find / -name "*ASN1_NULL.php*"
      /usr/local/share/openssl_x509_crl/ASN1_NULL.php
      
      N 1 Reply Last reply Jul 28, 2022, 5:35 PM Reply Quote 0
      • N
        NRgia @stephenw10
        last edited by NRgia Jul 28, 2022, 5:37 PM Jul 28, 2022, 5:35 PM

        @stephenw10 said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

        It should be there:

        [22.09-DEVELOPMENT][admin@6100.stevew.lan]/root: find / -name "*ASN1_NULL.php*"
        /usr/local/share/openssl_x509_crl/ASN1_NULL.php
        

        So on 22.05 ASN1.NULL is present:
        login-to-view

        During the update process I get this:

        login-to-view

        Also the ASN1_NULL is missing from 22.09:

        login-to-view

        So the update process deletes it somehow.

        1 Reply Last reply Reply Quote 0
        • S
          stephenw10 Netgate Administrator
          last edited by Jul 28, 2022, 7:10 PM

          Hmm, should be there. That box I checked was recently upgraded from 22.05.
          So I'd imagine the upgrade may not have completed successfully. Try running pkg upgrade at the command line and see if it offers you any package upgrades.

          N J 2 Replies Last reply Jul 28, 2022, 9:02 PM Reply Quote 0
          • N
            NRgia @stephenw10
            last edited by Jul 28, 2022, 9:02 PM

            @stephenw10 said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

            Hmm, should be there. That box I checked was recently upgraded from 22.05.
            So I'd imagine the upgrade may not have completed successfully. Try running pkg upgrade at the command line and see if it offers you any package upgrades.

            I believe you. I tried to update more than once, just to exclude an improper update, but I got the same result.

            "pkg upgrade" will not work in the state the pfsense is in. No host can be reached. I can only ping IPs like 8.8.8.8, etc.

            1 Reply Last reply Reply Quote 0
            • S
              stephenw10 Netgate Administrator
              last edited by Jul 28, 2022, 9:06 PM

              If you have a WAN side DHCP server you can run dhclient on the WAN NIC and it will pull DNS servers from there just to get external access.

              N 1 Reply Last reply Jul 28, 2022, 9:55 PM Reply Quote 0
              • N
                NRgia @stephenw10
                last edited by NRgia Jul 28, 2022, 9:56 PM Jul 28, 2022, 9:55 PM

                @stephenw10 said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

                If you have a WAN side DHCP server you can run dhclient on the WAN NIC and it will pull DNS servers from there just to get external access.

                If by "WAN side DHCP server", you mean, that my IP is assigned that way then yes. If not...
                Also the web interface cannot be accesed, I only have acces to CLI. I don't know how to do it in FreeBSD CLI

                1 Reply Last reply Reply Quote 0
                • S
                  stephenw10 Netgate Administrator
                  last edited by Jul 28, 2022, 10:34 PM

                  You can run for example: dhclient igb0
                  But if your WAN is already dhcp that probably won't help because it should have already happened. Is the dhcp server passing any dns servers to use?

                  1 Reply Last reply Reply Quote 0
                  • J
                    JeGr LAYER 8 Moderator @stephenw10
                    last edited by JeGr Jul 29, 2022, 12:57 PM Jul 29, 2022, 12:57 PM

                    @stephenw10 said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

                    Hmm, should be there. That box I checked was recently upgraded from 22.05.
                    So I'd imagine the upgrade may not have completed successfully. Try running pkg upgrade at the command line and see if it offers you any package upgrades.

                    Just to chime in: after your help with updating the pkg repo so we could update the lab VMs again, the 22.09 box updated to the recent 22.09 snapshot and also had a certificate PHP error popping up after reboot. And that box was on 22.09 beforehand, so it's at least nothing fixed to 22.05->snapshot but has to be in the last few snapshots.

                    Jul 28 17:26:40	php	44621	/etc/rc.packages: New alert found: PHP ERROR: Type: 64, File: /etc/inc/certs.inc, Line: 1021, Message: require_once(): Failed opening required 'ASN1_NULL.php' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
                    
                    Jul 28 17:26:40	php	44621	/etc/rc.packages: PHP ERROR: Type: 64, File: /etc/inc/certs.inc, Line: 1021, Message: require_once(): Failed opening required 'ASN1_NULL.php' (include_path='.:/etc/inc:/usr/local/pfSense/include:/usr/local/pfSense/include/www:/usr/local/www:/usr/local/captiveportal:/usr/local/pkg:/usr/local/www/classes:/usr/local/www/classes/Form:/usr/local/share/pear:/usr/local/share/openssl_x509_crl/')
                    

                    Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                    1 Reply Last reply Reply Quote 2
                    • S
                      stephenw10 Netgate Administrator
                      last edited by Jul 29, 2022, 1:37 PM

                      Hmm, doesn't appear to be specific to a snapshot either. It's still present on that box I updated after updating to todays snap.

                      N 1 Reply Last reply Jul 29, 2022, 4:34 PM Reply Quote 0
                      • N
                        NRgia @stephenw10
                        last edited by Jul 29, 2022, 4:34 PM

                        @stephenw10 said in During update from 22.05 I get this "PHP ERROR: Type: 64, File: /etc/inc/certs.inc":

                        Hmm, doesn't appear to be specific to a snapshot either. It's still present on that box I updated after updating to todays snap.

                        For the moment we don't know what's trigerring this?

                        1 Reply Last reply Reply Quote 0
                        • S
                          stephenw10 Netgate Administrator
                          last edited by Jul 29, 2022, 7:49 PM

                          Not yet. The file seems to be missing from some installs. We are still digging into what's causing that.

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