OPNsense Forum

Archive => 22.1 Legacy Series => Topic started by: none on January 29, 2022, 11:41:02 PM

Title: Big issue upgrading from 21.7.8 on APU2C4
Post by: none on January 29, 2022, 11:41:02 PM
Hi all,

I tried to upgrade from 21.7.8 to 22.1. It all looked fine till it said would reboot, yet on the web UI. Unfortunately I was behind the firewall and could not get serial output till late in the boot. What I got from console output was:

tunefs: soft updates remains unchanged as enabled
tunefs: file system reloaded
camcontrol: cam_lookup_pass: CAMGETPASSTHRU ioctl failed
cam_lookup_pass: No such file or directory
cam_lookup_pass: either the pass driver isn't in your kernel
cam_lookup_pass: or mmcsd0 doesn't exist
** /dev/ufs/OPNsense
FILE SYSTEM CLEAN; SKIPPING CHECKS
clean, 182026 free (11058 frags, 21371 blocks, 1.2% fragmentation)
Setting hostuuid: 99672fc4-ed42-11eb-8b1b-000db94722f0.
Setting hostid: 0xb59a3a45.
Configuring vt: keymap blanktime.
ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
Configuring crash dump device: /dev/null
.ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib /usr/local/lib/compat/pkg /usr/local/lib/compat/pkg /usr/local/lib/ipsec /usr/local/lib/perl5/5.32/mach/CORE
32-bit compatibility ldconfig path:
done.
>>> Invoking early script 'upgrade'
ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
>>> Invoking early script 'configd'
Starting configd.
>>> Invoking early script 'templates'
Generating configuration: OK
>>> Invoking early script 'backup'
>>> Invoking backup script 'captiveportal'
>>> Invoking backup script 'dhcpleases'
>>> Invoking backup script 'duid'
>>> Invoking backup script 'netflow'
>>> Invoking backup script 'rrd'
>>> Invoking early script 'carp'
CARP event system: OK
Launching the init system...done.
Initializing...........done.
igb0: link state changed to UP
debugnet_any_ifnet_update: Bad dn_init result from igb0 (ifp 0xfffff800038f4800), ignoring.
igb1: link state changed to UP
debugnet_any_ifnet_update: Bad dn_init result from igb1 (ifp 0xfffff80003695800), ignoring.
Starting device manager...done.
Configuring login behaviour...done.
Configuring loopback interface...done.
Configuring kernel modules...done.
Setting up extended sysctls...done.
Setting timezone...done.
Writing firmware setting...done.
Writing trust files...done.
Setting hostname: floyd.apartnet
Generating /etc/hosts...done.
Configuring system logging...done.
Configuring loopback interface...done.
Creating wireless clone interfaces...done.
Configuring VLAN interfaces...done.
Creating OpenVPN instances...done.
Configuring LAN interface...done.
Configuring VLAN_6 interface...done.
Configuring WAN interface...done.
Creating IPsec VTI instances...done.
Generating /etc/resolv.conf...done.
Configuring firewall.....failed.
Configuring OpenSSH...done.
Starting web GUI...done.
Configuring CRON...done.
Setting up routes...done.
Generating /etc/hosts...done.
Starting DHCPv4 service...done.
Starting Unbound DNS...done.
Setting up gateway monitors...done.
Configuring firewall.....failed.
Syncing OpenVPN settings...done.
Starting NTP service...done.
Starting Unbound DNS...done.
Generating RRD graphs...done.
Configuring system logging...done.
>>> Invoking start script 'newwanip'
Reconfiguring IPv4 on igb0: OK
Reconfiguring routes: OK
>>> Invoking start script 'freebsd'
>>> Invoking start script 'syslog-ng'
Stopping syslog_ng.
Waiting for PIDS: 85444.
Starting syslog_ng.
>>> Invoking start script 'carp'
>>> Invoking start script 'cron'
Starting Cron: OK
>>> Invoking start script 'beep'
Root file system: /dev/ufs/OPNsense
Sat Jan 29 19:12:07 -03 2022
ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"

*** floyd.apartnet: (/OpenSSL) ***

LAN (igb1_vlan1) -> v4: 10.1.1.88/24
VLAN_6 (igb1_vlan6) -> v4: 10.1.6.88/24
WAN (igb0)      -> v4/DHCP4: xxxxxxxxxxxx

HTTPS: ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
SSH:   ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
awk: i/o error occurred while closing /dev/stdout
input record number 1, file
source line number 1
SSH:   ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
awk: i/o error occurred while closing /dev/stdout
input record number 1, file
source line number 1
SSH:   ld-elf.so.1: /usr/bin/sed: Undefined symbol "regcomp@FBSD_1.6"
awk: i/o error occurred while closing /dev/stdout
input record number 1, file
source line number 1

FreeBSD/amd64 (xxx) (ttyu0)

login: root

FreeBSD/amd64 (xxx) (ttyu0)

login: root

FreeBSD/amd64 (xxx) (ttyu0)

login:   


I tried to log in and it keeps asking for login when I try to use root user (as the log shows).
I don't have internet connection through it anymore. I kind saw the box is kinda lost, so I came here to warn about it, so others will know the issue. I will install a fresh 22.1 later, its my home backup router and I have a backup from the config.

Is this known?

On the webUI I get this weird thing:

OPNsense 21.7.8-amd64
FreeBSD 13.0-STABLE
OpenSSL 1.1.1m 14 Dec 2021

Despite wan displays the IP for my ISP, it won't work the forwarding service.

att,

none
Title: Re: Big issue upgrading from 21.7.8 on APU2C4
Post by: cookiemonster on January 30, 2022, 12:04:24 AM
I've just upgraded my APU4 firewall also from 21.7.8 to 22.1. I had to be patient, it took about 20 minutes in between beeps.
Luckily all seems fine.
May I suggest if you reinstall, to go for zfs. With it we can create a new boot environment, do the upgrade and fallback to previous if it doesn't work. We still need console access to do it but it's another option.