Update problems with latest stable version

Started by Sphyrna, September 09, 2022, 06:21:54 PM

Previous topic - Next topic
September 09, 2022, 06:21:54 PM Last Edit: September 09, 2022, 06:23:33 PM by Sphyrna
Hello,

Sorry, but I'm not Hackerman and I need some advice.
A few days ago I startet update procedure, but the system is unable to finish the update. It hangs somehow by "Fetching base-22.7.3-amd64.txz". What should I do? Any suggestions?

Thanks in advance
Sphyrna

***GOT REQUEST TO UPDATE***
Currently running OPNsense 22.7_4 (amd64/OpenSSL) at Thu Sep  8 11:09:00 CEST 2022
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Updating OPNsense repository catalogue...
OPNsense repository is up to date.
All repositories are up to date.
Checking for upgrades (39 candidates): .......... done
Processing candidates (39 candidates): .......... done
The following 39 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
ca_root_nss: 3.80 -> 3.81
curl: 7.84.0 -> 7.85.0
ldns: 1.8.1 -> 1.8.3
libiconv: 1.16 -> 1.17
liblz4: 1.9.3,1 -> 1.9.4,1
libnet: 1.1.6_5,1 -> 1.2,1
libxml2: 2.9.13_2 -> 2.10.2
lighttpd: 1.4.65 -> 1.4.66
nettle: 3.8 -> 3.8.1
nspr: 4.34 -> 4.34.1
nss: 3.80 -> 3.82
opnsense: 22.7_4 -> 22.7.4
opnsense-lang: 22.7 -> 22.7.3
opnsense-update: 22.7 -> 22.7.3
php80: 8.0.20 -> 8.0.22
php80-ctype: 8.0.20 -> 8.0.22
php80-curl: 8.0.20 -> 8.0.22
php80-dom: 8.0.20 -> 8.0.22
php80-filter: 8.0.20 -> 8.0.22
php80-gettext: 8.0.20 -> 8.0.22
php80-ldap: 8.0.20 -> 8.0.22
php80-mbstring: 8.0.20 -> 8.0.22
php80-pdo: 8.0.20 -> 8.0.22
php80-phalcon: 5.0.0.r2 -> 5.0.0.r4
php80-phpseclib: 2.0.37 -> 3.0.14
php80-session: 8.0.20 -> 8.0.22
php80-simplexml: 8.0.20 -> 8.0.22
php80-sockets: 8.0.20 -> 8.0.22
php80-sqlite3: 8.0.20 -> 8.0.22
php80-xml: 8.0.20 -> 8.0.22
php80-zlib: 8.0.20 -> 8.0.22
py39-charset-normalizer: 2.1.0 -> 2.1.1
py39-pytz: 2021.3,1 -> 2022.2.1,1
py39-urllib3: 1.26.10,1 -> 1.26.12,1
rrdtool: 1.7.2_6 -> 1.8.0_1
sqlite3: 3.39.0,1 -> 3.39.2,1
syslog-ng: 3.37.1 -> 3.38.1
unbound: 1.16.1 -> 1.16.2

Installed packages to be REINSTALLED:
suricata-6.0.6 (needed shared library changed)

Number of packages to be upgraded: 38
Number of packages to be reinstalled: 1

