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
after updating the file /usr/local/sbin/opnsense-update
see >> https://github.com/opnsense/update/commit/9abe08ee

with

if (${PKG} update -f -r ${PRODUCT} && \
    ${PKG} upgrade -fy -r ${PRODUCT}) > ${PIPEFILE} 2>&1; then


upgrade to 21.7 works perfect.
so far no problems!!

thx franco! :D
Supermicro A2SDi-4C-HLN4F
Team Rebellion Member (sidebar / themes: tukan, cicada & vicuna)

July 28, 2021, 07:53:09 PM #31 Last Edit: July 28, 2021, 07:56:08 PM by Meditux
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

Hi guys,

same problem with the included repositories (OPNsense, SunnyValley, mimugmail, ntop) fixed via the solution pointed out by Franco.

Everything fine, AdGuard, Sensei, ntopng everything runs. Only ntopgn had a problem with the certificate for a short time  (SSL_ERROR_RX_RECORD_TOO_LONG).

Greetings and thanks Meditux

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 was able to reproduce 2 times on a system with 2 external repos. The fix did it. Thanks! :)

So is the solution, running:

# opnsense-revert -r 21.1.9_multi opnsense-update

before upgrading to 21.7?


Ok, I'll update the 21.1.9 version on the mirror then... Thanks all!

EDIT: Main mirror now has opnsense-update 21.1.8_2 available with the fix so simply check for updates. Mirror sync times may vary.


Cheers,
Franco

Quote from: opn_nwo on July 28, 2021, 07:56:52 PM
So is the solution, running:

# opnsense-revert -r 21.1.9_multi opnsense-update

before upgrading to 21.7?

Yep

Quote from: mimugmail on July 28, 2021, 08:50:58 PM
Quote from: opn_nwo on July 28, 2021, 07:56:52 PM
So is the solution, running:

# opnsense-revert -r 21.1.9_multi opnsense-update

before upgrading to 21.7?

Yep

Yes and no. It should work with the default packages now (opnsense-update at 21.1.8_2 as mentioned).

Just ran through the update from the GUI and it worked fine.

Mine showed an update to 21.1.9_1, not 21.1.8_2. Is the upgrade fix included in that version as well?

I was stuck initially on trying to run through opnsense-revert via the console, as I was seeing:

# opnsense-revert -r 21.1.9_multi opnsense-update
Fetching opnsense-update.txz: .. failed


I had the Australian repo mirror set in the web UI as I'm located in Australia. Perhaps the Australian mirror isn't fully up to date for this process, as things didn't work until I changed back to the default Deciso repo. I also temporarily removed mimugmail's repo just to be sure.

Having done that, seems like things are okay now, as the rest of the upgrade process went very smoothly on my Qotom appliance.

Quote from: abraxxa on July 28, 2021, 10:04:52 PM
Mine showed an update to 21.1.9_1, not 21.1.8_2. Is the upgrade fix included in that version as well?

Try my steps on the bottom of page 2. This procedure worked fine for me when it wanted to update to an older version from the gui.

Quote from: allebone on July 28, 2021, 11:08:36 PM
Quote from: abraxxa on July 28, 2021, 10:04:52 PM
Mine showed an update to 21.1.9_1, not 21.1.8_2. Is the upgrade fix included in that version as well?

Try my steps on the bottom of page 2. This procedure worked fine for me when it wanted to update to an older version from the gui.

Thanks, but as I'm running Sensei I'll wait until they announce that a 21.7 compatible version is available or the current one already is.

After the update to OpnSense 21.7 I see the Sensei 1.9.3 availabilty, release notes:

What is new in Sensei 1.9.3
Integrations
Bug-Fix: OPNsense 21.7 compatibility enhancements


Yup both sensei and opnsense already patched and fixed so 2.7 will go fine for everyone else not affected from now on. A huge thanks to both teams for providing a solution in under 24h to a community build of an open source project.  Enterprise level support.

:)

July 29, 2021, 06:46:39 AM #44 Last Edit: July 29, 2021, 07:12:21 AM by Bytechanger
Hi,

has the same problem.
Doing the 11 Steps, at step 3 it is now
and it´s fetching since 20 Minutes?


Proceed with this action? [21.7/y/N]: 21.7

Fetching packages-21.7-OpenSSL-amd64.tar: ................... done
Fetching base-21.7-amd64.txz: ........................................................................        ...        ...        ...        ...        ...        ...


Now one hour
Fetching packages-21.7-OpenSSL-amd64.tar: ................... done
Fetching base-21.7-amd64.txz: ........................................................................        ...        ...        ...        ...        ...        ...