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

    Upgrade to 23.01 Snort error ??

    Scheduled Pinned Locked Moved IDS/IPS
    5 Posts 2 Posters 543 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
      last edited by

      Hello fellow Netgate community members,

      I wanted to share with you this error that seemed to resolve itself after a cold reboot. This occurred during the 23.01 update. In that time it emailed the error about 50 times until a cold reboot and after it completed the install successfully.

      746d81a0-4108-438a-9e38-5d0fb9d36b48-image.png
      (Image shows PHP ERROR Type: 1 /usr/pkg/snort/snort.inc, Line: 4345, Message: Uncaught TypeError: Cannot access offset of type string on string in /user/local/pkg/snort/snort.inc:435)

      77104467-b93a-4509-b2d7-f8d4478ce69e-image.png

      I do not know if anyone else noticed this issue.

      Make sure to upvote

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

        @jonathanlee

        06517cf4-e2f3-4fea-8831-647460602dff-image.png

        It is running after the cold reboot 23.01-RELEASE(arm64)

        Make sure to upvote

        1 Reply Last reply Reply Quote 0
        • jimpJ jimp moved this topic from Problems Installing or Upgrading TNSR Software on
        • bmeeksB
          bmeeks
          last edited by

          That error was fixed in the latest 4.1.6_6 version of the package. My guess is that during the upgrade, for at least some short period, PHP had cached an older version of the snort.inc file and was using it.

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

            @bmeeks I can confirm this issue is no longer present after the cold boot. Again I must have waited around 1 hour before I power cycled it.

            Make sure to upvote

            1 Reply Last reply Reply Quote 0
            • bmeeksB
              bmeeks
              last edited by

              PHP loves to cache files for performance, so that means when you run a package "upgrade in place" versus a complete uninstall and then reinstall, an older version of files can get used from the cache. The snort.inc is a central include file that all of the PHP source files in Snort reference. So it gets cached.

              If you had deleted (removed) the Snort package and then installed it again, you would not see the error as during the uninstall the file is removed from the PHP cache.

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