The operation will free 1 MiB.
26 MiB to be downloaded.
[1/39] Fetching unbound-1.16.2.pkg: .......... done
[2/39] Fetching syslog-ng-3.38.1.pkg: .......... done
[3/39] Fetching suricata-6.0.6.pkg: .......... done
[4/39] Fetching sqlite3-3.39.2,1.pkg: .......... done
[5/39] Fetching rrdtool-1.8.0_1.pkg: .......... done
[6/39] Fetching py39-urllib3-1.26.12,1.pkg: .......... done
[7/39] Fetching py39-pytz-2022.2.1,1.pkg: .......... done
[8/39] Fetching py39-charset-normalizer-2.1.1.pkg: ........ done
[9/39] Fetching php80-zlib-8.0.22.pkg: ... done
[10/39] Fetching php80-xml-8.0.22.pkg: ... done
[11/39] Fetching php80-sqlite3-8.0.22.pkg: ... done
[12/39] Fetching php80-sockets-8.0.22.pkg: ..... done
[13/39] Fetching php80-simplexml-8.0.22.pkg: ... done
[14/39] Fetching php80-session-8.0.22.pkg: ..... done
[15/39] Fetching php80-phpseclib-3.0.14.pkg: .......... done
[16/39] Fetching php80-phalcon-5.0.0.r4.pkg: .......... done
[17/39] Fetching php80-pdo-8.0.22.pkg: ...... done
[18/39] Fetching php80-mbstring-8.0.22.pkg: .......... done
[19/39] Fetching php80-ldap-8.0.22.pkg: .... done
[20/39] Fetching php80-gettext-8.0.22.pkg: . done
[21/39] Fetching php80-filter-8.0.22.pkg: ... done
[22/39] Fetching php80-dom-8.0.22.pkg: ....... done
[23/39] Fetching php80-curl-8.0.22.pkg: ..... done
[24/39] Fetching php80-ctype-8.0.22.pkg: . done
[25/39] Fetching php80-8.0.22.pkg: .......... done
[26/39] Fetching opnsense-update-22.7.3.pkg: ..... done
[27/39] Fetching opnsense-lang-22.7.3.pkg: .......... done
[28/39] Fetching opnsense-22.7.4.pkg: .......... done
[29/39] Fetching nss-3.82.pkg: .......... done
[30/39] Fetching nspr-4.34.1.pkg: .......... done
[31/39] Fetching nettle-3.8.1.pkg: .......... done
[32/39] Fetching lighttpd-1.4.66.pkg: .......... done
[33/39] Fetching libxml2-2.10.2.pkg: .......... done
[34/39] Fetching libnet-1.2,1.pkg: .......... done
[35/39] Fetching liblz4-1.9.4,1.pkg: .......... done
[36/39] Fetching libiconv-1.17.pkg: .......... done
[37/39] Fetching ldns-1.8.3.pkg: .......... done
[38/39] Fetching curl-7.85.0.pkg: .......... done
[39/39] Fetching ca_root_nss-3.81.pkg: .......... done
Checking integrity... done (0 conflicting)
[1/39] Upgrading libxml2 from 2.9.13_2 to 2.10.2...
[1/39] Extracting libxml2-2.10.2: .......... done
[2/39] Upgrading sqlite3 from 3.39.0,1 to 3.39.2,1...
[2/39] Extracting sqlite3-3.39.2,1: .......... done
[3/39] Upgrading py39-pytz from 2021.3,1 to 2022.2.1,1...
[3/39] Extracting py39-pytz-2022.2.1,1: .......... done
[4/39] Upgrading php80 from 8.0.20 to 8.0.22...
[4/39] Extracting php80-8.0.22: .......... done
[5/39] Upgrading nspr from 4.34 to 4.34.1...
[5/39] Extracting nspr-4.34.1: .......... done
[6/39] Upgrading libiconv from 1.16 to 1.17...
[6/39] Extracting libiconv-1.17: .......... done
[7/39] Upgrading ca_root_nss from 3.80 to 3.81...
[7/39] Extracting ca_root_nss-3.81: ...... done
[8/39] Upgrading py39-urllib3 from 1.26.10,1 to 1.26.12,1...
[8/39] Extracting py39-urllib3-1.26.12,1: .......... done
[9/39] Upgrading py39-charset-normalizer from 2.1.0 to 2.1.1...
[9/39] Extracting py39-charset-normalizer-2.1.1: .......... done
[10/39] Upgrading php80-session from 8.0.20 to 8.0.22...
[10/39] Extracting php80-session-8.0.22: .......... done
[11/39] Upgrading php80-pdo from 8.0.20 to 8.0.22...
[11/39] Extracting php80-pdo-8.0.22: .......... done
[12/39] Upgrading php80-mbstring from 8.0.20 to 8.0.22...
[12/39] Extracting php80-mbstring-8.0.22: .......... done
[13/39] Upgrading nss from 3.80 to 3.82...
[13/39] Extracting nss-3.82: .......... done
[14/39] Upgrading nettle from 3.8 to 3.8.1...
[14/39] Extracting nettle-3.8.1: .......... done
[15/39] Upgrading libnet from 1.1.6_5,1 to 1.2,1...
[15/39] Extracting libnet-1.2,1: .......... done
[16/39] Upgrading liblz4 from 1.9.3,1 to 1.9.4,1...
[16/39] Extracting liblz4-1.9.4,1: .......... done
[17/39] Upgrading ldns from 1.8.1 to 1.8.3...
[17/39] Extracting ldns-1.8.3: .......... done
[18/39] Upgrading curl from 7.84.0 to 7.85.0...
[18/39] Extracting curl-7.85.0: .......... done
[19/39] Upgrading unbound from 1.16.1 to 1.16.2...
===> Creating groups.
Using existing group 'unbound'.
===> Creating users
Using existing user 'unbound'.
[19/39] Extracting unbound-1.16.2: .......... done
[20/39] Upgrading syslog-ng from 3.37.1 to 3.38.1...
[20/39] Extracting syslog-ng-3.38.1: .......... done
[21/39] Reinstalling suricata-6.0.6...
[21/39] Extracting suricata-6.0.6: .......... done
[22/39] Upgrading rrdtool from 1.7.2_6 to 1.8.0_1...
[22/39] Extracting rrdtool-1.8.0_1: .......... done
[23/39] Upgrading php80-zlib from 8.0.20 to 8.0.22...
[23/39] Extracting php80-zlib-8.0.22: ........ done
[24/39] Upgrading php80-xml from 8.0.20 to 8.0.22...
[24/39] Extracting php80-xml-8.0.22: ......... done
[25/39] Upgrading php80-sqlite3 from 8.0.20 to 8.0.22...
[25/39] Extracting php80-sqlite3-8.0.22: ......... done
[26/39] Upgrading php80-sockets from 8.0.20 to 8.0.22...
[26/39] Extracting php80-sockets-8.0.22: .......... done
[27/39] Upgrading php80-simplexml from 8.0.20 to 8.0.22...
[27/39] Extracting php80-simplexml-8.0.22: ......... done
[28/39] Upgrading php80-phpseclib from 2.0.37 to 3.0.14...
[28/39] Extracting php80-phpseclib-3.0.14: ......... done
[29/39] Upgrading php80-phalcon from 5.0.0.r2 to 5.0.0.r4...
[29/39] Extracting php80-phalcon-5.0.0.r4: ........ done
[30/39] Upgrading php80-ldap from 8.0.20 to 8.0.22...
[30/39] Extracting php80-ldap-8.0.22: ........ done
[31/39] Upgrading php80-gettext from 8.0.20 to 8.0.22...
[31/39] Extracting php80-gettext-8.0.22: ........ done
[32/39] Upgrading php80-filter from 8.0.20 to 8.0.22...
[32/39] Extracting php80-filter-8.0.22: ......... done
[33/39] Upgrading php80-dom from 8.0.20 to 8.0.22...
[33/39] Extracting php80-dom-8.0.22: .......... done
[34/39] Upgrading php80-curl from 8.0.20 to 8.0.22...
[34/39] Extracting php80-curl-8.0.22: .......... done
[35/39] Upgrading php80-ctype from 8.0.20 to 8.0.22...
[35/39] Extracting php80-ctype-8.0.22: ........ done
[36/39] Upgrading opnsense-update from 22.7 to 22.7.3...
[36/39] Extracting opnsense-update-22.7.3: .......... done
[37/39] Upgrading opnsense-lang from 22.7 to 22.7.3...
[37/39] Extracting opnsense-lang-22.7.3: .......... done
[38/39] Upgrading lighttpd from 1.4.65 to 1.4.66...
===> Creating groups.
Using existing group 'www'.
===> Creating users
Using existing user 'www'.
[38/39] Extracting lighttpd-1.4.66: .......... done
[39/39] Upgrading opnsense from 22.7_4 to 22.7.4...
[39/39] Extracting opnsense-22.7.4: .......... done
Stopping configd...done
Resetting root shell
Updating /etc/shells
Unhooking from /etc/rc
Unhooking from /etc/rc.shutdown
Updating /etc/shells
Registering root shell
Hooking into /etc/rc
Hooking into /etc/rc.shutdown
Starting configd.
>>> Invoking update script 'refresh'
Writing firmware setting...done.
Writing trust files...done.
Configuring login behaviour...done.
Configuring system logging...done.
=====
Message from py39-urllib3-1.26.12,1:

--
Since version 1.25 HTTPS connections are now verified by default which is done
via "cert_reqs = 'CERT_REQUIRED'".  While certificate verification can be
disabled via "cert_reqs = 'CERT_NONE'", it's highly recommended to leave it on.

Various consumers of net/py-urllib3 already have implemented routines that
either explicitly enable or disable HTTPS certificate verification (e.g. via
configuration settings, CLI arguments, etc.).

Yet it may happen that there are still some consumers which don't explicitly
enable/disable certificate verification for HTTPS connections which could then
lead to errors (as is often the case with self-signed certificates).

In case of an error one should try first to temporarily disable certificate
verification of the problematic urllib3 consumer to see if that approach will
remedy the issue.
You may need to manually remove /usr/local/etc/syslog-ng.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/classification.config if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/reference.config if it is no longer needed.
You may need to manually remove /usr/local/etc/suricata/suricata.yaml if it is no longer needed.
=====
Message from opnsense-22.7.4:

--
Yes, I'm back in black
Checking integrity... done (0 conflicting)
Nothing to do.
Checking all packages: .......... done
The following package files will be deleted:
/var/cache/pkg/unbound-1.16.2~0baf494313.pkg
/var/cache/pkg/syslog-ng-3.38.1.pkg
/var/cache/pkg/unbound-1.16.2.pkg
/var/cache/pkg/syslog-ng-3.38.1~60086c019c.pkg
/var/cache/pkg/suricata-6.0.6~fd4f28b3a8.pkg
/var/cache/pkg/sqlite3-3.39.2,1.pkg
/var/cache/pkg/suricata-6.0.6.pkg
/var/cache/pkg/sqlite3-3.39.2,1~06900fee68.pkg
/var/cache/pkg/rrdtool-1.8.0_1~0dc6734766.pkg
/var/cache/pkg/rrdtool-1.8.0_1.pkg
/var/cache/pkg/py39-urllib3-1.26.12,1~71c72817dc.pkg
/var/cache/pkg/py39-urllib3-1.26.12,1.pkg
/var/cache/pkg/py39-pytz-2022.2.1,1~3b209c1113.pkg
/var/cache/pkg/php80-xml-8.0.22~d980dfcc16.pkg
/var/cache/pkg/py39-pytz-2022.2.1,1.pkg
/var/cache/pkg/py39-charset-normalizer-2.1.1~1f8a57b1eb.pkg
/var/cache/pkg/php80-zlib-8.0.22~2699c0407a.pkg
/var/cache/pkg/py39-charset-normalizer-2.1.1.pkg
/var/cache/pkg/php80-zlib-8.0.22.pkg
/var/cache/pkg/php80-sqlite3-8.0.22.pkg
/var/cache/pkg/php80-xml-8.0.22.pkg
/var/cache/pkg/php80-sqlite3-8.0.22~fd25130728.pkg
/var/cache/pkg/php80-sockets-8.0.22~4f8b115d02.pkg
/var/cache/pkg/php80-sockets-8.0.22.pkg
/var/cache/pkg/php80-simplexml-8.0.22~8132e90d4c.pkg
/var/cache/pkg/php80-pdo-8.0.22~bb8287a79e.pkg
/var/cache/pkg/php80-simplexml-8.0.22.pkg
/var/cache/pkg/php80-session-8.0.22~023f52737b.pkg
/var/cache/pkg/php80-session-8.0.22.pkg
/var/cache/pkg/php80-phpseclib-3.0.14~2d073726dc.pkg
/var/cache/pkg/php80-phpseclib-3.0.14.pkg
/var/cache/pkg/php80-phalcon-5.0.0.r4~c8dc4f3d73.pkg
/var/cache/pkg/php80-phalcon-5.0.0.r4.pkg
/var/cache/pkg/php80-mbstring-8.0.22.pkg
/var/cache/pkg/php80-pdo-8.0.22.pkg
/var/cache/pkg/php80-mbstring-8.0.22~4e8254d3e7.pkg
/var/cache/pkg/php80-ldap-8.0.22~330d87c4f2.pkg
/var/cache/pkg/php80-8.0.22.pkg
/var/cache/pkg/php80-gettext-8.0.22.pkg
/var/cache/pkg/php80-ldap-8.0.22.pkg
/var/cache/pkg/php80-gettext-8.0.22~8355821b51.pkg
/var/cache/pkg/php80-filter-8.0.22~e53de737a7.pkg
/var/cache/pkg/php80-8.0.22~b850716a2e.pkg
/var/cache/pkg/php80-filter-8.0.22.pkg
/var/cache/pkg/php80-dom-8.0.22~5089170f32.pkg
/var/cache/pkg/php80-dom-8.0.22.pkg
/var/cache/pkg/php80-curl-8.0.22~db29e51c7b.pkg
/var/cache/pkg/php80-curl-8.0.22.pkg
/var/cache/pkg/php80-ctype-8.0.22~d3d9d09472.pkg
/var/cache/pkg/php80-ctype-8.0.22.pkg
/var/cache/pkg/opnsense-update-22.7.3~7b3860334e.pkg
/var/cache/pkg/opnsense-update-22.7.3.pkg
/var/cache/pkg/opnsense-lang-22.7.3~a8f80b4e86.pkg
/var/cache/pkg/opnsense-22.7.4~e0db2bc6cd.pkg
/var/cache/pkg/opnsense-lang-22.7.3.pkg
/var/cache/pkg/nss-3.82~738963432a.pkg
/var/cache/pkg/opnsense-22.7.4.pkg
/var/cache/pkg/nss-3.82.pkg
/var/cache/pkg/nspr-4.34.1~30bbcdcefd.pkg
/var/cache/pkg/nspr-4.34.1.pkg
/var/cache/pkg/nettle-3.8.1~a9ee0d8e9a.pkg
/var/cache/pkg/nettle-3.8.1.pkg
/var/cache/pkg/lighttpd-1.4.66~f6f0e9f14b.pkg
/var/cache/pkg/lighttpd-1.4.66.pkg
/var/cache/pkg/libxml2-2.10.2~bb2cb29460.pkg
/var/cache/pkg/libnet-1.2,1~ae05435076.pkg
/var/cache/pkg/libxml2-2.10.2.pkg
/var/cache/pkg/libnet-1.2,1.pkg
/var/cache/pkg/liblz4-1.9.4,1~187eb4b4a0.pkg
/var/cache/pkg/liblz4-1.9.4,1.pkg
/var/cache/pkg/libiconv-1.17~e445ecf41e.pkg
/var/cache/pkg/libiconv-1.17.pkg
/var/cache/pkg/ldns-1.8.3~44ea0db849.pkg
/var/cache/pkg/ldns-1.8.3.pkg
/var/cache/pkg/curl-7.85.0~2631b2ae98.pkg
/var/cache/pkg/curl-7.85.0.pkg
/var/cache/pkg/ca_root_nss-3.81~d5c8a03b2d.pkg
/var/cache/pkg/ca_root_nss-3.81.pkg
The cleanup will free 26 MiB
Deleting files: .......... done
All done
Nothing to do.
Starting web GUI...done.
Generating RRD graphs...done.
Fetching base-22.7.3-amd64.txz: ..................................


