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

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

Previous topic - Next topic
Quote from: chemlud on January 29, 2021, 12:27:19 PM
I updated one box yesterday from GUI without problems. You could try from console...

Tried console too.
Won't work.

It's downloading packages, then rebooting and then nothing is happening (as far as I can tell).  :-\

@lxray: please post your /var/cache/opnsense-update/.upgrade.log

For one reason or another the packages install fails... Mostly due to third party packages from non-primary source or manual port builds.


Cheers,
Franco


The upgrade did not come back and you forcefully restarted? At least the upgrade log simply stops without an error to find during os-vnstat reinstall. Will try to reproduce.


Cheers,
Franco

Quote from: franco on January 29, 2021, 01:27:47 PM
The upgrade did not come back and you forcefully restarted? At least the upgrade log simply stops without an error to find during os-vnstat reinstall. Will try to reproduce.


Cheers,
Franco

Yes. It took so long, that I restarted (semi forcefully: I pressed the power button, waited until power was off and then powered on again).

Maybe it helps if I show the output of uname:
FreeBSD OPNsense.schlattau.net 12.1-RELEASE-p12-HBSD FreeBSD 12.1-RELEASE-p12-HBSD #0  3c6040c7243(stable/21.1)-dirty: Mon Jan 25 12:27:52 CET 2021     root@sensey:/usr/obj/usr/src/amd64.amd64/sys/SMP  amd64

Thanks Franco

Quote from: franco on January 29, 2021, 01:27:47 PM
....At least the upgrade log simply stops....

So this means there is a an upgrade log available? Where can I find it?

FWIW I poked around in dmesg , but there is no timestamps so it's hard to tell. I am not well versed in the BSD world.
From what I could piece together it looked ok with possibly the exceptio of a couple of GIANT-LOCKED messages which after a few quick searches at duckduckgo did not seem significant - but what do I know.

Good Morning!
It didn't take more than 15 minutes to upgrade here, but after the upgrade, the firewall was very slow, did anyone else happen?

it works very well controlling the rules and ports that are blocked, the functions are operating correctly, but access to the GUI and CLI is very slow, the boot took more than 20 minutes to complete.

Yes there is a log at /var/cache/opnsense-update/.upgrade.log which records upgrade progress (or lack thereof). But it's the same as watching the console... the same verbosity, no timestamps (as is the case with FreeBSD package manager).

I can't reproduce this hang from here so far. Not sure what I am missing.


Cheers,
Franco

Quote from: mr.yx on January 28, 2021, 11:31:02 PM
Upgraded to 21.1 on an old APU2 took about 10mins.

instead of waiting for the upgrade.  make a backup..nuke the box..install the latest version..install config backup.  much easier.

January 29, 2021, 04:27:31 PM #24 Last Edit: January 29, 2021, 04:35:33 PM by Spoonman2002

instead of waiting for the upgrade.  make a backup..nuke the box..install the latest version..install config backup. 

- that's exactly what I did (upgrade from 20.7.8 to 21.1 did not work on APU2C4)

Sorry for appending unexciting feedback. My upgrade to 21.1 (on ProtectLi FW4B - amd64) took around 7 mins + reboot. Forgot to alert Nagios about the downtime and it dutifully alerted me.  :D Other than that, no issue and my modest farm is chugging along nicely. Thank you to all those folks who continue to contribute towards OPNsense advancements and also to "First Responders" at the forum for newbie questions that come from folks like us.

Kind regards.

Quote from: hescominsoon on January 29, 2021, 03:43:33 PM
Quote from: mr.yx on January 28, 2021, 11:31:02 PM
Upgraded to 21.1 on an old APU2 took about 10mins.

instead of waiting for the upgrade.  make a backup..nuke the box..install the latest version..install config backup.  much easier.

Question about doing this...what data do you need to backup first?  For example, does the VNSTAT database get backed up via the configuration (I don't want to lose that history)?  What about data from other packages?  Thanks!
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

Upgrade went super smooth as always.

Good job guys and thanks for all the hard work!

Quote from: franco on January 29, 2021, 02:11:46 PM
Yes there is a log at /var/cache/opnsense-update/.upgrade.log which records upgrade progress (or lack thereof). But it's the same as watching the console... the same verbosity, no timestamps (as is the case with FreeBSD package manager).

I can't reproduce this hang from here so far. Not sure what I am missing.


Cheers,
Franco

Ok thanks , I looked through the upgrade.log, but could not find anything of interest. And since there is no timestamps it is hard to tell. I guess a potential solution would be to scan all files that have been updated for timestamps and figure out where there was a delay.... the best I could do was  find / -ls -newerct "2021-01-28 18:00:00" -not -newerct "2021-01-28 19:00:00" | grep "Jan 28 18:3" | less   and then tuning this command a bit. Not very useful , but perhaps there is a path that is more interesting than others - if so please let me know and I'll try to figure out what caused the delay.

Hi guys

The upgrade went through without a hitch within 4 minutes. Everything works great. My thanks to all who participated in this. Great job!

Greetings Meditux