Solved Installing haproxy on FreeBSD 13.1-RELEASE-p2 (+ rolling back version upgrade)

Hello,

I'm not new to FreeBSD but I am very beginner level. I use it whenever I want something simple to to stay secured and stable for years without thinking about it. Usually, this means haproxy.

I asked for my provider to format a device with FreeBSD and they gave me 13.0, so I ran freebsd-update fetch && freebsd-update install to get 13.1-RELEASE-p2. The computer assures me that this is the most recent stable version of FreeBSD.

However, when I go to pkg install haproxy, it succeeds, but haproxy fails to run. The error given is this:
Code:
ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/sbin/haproxy not found

Any information I find about this error points me to updating FreeBSD, which I've done. I've also tried rebooting the device. Frustratingly, I have haproxy set up on FreeBSD elsewhere.

Code:
root@my:~ # freebsd-version
13.1-STABLE
root@my:~ # haproxy -v
HAProxy version 2.6.5-987a4e2 2022/09/03 - https://haproxy.org/

Code:
root@nl:~ # freebsd-version
13.1-RELEASE-p2
root@my:~ # haproxy -v
HAProxy version 2.6.1-f6ca66d 2022/06/21 - https://haproxy.org/

I've tried rolling back the misconfigured (because -STABLE seems to use a more recent better version) server and I see this:

Code:
root@ua:~ # freebsd-update rollback
src component not installed, skipped
Update manifest is corrupt -- this should never happen.

Trying to install haproxy by net/haproxy renders this error.

Code:
root@ua:/usr/ports/net/haproxy # make install clean
===> Building/installing dialog4ports as it is required for the config dialog
===>  Cleaning for dialog4ports-0.1.6_1
===> Skipping 'config' as NO_DIALOG is defined
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[3]: stopped in /usr/ports/ports-mgmt/dialog4ports
*** Error code 1

Stop.
make[2]: stopped in /usr/ports/ports-mgmt/dialog4ports

===> Options unchanged
/!\ ERROR: /!\

Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.

No support will be provided if you silence this message by defining
ALLOW_UNSUPPORTED_SYSTEM.

*** Error code 1

Stop.
make[1]: stopped in /usr/ports/net/haproxy
*** Error code 1

Stop.
make: stopped in /usr/ports/net/haproxy

I have no idea what I've done to cause this. Any advice?
 
I asked for my provider to format a device with FreeBSD and they gave me 13.0, so I ran freebsd-update fetch && freebsd-update install to get 13.1-RELEASE-p2.
No. This won't upgrade your system to 13.1, it will update 13.0 to the latest patch release. You need to follow the upgrade procedures, freebsd-update -r 13.1-RELEASE upgrade.

The error given is this:
ld-elf.so.1: /lib/libc.so.7: version FBSD_1.7 required by /usr/local/sbin/haproxy not found
Packages are created for 13.1, this error is because your system is still 13.0. More specifically, your userland libraries are still 13.0.

root@nl:~ # freebsd-version
13.1-RELEASE-p2
I'm going to guess you only upgraded the kernel, your userland is probably still 13.0 and hasn't been updated yet.

After a freebsd-update -r 13.1-RELEASE upgrade you need to run freebsd-update install twice. The first run only updates the kernel, the second will update the rest of the system.
 
Thanks for the quick reply.

Trying to run those commands, I get these results.

root@ua:~ # freebsd-update -r 13.1-RELEASE upgrade
src component not installed, skipped
freebsd-update: Cannot upgrade from 13.1-RELEASE to itself


root@ua:~ # freebsd-update install
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.


root@ua:~ # /usr/sbin/freebsd-update fetch
src component not installed, skipped
Looking up update.FreeBSD.org mirrors... 2 mirrors found.
Fetching metadata signature for 13.1-RELEASE from update2.freebsd.org... done.
Fetching metadata index... done.
Inspecting system... done.
Preparing to download files... done.

No updates needed to update system to 13.1-RELEASE-p2.
root@ua:~ # freebsd-update install
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
root@ua:~ # freebsd-update install
src component not installed, skipped
No updates are available to install.
Run '/usr/sbin/freebsd-update fetch' first.
 
I suspect you messed up, ran freebsd-update -r 13.1-RELEASE before and only did freebsd-update install once. Then you probably done another freebsd-update fetch after that in an attempt to fix the issue, unfortunately that messes things up even further.

So, how to proceed? Probably the best is to start the upgrade over. But because it's already partially done we need to add some additional arguments in order to 'trick' the system and allow the upgrade.

Try these, in order, and watch out for any errors along the way:
freebsd-update -r 13.1-RELEASE --currently-running 13.0-RELEASE upgrade
freebsd-update install # Ignore the suggestion to reboot when this is finished.
freebsd-update install
shutdown -r now
 
Back
Top