PFSense 2.4.5 stuck at "Checking backup file consistency" for ~15 mins on boot
-
Hello all,
I'm running PFSense 2.4.5 and recently had to perform a factory reset of my box from the CLI, followed by restoring an older config revision from Autoconfig Backup.
The restore worked out great and my system was up and running as expected, but now I'm dealing with another kind of issue.
When rebooting PFSense, which previously took about 5 minutes, it all of a sudden now takes around 20 minutes.
Looking at serial console output, I noticed that my machine now takes an awful lot of time when "Checking config file backup consistency", this now takes around 15 minutes.
Does anybody here happen to know why this could be and what I can do about it?
Since this is a newly restored system (also currently without any installed packages), I'm really not sure what could be going on here and would greatly appreciate some help.
Thanks!
Robin
-
The only thing I have seen take that sort of time is when pfSense is trying to pull in packages and cannot connect out for some reason. Though usually that only happens at the first boot after restoring.
Make sure the firewall itself has full connectivity once it has booted.Steve
-
Hi @stephenw10,
Thanks a lot for your response.
The machine is connected to the internet at boot (WAN1 connected to ISP router for cable internet, WAN2 connected to backup DSL modem).
Looking at the serial output, I'm not seeing any errors that would indicate failed connection attempts.
Additionally, this happens very early on in the boot process, before networking and other services even get started.
Any other suggestions?
Many thanks!
Robin
-
Can we see the log showing where it's waiting?
-
Sure, but I'll unfortunately need to reboot the system again to capture them to a file.
The internet connection is under heavy load currently, but I'll go ahead and do this later tonight (Central European Time) when it's a little quieter.
Robin
-
Well, what can I say?
Just rebooted my machine, and the issue is gone!
The consistency check is now back to taking about 90 seconds, which is absolutely acceptable. Not sure why or how, rebooted 5 or 6 times yesterday and this would always happen, but of course this does make me very happy.
For your reference though, here's an excerpt from the serial output to show where this was happening:
Initializing.................. done.
Starting device manager (devd)...done.
Loading configuration......done.
Updating configuration...done.
Checking config backups consistency....The consistency check is the part that would take forever.
I'll keep looking out for this and report back if it happens again, but all seems perfectly fine right now.
Thanks for your responses, really appreciate the help!
Robin
-
No problem. That's an odd place to see that, I'm not sure I've ever seen it.
If it does happen again I would check the config backups in /conf/backup. Maybe make a manual backup and remove the old backups if any of them are suspect.
Steve
-
Next time you reboot, hit Ctrl-T (
^T
) at the console a few times with some time in between when it's stuck there. See what that prints.