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

    The firewall encountered an error after upgrading to 23.01

    Scheduled Pinned Locked Moved Cache/Proxy
    44 Posts 6 Posters 10.0k 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.
    • JonathanLeeJ
      JonathanLee @hugoeyng
      last edited by JonathanLee

      @hugoeyng it could be that it won't start because the array holding the urls can not be iterated due to that line being removed. Can you find where that specific array is instantiated at? Also does this array have the correct elements in it? I see it they have it instantiated sgxml as an array in that function at the top. Come to think of it, what is that array pfxml used for is that the full config of pfsense? You have to convert it too or reseralize it? Keep in mind I am still a computer science student. PfSense farsantes me. It's amazing. I really want to learn how to debug the software like the ide jGRASP's debug. I can do programming in Java and Python. Again when you are coding for specific firewall hardware how can you debug it without the hardware? Do you use a virtual machine. I really need to learn that. We learned how to code but not with specific environments.

      Make sure to upvote

      1 Reply Last reply Reply Quote 0
      • JonathanLeeJ
        JonathanLee @hugoeyng
        last edited by

        @hugoeyng can you do a try catch instead?

        Make sure to upvote

        hugoeyngH 1 Reply Last reply Reply Quote 0
        • hugoeyngH
          hugoeyng @JonathanLee
          last edited by

          @jonathanlee please write how would you do it

          I love pfSense!

          Hugo Eyng
          Datamais Sistemas

          JonathanLeeJ 1 Reply Last reply Reply Quote 0
          • JonathanLeeJ
            JonathanLee @hugoeyng
            last edited by JonathanLee

            @hugoeyng

            I know in Java It would be something like this photo. Again it needs the C programming version of it so you can read the specific error. This photo I have a array that is out of bounds when it prints that element, notice the error is caught. You can do more than print the error you can redirect it to other code also, so if something was missing in that config it could flag it if needed would need more code.

            Screenshot 2023-03-24 at 1.45.11 PM.png

            Screenshot 2023-03-24 at 1.49.18 PM.png

            Make sure to upvote

            1 Reply Last reply Reply Quote 0
            • hugoeyngH hugoeyng referenced this topic on
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.