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

    Strange log entry after update

    Scheduled Pinned Locked Moved IDS/IPS
    22 Posts 2 Posters 2.3k 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.
    • fireodoF
      fireodo
      last edited by fireodo

      Hi,

      I get this when Snort is updating:

      "\tFailed to extract a rules-update archive. Some snort rules might still be out-of-date. Make sure there is enough free disk space and try again. Tar file:/tmp/snort_rules_up/snortrules-snapshot-29190.tar.gz\n Installation of Snort Subscriber rules completed."

      but all rules are correctly up to date! (and there is plenty of free disk space)

      Confused,
      fireodo

      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
      pfsense 2.8.0 CE
      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

        That message comes via a return code from the exec system call to the untar binary when unpacking the rules tarball. It expects a zero value to indicate success. Perhaps for some reason the function on your box is returning something non-zero. Typically the error is from not having enough disk space, especially on a RAM disk setup.

        Be aware that even when the rules update fails, Snort always cleans up behind itself. So looking at available free disk space AFTER the rules update job does not tell you anything about the state of space DURING the rules update job. You want at least 256 MB of free space, and perhaps more if you a number of enabled rule sets.

        fireodoF 1 Reply Last reply Reply Quote 0
        • fireodoF
          fireodo @bmeeks
          last edited by fireodo

          @bmeeks said in Strange log entry after update:

          ypically the error is from not having enough disk space, especially on a RAM disk setup.

          Strange - I dont have a RAM-Disk setup, the free Disk Space is about 9,8GB ... RAM is 8GB

          (In the past I have the "signal 10/11" exits now this strange error - I guess my machine is the Snort fright 😂 )

          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
          pfsense 2.8.0 CE
          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

            @fireodo said in Strange log entry after update:

            @bmeeks said in Strange log entry after update:

            ypically the error is from not having enough disk space, especially on a RAM disk setup.

            Strange - I dont have a RAM-Disk setup, the free Disk Space is about 9,8GB ... RAM is 8GB

            (In the past I have the "signal 10/11" exits now this strange error - I guess my machine is the Snort fright 😂 )

            Signal 10 is a bus alignment fault. That has only happened on ARM hardware in the past. What type of pfSense hardware do you have? Is it a Netgate appliance, and if so, is it an SG-1000 or an SG-3100? The Signal 10 faults only happened on 32-bit ARM hardware, and the SG-1000 and SG-3100 are the only two 32-bit ARM platforms Netgate has to my knowledge.

            fireodoF 1 Reply Last reply Reply Quote 0
            • fireodoF
              fireodo @bmeeks
              last edited by fireodo

              @bmeeks said in Strange log entry after update:

              What type of pfSense hardware do you have?

              Its Intel hardware (see signature) now and was AMD in the past (APU2).
              We had a long discussion concerning that and the conclusion was that it must be something special in my environment that is causing that. So I have to live with it ... and as far everything is working like expected ... its OK.

              Nice Weekend,
              fireodo

              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
              pfsense 2.8.0 CE
              Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                @fireodo said in Strange log entry after update:

                @bmeeks said in Strange log entry after update:

                What type of pfSense hardware do you have?

                Its Intel hardware (see signature) now and was AMD in the past (APU2).
                We had a long discussion concerning that and the conclusion was that it must be something special in my environment that is causing that. So I have to live with it ... and as far everything is working like expected ... its OK.

                Nice Weekend,
                fireodo

                Signal 10 on Intel/AMD hardware is very unusual. On ARM hardware, especially the 32-bit stuff, not uncommon. But on Intel/AMD it is exceedingly rare. That error means a program tried to access memory across a non-word aligned boundary. But what makes that unusual is the default for Intel/AMD processors is for the CPU to automatically fix-up that access by turning it into a series of sequential memory accesses and then bit-shifting the result to produce the correct value. That setting might be customizable, though in the CPU using its control registers. Never checked on that capability in the Intel chips. I know the ARM chips have a control register to enable or disable that feature on a limited basis.

                fireodoF 1 Reply Last reply Reply Quote 1
                • fireodoF
                  fireodo @bmeeks
                  last edited by fireodo

                  @bmeeks

                  I started a reinstall of Snort and in the log I found this line - maybe that has something to do with the untar command returning something non zero:

                  "Installing Snort Subscriber ruleset...tar: so_rules/precompiled/FreeBSD-12/x86-64/2.9.19.0: Not found in archive"

                  and now tons of (with diverse SIDs):

                  Encoded Rule Plugin SID: 58807, GID: 3 not registered properly. Disabling this rule.
                  Encoded Rule Plugin SID: 54601, GID: 3 not registered properly. Disabling this rule.
                  etc...

                  (Disabling IPS Policy makes this entries disappearing - obviously this error is IPS Policy related)

                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                  pfsense 2.8.0 CE
                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                    @fireodo said in Strange log entry after update:

                    @bmeeks

                    I started a reinstall of Snort and in the log I found this line - maybe that has something to do with the untar command returning something non zero:

                    "Installing Snort Subscriber ruleset...tar: so_rules/precompiled/FreeBSD-12/x86-64/2.9.19.0: Not found in archive"

                    and now tons of (with diverse SIDs):

                    Encoded Rule Plugin SID: 58807, GID: 3 not registered properly. Disabling this rule.
                    Encoded Rule Plugin SID: 54601, GID: 3 not registered properly. Disabling this rule.
                    etc...

                    (Disabling IPS Policy makes this entries disappearing - obviously this error is IPS Policy related)

                    Well, I know where that error is coming from. It may not be correctable. I will have to investigate.

                    The Shared Object (SO) rules are precompiled binary modules. They are actually written in the C programming language and compiled like a binary executable. They are compiled for a particular version of FreeBSD and a few other operating systems. Since pfSense is now up to FreeBSD 12.3 STABLE, it is possible there are no SO modules compatible with the new FreeBSD version.

                    Update: I don't see an easy fix for this until pfSense moves to the FreeBSD 13 branch. The only precompiled SO rules in the new Snort rules package are compiled for FreeBSD 13. I will investigate to see if changing the rules update process in the Snort package to work around this is possible.

                    fireodoF 1 Reply Last reply Reply Quote 0
                    • fireodoF
                      fireodo @bmeeks
                      last edited by fireodo

                      @bmeeks said in Strange log entry after update:

                      Well, I know where that error is coming from. It may not be correctable. I will have to investigate.

                      Aha, good to know its not something specifically for my system ...

                      The Shared Object (SO) rules are precompiled binary modules. They are actually written in the C programming language and compiled like a binary executable. They are compiled for a particular version of FreeBSD and a few other operating systems. Since pfSense is now up to FreeBSD 12.3 STABLE, it is possible there are no SO modules compatible with the new FreeBSD version.

                      Thats what I also thought but I am no specialist ...

                      As I investigated I found this error "Failed to extract a rules-update archive." began early at begin of the month of march 2022 (the last update without error was 25.02.2022 and the first with error was 02.03.2022)
                      My update to pfsense 2.6.0 was on 14.02.2022.

                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                      pfsense 2.8.0 CE
                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                        @fireodo said in Strange log entry after update:

                        As I investigated I found this error "Failed to extract a rules-update archive." began early at begin of the month of march 2022 (the last update without error was 25.02.2022 and the first with error was 02.03.2022)
                        My update to pfsense 2.6.0 was on 14.02.2022.

                        That's probably when they changed the directory name in the rules tarball from FreeBSD 12 to FreeBSD 13. It's named "FreeBSD-13" now. I'm testing some solutions.

                        fireodoF 1 Reply Last reply Reply Quote 1
                        • fireodoF
                          fireodo @bmeeks
                          last edited by fireodo

                          @bmeeks said in Strange log entry after update:

                          It's named "FreeBSD-13" now

                          Hope the rules are not compiled only for FreeBSD 13 ...

                          I'm testing some solutions.

                          Oh, many thanks!

                          Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                          SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                          pfsense 2.8.0 CE
                          Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                            I've created a Redmine Issue to track this: https://redmine.pfsense.org/issues/12979. I assigned it to myself. I'm working on the fix and will submit a Pull Request for the pfSense to review and merge in the very near future. Thank you for the report.

                            fireodoF 1 Reply Last reply Reply Quote 1
                            • fireodoF
                              fireodo @bmeeks
                              last edited by

                              @bmeeks said in Strange log entry after update:

                              Thank you for the report.

                              You're welcome - and thank you for your work!

                              Kind regards,
                              fireodo

                              Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                              SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                              pfsense 2.8.0 CE
                              Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                                I have posted a Pull Request to the pfSense Packages GitHub repo to address this issue. Here is a link to the request: https://github.com/pfsense/FreeBSD-ports/pull/1149. I've sent the pfSense developer team an email asking for an expedited review and merge.

                                fireodoF 1 Reply Last reply Reply Quote 1
                                • fireodoF
                                  fireodo @bmeeks
                                  last edited by fireodo

                                  @bmeeks said in Strange log entry after update:

                                  I have posted a Pull Request to the pfSense Packages GitHub repo to address this issue. Here is a link to the request: https://github.com/pfsense/FreeBSD-ports/pull/1149. I've sent the pfSense developer team an email asking for an expedited review and merge.

                                  Thank you!
                                  PS. I can confirm it works! :-)

                                  Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                  SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                  pfsense 2.8.0 CE
                                  Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                                    The fix for the issue reported in this thread has been merged into Snort package version 4.1.5_2. This build should show up in the 2.6.0 CE and pfSense Plus 22.01 package repos as an available update shortly. The new version will appear in the DEVEL tree after the next snapshot rebuild happens there (likely overnight).

                                    fireodoF 1 Reply Last reply Reply Quote 1
                                    • fireodoF
                                      fireodo @bmeeks
                                      last edited by fireodo

                                      @bmeeks

                                      Hi Bill,

                                      the error returned this morning but I can see any directory name change in the recent snapshot archive snortrules-snapshot-29190.tar.gz (like the FreeBSD-13 change). Needles to say that I dont have change anything in Snort since the last update and there is plenty of free disk space (df -h = zroot/tmp zfs 9.8G 396K 9.8G 0% /tmp).
                                      "[Snort] Failed to extract a rules-update archive. Some snort rules might still be out-of-date. Make sure there is enough free disk space and try again. Tar file:/tmp/snort_rules_up/snortrules-snapshot-29190.tar.gz"
                                      Is there a possibility to start a update with more detailed log output to see whats the real problem? Because this error message is identic whit the one when the Snort Team has changed the denomination of the directory (FreeBSD-12 -> FreeBSD-13).

                                      Kind regards,
                                      fireodo

                                      Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                      SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                      pfsense 2.8.0 CE
                                      Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

                                      1 Reply Last reply Reply Quote 0
                                      • fireodoF
                                        fireodo
                                        last edited by fireodo

                                        Hello,

                                        Does anybody else can confirm this?
                                        ("[Snort] Failed to extract a rules-update archive. Some snort rules might still be out-of-date. Make sure there is enough free disk space and try again. Tar file:/tmp/snort_rules_up/snortrules-snapshot-29190.tar.gz")

                                        Thanks,
                                        fireodo

                                        Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                        SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                        pfsense 2.8.0 CE
                                        Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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

                                          @fireodo said in Strange log entry after update:

                                          Hello,

                                          Does anybody else can confirm this?
                                          ("[Snort] Failed to extract a rules-update archive. Some snort rules might still be out-of-date. Make sure there is enough free disk space and try again. Tar file:/tmp/snort_rules_up/snortrules-snapshot-29190.tar.gz")

                                          Thanks,
                                          fireodo

                                          I confirmed it. The Snort VRT has changed part of the pathname inside the tarball. They changed x86_64 to x86-64 in part of the path.

                                          Here is a quick fix while I work on submitting a Pull Request to update the package.

                                          Use your favorite text editor for Unix and edit the following file at the lines shown. Making a backup copy of the file prior to editing is recommended!

                                          /usr/local/pkg/snort/snort_check_for_rule_updates/php

                                          Find lines 631 and 632 in the file. They look like this:

                                          if(snort_untar("xzf", "{$tmpfname}/{$snort_filename}", "{$tmpfname}", "so_rules/precompiled/{$freebsd_version_so}/x86_64/{$snort_version}/")) {
                                          	snort_copy("{$tmpfname}/so_rules/precompiled/{$freebsd_version_so}/x86_64/{$snort_version}/*.so", "{$snortlibdir}/snort_dynamicrules/");
                                          

                                          Change the two instances of x86_64 to x86-64 (one per line) and save the change.

                                          fireodoF 2 Replies Last reply Reply Quote 0
                                          • fireodoF
                                            fireodo @bmeeks
                                            last edited by fireodo

                                            @bmeeks said in Strange log entry after update:

                                            They changed x86_64 to x86-64 in part of the path.

                                            Oha - my bad - that I have overlooked! Thanks a lot!

                                            Kettop Mi4300YL CPU: i5-4300Y @ 1.60GHz RAM: 8GB Ethernet Ports: 4
                                            SSD: SanDisk pSSD-S2 16GB (ZFS) WiFi: WLE200NX
                                            pfsense 2.8.0 CE
                                            Packages: Apcupsd, Cron, Iftop, Iperf, LCDproc, Nmap, pfBlockerNG, RRD_Summary, Shellcmd, Snort, Speedtest, System_Patches.

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