Upgrade to 21.1 may take *very* long time (>1h)

Started by waxhead, January 28, 2021, 10:38:46 PM

Previous topic - Next topic
Hi,

I just wanted to warn that upgrading to 21.1 on my old box (core 2 duo era) took a very long time (over 1 hour) after all packages was downloaded. If this is indeed expected it might be a good idea to add a warning somewhere so that people don't assume that their box is hanging.

Except from that - everything seems to be running perfectly, so congratulations to the OPNsense team with yet another great release as usual! Thanks a bunch! :)

January 28, 2021, 10:57:40 PM #1 Last Edit: January 28, 2021, 11:55:31 PM by lxray
Thanks for your post. I had already given up hope, having tried for 3 times to install the update only to power off and on manually after nothing had happened 10 minutes later. I always came back to 20.8.4, assuming somehting got stuck during the update. Running on an Intel Nuc 7th Gen i5.

Edit: Tried a 4th time but gave up after 45 minutes. Via physical power button the machine came off and on in a minute and is now still sitting at 20.7.8_4. I guess something IS stuck. Should probably not take so long on i5 CPU with NVME SSD and 16GB RAM.
Advise?

Upgraded to 21.1 on an old APU2 took about 10mins.

I was able to figure out for how long the update took.
I simply went to Reporting->Health->System->Processor and can see that the graph shows that there was no activity from 17:06 until about 19:26.

That is 2 hours and 20 minutes !! (which is a rather long time)

I also checked the mbuf,states,cputemp and memory graphs which show the same phenomenon.

Could it be that the installed downloads something in the background after all the packages are downloaded? Is there a install log available somewhere that maybe can help the OPNsense devs figure out what may have happened? My box have been running since the install and is backed by a UPS, so unless there is a major power outage I might be able to help out with additional information. (but that is tomorrow - now I need to get some sleep) :)

Just update from 21.1r to 21.1, took about less than 10 min, smooth sailing all the way.

Wow...2 hours...?  About 6 minutes here...a bit took longer than a point release.  Verified the hdd light was flashing during upgrade and after the NIC went dark a few times, finally lit up and started flashing in a normal state.  No monitor hooked to it and thankfully didn't have to drag one out.  Zabbix reported "problem" resolved in 5 minutes.  This was an upgrade via GUI following the 2 package update (sudo, opnsense 20.7.8_4).
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

No CPU time means a lot of IO time. It heavily depends on the write performance of your disk. If it is an SD or CF card... slower than slow :)


Cheers,
Franco

I had one system where the update window freezed and in the background it was already restarted.
Maybe open a separate tab and try to connect again.

My upgrade to 21.1 was successful, but it took a long time. The delay seemed to be with the download process. The steps I went through via web interface are:

- Upgraded to 20.7.8_4 which took about 3 minutes.
- Attempted upgrade to 21.1. It failed after 30+ minutes on the first package download with a checksum error.
- Rebooted firewall
- Started upgrade again. The first package download took about 90 minutes. The next two downloads took a couple of minutes. The firewall then rebooted and was fully operational in less than 5 minutes.

Most OPNSense upgrades take me less than 5 minutes. Opnsense is running on an SSD drive and has sufficient  CPU (quad core I7-3820) to sustain 1.2 gigabit downloads (Xfinity Gigabit service provisioned at 1.2 gigabit).

Just wanted to confirm that for some patience may be needed for this upgrade.


The first box I updated took a long time for reboot. 10-20 Minutes.
It has fast SSD but it was my old APU1 that I use for testing and is usually the first box I migrate to new releases.
Twitter: banym
Mastodon: banym@bsd.network
Blog: https://www.banym.de

FWIW my APU2c with AMD GX-412TC SOC (4 cores) took around 10 minutes. Was a bit surprised it took so long, but it worked 100%.

As always many thanks to the devs for making such a great product.

Quote from: franco on January 29, 2021, 07:13:57 AM
No CPU time means a lot of IO time. It heavily depends on the write performance of your disk. If it is an SD or CF card... slower than slow :)


Cheers,
Franco

I rather interpret this as if OPNsense was not running e.g. while the box was rebooting/the system was loading, but then again I don't know the details of the logging. The box has two hard drives in Raid1 transparent to OPNsense and actually the BIOS as well. It is a separate external board that handles the magic all by itself. Never had any IO slowness with it before as far as I know.

Maybe FreeBSD / HardenedBSD have some watchdog functionality? In any case is there some log files available that may help shed light on the situation?! If so I'll happily provide them.

It took longer than a point upgrade, but not extermely long.
I clocked it: 7min 10sec.
This is in a Qemu box on Proxmox with 2 Xeon 1260L cores, 8Gb Mem on a NVME SSD.

Well I can't make the upgrade work.
It takes forever and when I give up and reboot the machine, it's untouched and still on 20.7.8_4.

When I go to the update page, I see this: (please see attachment)

Ideas?

I updated one box yesterday from GUI without problems. You could try from console...
kind regards
chemlud
____
"The price of reliability is the pursuit of the utmost simplicity."
C.A.R. Hoare

felix eichhorns premium katzenfutter mit der extraportion energie

A router is not a switch - A router is not a switch - A router is not a switch - A rou....