OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: sonetoq on November 21, 2022, 03:18:29 am

Title: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on November 21, 2022, 03:18:29 am
I have been failing upgrading form 22.7.6 to 22.7.7 and it has happened a couple of times, this is the latest attempt of doing it, if someone can help me out that would be great

***GOT REQUEST TO UPDATE***
Currently running OPNsense 22.7.6 (amd64/OpenSSL) at Mon Nov 21 01:43:01 UTC 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 (52 candidates): .......... done
Processing candidates (52 candidates): .......... done
The following 52 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
   bash: 5.2.2 -> 5.2.9
   dbus: 1.14.0,1 -> 1.14.4,1
   expat: 2.4.9 -> 2.5.0
   glib: 2.74.0,2 -> 2.74.1,2
   krb5: 1.20 -> 1.20.1
   libedit: 3.1.20210910,1 -> 3.1.20221030,1
   libgd: 2.3.3_1,1 -> 2.3.3_2,1
   libgpg-error: 1.45 -> 1.46
   libidn2: 2.3.3 -> 2.3.3_1
   libimagequant: 2.17.0 -> 4.0.4
   libpsl: 0.21.1_4 -> 0.21.1_6
   libunistring: 1.0 -> 1.1
   libxml2: 2.10.2 -> 2.10.3_1
   mpd5: 5.9_11 -> 5.9_12
   neon: 0.32.2 -> 0.32.4
   nss: 3.83 -> 3.85
   nut: 2.8.0_11 -> 2.8.0_13
   openssl: 1.1.1q,1 -> 1.1.1s,1
   openvpn: 2.5.7 -> 2.5.8
   opnsense: 22.7.6 -> 22.7.8
   opnsense-update: 22.7.5 -> 22.7.7
   os-nut: 1.8.1 -> 1.8.1_1
   os-wireguard: 1.12 -> 1.13_1
   pcre: 8.45_1 -> 8.45_3
   php80: 8.0.24 -> 8.0.25
   php80-ctype: 8.0.24 -> 8.0.25
   php80-curl: 8.0.24 -> 8.0.25
   php80-dom: 8.0.24 -> 8.0.25
   php80-filter: 8.0.24 -> 8.0.25
   php80-gettext: 8.0.24 -> 8.0.25
   php80-ldap: 8.0.24 -> 8.0.25
   php80-mbstring: 8.0.24 -> 8.0.25
   php80-pdo: 8.0.24 -> 8.0.25
   php80-phalcon: 5.0.3 -> 5.1.1
   php80-session: 8.0.24 -> 8.0.25
   php80-simplexml: 8.0.24 -> 8.0.25
   php80-sockets: 8.0.24 -> 8.0.25
   php80-sqlite3: 8.0.24 -> 8.0.25
   php80-xml: 8.0.24 -> 8.0.25
   php80-zlib: 8.0.24 -> 8.0.25
   png: 1.6.37_1 -> 1.6.38
   py39-Jinja2: 3.0.1 -> 3.1.2
   py39-cryptography: 3.4.8 -> 3.4.8,1
   py39-pytz: 2022.2.1,1 -> 2022.5,1
   py39-sqlite3: 3.9.14_7 -> 3.9.15_7
   python39: 3.9.14 -> 3.9.15_1
   sqlite3: 3.39.3,1 -> 3.39.3_1,1
   strongswan: 5.9.8 -> 5.9.8_1
   sudo: 1.9.11p3 -> 1.9.12p1
   suricata: 6.0.8 -> 6.0.8_1
   unbound: 1.16.3 -> 1.17.0

Installed packages to be REINSTALLED:
   openldap24-client-2.4.59_4 (options changed)

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