There are many more signs of "....." at the end

I also have a hang trying to update from 22.7.3_2 to 22.7.4.
Tried GUI and console update. Both hang. Tried reboot, same issue.

Also get this message
Repository OPNsense has a wrong packagesite, need to re-create database
Hangs at that point.

I experienced the same problem when I upgraded from 22.7 to 22.7.2 via the GUI. [ https://forum.opnsense.org/index.php?topic=29952.0 ]

I figured it out through some research and found the opnsense-update command. You'll need to console into OpnSense, open the shell (option 8 I believe), and do the following: 

opnsense-update -b to get the latest base

opnsense-update -k to get the latest kernel

shutdown -r now


Give that a shot and see what happens.

September 10, 2022, 07:46:24 PM #4 Last Edit: September 10, 2022, 07:51:28 PM by dcol
tried those command and both responded with 'nothing to do'
I even tried changing the mirror from default to a closer server.
Thank goodness doesn't seem to affect firewall operation.

September 10, 2022, 07:57:05 PM #5 Last Edit: September 10, 2022, 08:02:38 PM by dcol
Ran an audit and got this
***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.7.3_2 (amd64/OpenSSL) at Sat Sep 10 10:55:29 MST 2022
>>> Check installed kernel version
Version 22.7.3 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.7.3 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
os-dmidecode 1.1_1
>>> Check locked packages
No locks found.
>>> Check for missing package dependencies
Checking all packages: .......... done
>>> Check for missing or altered package files
Checking all packages: .......... done
>>> Check for core packages consistency
Core package "opnsense" has 63 dependencies to check.
Checking packages: ......................
openssl-1.1.1q,1 has no upstream equivalent
Checking packages: ..
opnsense-22.7.3_2 version mismatch, expected 22.7.4
Checking packages: ......................................
syslog-ng-3.37.1 version mismatch, expected 3.38.1
Checking packages: ... done
***DONE***

So I reinstalled the two version mismatches, now I am at 22.7.4 and updates are now working.

Sorry for the stupid question, but how exactly did you do that?

September 12, 2022, 07:09:44 PM #7 Last Edit: September 12, 2022, 07:14:18 PM by dcol
System>Firmware>Status>Run an Audit>Health To find the problem packages
Then to fix the packages
System>Firmware>Packages Find the package, then on the right side 'Reinstall'

Had to do this on three OPNsense boxes. The latest updates didn't take until I reinstalled these packages. Then everything worked normally.

Thank you very much!
My problems have been solved with the help of your description.

;)