Broken upgrade (www + ssh)
-
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?
-
@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
-
@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.
-
@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. -
@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 -
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-reinstallSteve