The process will require 15 MiB more space.
55 MiB to be downloaded.
[1/52] Fetching unbound-1.17.0.pkg: .......... done
[2/52] Fetching suricata-6.0.8_1.pkg: .......... done
[3/52] Fetching sudo-1.9.12p1.pkg: .......... done
[4/52] Fetching strongswan-5.9.8_1.pkg: .......... done
[5/52] Fetching sqlite3-3.39.3_1,1.pkg: .......... done
[6/52] Fetching python39-3.9.15_1.pkg: .......... done
[7/52] Fetching py39-sqlite3-3.9.15_7.pkg: .... done
[8/52] Fetching py39-pytz-2022.5,1.pkg: .......... done
[9/52] Fetching py39-cryptography-3.4.8,1.pkg: .......... done
[10/52] Fetching py39-Jinja2-3.1.2.pkg: .......... done
[11/52] Fetching png-1.6.38.pkg: .......... done
[12/52] Fetching php80-zlib-8.0.25.pkg: ... done
[13/52] Fetching php80-xml-8.0.25.pkg: ... done
[14/52] Fetching php80-sqlite3-8.0.25.pkg: ... done
[15/52] Fetching php80-sockets-8.0.25.pkg: ..... done
[16/52] Fetching php80-simplexml-8.0.25.pkg: ... done
[17/52] Fetching php80-session-8.0.25.pkg: ..... done
[18/52] Fetching php80-phalcon-5.1.1.pkg: .......... done
[19/52] Fetching php80-pdo-8.0.25.pkg: ...... done
[20/52] Fetching php80-mbstring-8.0.25.pkg: .......... done
[21/52] Fetching php80-ldap-8.0.25.pkg: .... done
[22/52] Fetching php80-gettext-8.0.25.pkg: . done
[23/52] Fetching php80-filter-8.0.25.pkg: ... done
[24/52] Fetching php80-dom-8.0.25.pkg: ....... done
[25/52] Fetching php80-curl-8.0.25.pkg: ..... done
[26/52] Fetching php80-ctype-8.0.25.pkg: . done
[27/52] Fetching php80-8.0.25.pkg: .......... done
[28/52] Fetching pcre-8.45_3.pkg: .......... done
[29/52] Fetching os-wireguard-1.13_1.pkg: .. done
[30/52] Fetching os-nut-1.8.1_1.pkg: . done
[31/52] Fetching opnsense-update-22.7.7.pkg: ..... done
[32/52] Fetching opnsense-22.7.8.pkg: .......... done
[33/52] Fetching openvpn-2.5.8.pkg: .......... done
[34/52] Fetching openssl-1.1.1s,1.pkg: .......... done
[35/52] Fetching openldap24-client-2.4.59_4.pkg: .......... done
[36/52] Fetching nut-2.8.0_13.pkg: .......... done
[37/52] Fetching nss-3.85.pkg: .......... done
[38/52] Fetching neon-0.32.4.pkg: .......... done
[39/52] Fetching mpd5-5.9_12.pkg: .......... done
[40/52] Fetching libxml2-2.10.3_1.pkg: .......... done
[41/52] Fetching libunistring-1.1.pkg: .......... done
[42/52] Fetching libpsl-0.21.1_6.pkg: ........ done
[43/52] Fetching libimagequant-4.0.4.pkg: .......... done
[44/52] Fetching libidn2-2.3.3_1.pkg: .......... done
[45/52] Fetching libgpg-error-1.46.pkg: .......... done
[46/52] Fetching libgd-2.3.3_2,1.pkg: .......... done
[47/52] Fetching libedit-3.1.20221030,1.pkg: .......... done
[48/52] Fetching krb5-1.20.1.pkg: .......... done
[49/52] Fetching glib-2.74.1,2.pkg: .......... done
[50/52] Fetching expat-2.5.0.pkg: .......... done
[51/52] Fetching dbus-1.14.4,1.pkg: .......... done
[52/52] Fetching bash-5.2.9.pkg: .......... done
Checking integrity... done (0 conflicting)
[1/52] Upgrading openssl from 1.1.1q,1 to 1.1.1s,1...
[1/52] Extracting openssl-1.1.1s,1: .......... done
[2/52] Upgrading python39 from 3.9.14 to 3.9.15_1...
[2/52] Extracting python39-3.9.15_1: .......... done
[3/52] Upgrading libunistring from 1.0 to 1.1...
[3/52] Extracting libunistring-1.1: .......... done
[4/52] Upgrading png from 1.6.37_1 to 1.6.38...
[4/52] Extracting png-1.6.38: .......... done
[5/52] Upgrading libxml2 from 2.10.2 to 2.10.3_1...
[5/52] Extracting libxml2-2.10.3_1: .......... done
[6/52] Upgrading libidn2 from 2.3.3 to 2.3.3_1...
[6/52] Extracting libidn2-2.3.3_1: .......... done
[7/52] Upgrading expat from 2.4.9 to 2.5.0...
[7/52] Extracting expat-2.5.0: .......... done
[8/52] Upgrading py39-cryptography from 3.4.8 to 3.4.8,1...
[8/52] Extracting py39-cryptography-3.4.8,1: .......... done
[9/52] Upgrading libpsl from 0.21.1_4 to 0.21.1_6...
[9/52] Extracting libpsl-0.21.1_6: .......... done
[10/52] Upgrading libgpg-error from 1.45 to 1.46...
[10/52] Extracting libgpg-error-1.46: .......... done
[11/52] Upgrading libedit from 3.1.20210910,1 to 3.1.20221030,1...
[11/52] Extracting libedit-3.1.20221030,1: .......... done
[12/52] Upgrading krb5 from 1.20 to 1.20.1...
[12/52] Extracting krb5-1.20.1: .......... done
[13/52] Upgrading glib from 2.74.0,2 to 2.74.1,2...
[13/52] Extracting glib-2.74.1,2: .......... done
[14/52] Upgrading dbus from 1.14.0,1 to 1.14.4,1...
===> Creating groups.
Using existing group 'messagebus'.
===> Creating users
Using existing user 'messagebus'.
[14/52] Extracting dbus-1.14.4,1: ......... done
[15/52] Upgrading sqlite3 from 3.39.3,1 to 3.39.3_1,1...
[15/52] Extracting sqlite3-3.39.3_1,1: .......... done
[16/52] Upgrading py39-pytz from 2022.2.1,1 to 2022.5,1...
[16/52] Extracting py39-pytz-2022.5,1: .......... done
[17/52] Upgrading php80 from 8.0.24 to 8.0.25...
[17/52] Extracting php80-8.0.25: .......... done
[18/52] Upgrading libimagequant from 2.17.0 to 4.0.4...
[18/52] Extracting libimagequant-4.0.4: ......... done
[19/52] Upgrading bash from 5.2.2 to 5.2.9...
[19/52] Extracting bash-5.2.9: .......... done
pkg-static: Failed to execute lua script: [string "shell_path = pkg.prefixed_path("bin/bash")..."]:13: Integrity check failed
pkg-static: lua script failed
pkg-static: Failed to execute lua script: [string "shell_path = pkg.prefixed_path("bin/rbash")..."]:13: Integrity check failed
pkg-static: lua script failed
[20/52] Upgrading php80-session from 8.0.24 to 8.0.25...
[20/52] Extracting php80-session-8.0.25: .......... done
[21/52] Upgrading php80-pdo from 8.0.24 to 8.0.25...
[21/52] Extracting php80-pdo-8.0.25: .......... done
[22/52] Upgrading php80-mbstring from 8.0.24 to 8.0.25...
[22/52] Extracting php80-mbstring-8.0.25: .......... done
[23/52] Upgrading pcre from 8.45_1 to 8.45_3...
[23/52] Extracting pcre-8.45_3: .......... done
[24/52] Reinstalling openldap24-client-2.4.59_4...
[24/52] Extracting openldap24-client-2.4.59_4: .......... done
[25/52] Upgrading nss from 3.83 to 3.85...
[25/52] Extracting nss-3.85: .......... done
[26/52] Upgrading neon from 0.32.2 to 0.32.4...
[26/52] Extracting neon-0.32.4: .......... done
[27/52] Upgrading libgd from 2.3.3_1,1 to 2.3.3_2,1...
[27/52] Extracting libgd-2.3.3_2,1: .......... done
[28/52] Upgrading unbound from 1.16.3 to 1.17.0...
===> Creating groups.
Using existing group 'unbound'.
===> Creating users
Using existing user 'unbound'.
[28/52] Extracting unbound-1.17.0: .......... done
[29/52] Upgrading suricata from 6.0.8 to 6.0.8_1...
[29/52] Extracting suricata-6.0.8_1: .......... done
[30/52] Upgrading sudo from 1.9.11p3 to 1.9.12p1...
[30/52] Extracting sudo-1.9.12p1: .......... done
[31/52] Upgrading strongswan from 5.9.8 to 5.9.8_1...
[31/52] Extracting strongswan-5.9.8_1: .......... done
[32/52] Upgrading py39-sqlite3 from 3.9.14_7 to 3.9.15_7...
[32/52] Extracting py39-sqlite3-3.9.15_7: ........ done
[33/52] Upgrading py39-Jinja2 from 3.0.1 to 3.1.2...
[33/52] Extracting py39-Jinja2-3.1.2: .......... done
[34/52] Upgrading php80-zlib from 8.0.24 to 8.0.25...
[34/52] Extracting php80-zlib-8.0.25: ........ done
[35/52] Upgrading php80-xml from 8.0.24 to 8.0.25...
[35/52] Extracting php80-xml-8.0.25: ......... done
[36/52] Upgrading php80-sqlite3 from 8.0.24 to 8.0.25...
[36/52] Extracting php80-sqlite3-8.0.25: ......... done
[37/52] Upgrading php80-sockets from 8.0.24 to 8.0.25...
[37/52] Extracting php80-sockets-8.0.25: .......... done
[38/52] Upgrading php80-simplexml from 8.0.24 to 8.0.25...
[38/52] Extracting php80-simplexml-8.0.25: ......... done
[39/52] Upgrading php80-phalcon from 5.0.3 to 5.1.1...
[39/52] Extracting php80-phalcon-5.1.1: ........ done
[40/52] Upgrading php80-ldap from 8.0.24 to 8.0.25...
[40/52] Extracting php80-ldap-8.0.25: ........ done
[41/52] Upgrading php80-gettext from 8.0.24 to 8.0.25...
[41/52] Extracting php80-gettext-8.0.25: ........ done
[42/52] Upgrading php80-filter from 8.0.24 to 8.0.25...
[42/52] Extracting php80-filter-8.0.25: ......... done
[43/52] Upgrading php80-dom from 8.0.24 to 8.0.25...
[43/52] Extracting php80-dom-8.0.25: .......... done
[44/52] Upgrading php80-curl from 8.0.24 to 8.0.25...
[44/52] Extracting php80-curl-8.0.25: .......... done
[45/52] Upgrading php80-ctype from 8.0.24 to 8.0.25...
[45/52] Extracting php80-ctype-8.0.25: ........ done
[46/52] Upgrading opnsense-update from 22.7.5 to 22.7.7...
[46/52] Extracting opnsense-update-22.7.7: .......... done
[47/52] Upgrading openvpn from 2.5.7 to 2.5.8...
===> Creating groups.
Using existing group 'openvpn'.
===> Creating users
Using existing user 'openvpn'.
[47/52] Extracting openvpn-2.5.8: .......... done
[48/52] Upgrading nut from 2.8.0_11 to 2.8.0_13...
[48/52] Extracting nut-2.8.0_13: .......... done
[49/52] Upgrading mpd5 from 5.9_11 to 5.9_12...
[49/52] Extracting mpd5-5.9_12: .......... done
[50/52] Upgrading os-wireguard from 1.12 to 1.13_1...
[50/52] Extracting os-wireguard-1.13_1: .......... done
Stopping configd...done
Starting configd.
Reloading plugin configuration
Configuring system logging...done.
Reloading template OPNsense/Wireguard: OK
[51/52] Upgrading os-nut from 1.8.1 to 1.8.1_1...
[51/52] Extracting os-nut-1.8.1_1: .......... done
Stopping configd...done
Starting configd.
Reloading plugin configuration
Configuring system logging...done.
Reloading template OPNsense/Nut: OK
[52/52] Upgrading opnsense from 22.7.6 to 22.7.8...
[52/52] Extracting opnsense-22.7.8: .......... done
Stopping configd...done
Resetting root shell
pwd_mkdb: warning, unknown root shell
pwd_mkdb: warning, unknown root shell
Updating /etc/shells
cp: /etc/shells.bak: Bad address
Unhooking from /etc/rc
Unhooking from /etc/rc.shutdown
Updating /etc/shells
Registering root shell
pwd_mkdb: warning, unknown root shell
Hooking into /etc/rc
Hooking into /etc/rc.shutdown
Starting configd.
>>> Invoking update script 'refresh'
Migrated OPNsense\Unbound\Unbound from 1.0.3 to 1.0.4
Writing firmware setting...done.
Writing trust files...done.
Configuring login behaviour...done.
Configuring system logging...done.
Compiling glib schemas
No schema files found: doing nothing.
=====
Message from openldap24-client-2.4.59_4:

