Unable to upgrade from OPNsense 21.1.9_1-amd64 to 21.7

Started by allebone, July 28, 2021, 02:39:50 PM

Previous topic - Next topic
Quote from: pp on July 28, 2021, 03:25:42 PM
As mentioned in my duplicate thread of this issue (please delete if you want) I had the same issue.
As franco suspected it appears to have been caused by the mimugmail repo. I deleted the repo and initiated another update (after making sure I had no pkg from said repo installed). Unfortunately my system is not coming up again (it has been about 15 minutes now) and I can only check later when I get home.

Same here, system didn't come up after the upgrade. I can investigate further when I'm home. I'm only using the sensei repository, no other 3rd party repository.
In theory there is no difference between theory and practice. In practice there is.

Ok hopefully nothing major... :( Im sure it will be fixable.

Alright, looks like this is a side effect of https://github.com/opnsense/update/issues/69

We will be addressing this tomorrow after more upgrade tests.


Cheers,
Franco

No problem, if you need me to test or do anything let me know :)

I was able to ssh back into my router (it was not down and has not updated). I made the mistake of starting the last update attempt via console connected over wireguard without tmux or similar. So when the wireguard service was stopped, the update did not continue as the session was killed I assume.
I started up wireguard again and restarted the update via webgui. Everything worked out smooth in the end after disabling the third party repo.
User error, sorry about the noise  ;)

So my OPNSense seems to be little broken.

Startup takes 10 minutes. configd does not start due to missing pyhton library.

SSH gives me "Access denied" for all users + root.

EDIT: Problem report sent. Maybe franco can see more from his side, as I'm not able to access opnsense logs anymore. However internet access is restored, but can view logs or access via ssh.

Let's not clutter this thread with all sorts of oddities....

The fix seems to be https://github.com/opnsense/update/commit/9abe08ee and if anyone would help confirm that would be extremely helpful:

# opnsense-revert -r 21.1.9_multi opnsense-update

Suffice to say upgrades with enabled third party repos could fail for any number of reasons that we can't really cover from our side. Please be wary.


Cheers,
Franco

Quote from: franco on July 28, 2021, 04:57:04 PM
Let's not clutter this thread with all sorts of oddities....

The fix seems to be https://github.com/opnsense/update/commit/9abe08ee and if anyone would help confirm that would be extremely helpful:

# opnsense-revert -r 21.1.9_multi opnsense-update

Suffice to say upgrades with enabled third party repos could fail for any number of reasons that we can't really cover from our side. Please be wary.


Cheers,
Franco

I can confirm that this worked on my system experiencing the issue.

Confirmed, update successful; checking firmware updates after indicates no updates available, as expected.

Thanks!  :)
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

Its not clear what we are supposed to do to upgrade to 21.7.
Do I just run opnsense-revert -r 21.1.9_multi opnsense-update and after check for updates and upgrade to 21.7 normally?

Pete

I ran the revert, then attempted update and ended up with 21.1.8 and then updated again and 21.7 was installed.  I was confused about that as well...but that actually worked.
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

Quote from: gpb on July 28, 2021, 06:50:38 PM
I ran the revert, then attempted update and ended up with 21.1.8 and then updated again and 21.7 was installed.  I was confused about that as well...but that actually worked.

Ok and Can I do this with sensei or is that not a good idea?

Well, that's above my pay-grade.  I will say that ntopng no longer works...so...uh...yeah...don't know.
HP T730/AMD  RX-427BB/8GB/500GB SSD
HP NC365T 4-PORT

Screw it I guess I will just try and fix it if it breaks.

Ok it seems to have worked. Here are the exact steps I completed.

1) Ssh into box and run opnsense-revert -r 21.1.9_multi opnsense-update
2) reboot box
3) Ssh into box and use option 12, type 21.7 to upgrade to 21.7
4) Reboots automatically.
5) Open Web GUI. Check for updates. It finds 1 update for sunnyvalley.
6) Install update, reboot.
7) Open Web GUI. Check for updates (none are found).
8) Check Dashboard - should say 21.7 is now installed. ( OPNsense 21.7-amd64)
9) Check Firmware page. Should say "Version    21.7"
10) Check no additional updates - there are none for me.
11) Confirm all working and no issues (I am still doing this but seems ok after a couple of minutes so far).

Pete