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

    3hrs +? "Packages are currently being reinstalled in the background."

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    15 Posts 4 Posters 6.8k 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.
    • H
      hcoin
      last edited by

      Make that 4hrs… still reloading those packages in the background, no gui config changes possible.

      Any hints?  No obvious clues.  I hesitate to just reboot and manually reinstall each package, I'm not even sure it will let me in to that part of the system.  ssh does work.

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

        Check the console (VGA, or serial) and see what it's displaying.

        If a package reinstall did not go correctly it can end up in that state. You can clear the message by going to Diagnostics > Backup/Restore and hitting the button there to reset the package lock.

        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
        • H
          hcoin
          last edited by

          Good tip, the vga console.  There is this result:

          Both systems were extracting postfix, which succeeded.  Then the extraction proceeded to cyrus-sasl, which suceeded.

          The last thing printed on each was

          libspf2  (extracting)

          and, nothing more.  Should ^C on the console?  Or, do the above advice?  Reboot? Reinstall the packages?

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

            I would try ctrl-c first, then if that doesn't work, depending on what else shows up, it should be safe enough to just use the package lock clear button.

            You'd definitely need to reinstall whatever package was using postfix though (mailscanner?) - I think you're the second person to mention an issue reinstalling it, so the package maintainer may need to have a look at the install process.

            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
            • H
              hcoin
              last edited by

              So, ^c asked me for which shell I wanted, I hit enter.  Nothing happend.  I hit enter again, and it went on to boot, as it started into postfix a whole bunch of html stuff appeared on the console apparently to the effect of reinstalling postfix. It would stall from time to time until I hit enter, then spew some more.

              Upon reboot, all configs lost with the complaint that system.inc was corrupt.  Dumping it, it appears to have been truncated, it ends in the middle of a statement.

              Complete loss of all functions, no interfaces configured.   Attempting to 'restart web configurator' yields 'unexpected $end in system.inc, line 1029, so, no webconfigurator either.  Trying to find a source for system inc and ssh it in if I can.

              What a hairball.   Is there a better way without losing everything?

              P.S. And, of course, github is down ,  on the hunt for a system.inc for 2.02

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

                If github were up right now, and you have external connectivity, you could fetch a raw copy of system.inc right from there directly.

                As it is, the best way to get back from that would be to reapply the firmware update.

                No idea how the package reinstall would have trashed system.inc though. Any chance your drive is failing?

                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
                • H
                  hcoin
                  last edited by

                  No chance of reapplying anything, since all the scripts depend on system.inc.  No interfaces configured, no off-box connectivity of any sort.  But I found a system.inc on redmine, releng 2_ and it seemed different than the one there by only the missing bit and one line at the top.  Wrote it on to a flash drive, walked it over there,  mounted it, copied it, and … viola.
                    up and seemingly all good.

                  And after having copied system.inc,  rebooting, something truncated system.inc to exactly 32Kb again!
                  SmartD short test reports no errors on the drive, drive log reports no errors.
                  fsck didn't run at boot, and there have been no problems these many months.  fsck at single user boot reports clean.
                  copied system.inc again, but didn't try to reinstall postfix.  So far, so good.

                  What can truncate system.inc to 32K?

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

                    Nothing I know of, except a drive that isn't actually syncing to disk (like a CF that has worn out and will no longer write). The 32k value is pretty sketchy. I'd say that it's being cached somewhere initially and then when the cache is flushed to disk by some subsequent i/o it starts showing you what is really on the disk.

                    Try this:

                    dd if=/dev/zero of=/etc/inc/system.inc bs=1M count=1
                    rm /etc/inc/system.inc
                    cp /path/to/good/copy/system.inc /etc/inc.system.inc
                    
                    

                    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
                    • H
                      hcoin
                      last edited by

                      Update:  Seems the right thing to have done during the initial update during the hang at the libspf2 extraction was not to ^C on the console when the postfix reinstall happened, but to hit the return key.  It then just marches on apparently correctly.

                      No clue if it all really works at the detail level, but when I reapplied the update and hit the return at the hang instead of the ^C all seems to proceed correctly.

                      That means that unless you've got access to the console – don't try to upgrade with the postfix package installed if you don't have physical access to the pfsense box keyboard.

                      No idea what clobbered system.inc

                      1 Reply Last reply Reply Quote 0
                      • B
                        biggsy
                        last edited by

                        I think you're the second person to mention an issue reinstalling it…

                        The first would have been me yesterday.

                        After going through the clean install and restore I was running very late and just dropped a post here (http://forum.pfsense.org/index.php/topic,57024.msg304361.html#msg304361).

                        As you can see, it looks like we had the same problem with libspf2.  I also had a problem with pfblocker but didn't get a screenshot of that and don't remember the context now.  I use postfix without any related packages.

                        Of course, what I should have done was an ESXi snapshot before I started the update.

                        1 Reply Last reply Reply Quote 0
                        • H
                          hcoin
                          last edited by

                          Followup:  Went to the second of the two identical PF boxes, it was still hung at the libspf2 extraction.  I hooked up a keyboard and a monitor, hit the return key, and off everything went, apparently normally.  Checked the system.inc file, it appears normal.

                          Something that happens related to the postfix forwarder install just sits waiting for stdin, apparently.

                          1 Reply Last reply Reply Quote 0
                          • E
                            extide
                            last edited by

                            @hcoin:

                            Good tip, the vga console.  There is this result:

                            Both systems were extracting postfix, which succeeded.  Then the extraction proceeded to cyrus-sasl, which suceeded.

                            The last thing printed on each was

                            libspf2  (extracting)

                            and, nothing more.  Should ^C on the console?  Or, do the above advice?  Reboot? Reinstall the packages?

                            I had this happen on a system as well, just had to press <enter>on the keyboard attached to the machine… weird.

                            Jim? Maybe a bug in the scripts?</enter>

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

                              No bug in the scripts that I know of.

                              If one of the packages is prompting for an answer on install, it may be waiting for input. They don't normally do that, but it's possible one of the packages being pulled in during this install is doing that. It's not unheard of for FreeBSD packages to do that (I know some of the Java packages used to). Not sure why it would only happen during a reinstall/upgrade though.

                              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
                              • E
                                extide
                                last edited by

                                Thats good to know, I will keep that in mind in the future.

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