--
===>   NOTICE:

This port is deprecated; you may wish to reconsider installing it:

No longer supported by upstream.  Please use a newer version of OpenLDAP instead.

It is scheduled to be removed on or after 2022-12-31.
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 strongswan-5.9.8_1:

--
The default strongSwan configuration interface have been updated to vici.
To use the stroke interface by default either compile the port without the vici option or
set 'strongswan_interface="stroke"' in your rc.conf file.
=====
Message from openvpn-2.5.8:

--
Note that OpenVPN now configures a separate user and group "openvpn",
which should be used instead of the NFS user "nobody"
when an unprivileged user account is desired.

It is advisable to review existing configuration files and
to consider adding/changing user openvpn and group openvpn.
You may need to manually remove /usr/local/etc/nut/nut.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/nut/ups.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/nut/upsd.conf if it is no longer needed.
You may need to manually remove /usr/local/etc/nut/upsd.users if it is no longer needed.
You may need to manually remove /usr/local/etc/nut/upsmon.conf if it is no longer needed.
=====
Message from opnsense-22.7.8:

--
Yes, I'm back in black
Checking integrity... done (0 conflicting)
Deinstallation has been requested for the following 2 packages:

Installed packages to be REMOVED:
   bash-completion: 2.11_1,2
   cyrus-sasl-gssapi: 2.1.28

Number of packages to be removed: 2

The operation will free 1 MiB.
[1/2] Deinstalling bash-completion-2.11_1,2...
[1/2] Deleting files for bash-completion-2.11_1,2: .......... done
[2/2] Deinstalling cyrus-sasl-gssapi-2.1.28...
[2/2] Deleting files for cyrus-sasl-gssapi-2.1.28: .......... done
Checking all packages: .......... done
The following package files will be deleted:
   /var/cache/pkg/py39-pytz-2022.5,1.pkg
   /var/cache/pkg/pcre-8.45_3~6a14545e86.pkg
   /var/cache/pkg/bash-5.2.9~06888aaa99.pkg
   /var/cache/pkg/nss-3.85~5508b8e752.pkg
   /var/cache/pkg/os-nut-1.8.1_1~f0a7355d1c.pkg
   /var/cache/pkg/php80-gettext-8.0.25.pkg
   /var/cache/pkg/php80-sockets-8.0.25~267f3b6b2c.pkg
   /var/cache/pkg/php80-zlib-8.0.25.pkg
   /var/cache/pkg/opnsense-22.7.8~f5453cb6b8.pkg
   /var/cache/pkg/unbound-1.17.0~d22d663500.pkg
   /var/cache/pkg/bash-5.2.9.pkg
   /var/cache/pkg/php80-pdo-8.0.25.pkg
   /var/cache/pkg/libxml2-2.10.3_1~fcef15a1ef.pkg
   /var/cache/pkg/expat-2.5.0.pkg
   /var/cache/pkg/py39-Jinja2-3.1.2.pkg
   /var/cache/pkg/libedit-3.1.20221030,1~0296bd9b13.pkg
   /var/cache/pkg/py39-cryptography-3.4.8,1.pkg
   /var/cache/pkg/mpd5-5.9_12~a9e98d4828.pkg
   /var/cache/pkg/libunistring-1.1.pkg
   /var/cache/pkg/php80-session-8.0.25~710b276881.pkg
   /var/cache/pkg/libgpg-error-1.46~0f49b4ea2a.pkg
   /var/cache/pkg/opnsense-update-22.7.7~cd789ec08a.pkg
   /var/cache/pkg/libgpg-error-1.46.pkg
   /var/cache/pkg/python39-3.9.15_1~0b578c3415.pkg
   /var/cache/pkg/libidn2-2.3.3_1.pkg
   /var/cache/pkg/php80-dom-8.0.25~ab872015b0.pkg
   /var/cache/pkg/nut-2.8.0_13.pkg
   /var/cache/pkg/php80-sqlite3-8.0.25~a69292a805.pkg
   /var/cache/pkg/libgd-2.3.3_2,1~56cf0c6b49.pkg
   /var/cache/pkg/php80-simplexml-8.0.25~4f8795a7d1.pkg
   /var/cache/pkg/opnsense-update-22.7.7.pkg
   /var/cache/pkg/php80-filter-8.0.25~177dd52327.pkg
   /var/cache/pkg/php80-sockets-8.0.25.pkg
   /var/cache/pkg/neon-0.32.4.pkg
   /var/cache/pkg/png-1.6.38~5f0a3d29e6.pkg
   /var/cache/pkg/php80-ldap-8.0.25.pkg
   /var/cache/pkg/php80-curl-8.0.25.pkg
   /var/cache/pkg/libpsl-0.21.1_6~a57a840f11.pkg
   /var/cache/pkg/py39-sqlite3-3.9.15_7~a4203d795f.pkg
   /var/cache/pkg/suricata-6.0.8_1~96eafaa72b.pkg
   /var/cache/pkg/php80-ldap-8.0.25~0434ecf532.pkg
   /var/cache/pkg/py39-Jinja2-3.1.2~52e9d796f7.pkg
   /var/cache/pkg/php80-phalcon-5.1.1~6256c226a8.pkg
   /var/cache/pkg/openldap24-client-2.4.59_4~c8e1bcc203.pkg
   /var/cache/pkg/php80-gettext-8.0.25~a59ecd4bb3.pkg
   /var/cache/pkg/python39-3.9.15_1.pkg
   /var/cache/pkg/krb5-1.20.1~de6c7f5905.pkg
   /var/cache/pkg/sqlite3-3.39.3_1,1.pkg
   /var/cache/pkg/php80-phalcon-5.1.1.pkg
   /var/cache/pkg/expat-2.5.0~103a148b81.pkg
   /var/cache/pkg/nut-2.8.0_13~25407555ee.pkg
   /var/cache/pkg/php80-mbstring-8.0.25~cee2ecd83e.pkg
   /var/cache/pkg/unbound-1.17.0.pkg
   /var/cache/pkg/suricata-6.0.8_1.pkg
   /var/cache/pkg/libimagequant-4.0.4.pkg
   /var/cache/pkg/png-1.6.38.pkg
   /var/cache/pkg/py39-cryptography-3.4.8,1~c0d2e1a7a9.pkg
   /var/cache/pkg/dbus-1.14.4,1.pkg
   /var/cache/pkg/php80-xml-8.0.25~17b549f0d5.pkg
   /var/cache/pkg/php80-8.0.25~b6ddddb31c.pkg
   /var/cache/pkg/krb5-1.20.1.pkg
   /var/cache/pkg/strongswan-5.9.8_1.pkg
   /var/cache/pkg/php80-xml-8.0.25.pkg
   /var/cache/pkg/openvpn-2.5.8.pkg
   /var/cache/pkg/libedit-3.1.20221030,1.pkg
   /var/cache/pkg/glib-2.74.1,2.pkg
   /var/cache/pkg/sudo-1.9.12p1~a33a4043fd.pkg
   /var/cache/pkg/glib-2.74.1,2~4246ef30c1.pkg
   /var/cache/pkg/openvpn-2.5.8~14b14fb2de.pkg
   /var/cache/pkg/py39-pytz-2022.5,1~ac70b7049a.pkg
   /var/cache/pkg/os-wireguard-1.13_1.pkg
   /var/cache/pkg/php80-zlib-8.0.25~930ca74834.pkg
   /var/cache/pkg/py39-sqlite3-3.9.15_7.pkg
   /var/cache/pkg/strongswan-5.9.8_1~cd9cb0c222.pkg
   /var/cache/pkg/pcre-8.45_3.pkg
   /var/cache/pkg/mpd5-5.9_12.pkg
   /var/cache/pkg/php80-session-8.0.25.pkg
   /var/cache/pkg/php80-curl-8.0.25~4a01653dd2.pkg
   /var/cache/pkg/php80-8.0.25.pkg
   /var/cache/pkg/libidn2-2.3.3_1~8e719a91b5.pkg
   /var/cache/pkg/libunistring-1.1~6337b25a9e.pkg
   /var/cache/pkg/dbus-1.14.4,1~1120e5ee15.pkg
   /var/cache/pkg/libpsl-0.21.1_6.pkg
   /var/cache/pkg/php80-filter-8.0.25.pkg
   /var/cache/pkg/os-wireguard-1.13_1~d0294c515a.pkg
   /var/cache/pkg/neon-0.32.4~fb9e424e74.pkg
   /var/cache/pkg/libimagequant-4.0.4~11df094ecb.pkg
   /var/cache/pkg/openssl-1.1.1s,1.pkg
   /var/cache/pkg/php80-ctype-8.0.25~0619e3c89b.pkg
   /var/cache/pkg/libxml2-2.10.3_1.pkg
   /var/cache/pkg/php80-mbstring-8.0.25.pkg
   /var/cache/pkg/os-nut-1.8.1_1.pkg
   /var/cache/pkg/php80-dom-8.0.25.pkg
   /var/cache/pkg/openldap24-client-2.4.59_4.pkg
   /var/cache/pkg/opnsense-22.7.8.pkg
   /var/cache/pkg/sudo-1.9.12p1.pkg
   /var/cache/pkg/php80-sqlite3-8.0.25.pkg
   /var/cache/pkg/sqlite3-3.39.3_1,1~6d586092fb.pkg
   /var/cache/pkg/php80-pdo-8.0.25~eb3a7e756c.pkg
   /var/cache/pkg/libgd-2.3.3_2,1.pkg
   /var/cache/pkg/nss-3.85.pkg
   /var/cache/pkg/openssl-1.1.1s,1~6ea11cf9b4.pkg
   /var/cache/pkg/php80-simplexml-8.0.25.pkg
   /var/cache/pkg/php80-ctype-8.0.25.pkg
