"Reset to factory defaults" at console doesn't work (solution)
-
@stephenw10 Ah some of those were VIPs and it had CARP for them. Still the default gw/route ought to be tied to the primary WAN. Will see for the next one.
FYI I didnโt receive an email for either of your posts, not in quarantine either.
-
@SteveITS never mind just got the email for the second one.
-
@stephenw10 OK so it appears I was not patient enough. Since I was wiping the HA pair anyway (the 4860) I tried console option 4 on it. It did work but it took about 4-5 minutes. I timed it but not exactly just using the PC clock.
One other notable thing on at least the first boot was this long pause. It might have been around the same 4-5 minutes:
Starting CRON... done. Starting package bandwidthd...done. Starting package OpenVPN Client Export Utility...done. Starting package System Patches...done. Starting package IPsec Profile Wizard...done. Starting package freeradius3...done. [<-- long delay and blank line here] Starting package suricata...done. Starting package pfBlockerNG...done. Starting /usr/local/etc/rc.d/pfb_dnsbl.sh...done. Starting /usr/local/etc/rc.d/pfb_filter.sh...done. Netgate pfSense Plus 23.05-RELEASE amd64 Mon May 22 15:04:36 UTC 2023 Bootup complete
After the config reset those are still there but without the delay or blank line, in a different order:
Starting CRON... done. Starting package bandwidthd...done. Starting package freeradius3...done. Starting package IPsec Profile Wizard...done. Starting package OpenVPN Client Export Utility...done. Starting package pfBlockerNG...done. Starting package suricata...done. Starting package System Patches...done. Starting /usr/local/etc/rc.d/pfb_dnsbl.sh...done. Starting /usr/local/etc/rc.d/pfb_filter.sh...done. Netgate pfSense Plus 23.05-RELEASE amd64 Mon May 22 15:04:36 UTC 2023
That may just be random, I confess I don't watch the console much. :)
Interestingly System/Packages shows all previously installed packages are still installed, though unconfigured. Option 4 specifically says "All additional packages installed will be removed." Sounds either like incorrect advice or a bug there?
-
Yeah, the actual packages may remain but I would not expect to see them in the menus, is that right?
That does seem like a bug though, the packages should be uninstalled.
-
Ha, like this: https://redmine.pfsense.org/issues/14378
Though there I only saw it when using the button. Which is odd since that should run the same scripts.
-
@stephenw10 :) I added my note.
They were in the menus because I could click and verify they were unconfigured as if they were newly installed (or the config removed, which was the goal).
I'm going to work with the 2100 some more when I have time. I think there are a couple of issues w/r/t restores and interfaces but want to understand/replicate.
-
Do you also see the packages get re-installed in the logs?
-
@stephenw10 Last night I was only looking at the console, and then when done testing I reinstalled to get ZFS. I did not notice it installing packages but it doesn't mean it didn't. I can look on the 2100. Where would it show?
-
You can see it in the boot log I attached on that ticket: https://redmine.pfsense.org/attachments/5025
It loads the default config but then reinstalls all the previous packages.
Steve
-
@stephenw10 I see it, will look.
I wonder if it's tied to the "reinstall all packages after an upgrade" code which was new in 22.01.
-
I tried the console factory default on the same 2100, with a valid Internet connection. It had no delay.
I then installed apcupsd via the GUI, and reset to defaults again. Afterwards the package was not installed. So, not sure what the difference was between yesterday and today.
I doubt the hardware (and hence ADI vs Arm) matters. Possibly, is an Internet connection required to remove a package? (callback to my 4m delay above) Or "many" packages or certain packages are handled differently than one package (seems unlikely)?
-