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

    Who Maintains this Package/How Do I File a Bug Report

    Scheduled Pinned Locked Moved General pfSense Questions
    12 Posts 2 Posters 449 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.
    • G
      guardian Rebel Alliance @stephenw10
      last edited by

      @stephenw10 said in Who Maintains this Package/How Do I File a Bug Report:

      Open a bug report here: https://redmine.pfsense.org/projects/pfsense-packages

      Include steps to replicate it. Link back to here if you like.

      It's pretty easy to make a pull request for a one line change like that. You can do it all from inside the github web interface.

      Steve

      OK, I took my best shot at creating the bug report:
      https://redmine.pfsense.org/issues/11098
      and I attached my best attempt at a fix (only change is line 57)

      Now what?

      Sorry I know nothing about github, and I don't have a non-production system for testing, so my changes hasn't even been syntax checked.

      If you find my post useful, please give it a thumbs up!
      pfSense 2.7.2-RELEASE

      1 Reply Last reply Reply Quote 0
      • stephenw10S
        stephenw10 Netgate Administrator
        last edited by

        That bug report looks fine. jimp has corrected the project and category.

        Now we, or someone else, verify the issue and test the fix. Status changes to 'confirmed'.

        Then create an actual patch and file a pull request in github (or our internal gitlab server).

        That gets reviewed and if no changes are required it gets pulled in and a new package is built.

        That becomes available on the package repo.

        This is not a hardware issue so you should be able to test it pretty easily in a VM.

        Steve

        1 Reply Last reply Reply Quote 0
        • stephenw10S
          stephenw10 Netgate Administrator
          last edited by

          I can't replicate this. How exactly did you configure it?

          I'm testing it with:
          Screenshot from 2020-11-25 12-05-49.png

          And it completes OK. The backup file is omitted.

          Steve

          1 Reply Last reply Reply Quote 0
          • stephenw10S
            stephenw10 Netgate Administrator
            last edited by

            Mmm, tried a bunch of things here and can't reproduce. The backup file is omitted from the backup every time.

            What exactly was the error you saw here?

            Why do you think it's trying to recursively backup itself?

            Steve

            G 1 Reply Last reply Reply Quote 0
            • G
              guardian Rebel Alliance @stephenw10
              last edited by

              @stephenw10 said in Who Maintains this Package/How Do I File a Bug Report:

              Mmm, tried a bunch of things here and can't reproduce. The backup file is omitted from the backup every time.

              What exactly was the error you saw here?

              Why do you think it's trying to recursively backup itself?

              Steve

              Your configuration is correct. I experienced this problem a while back (2.3 or 2.4), and gave up on using the package. When I ran it with /root, it generated a infinite size tar that only stopped when all space was gone.

              I didn't see any sign of changes so I just assumed the problem still existed. As I mentioned earlier, I have no way to test other than my production firewall.

              Maybe I had/have had a recursive link that caused the problem. I'm so very sorry for wasting your time, it appears that you should close the case.

              If you find my post useful, please give it a thumbs up!
              pfSense 2.7.2-RELEASE

              1 Reply Last reply Reply Quote 0
              • stephenw10S
                stephenw10 Netgate Administrator
                last edited by

                Ah, OK. Then, yeah, test the current package version in 2.4.5p1 if you can.

                Excluding the backup file specifically doesn't seem like a bad idea though. The pull request is already in so it will likely be included. You may have hit some edge case that this will prevent.

                Steve

                G 1 Reply Last reply Reply Quote 0
                • G
                  guardian Rebel Alliance @stephenw10
                  last edited by guardian

                  @stephenw10 said in Who Maintains this Package/How Do I File a Bug Report:

                  Ah, OK. Then, yeah, test the current package version in 2.4.5p1 if you can.

                  Excluding the backup file specifically doesn't seem like a bad idea though. The pull request is already in so it will likely be included. You may have hit some edge case that this will prevent.

                  Steve

                  Thanks Steve, I'll give it a try when I get a window that I can afford to have the firewall crash. I was wondering if it would be safe to kill the tar job if I run into a problem?

                  I don't have much experience with FreeBSD other than what little bit I have to do at the command line with pfSense/FreeNAS. As a developer do you know if tar has built in protection to prevent a recursive backup?

                  If you find my post useful, please give it a thumbs up!
                  pfSense 2.7.2-RELEASE

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by stephenw10

                    If it gets stuck creating an ever larger file then killing the tar job should be safe enough. The alternative is the not kill it and it will fill the drive with all the problems that brings!

                    I always test in a VM first. Restoring a snapshot is very easy.

                    I cannot tell you what prevents it including that file currently, just that it didn't include it in any test that we did. It does fail if you try to backup / (the entire filesystem) but it fails because you hit the 512MB limit on the php process running it. My own coding skills are....limited!

                    But as I say adding that exclude switch seems like a good idea anyway. I can only help if there is some edge case that would otherwise cause recursion.

                    Steve

                    G 1 Reply Last reply Reply Quote 0
                    • G
                      guardian Rebel Alliance @stephenw10
                      last edited by

                      @stephenw10 said in Who Maintains this Package/How Do I File a Bug Report:

                      If it gets stuck creating an aver larger file then killing the tar job should be safe enough. The alternative is the not kill it and it will fill the drive with all the problems that brings!

                      I always test in a VM first. Restoring a snapshot is very easy.

                      I cannot tell you what prevents it including that file currently, just that it didn't include it in any test that we did. It does fail if you try to backup / (the entire filesystem) but it fails because you hit the 512MB limit on the php process running it. My own coding skills are....limited!

                      But as I say adding that exclude switch seems like a good idea anyway. I can only help if there is some edge case that would otherwise cause recursion.

                      Steve
                      Looking at the code, unless tar has built-in recursion protection (which is possible), I don't understand why it isn't causing problems.

                      VM is clearly the way to go, I'm just not in a position to set one up now.

                      If you find my post useful, please give it a thumbs up!
                      pfSense 2.7.2-RELEASE

                      1 Reply Last reply Reply Quote 0
                      • stephenw10S
                        stephenw10 Netgate Administrator
                        last edited by stephenw10

                        VBox on a desktop works well for a test like this. I used it for years until I got Proxmox setup.

                        Steve

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