The cleanup will free 55 MiB
Deleting files: .......... done
All done
Nothing to do.
Starting web GUI...done.
Generating RRD graphs...done.
Fetching base-22.7.7-amd64.txz: ... done
Fetching kernel-22.7.7-amd64.txz: ... done
!!!!!!!!!!!! ATTENTION !!!!!!!!!!!!!!!
! A critical upgrade is in progress. !
! Please do not turn off the system. !
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Installing kernel-22.7.7-amd64.txz... done
Installing base-22.7.7-amd64.txz..../usr/share/openssl/man/mandoc.db: Can't unlink already-existing object: Integrity check failed
./usr/share/man/mandoc.db: Can't unlink already-existing object: Integrity check failed
./etc/ssl/openssl.cnf: Can't unlink already-existing object: Integrity check failed
./boot/lua/cli.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/color.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/config.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/core.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/drawer.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/hook.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/loader.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/gfx-beastie.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/gfx-beastiebw.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/gfx-fbsdbw.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/gfx-orb.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/gfx-orbbw.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/menu.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/password.lua: Can't unlink already-existing object: Integrity check failed
./boot/lua/screen.lua: Can't unlink already-existing object: Integrity check failed
tar: Error exit delayed from previous errors.
 failed, tar error 0
***DONE***
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on November 29, 2022, 06:34:26 pm
bump
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: franco on November 30, 2022, 10:50:33 am
I've seen these issues before but unsure why they happen. All other files should be rewritten cleanly for the base system... in any case try a health audit to see how the system is currently doing.


Cheers,
Franco
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on November 30, 2022, 11:33:32 pm
just a couple of version mismatches

***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.7.6 (amd64/OpenSSL) at Wed Nov 30 22:23:36 UTC 2022
>>> Check installed kernel version
Version 22.7.5 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.7.5 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
os-dyndns 1.27_3
os-nut 1.8.1
os-theme-cicada 1.29
os-upnp 1.4_2
os-wireguard 1.12
>>> 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: ...................
mpd5-5.9_11 version mismatch, expected 5.9_12
Checking packages: ...
openssl-1.1.1q,1 version mismatch, expected 1.1.1s,1
Checking packages: .
openvpn-2.5.7 version mismatch, expected 2.5.8
Checking packages: .
opnsense-22.7.6 version mismatch, expected 22.7.8
Checking packages: ...
opnsense-update-22.7.5 version mismatch, expected 22.7.7
Checking packages: ...
php80-ctype-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-curl-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-dom-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-filter-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-gettext-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
php80-ldap-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-pdo-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
php80-phalcon-5.0.3 version mismatch, expected 5.1.1
Checking packages: ..
php80-session-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-simplexml-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-sockets-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-sqlite3-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-xml-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-zlib-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
py39-Jinja2-3.0.1 version mismatch, expected 3.1.2
Checking packages: ....
py39-sqlite3-3.9.14_7 version mismatch, expected 3.9.15_7
Checking packages: .......
strongswan-5.9.8 version mismatch, expected 5.9.8_1
Checking packages: .
sudo-1.9.11p3 version mismatch, expected 1.9.12p1
Checking packages: .
suricata-6.0.8 version mismatch, expected 6.0.8_1
Checking packages: ..
unbound-1.16.3 version mismatch, expected 1.17.0
Checking packages: .. done
***DONE***
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: franco on December 01, 2022, 07:10:51 am
The health audit is correct, but then your updated packages are not registered as updated or did not install even though it said they would?

Maybe try this from the command line first:

