[Solved] Upgrade to Business Edition not possible

Started by citydweller, July 19, 2021, 11:13:52 AM

Previous topic - Next topic
July 19, 2021, 11:13:52 AM Last Edit: July 22, 2021, 07:28:51 PM by citydweller
Hi,

after buying a subscription for the business edition, I followed the instructions in the pdf of the confirmation email: https://www.deciso.com/downloads/ACTIVATE OPNsense Business Edition.pdf

But there are two problems here.
1. There is no choice for a "Production" release. I choose "Business" instead. Is that correct?
2. I clicked save, upon I entered the subscription key, checked for updates in the status tab, clicked Update on the Update tab. But after that, nothing happens. Here is the output of the log. I'm using the OPNsense 21.1.8_1-amd64 community edition. Also after a reboot it's still the community edition.
***GOT REQUEST TO UPDATE***
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.txz: .......... done
Processing entries: .......... done
OPNsense repository update completed. 744 packages processed.
All repositories are up to date.
Updating OPNsense repository catalogue...
Fetching meta.conf: . done
Fetching packagesite.txz: .......... done
Processing entries: .......... done
OPNsense repository update completed. 744 packages processed.
All repositories are up to date.
Checking for upgrades (45 candidates): .......... done
Processing candidates (45 candidates): . done
Checking integrity... done (2 conflicting)
  - php73-opcache-7.3.28 conflicts with php74-opcache-7.4.20 on /usr/local/etc/php/ext-10-opcache.ini
  - php73-7.3.28 conflicts with php74-7.4.20 on /usr/local/bin/php
Checking integrity... done (0 conflicting)
The following 30 package(s) will be affected (of 0 checked):

Installed packages to be REMOVED:
opnsense: 21.1.8_1
php74: 7.4.20
php74-ctype: 7.4.20
php74-curl: 7.4.20
php74-dom: 7.4.20
php74-filter: 7.4.20
php74-gettext: 7.4.20
php74-google-api-php-client: 2.4.0
php74-json: 7.4.20
php74-ldap: 7.4.20
php74-mbstring: 7.4.20
php74-opcache: 7.4.20
php74-openssl: 7.4.20
php74-pdo: 7.4.20
php74-pecl-psr: 1.1.0
php74-pecl-radius: 1.4.0b1_1
php74-phalcon4: 4.1.2
php74-phpseclib: 2.0.32
php74-session: 7.4.20
php74-simplexml: 7.4.20
php74-sockets: 7.4.20
php74-sqlite3: 7.4.20
php74-xml: 7.4.20
php74-zlib: 7.4.20

New packages to be INSTALLED:
php73: 7.3.28
php73-opcache: 7.3.28

Installed packages to be REINSTALLED:
os-cache-1.0_1 (direct dependency changed: php73-opcache)
os-iperf-1.0_1 (direct dependency changed: ruby)
p5-Net-IP-1.26_1 (ABI changed: 'freebsd:12:*' -> 'freebsd:12:x86:64')
pkg-1.16.3

Number of packages to be removed: 24
Number of packages to be installed: 2
Number of packages to be reinstalled: 4

The operation will free 66 MiB.
pkg-static: Cannot delete vital package: opnsense!
pkg-static: If you are sure you want to remove opnsense,
pkg-static: unset the 'vital' flag with: pkg set -v 0 opnsense
Starting web GUI...done.
Generating RRD graphs...done.
***DONE***


Anybody does have some hints?

Kind Regards

Hi,

At a first glance I would expect some issue with plugins (versions locking), can you try to remove the following packages using the commands below and try to update again via the gui?


pkg remove -f os-cache
pkg remove -f os-iperf
pkg remove -f p5-Net-IP-1.26_1


The "business" type is indeed the correct one by the way.

Best regards,

Ad



From a plain 21.1.8 (only os-dyndns) installed moving to 21.4.2 the problem does not appear so Ad seems to be right about plugin version conflicts that the FreeBSD package manager cannot resolve.

Eventually 21.4.3 will move to PHP 7.4 / Phalcon 4 combination which is part of the trouble here, but that particular release is planned for after 21.7 release at the end of the month.


Cheers,
Franco

Removing os-cache should make the upgrade work. Another method would be to use

# opnsense-update -f

which cleanly reinstalls all packages from the new mirror. The GUI firmware will however still want to move to opnsense-business afterwards (this is correct).


Cheers,
Franco

Quote from: AdSchellevis on July 19, 2021, 07:34:30 PM
Hi,

At a first glance I would expect some issue with plugins (versions locking), can you try to remove the following packages using the commands below and try to update again via the gui?


pkg remove -f os-cache
pkg remove -f os-iperf
pkg remove -f p5-Net-IP-1.26_1


The "business" type is indeed the correct one by the way.

Best regards,

Ad

Thanks for your hint! It was the os-cache plugin. I removed it, then the upgrade was successful.