The upgrade process right now fails on the lighttpd dependency:
***GOT REQUEST TO UPDATE***
Currently running OPNsense 22.1.1_3 (amd64/OpenSSL) at Tue Mar 1 17:54:18 CET 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 (27 candidates): .......... done
Processing candidates (27 candidates): .......... done
The following 27 package(s) will be affected (of 0 checked):
Installed packages to be UPGRADED:
bind-tools: 9.16.25 -> 9.16.26
glib: 2.70.3,2 -> 2.70.4,2
mpd5: 5.9_6 -> 5.9_7
ntp: 4.2.8p15_4 -> 4.2.8p15_5
openssl: 1.1.1m_1,1 -> 1.1.1m_2,1
opnsense: 22.1.1_3 -> 22.1.2
opnsense-update: 22.1.1 -> 22.1.2
os-ddclient: 1.1 -> 1.2
php74: 7.4.27 -> 7.4.28
php74-ctype: 7.4.27 -> 7.4.28
php74-curl: 7.4.27 -> 7.4.28
php74-dom: 7.4.27 -> 7.4.28
php74-filter: 7.4.27 -> 7.4.28
php74-gettext: 7.4.27 -> 7.4.28
php74-json: 7.4.27 -> 7.4.28
php74-ldap: 7.4.27 -> 7.4.28
php74-mbstring: 7.4.27 -> 7.4.28
php74-openssl: 7.4.27 -> 7.4.28
php74-pdo: 7.4.27 -> 7.4.28
php74-session: 7.4.27 -> 7.4.28
php74-simplexml: 7.4.27 -> 7.4.28
php74-sockets: 7.4.27 -> 7.4.28
php74-sqlite3: 7.4.27 -> 7.4.28
php74-xml: 7.4.27 -> 7.4.28
php74-zlib: 7.4.27 -> 7.4.28
unbound: 1.14.0 -> 1.15.0_1
Installed packages to be REINSTALLED:
lighttpd-1.4.64_1 (direct dependency changed: pcre2)
Number of packages to be upgraded: 26
Number of packages to be reinstalled: 1
7 MiB to be downloaded.
[1/3] Fetching lighttpd-1.4.64_1.txz: .......... done
pkg-static: cached package lighttpd-1.4.64_1: size mismatch, fetching from remote
[2/3] Fetching lighttpd-1.4.64_1.txz: .......... done
pkg-static: cached package lighttpd-1.4.64_1: size mismatch, cannot continue
Consider running 'pkg update -f'
Starting web GUI...done.
Generating RRD graphs...done.
***DONE***
Doing a
pkg update -f
on the root shell did not fix it.
Same here. I did a complete reinstall and update and rebootet from the backup config afterwards but now I have the same error for the acme and ddclient packages
Edit: The cloudflare mirror seems to be the issue, with the default mirror it worked just fine
Yup, top notch Cloudflare caching based on file names alone... the sizes of the files between 22.1.1 and 22.1.2 do not even match. ::)
Cheers,
Franco
Oddly, I have updated roughly 6 instances in the past week from 22.1 to 22.1.2 and didn't have this problem with Cloudflare. Today I am seeing this error on the wireguard-go-0.0.20220117,1 plugin, which appears not to have been updated since January, so not sure why it would become a problem today. I have the wireguard-go plugin installed on all my firewalls and had a successful update as recently as yesterday.
edit: Is there some trick to making this work? After Cloudflare, I tried mirrors 'default', 'San Francisco', and 'Washington DC' but got the same error each time I tried to run option 12 from the shell. I ran 'pkg clean' and 'pkg update -f' each time after changing mirrors.
Enter an option: 12
Fetching change log information, please wait... fetch: transfer timed out
fetch: /usr/local/opnsense/changelog/changelog.txz appears to be truncated: 0/243252 bytes
This will automatically fetch all available updates and apply them.
This update requires a reboot.
Proceed with this action? [y/N]: y
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 (56 candidates): .......... done
Processing candidates (56 candidates): .......... done
The following 57 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
py38-dnspython: 2.2.1,1
Installed packages to be UPGRADED:
ca_root_nss: 3.74 -> 3.76
curl: 7.80.0 -> 7.81.0
cyrus-sasl: 2.1.27_2 -> 2.1.28
cyrus-sasl-gssapi: 2.1.27_2 -> 2.1.28
dnsmasq: 2.86_2,1 -> 2.86_3,1
dpinger: 3.0 -> 3.2
e2fsprogs-libuuid: 1.46.4 -> 1.46.5
expat: 2.4.2 -> 2.4.7
glib: 2.70.2,2 -> 2.70.4,2
iperf3: 3.10.1_1 -> 3.11
krb5: 1.19.2 -> 1.19.3
libedit: 3.1.20210216,1 -> 3.1.20210910,1
libfido2: 1.9.0 -> 1.10.0
libunwind: 20201110 -> 20211201
lighttpd: 1.4.63 -> 1.4.64_1
monit: 5.29.0_1 -> 5.30.0
mpd5: 5.9_6 -> 5.9_7
nss: 3.74 -> 3.76
ntp: 4.2.8p15_4 -> 4.2.8p15_5
open-vm-tools-nox11: 11.3.5_1,2 -> 11.3.5_2,2
openssh-portable: 8.8.p1_1,1 -> 8.9.p1_3,1
openssl: 1.1.1m_1,1 -> 1.1.1m_2,1
opnsense: 22.1 -> 22.1.3
opnsense-update: 22.1 -> 22.1.2
os-dyndns: 1.27_2 -> 1.27_3
os-frr: 1.26 -> 1.27
php74: 7.4.27 -> 7.4.28
php74-ctype: 7.4.27 -> 7.4.28
php74-curl: 7.4.27 -> 7.4.28
php74-dom: 7.4.27 -> 7.4.28
php74-filter: 7.4.27 -> 7.4.28
php74-gettext: 7.4.27 -> 7.4.28
php74-json: 7.4.27 -> 7.4.28
php74-ldap: 7.4.27 -> 7.4.28
php74-mbstring: 7.4.27 -> 7.4.28
php74-openssl: 7.4.27 -> 7.4.28
php74-pdo: 7.4.27 -> 7.4.28
php74-phpseclib: 2.0.35 -> 2.0.36
php74-session: 7.4.27 -> 7.4.28
php74-simplexml: 7.4.27 -> 7.4.28
php74-sockets: 7.4.27 -> 7.4.28
php74-sqlite3: 7.4.27 -> 7.4.28
php74-xml: 7.4.27 -> 7.4.28
php74-zlib: 7.4.27 -> 7.4.28
py38-markupsafe: 2.0.1 -> 2.1.0
py38-urllib3: 1.26.7,1 -> 1.26.8,1
python38: 3.8.12_1 -> 3.8.12_2
readline: 8.1.1 -> 8.1.2
ruby: 2.7.5,1 -> 2.7.5_1,1
strongswan: 5.9.4 -> 5.9.5
sudo: 1.9.8p2 -> 1.9.10
syslog-ng: 3.35.1 -> 3.36.1
unbound: 1.14.0 -> 1.15.0_1
wireguard-go: 0.0.20211016,1 -> 0.0.20220117,1
Installed packages to be REINSTALLED:
pcre-8.45 (options changed)
pcre2-10.39 (options changed)
Number of packages to be installed: 1
Number of packages to be upgraded: 54
Number of packages to be reinstalled: 2
The process will require 17 MiB more space.
59 MiB to be downloaded.
[1/57] Fetching wireguard-go-0.0.20220117,1.txz: .......... done
pkg-static: cached package wireguard-go-0.0.20220117,1: size mismatch, fetching from remote
[2/57] Fetching wireguard-go-0.0.20220117,1.txz: .......... done
pkg-static: cached package wireguard-go-0.0.20220117,1: size mismatch, cannot continue
Consider running 'pkg update -f'
Starting web GUI...done.
Generating RRD graphs...done.
edit 2: I guess OPNsense was just playing with me. After the GUI sat spinning for a while just now I reloaded the page and had to log in again, at which point I discovered the mirror was still set to Cloudflare, despite me changing it and hitting the save button 3 time. Anyway, I changed it to SF for real this time and was able to update from the shell.
This seems strange:
fetch: /usr/local/opnsense/changelog/changelog.txz appears to be truncated: 0/243252 bytes
Looks like the fetch isn't even going through and wireguard-go is the first package to be downloaded and failing which would indicate the same (notice 3 packages total for OP and 75 packages to be downloaded for you).
Most likely cause is defunct IPv6. Can you try to change to prefer IPv4 under system: settings: general?
The 22.1.3 update has a better connectivity check for this to be diagnosed, but you can't get to it yet.
Cheers,
Franco
Thanks for your reply. It seems I had a stale session in the browser. See my edit above.