# opnsense-update -p

It should update all the packages. The health audit will confirm or deny... we can always use more force later.

But prepare for the possibility that the hard disk is not in pristine condition.


Cheers,
Franco
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: franco on December 01, 2022, 07:12:22 am
Is this UFS or ZFS?
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on December 01, 2022, 11:31:17 am
zfs file system

looks like it failed

root@OPNsense:~ # df -h
Filesystem            Size    Used   Avail Capacity  Mounted on
zroot/ROOT/default    100G    953M     99G     1%    /
devfs                 1.0K    1.0K      0B   100%    /dev
zroot/tmp              99G    976K     99G     0%    /tmp
zroot                  99G     88K     99G     0%    /zroot
zroot/var/log          99G     20M     99G     0%    /var/log
zroot/var/audit        99G     88K     99G     0%    /var/audit
zroot/var/mail         99G    120K     99G     0%    /var/mail
zroot/var/tmp          99G     88K     99G     0%    /var/tmp
zroot/usr/src          99G     88K     99G     0%    /usr/src
zroot/var/crash        99G     88K     99G     0%    /var/crash
zroot/usr/home         99G     88K     99G     0%    /usr/home
zroot/usr/ports        99G     88K     99G     0%    /usr/ports
devfs                 1.0K    1.0K      0B   100%    /var/dhcpd/dev
devfs                 1.0K    1.0K      0B   100%    /var/unbound/dev
devfs                 1.0K    1.0K      0B   100%    /var/unbound/dev
root@OPNsense:~ # zfs list
NAME                 USED  AVAIL     REFER  MOUNTPOINT
zroot                986M  98.8G       88K  /zroot
zroot/ROOT           953M  98.8G       88K  none
zroot/ROOT/default   953M  98.8G      953M  /
zroot/tmp            976K  98.8G      976K  /tmp
zroot/usr            352K  98.8G       88K  /usr
zroot/usr/home        88K  98.8G       88K  /usr/home
zroot/usr/ports       88K  98.8G       88K  /usr/ports
zroot/usr/src         88K  98.8G       88K  /usr/src
zroot/var           20.3M  98.8G       88K  /var
zroot/var/audit       88K  98.8G       88K  /var/audit
zroot/var/crash       88K  98.8G       88K  /var/crash
zroot/var/log       19.8M  98.8G     19.8M  /var/log
zroot/var/mail       120K  98.8G      120K  /var/mail
zroot/var/tmp         88K  98.8G       88K  /var/tmp
root@OPNsense:~ # opnsense-update -p
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 (52 candidates): 100%
Processing candidates (52 candidates): 100%
The following 52 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
   bash: 5.2.2 -> 5.2.9
   dbus: 1.14.0,1 -> 1.14.4,1
   expat: 2.4.9 -> 2.5.0
   glib: 2.74.0,2 -> 2.74.1,2
   krb5: 1.20 -> 1.20.1
   libedit: 3.1.20210910,1 -> 3.1.20221030,1
   libgd: 2.3.3_1,1 -> 2.3.3_2,1
   libgpg-error: 1.45 -> 1.46
   libidn2: 2.3.3 -> 2.3.3_1
   libimagequant: 2.17.0 -> 4.0.4
   libpsl: 0.21.1_4 -> 0.21.1_6
   libunistring: 1.0 -> 1.1
   libxml2: 2.10.2 -> 2.10.3_1
   mpd5: 5.9_11 -> 5.9_12
   neon: 0.32.2 -> 0.32.4
   nss: 3.83 -> 3.85
   nut: 2.8.0_11 -> 2.8.0_13
   openssl: 1.1.1q,1 -> 1.1.1s,1
   openvpn: 2.5.7 -> 2.5.8
   opnsense: 22.7.6 -> 22.7.8
   opnsense-update: 22.7.5 -> 22.7.7
   os-nut: 1.8.1 -> 1.8.1_1
   os-wireguard: 1.12 -> 1.13_1
   pcre: 8.45_1 -> 8.45_3
   php80: 8.0.24 -> 8.0.25
   php80-ctype: 8.0.24 -> 8.0.25
   php80-curl: 8.0.24 -> 8.0.25
   php80-dom: 8.0.24 -> 8.0.25
   php80-filter: 8.0.24 -> 8.0.25
   php80-gettext: 8.0.24 -> 8.0.25
   php80-ldap: 8.0.24 -> 8.0.25
   php80-mbstring: 8.0.24 -> 8.0.25
   php80-pdo: 8.0.24 -> 8.0.25
   php80-phalcon: 5.0.3 -> 5.1.1
   php80-session: 8.0.24 -> 8.0.25
   php80-simplexml: 8.0.24 -> 8.0.25
   php80-sockets: 8.0.24 -> 8.0.25
   php80-sqlite3: 8.0.24 -> 8.0.25
   php80-xml: 8.0.24 -> 8.0.25
   php80-zlib: 8.0.24 -> 8.0.25
   png: 1.6.37_1 -> 1.6.38
   py39-Jinja2: 3.0.1 -> 3.1.2
   py39-cryptography: 3.4.8 -> 3.4.8,1
   py39-pytz: 2022.2.1,1 -> 2022.5,1
   py39-sqlite3: 3.9.14_7 -> 3.9.15_7
   python39: 3.9.14 -> 3.9.15_1
   sqlite3: 3.39.3,1 -> 3.39.3_1,1
   strongswan: 5.9.8 -> 5.9.8_1
   sudo: 1.9.11p3 -> 1.9.12p1
   suricata: 6.0.8 -> 6.0.8_1
   unbound: 1.16.3 -> 1.17.0

Installed packages to be REINSTALLED:
   openldap24-client-2.4.59_4 (options changed)

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

