OPNsense Forum

Archive => 24.1, 24.4 Legacy Series => Topic started by: ggriff on July 09, 2024, 10:51:11 AM

Title: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: ggriff on July 09, 2024, 10:51:11 AM
I have tried multiple times to bootstrap an Azure FreeBSD v13.2 VM with no success. I have done this with v23.7 so am not a NOOB but have no clue why this is failing.

sudo sh ./opnsense-bootstrap.sh.in -r 24.1
This utility will attempt to turn this installation into the latest
OPNsense 24.1 release.  All packages will be deleted, the base
system and kernel will be replaced, and if all went well the system
will automatically reboot.

Proceed with this action? [y/N]: y
fetch: https://github.com/opnsense/core/archive/stable/24.1.tar.gz: size of remote file is not known
/tmp/opnsense-bootstrap/core.tar.gz                   7650 kB 9543 kBps    01s
pkg: 17 packages installed
bash-5.2.15: already unlocked


previously it stopped at:
azure-agent-2.8.0.11: already unlocked
so I uninstalled the package but now it stops at the bash package so seems to just be going down the list.

Anyone have an idea why this is not working?

Title: Re: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: Patrick M. Hausen on July 09, 2024, 11:04:57 AM
FreeBSD 13.2 is EOL - you probably (I have not yet tried) need to start with 13.3 to be able to install packages?
Title: Re: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: ggriff on July 09, 2024, 03:57:13 PM
@Patrick thanks for the fast response but I'm still getting the same behaviour with FreeBSD 13.3

sudo sh ./opnsense-bootstrap.sh.in -r 23.7
sudo sh ./opnsense-bootstrap.sh.in -r 24.1


both result in:
Proceed with this action? [y/N]: y
fetch: https://github.com/opnsense/core/archive/stable/24.1.tar.gz: size of remote file is not known
/tmp/opnsense-bootstrap/core.tar.gz                   7650 kB 9600 kBps    01s
pkg: 18 packages installed
azure-agent-2.8.0.11: already unlocked
$
Title: Re: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: Patrick M. Hausen on July 09, 2024, 04:39:31 PM
Sorry, I cannot reproduce any problem, even with FreeBSD 13.2.

I do not use Azure but my own Vagrant based environment. [1] I have no idea what might be different in Microsoft's cloud.

Kind regards,
Patrick

[1] https://github.com/punktDe/vagrant-opnsense
Title: Re: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: ggriff on July 24, 2024, 11:45:34 AM
Hi Patrick,

Thanks for your response, I got the same issue on a local FreeBSD v13.3 image so ended up using the OPNSense ISO as I was tired of struggling with the bootstrap method.
Title: Re: Bootstrap v24.1 failing on Azure FreeBSD 13.2 VM
Post by: franco on July 24, 2024, 11:49:01 AM
Actually this is caused by a regression in pkg-unlock tool, for details and workaround see https://github.com/opnsense/update/issues/93#issuecomment-2242714677


Cheers,
Franco