Upgrade to 22.1.r1 is not working

Started by computeralex92, January 12, 2022, 04:40:00 PM

Previous topic - Next topic
Hello,

maybe I'm to stupid to upgrade from 21.7.7 to 22.1.r1:

# opnsense-update -ur 22.1.r1
Fetching packages-22.1.r1-OpenSSL-amd64.tar: .. failed, no signature found


If I activate the verbosed log, I can see the issue:

# opnsense-update -V -ur 22.1.r1
+ [ '-r 22.1.r1' '=' -R ]
+ [ -n '-r 22.1.r1' ]
+ RELEASE=22.1.r1
+ [ -n '' ]
+ [ -n '' ]
+ [ ! -f /usr/local/etc/pkg/repos/OPNsense.conf ]
+ [ -n '' ]
+ [ -n '' ]
+ [ -n '' ]
+ [ -n '' ]
+ [ -n '' ]
+ [ -n '' ]
+ grep -q '^[[:space:]]*signature_type:[[:space:]]*"fingerprints"' /usr/local/etc/pkg/repos/OPNsense.conf
+ [ -n '' ]
+ [ -z '' ]
+ [ -n -u -o -n '' ]
+ DO_KERNEL=-k
+ DO_BASE=-b
+ DO_PKGS=-p
+ [ -n '' ]
+ [ -n '' ]
+ [ -z '' ]
+ [ -n -k -a -n '' -a -z -u ]
+ [ -n -b -a -n '' -a -z -u ]
+ [ -n -p -a -n '' -a -z -u ]
+ [ -n '' ]
+ [ -b '=' -B ]
+ [ -p '=' -P ]
+ [ -n '' ]
+ [ -p '=' -p -a -z -u ]
+ [ -n '' ]
+ FLAVOUR=Base
+ [ -n '' ]
+ [ -f /usr/local/bin/openssl ]
+ /usr/local/bin/openssl version
+ awk '{ print $1 }'
+ FLAVOUR=OpenSSL
+ DEVICE=''
+ [ -n '' ]
+ PACKAGESSET=packages-22.1.r1-OpenSSL-amd64.tar
+ KERNELSET=kernel-22.1.r1-amd64.txz
+ BASESET=base-22.1.r1-amd64.txz
+ mirror_abi
+ local 'DIR=\2'
+ [ -n '' ]
+ opnsense-verify -a
+ ABI=FreeBSD:12:amd64
+ [ -n '' ]
+ sed -n 's/^[[:space:]]*url:[[:space:]]*\"pkg\+\(.*\/${ABI}\/\)\([^\/]*\)\/.*/\1\2/p' /usr/local/etc/pkg/repos/OPNsense.conf
+ MIRROR='https://mirror.dns-root.de/opnsense/${ABI}/21.7'
+ [ -z 'https://mirror.dns-root.de/opnsense/${ABI}/21.7' ]
+ eval 'MIRROR=https://mirror.dns-root.de/opnsense/${ABI}/21.7'
+ MIRROR=https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7
+ echo https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7
+ MIRROR=https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7/sets
+ [ -n '' ]
+ [ -z '' ]
+ [ 22.1.r1 '=' 21.7.7 -a -n -k ]
+ [ 22.1.r1 '=' 21.7.7 -a -n -b ]
+ [ -z -k-b-p ]
+ [ -p '=' -p ]
+ [ '-r 22.1.r1' '=' -R -a 22.1.r1 '=' unknown ]
+ [ -z '' -o -n -u ]
+ rm -f /usr/local/opnsense/version/core.lock
+ fetch_set packages-22.1.r1-OpenSSL-amd64.tar
+ STAGE1='opnsense-fetch -a -T 30 -q -o /var/cache/opnsense-update/9672/packages-22.1.r1-OpenSSL-amd64.tar.sig https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7/sets/packages-22.1.r1-OpenSSL-amd64.tar.sig'
+ STAGE2='opnsense-fetch -a -T 30 -q -o /var/cache/opnsense-update/9672/packages-22.1.r1-OpenSSL-amd64.tar https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7/sets/packages-22.1.r1-OpenSSL-amd64.tar'
+ STAGE3='opnsense-verify -q /var/cache/opnsense-update/9672/packages-22.1.r1-OpenSSL-amd64.tar'
+ [ -n '' ]
+ [ -n '' ]
+ echo -n 'Fetching packages-22.1.r1-OpenSSL-amd64.tar: .'
Fetching packages-22.1.r1-OpenSSL-amd64.tar: .+ mkdir -p /var/cache/opnsense-update/9672
+ opnsense-fetch -a -T 30 -q -o /var/cache/opnsense-update/9672/packages-22.1.r1-OpenSSL-amd64.tar.sig https://mirror.dns-root.de/opnsense/FreeBSD:12:amd64/21.7/sets/packages-22.1.r1-OpenSSL-amd64.tar.sig
.+ exit_msg ' failed, no signature found'
+ [ -n ' failed, no signature found' ]
+ echo ' failed, no signature found'
failed, no signature found
+ exit 1


It try to get the packages.tar from the 21.7 folder on the mirror; where of course the set is not stored.
What did I maybe missed?

Thanks a lot,
Alex

January 12, 2022, 05:10:53 PM #1 Last Edit: January 12, 2022, 05:12:28 PM by franco
Hi Alex,

Don't do this...

> # opnsense-update -ur 22.1.r1

Upgrades will be shipped with the development version of 21.7.8 like we did with all the betas.

Or properly edit /usr/local/etc/opnsense-update.conf but please make sure to be on the latest DEVELOPMENT version.


Cheers,
Franco

PS: That being said upgrade to any beta and update to RC1 works fine. ;)

Thank you franco, sometimes the problem sits in front of the screen.
Upgrade worked well from 21.7 --> 22.1 Beta --> 22.1 r.1