The process will require 15 MiB more space.
55 MiB to be downloaded.
[1/52] Fetching unbound-1.17.0.pkg: 100%    1 MiB   1.3MB/s    00:01   
[2/52] Fetching suricata-6.0.8_1.pkg: 100%    2 MiB   2.0MB/s    00:01   
[3/52] Fetching sudo-1.9.12p1.pkg: 100%  639 KiB 654.2kB/s    00:01   
[4/52] Fetching strongswan-5.9.8_1.pkg: 100%  951 KiB 973.6kB/s    00:01   
[5/52] Fetching sqlite3-3.39.3_1,1.pkg: 100%    1 MiB   1.4MB/s    00:01   
[6/52] Fetching python39-3.9.15_1.pkg: 100%   18 MiB   9.2MB/s    00:02   
[7/52] Fetching py39-sqlite3-3.9.15_7.pkg: 100%   30 KiB  30.9kB/s    00:01   
[8/52] Fetching py39-pytz-2022.5,1.pkg: 100%  154 KiB 157.4kB/s    00:01   
[9/52] Fetching py39-cryptography-3.4.8,1.pkg: 100%  366 KiB 374.8kB/s    00:01   
[10/52] Fetching py39-Jinja2-3.1.2.pkg: 100%  201 KiB 206.1kB/s    00:01   
[11/52] Fetching png-1.6.38.pkg: 100%  294 KiB 300.9kB/s    00:01   
[12/52] Fetching php80-zlib-8.0.25.pkg: 100%   19 KiB  19.8kB/s    00:01   
[13/52] Fetching php80-xml-8.0.25.pkg: 100%   20 KiB  20.9kB/s    00:01   
[14/52] Fetching php80-sqlite3-8.0.25.pkg: 100%   22 KiB  22.4kB/s    00:01   
[15/52] Fetching php80-sockets-8.0.25.pkg: 100%   39 KiB  40.2kB/s    00:01   
[16/52] Fetching php80-simplexml-8.0.25.pkg: 100%   23 KiB  23.8kB/s    00:01   
[17/52] Fetching php80-session-8.0.25.pkg: 100%   36 KiB  37.2kB/s    00:01   
[18/52] Fetching php80-phalcon-5.1.1.pkg: 100%    2 MiB   1.8MB/s    00:01   
[19/52] Fetching php80-pdo-8.0.25.pkg: 100%   48 KiB  48.9kB/s    00:01   
[20/52] Fetching php80-mbstring-8.0.25.pkg: 100%  744 KiB 762.3kB/s    00:01   
[21/52] Fetching php80-ldap-8.0.25.pkg: 100%   31 KiB  31.7kB/s    00:01   
[22/52] Fetching php80-gettext-8.0.25.pkg: 100%    7 KiB   7.6kB/s    00:01   
[23/52] Fetching php80-filter-8.0.25.pkg: 100%   21 KiB  21.7kB/s    00:01   
[24/52] Fetching php80-dom-8.0.25.pkg: 100%   55 KiB  56.8kB/s    00:01   
[25/52] Fetching php80-curl-8.0.25.pkg: 100%   35 KiB  35.7kB/s    00:01   
[26/52] Fetching php80-ctype-8.0.25.pkg: 100%    7 KiB   6.7kB/s    00:01   
[27/52] Fetching php80-8.0.25.pkg: 100%    5 MiB   4.8MB/s    00:01   
[28/52] Fetching pcre-8.45_3.pkg: 100%  889 KiB 910.2kB/s    00:01   
[29/52] Fetching os-wireguard-1.13_1.pkg: 100%   13 KiB  13.0kB/s    00:01   
[30/52] Fetching os-nut-1.8.1_1.pkg: 100%    8 KiB   8.1kB/s    00:01   
[31/52] Fetching opnsense-update-22.7.7.pkg: 100%   33 KiB  33.8kB/s    00:01   
[32/52] Fetching opnsense-22.7.8.pkg: 100%    4 MiB   4.3MB/s    00:01   
[33/52] Fetching openvpn-2.5.8.pkg: 100%  379 KiB 388.1kB/s    00:01   
[34/52] Fetching openssl-1.1.1s,1.pkg: 100%    4 MiB   4.1MB/s    00:01   
[35/52] Fetching openldap24-client-2.4.59_4.pkg: 100%  465 KiB 475.7kB/s    00:01   
[36/52] Fetching nut-2.8.0_13.pkg: 100%    1 MiB   1.3MB/s    00:01   
[37/52] Fetching nss-3.85.pkg: 100%    2 MiB   2.1MB/s    00:01   
[38/52] Fetching neon-0.32.4.pkg: 100%  101 KiB 103.0kB/s    00:01   
[39/52] Fetching mpd5-5.9_12.pkg: 100%  279 KiB 285.3kB/s    00:01   
[40/52] Fetching libxml2-2.10.3_1.pkg: 100%  932 KiB 954.7kB/s    00:01   
[41/52] Fetching libunistring-1.1.pkg: 100%  520 KiB 532.0kB/s    00:01   
[42/52] Fetching libpsl-0.21.1_6.pkg: 100%   63 KiB  64.1kB/s    00:01   
[43/52] Fetching libimagequant-4.0.4.pkg: 100%    3 MiB   1.6MB/s    00:02   
[44/52] Fetching libidn2-2.3.3_1.pkg: 100%  133 KiB 136.5kB/s    00:01   
[45/52] Fetching libgpg-error-1.46.pkg: 100%  161 KiB 165.0kB/s    00:01   
[46/52] Fetching libgd-2.3.3_2,1.pkg: 100%  206 KiB 211.2kB/s    00:01   
[47/52] Fetching libedit-3.1.20221030,1.pkg: 100%  140 KiB 143.3kB/s    00:01   
[48/52] Fetching krb5-1.20.1.pkg: 100%    1 MiB   1.2MB/s    00:01   
[49/52] Fetching glib-2.74.1,2.pkg: 100%    2 MiB   2.3MB/s    00:01   
[50/52] Fetching expat-2.5.0.pkg: 100%   90 KiB  91.7kB/s    00:01   
[51/52] Fetching dbus-1.14.4,1.pkg: 100%  378 KiB 387.1kB/s    00:01   
[52/52] Fetching bash-5.2.9.pkg: 100%  809 KiB 828.8kB/s    00:01   
Checking integrity... done (0 conflicting)
[1/52] Upgrading openssl from 1.1.1q,1 to 1.1.1s,1...
[1/52] Extracting openssl-1.1.1s,1: 100%
[2/52] Upgrading python39 from 3.9.14 to 3.9.15_1...
[2/52] Extracting python39-3.9.15_1:  99%
pkg-static: Fail to create temporary file: /usr/local/libdata/pkgconfig/.pkgtemp.python-3.9-embed.pc.gYngGfIrxdzV:Input/output error
[2/52] Extracting python39-3.9.15_1: 100%
root@OPNsense:~ #
root@OPNsense:~ #
root@OPNsense:~ #
root@OPNsense:~ # opnsense-update -p
mkdir: /var/cache/opnsense-update/99104: Integrity check failed
root@OPNsense:~ #



***GOT REQUEST TO AUDIT HEALTH***
Currently running OPNsense 22.7.6 (amd64/OpenSSL) at Thu Dec  1 10:26:45 UTC 2022
>>> Check installed kernel version
Version 22.7.5 is correct.
>>> Check for missing or altered kernel files
No problems detected.
>>> Check installed base version
Version 22.7.5 is correct.
>>> Check for missing or altered base files
No problems detected.
>>> Check installed repositories
OPNsense
>>> Check installed plugins
os-dyndns 1.27_3
os-nut 1.8.1
os-theme-cicada 1.29
os-upnp 1.4_2
os-wireguard 1.12
>>> 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: ...................
mpd5-5.9_11 version mismatch, expected 5.9_12
Checking packages: ...
openssl-1.1.1q,1 version mismatch, expected 1.1.1s,1
Checking packages: .
openvpn-2.5.7 version mismatch, expected 2.5.8
Checking packages: .
opnsense-22.7.6 version mismatch, expected 22.7.8
Checking packages: ...
opnsense-update-22.7.5 version mismatch, expected 22.7.7
Checking packages: ...
php80-ctype-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-curl-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-dom-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-filter-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-gettext-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
php80-ldap-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-pdo-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
php80-phalcon-5.0.3 version mismatch, expected 5.1.1
Checking packages: ..
php80-session-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-simplexml-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-sockets-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-sqlite3-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-xml-8.0.24 version mismatch, expected 8.0.25
Checking packages: .
php80-zlib-8.0.24 version mismatch, expected 8.0.25
Checking packages: ..
py39-Jinja2-3.0.1 version mismatch, expected 3.1.2
Checking packages: ....
py39-sqlite3-3.9.14_7 version mismatch, expected 3.9.15_7
Checking packages: .......
strongswan-5.9.8 version mismatch, expected 5.9.8_1
Checking packages: .
sudo-1.9.11p3 version mismatch, expected 1.9.12p1
Checking packages: .
suricata-6.0.8 version mismatch, expected 6.0.8_1
Checking packages: ..
unbound-1.16.3 version mismatch, expected 1.17.0
Checking packages: .. done
***DONE***
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: franco on December 01, 2022, 02:00:06 pm
I'm not an expert on ZFS behaviour but I'd say something very strange is going on there that might need reparing.


