OPNsense Forum

Archive => 21.1 Legacy Series => Topic started by: hakuna on July 12, 2021, 06:42:05 am

Title: [SOLVED] opnsense-bootstrap.sh: Git page not found
Post by: hakuna on July 12, 2021, 06:42:05 am
Hi guys,

Due to an unexpected adventure after updating my baremetal to 21.1.7_1, I would like to improve the "rollback plan" I currently have in place.

To do that I did a fresh FreeBSD 12.1 install in order to have ZFS, I've followed the documentation here: https://github.com/opnsense/update
But when I run the script, things go sideways. This is the script:

Code: [Select]
# pkg install ca_root_nss
# fetch https://raw.githubusercontent.com/opnsense/update/master/bootstrap/opnsense-bootstrap.sh.in
# sh ./opnsense-bootstrap.sh.in -r "major.version"

Long story short, the script calls this guys
Quote
URL="https://github.com/opnsense/core/archive"

But there isn't such URL, it is a 404 for archive.

PS: I know that somewhere in January next year OPNSense will support snapshot, but I wanna solve this now before I apply any other update onwards, but unfortunately I am having this issue.

Thank you for any tips.
Title: Re: opnsense-bootstrap.sh: Git page not found
Post by: newsense on July 12, 2021, 06:51:24 am
You can install 21.7.r1 and it should work just fine. I'm in the process of upgrading all the FWs to it by reinstalling on ZFS.

After the first boot in 21.7 with the configuration restored check for updates (12 in the console) and that step will switch you to LibreSSL if that is what you're using and reinstall all the needed packages.

The last step is to run the automatic plugin troubleshooter which will reinstall (almost) all needed plugins. I just reported that os-chrony seems to be missed but you can install it manually and the existing config for it will kick in on the spot.
Title: Re: opnsense-bootstrap.sh: Git page not found
Post by: hakuna on July 12, 2021, 07:06:14 am
I found the problem, the script says:
Quote
sh ./opnsense-bootstrap.sh.in -r "major.version"

So I was running:

Quote
sh ./opnsense-bootstrap.sh.in -r "21.1"

Only after asking for help, I saw a 2019 post so I tried:

Quote
sh ./opnsense-bootstrap.sh.in -r 21.1

Without quotes and it worked. Yeah, feeling dumb pretty 100%

Well, good to know it works.
I am testing everything on a VMWare first before touching my baremetal.
Title: Re: opnsense-bootstrap.sh: Git page not found
Post by: hakuna on July 12, 2021, 07:29:26 am
You can install 21.7.r1 and it should work just fine. I'm in the process of upgrading all the FWs to it by reinstalling on ZFS.

After the first boot in 21.7 with the configuration restored check for updates (12 in the console) and that step will switch you to LibreSSL if that is what you're using and reinstall all the needed packages.

The last step is to run the automatic plugin troubleshooter which will reinstall (almost) all needed plugins. I just reported that os-chrony seems to be missed but you can install it manually and the existing config for it will kick in on the spot.


If you don't mind me bothering you, I had to login (press eight) then call opnsense-installer. Everything was going as expected but it refuses to install into the VMWare disk where FreeBSD is running. It says like busy, no free space, etc, and that is it.

I wish there were more documentation regarding this  :-\
Everytime something doesn't work as expected, you need to beat Google to death in order to find something close enough to help you to solve your problem  :-\
Title: Re: opnsense-bootstrap.sh: Git page not found
Post by: hakuna on July 12, 2021, 07:43:51 am
I got things back on track...

Yeah, I am gonna need to spend some time exploring things and learning from mistakes.

Thanks for all the help.
Title: Re: [SOLVED] opnsense-bootstrap.sh: Git page not found
Post by: franco on July 13, 2021, 09:28:11 am
-r 21.1

is the same as

-r '21.1'

is the same as

-r "21.1"

is the same as

-r 2"1"'.1'

If the page wasn't found it was likely not retuned by GitHub.

Further evidence: https://github.com/opnsense/update/issues/72

Please don't jump to conclusions that nothing really works until you figure it out. ;)


Cheers,
Franco