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

    Broken upgrade (www + ssh)

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    6 Posts 4 Posters 731 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.
    • W
      wolfsden3
      last edited by

      Hi All,

      After a broken upgrade the firewall "still works" actually, and quite well BUT I can no longer to to ssh or the web interface.

      Is there an easy way to "reinstall" from the cli on the console? I think all I might need is to reinstall the web configurator, php stuff, maybe nginx and ssh.

      Thoughts?

      DaddyGoD 1 Reply Last reply Reply Quote 0
      • DaddyGoD
        DaddyGo @wolfsden3
        last edited by

        @wolfsden3 said in Broken upgrade (www + ssh):

        After a broken upgrade the firewall

        Hi,

        First question: why did the upgrade fail? (there is always a reason)
        Second: I suppose you have one of these.... DiagnosticsBackup & RestoreBackup & Restore (for different periods of time)

        • yes, if you have one you can quickly reinstall the firewall like this... https://docs.netgate.com/pfsense/en/latest/backup/restore-during-install.html

        Cats bury it so they can't see it!
        (You know what I mean if you have a cat)

        W 1 Reply Last reply Reply Quote 0
        • W
          wolfsden3 @DaddyGo
          last edited by

          @DaddyGo Not exactly. I want to not reinstall the OS. The OS is installed and fine, it's a few packages that didn't seem to get installed. When I did the upgrade from console I don't think the unit rebooted. It went back to the menu and I was like...WTF? So, I did the upgrade again and I think that's what broke some packages. I'm not sure.

          Also, restoring from a backup XML doesn't fix broken packages, it only fixes the config.

          I was hoping to issue a command like pkg -i whateverpackage or whatever BSD's format is like Ubuntu's apt install whateverpackage, etc.

          I just want to reinstall a few packages, not the whole system.

          Thanks.

          GertjanG DaddyGoD 2 Replies Last reply Reply Quote 0
          • GertjanG
            Gertjan @wolfsden3
            last edited by

            @wolfsden3 said in Broken upgrade (www + ssh):

            I just want to reinstall a few packages

            Can be done with pfSense packages, those you can find under > System >Package Manager > Installed Packages
            The other, more core pfSense, are put in place during upgrade or install.
            If you have time and want to investigate what is missing, it can be done if you have an identical pfSense system, so you have something to compare with.

            Waaaay faster : get a USB drive, get a copy of the "firmware", write it to the USB drive.
            Boot from the USB drive, and install pfSense clean.
            Import your config backup.
            Have it reboot ones again.
            Done.

            On very slow system : maybe 10/15 minutes ?
            With a guaranteed result.

            No GUI ? No SSH ? No big deal, just consider your system 'totally out of order', or, as you said : 'broken'.
            The console access always works.

            No "help me" PM's please. Use the forum, the community will thank you.
            Edit : and where are the logs ??

            1 Reply Last reply Reply Quote 0
            • DaddyGoD
              DaddyGo @wolfsden3
              last edited by

              @wolfsden3 said in Broken upgrade (www + ssh):

              like Ubuntu's apt install whateverpackage, etc.

              Please don't think of your firewall as an Ubuntu desktop or server... (this is not the)

              • as described here complete system repair is the correct solution, the rest is just - mass of attempts -

              "there is also a reason why the upgrade didn't go through"

              BTW:
              the solution described is designed to get you back up and running as quickly as possible 😉

              Cats bury it so they can't see it!
              (You know what I mean if you have a cat)

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

                If it's in an unknown state I would also suggest reinstalling clean.

                But if it is able to reach the package servers you can try force reinstalling all the pkgs:
                https://docs.netgate.com/pfsense/en/latest/troubleshooting/upgrades.html#forced-pkg-reinstall

                Steve

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