Cheers,
Franco
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on December 02, 2022, 03:50:51 am
I think you are right, i tried to re-install opnsense from a live usb and i got the error below, then from the live usb i tried to install the smart plugin to run tests on the drive but i can't because it's 22.7.7 and wants me to upgrade to 22.7.9.


WARNING: Pool has encountered an uncorrectable I/O failure and has been suspended.


Is there a way to force install a package even if you aren't on the most current version of opnsense?
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: franco on December 02, 2022, 08:10:28 am
The disk might be damaged. I have no idea what else to do if you keep running into this either way.


Cheers,
Franco
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: cookiemonster on December 02, 2022, 10:15:42 am
I agree, it looks that way. Faulty OS disk.
zpool won't be of much use if is a single disk, the status will be most likely "healthy". But you can do a scrub. But there is no additional disk to repair from if it needed it, so it's pretty pointless.
Best you can do sonetoq is replace the disk.
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: alsoeric on December 02, 2022, 05:33:08 pm
I agree, it looks that way. Faulty OS disk.

I haven't done this for a while but you may be able to recover the faulty OS drive by putting in a second drive and mirroring it with the old drive. Then fail out the old drive, put in the new one as a mirror and you running the firewall as you should.  ;)
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: cookiemonster on December 02, 2022, 05:54:11 pm
yes it would if it had been in a mirror and one drive of it faulted. There's no zpool list on the thread but my guess (hopefully wrong) is that it is running on single.
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on December 02, 2022, 08:04:37 pm
What's the command for a scrub?

I have only one drive but it sitill works for now the only thing i can't do is upgrade versions so I got time to source an m.2 sata 2242/2260

root@OPNsense:~ # zpool status
  pool: zroot
 state: ONLINE
status: Some supported and requested features are not enabled on the pool.
   The pool can still be used, but some features are unavailable.
action: Enable all features using 'zpool upgrade'. Once this is done,
   the pool may no longer be accessible by software that does not support
   the features. See zpool-features(7) for details.
config:

   NAME        STATE     READ WRITE CKSUM
   zroot       ONLINE       0     0     0
     ada0p4    ONLINE       0     0     0

errors: No known data errors
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: cookiemonster on December 02, 2022, 10:21:55 pm
with admin rights: zpool scrub zroot
https://docs.oracle.com/cd/E18752_01/html/819-5461/gbbwa.html
but I suggest you don't until you have your new drive ready as it could cause the little failures into a full one due to the stress on the drive.
However I'm beginning to think it might not be the disk but the cable or port due to the no data errors shown on zpool status but the failure seems an I/O one (earlier post). So at least when you have the new one you can at least discount the drive being the problem.
Title: Re: 22.7.6 to 22.7.7 failed update
Post by: sonetoq on December 16, 2022, 01:12:00 am
So I ran a scrub and there are a bunch of errors.

Does OPNsense not enable scrubbing on a weekly or monthly basis?

root@OPNsense:~ # sudo zpool history
History for 'zroot':
2021-10-22.05:20:31 zpool create -o altroot=/mnt -O compress=lz4 -O atime=off -m none -f zroot ada0p4
2021-10-22.05:20:31 zfs create -o mountpoint=none zroot/ROOT
2021-10-22.05:20:31 zfs create -o mountpoint=/ zroot/ROOT/default
2021-10-22.05:20:31 zfs create -o mountpoint=/tmp -o exec=on -o setuid=off zroot/tmp
2021-10-22.05:20:31 zfs create -o mountpoint=/usr -o canmount=off zroot/usr
2021-10-22.05:20:31 zfs create zroot/usr/home
2021-10-22.05:20:31 zfs create -o setuid=off zroot/usr/ports
2021-10-22.05:20:31 zfs create zroot/usr/src
2021-10-22.05:20:32 zfs create -o mountpoint=/var -o canmount=off zroot/var
2021-10-22.05:20:32 zfs create -o exec=off -o setuid=off zroot/var/audit
2021-10-22.05:20:32 zfs create -o exec=off -o setuid=off zroot/var/crash
2021-10-22.05:20:32 zfs create -o exec=off -o setuid=off zroot/var/log
2021-10-22.05:20:32 zfs create -o atime=on zroot/var/mail
2021-10-22.05:20:32 zfs create -o setuid=off zroot/var/tmp
2021-10-22.05:20:32 zfs set mountpoint=/zroot zroot
2021-10-22.05:20:32 zpool set bootfs=zroot/ROOT/default zroot
2021-10-22.05:20:32 zpool set cachefile=/mnt/boot/zfs/zpool.cache zroot
2021-10-22.05:20:35 zfs set canmount=noauto zroot/ROOT/default
2022-12-15.18:21:53 zpool scrub zroot
2022-12-15.18:26:56 zpool scrub zroot

root@OPNsense:~ #
root@OPNsense:~ # zpool status -v
  pool: zroot
 state: ONLINE
status: One or more devices has experienced an error resulting in data
   corruption.  Applications may be affected.
action: Restore the file in question if possible.  Otherwise restore the
   entire pool from backup.
   see: https://openzfs.github.io/openzfs-docs/msg/ZFS-8000-8A
  scan: scrub repaired 0B in 00:00:06 with 2134 errors on Thu Dec 15 18:27:01 2022
config:

   NAME        STATE     READ WRITE CKSUM
   zroot       ONLINE       0     0     0
     ada0p4    ONLINE       0     0 11.5K

