Solved Upgrade to FreeBSD 12.2 from 12.1 seems to hang

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,357
Messages: 38,883

Not strictly needed but it'll be useful in case the upgrade bombs out and the system fails to boot (not common but it might happen and it's good to be prepared).

I'd set these in /etc/rc.conf:
Code:
fsck_y_enable="YES"
background_fsck="NO"
This will force a complete fsck(8) if the initial preen fails. You'll need to have the boot wait for it though, or else the filesystems will already be mounted and won't be able to fix things. Hence the background_fsck="NO".
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

so I assume that I make these edits and remotely reboot the server
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

I you are not afraid of compiling once i can guide you

Code:
cd /usr/src/
rm -vfR * .??*
git clone -o freebsd -b releng/13.0  https://git.FreeBSD.org/src.git    /usr/src
make buildworld

Wait an hour of 8.
If all went well,

Code:
make buildkernel

Wait 15 minutes
If all went well,

Code:
make installkernel
make installworld

Code:
etcupdate
Done. SirDice can tell if i forgot something.
"git". shows as a non recognized command. I assume it has something to to do with git hub
 

Alain De Vos

Daemon

Reaction score: 649
Messages: 2,174

I'm running out of ideas.
Check /etc/resolv.conf to see if you don't have dns problems.
Can you post the output of:
Code:
pkg -vv | egrep "url|ABI"
And output of:
Code:
cat /etc/pkg/FreeBSD.conf | grep url
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

Code:
pkg -vv | egrep "url|ABI"

gets me.

Code:
ABI = "FreeBSD:12:amd64";
ALTABI = "freebsd:12:x86:64";
    url             : "pkg+http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly",

Code:
cat /etc/pkg/FreeBSD.conf | grep url

gets me

Code:
 url: "pkg+http://pkg.FreeBSD.org/${ABI}/quarterly",

I could the issue be that the new pkg is in a different repository??
 

Alain De Vos

Daemon

Reaction score: 649
Messages: 2,174

It looks like the system no longer knows which version it is running.
You can check this by :
Code:
uname -rv | awk '{print $1,$3}'

If you have curl or wget installed you can fetch the git directly:
Code:
wget http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/All/git-2.31.1_1.txz
or
Code:
curl http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/All/git-2.31.1_1.txz -o git-2.31.1_1.txz
Then perform a :
Code:
pkg install ./git-2.31.1_1.txz
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

I download using curl. (hey I finally had something). but when u try to install from the same directory I downloaded it to.. system still try to go back to the repository to try to update pkg

Code:
FreeBSD repository is up to date.
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    pkg: 1.15.10 -> 1.16.1

Number of packages to be upgraded: 1

7 MiB to be downloaded.

Proceed with this action? [y/N]: y

So the issue is with wrong version of pkg

Can't grab it from ports. as 1.16.1 apparently needs FreeBSD 12.2 and I am at 12,1

Guess I will have to rebuild the server from scratch

Thanks for te help
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

no go. it wants the newer version of pkg

Code:
All repositories are up to date.
New version of pkg detected; it needs to be installed first.
The following 1 package(s) will be affected (of 0 checked):

Installed packages to be UPGRADED:
    pkg: 1.15.10 -> 1.16.1

Number of packages to be upgraded: 1

7 MiB to be downloaded.
pkg: http://pkgmir.geo.freebsd.org/FreeBSD:12:amd64/quarterly/All/pkg-1.16.1.txz: Not Found
 
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

Ok took a step back. I went back and tried to follow SirDice path and did rm -rf /var/db/freebsd-update/* . Then tried freebsd-update -r 13.0-RELEASE upgrade. Runs for a while then stops pretty much same place. (see attached screen shot). I am asuuming i Ma out of luck with the upgrade option. Is it possible for me tor load FreeBSD 13.0 from source my remote leased server?? It being stuck on FreeBSD 12.1. has pretty much rendered it useless.
 

Attachments

  • Screen Shot 2021-06-08 at 1.15.14 PM.png
    Screen Shot 2021-06-08 at 1.15.14 PM.png
    144.5 KB · Views: 27
OP
J

jasonhirsh

Active Member

Reaction score: 2
Messages: 125

ok in the past it was non responsive. now this time it worked. been a tad frustrating andI guess a bit over my head
 
Top