Navigation

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

    Making re-installing packages optional

    2.1 Snapshot Feedback and Problems - RETIRED
    3
    3
    1013
    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.
    • F
      frater last edited by

      From time to time I upgrade to a newer version on my pfsense, but each time I upgrade it removes all packages and then installs them again.
      This also happens after restoring a configuration file.

      Because some packages are crucial (siproxd,pfblocker) and some are necessary (zabbix) this significantly contributes to the downtime of this firewall.
      Especially ntop enhances this downtime. It takes more than 10 minutes to install.

      I also noticed that pfblocker turns off after each upgrade. This may be the fault of pfblocker.

      If this "repackaging" would be optional it would greatly help me and others.

      There's also a spare pfsense that I can turn on, but after turning this one on I need to load the latest configuration file and I will have another 15 minutes downtime which could have been 3….

      1 Reply Last reply Reply Quote 0
      • E
        eri-- last edited by

        Well you can create a local pkg repository to reduce downtime.

        There is no way to guarantee that the package will work after the upgrade in general scope.

        1 Reply Last reply Reply Quote 0
        • jimp
          jimp Rebel Alliance Developer Netgate last edited by

          If downtime is that critical, you should be updating during a low-traffic or overnight maintenance window when it won't matter quite so much.

          A real hacky way to do this would be to install the shellcmd package and then add an earlyshellcmd to run

          /bin/rm /conf/needs_package_sync
          

          Which would remove the file that triggers the pkg reinstall.

          If something breaks in a package because of the upgrade though, you've only got yourself to blame. We reinstall them for a reason, as cmb mentioned.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 0
          • First post
            Last post