errors: Permanent errors have been detected in the following files:

        <metadata>:<0x0>
        <metadata>:<0x1>
        <metadata>:<0x2>
        <metadata>:<0x102>
        <metadata>:<0x4>
        <metadata>:<0x104>
        <metadata>:<0x106>
        <metadata>:<0x7>
        <metadata>:<0x108>
        <metadata>:<0x109>
        <metadata>:<0x10a>
        <metadata>:<0xb>
        <metadata>:<0x10b>
        <metadata>:<0xe>
        <metadata>:<0xf>
        <metadata>:<0x10>
        <metadata>:<0x11>
        <metadata>:<0x13>
        <metadata>:<0x15>
        <metadata>:<0x17>
        <metadata>:<0x18>
        <metadata>:<0x1a>
        <metadata>:<0x1f>
        <metadata>:<0x39>
        <metadata>:<0x3b>
        <metadata>:<0x3d>
        <metadata>:<0x3e>
        <metadata>:<0x45>
        <metadata>:<0x47>
        <metadata>:<0x48>
        <metadata>:<0x49>
        <metadata>:<0x4a>
        <metadata>:<0x181>
        <metadata>:<0x183>
        <metadata>:<0x184>
        <metadata>:<0x9e>
        <metadata>:<0x9f>
        <metadata>:<0xa2>
        <metadata>:<0xaa>
        <metadata>:<0xab>
        <metadata>:<0xae>
        <metadata>:<0xb2>
        <metadata>:<0xbb>
        <metadata>:<0xbe>
        <metadata>:<0xc3>
        <metadata>:<0xdd>
        <metadata>:<0xe1>
        <metadata>:<0xe2>
        zroot/ROOT/default:<0x0>
        zroot/ROOT/default:<0x3>
        //
        //var/run/dmesg.boot
        //usr/local/opnsense/service/modules/addons/__pycache__/__init__.cpython-39.pyc
        //etc/pwd.db
        //usr/local/opnsense/service/modules/addons/__pycache__/template_helpers.cpython-39.pyc
        //etc/spwd.db
        //usr/local/opnsense/service/modules/__pycache__/csconfigparser.cpython-39.pyc
        //usr/local/opnsense/service/modules/__pycache__/ph_inline_actions.cpython-39.pyc
        //usr/local/opnsense/service/modules/__pycache__/daemonize.cpython-39.pyc
        //usr/local/opnsense/service/modules/__pycache__/template.cpython-39.pyc
        //usr/local/opnsense/service/modules/__pycache__/config.cpython-39.pyc
        //var/db/rrd/lan-traffic.rrd
        //var/db/rrd/system-mbuf.rrd
        //var/db/rrd/ipsec-packets.rrd
        //var/db/rrd/wan-traffic.rrd
        //var/dhcpd/var/db/dhcpd6.leases
        //var/db/rrd/system-memory.rrd
        //usr/local/lib/php.ini
        //var/db/rrd/opt1-traffic.rrd
        //var/db/rrd/opt1-packets.rrd
        //var/db/rrd/system-processor.rrd
        //var/db/rrd/system-cputemp.rrd
        //var/db/rrd/system-states.rrd
        //etc/pam.d/sshd
        //usr/local/etc/pkg/repos/OPNsense.conf
        //var/db/rrd/lan-packets.rrd
        //etc/pam.d/system
        //var/db/rrd/ipsec-traffic.rrd
        //var/db/rrd/wan-packets.rrd
        //var/db/rrd/updaterrd.sh
        //usr/local/man
        //usr/local/opnsense/mvc/app/cache
        //var/dhcpd/var/db/dhcpd.leases
        //usr/local/etc/ssl/cert.pem
        //usr/local/share/man/mandoc.db
        //usr/local/lib/perl5/5.32/perl/man/mandoc.db
        //usr/share/man
        //var/db/pkg
        //var/db/pkg/local.sqlite
        //var/db/rrd
        //var/backups/pkg.sql.xz.4
        //root
        //var/unbound
        //var/netflow
        //var/unbound/access_lists.conf
        //var/unbound/host_entries.conf
        //var/unbound/root.hints
        //var/unbound/unbound.conf
        //var/backups
        //var/run/motd
        //etc/ssl/cert.pem
        //var/run/ld-elf.so.hints
        //usr/local/opnsense/changelog
        //etc/passwd
        //usr/local/opnsense/service/modules/__pycache__/processhandler.cpython-39.pyc
        //var/backups/pkg.sql.xz.1
        //usr/local/opnsense/changelog/index.json
        //usr/local/opnsense/scripts/suricata/lib/__pycache__/__init__.cpython-39.pyc
        //var/backups/pkg.sql.xz.3
        //usr/local/opnsense/scripts/suricata/lib/__pycache__/rulecache.cpython-39.pyc
        //etc/group
        //var/backups/pkg.sql.xz.5
        //usr/share/man/mandoc.db
        //var/db/dhclient.leases.igb1
        //usr/local/man/mandoc.db
        //usr/local/etc/filter_tables.conf
        //etc
        //var/dhcpd/etc/dhcpd.conf
        //usr/local/etc/syslog-ng.conf.d/syslog-ng-config-events.conf
        //usr/local/etc/syslog-ng.conf.d/syslog-ng-local.conf
        //boot/loader.conf
        //usr/local/etc/syslog-ng.conf.d/syslog-ng-lockout.conf
        //var/lib/php/sessions
        //usr/local/opnsense/changelog/changelog.txz
        //usr/local/opnsense/changelog/changelog.txz.sig
        //var/cron/tabs/root
        //usr/local/opnsense/service/modules/__pycache__
        //var/cron/tabs/nobody
        //usr/share/openssl/man/mandoc.db
        //usr/local/lib/perl5/site_perl/man/mandoc.db
        //var/unbound/advanced.conf
        //usr/local/openssl/cert.pem
        //etc/login.conf.db
        //var/backups/pkg.sql.xz
        //var/lib/php/sessions/sess_c7e6472bc78273d950eedd15b2007541
        //etc/newsyslog.conf
        //usr/local/etc/syslog-ng.conf
        //usr/local/etc/php.ini
        //var/etc/miniupnpd.conf
        //var/etc
        //var/etc/ntpd.conf
        //var/etc/dhcp6c_wan.conf
        //var/db/entropy/saved-entropy.2
        //var/etc/dhclient_wan.conf
        //var/etc/rtsold_script.sh
        //var/etc/key.pem
        //var/unbound/root.key
        //var/etc/lighty-webConfigurator.conf
        //var/backups/pkg.sql.xz.2
        //etc/ssl
        //var/etc/dhcp6c.conf
        //var/etc/cert.pem
        //var/etc/dhcp6c_wan_script.sh
        //etc/resolv.conf
        //var/db/entropy/saved-entropy.1
        //var/run
        //var/db/pkg/vuln.xml
        //var/db/entropy/saved-entropy.8
        //var/db/entropy/saved-entropy.7
        //var/db/entropy/saved-entropy.6
        //var/db/entropy/saved-entropy.5
        //var/db/entropy/saved-entropy.4
        //var/db/entropy/saved-entropy.3
        //usr/local/etc/ssh/sshd_config
        //var/lib/php/sessions/sess_cf43ac7d4b507365a976e946143533e9
        //var/db
        //etc/ttys
        //var/dhcpd/var/db/dhcpd.leases~
        //etc/shells
        //usr/share/openssl/man
        //usr/local/etc/pkg/repos
        zroot/ROOT/default:<0xfffffffffffffffe>
        zroot/ROOT/default:<0xffffffffffffffff>
        zroot/tmp:<0x0>
        /tmp/
        /tmp/ddb.conf
        /tmp/configdmodelfield.data
        /tmp/opnsense_acl_cache.json
        /tmp/syslog_applications.json
        /tmp/rules.debug
        /tmp/rules.limits
        /tmp/rules.debug.old
        /tmp/pfctl_si_out
        /tmp/pfctl_ss_out
        /tmp/isAuthLocalIP.cache.json
        /tmp/opnsense_menu_cache.xml
        zroot/var/audit:<0x0>
        zroot/var/log:<0x0>
        /var/log/audit/audit_20221209.log
        /var/log/
        /var/log/userlog
        /var/log/system
        /var/log/configd
        /var/log/filter
        /var/log/lighttpd
        /var/log/filter/filter_20221215.log
        /var/log/dhcpd/dhcpd_20221215.log
        /var/log/dhcpd
        /var/log/system/system_20221215.log
        /var/log/resolver
        /var/log/ntpd
        /var/log/resolver/resolver_20221215.log
        /var/log/audit/audit_20221215.log
        /var/log/portalauth
        /var/log/routing/routing_20221215.log
        /var/log/ntpd/ntpd_20221212.log
        /var/log/filter/filter_20221214.log
        /var/log/dhcpd/dhcpd_20221214.log
        /var/log/system/system_20221214.log
        /var/log/resolver/resolver_20221214.log
        /var/log/ntpd/ntpd_20221214.log
        /var/log/pf.yesterday
        /var/log/filter/filter_20221213.log
        /var/log/configd/configd_20221213.log
        /var/log/lighttpd/lighttpd_20221209.log
        /var/log/system/system_20221213.log
        /var/log/configd/configd_20221215.log
        /var/log/dhcpd/dhcpd_20221213.log
        /var/log/pf.today
        /var/log/dmesg.today
        /var/log/dmesg.yesterday
        /var/log/resolver/resolver_20221213.log
        /var/log/ntpd/ntpd_20221215.log
        /var/log/routing/routing_20221213.log
        /var/log/configd/configd_20221214.log
        /var/log/routing/routing_20221214.log
        zroot/var/mail:<0x0>
        zroot/var/tmp:<0x0>