Looks like you've been here before. How did you fix it that time?I can't log into FreeBSD with SSH.
Code:ld-elf.so.1: /usr/local/bin/fish: Undefined symbol "eventfd@FBSD_1.6"
Every command I try to execute through (possible with an SSH lib) also ends up with above error.
freebsd-version -uk show?End of keyboard-interactive prompts from server
Access denied
It is in a data center. I can have virtual console through DELL idrac.Where is the machine? Do you have physical access to it? If it is remote, can you get a KVM? Is it a root account?
You really need to give more information.
Yes, it's disabled by default.SSH access of root seems disabled
That's the only way to fix this. Use the remote console to login as root, then fix the issue (looks like you're running 12.3 packages on an outdated 12.0 or 12.1 system).I can have virtual console through DELL idrac.
fsck. If the system can be rebooted, it can be saved.Looks like you've been here before.
It wasn't fixed as the VM and jails continued to work I never touched the host OS
yes it can be rebooted.When a lib cannot load even symbols for a file descriptor, that indicates a corruption somewhere. Can that VM be rebooted? A reboot forces the kernel to re-check the hardware addresses where libs are loaded. A reboot is also a chance to runfsck. If the system can be rebooted, it can be saved.
Good. If you can't update it like SirDice suggests in post #9, you're looking at a complete re-install.yes it can be rebooted.
The root has fish as well. So re-install?fraxamo spotted the same question from a while back:
So, you just left it and now it's biting you in the ass.
Anyway, how to fix this mess? Get remote access through DRAC/IPMI/Remote KVM/whatever. If that's not possible you're going to have to walk/drive/fly to wherever the machine is and login locally. There's no way to solve this without access to the console.
Once there, login as root (I hope you didn't change root's shell), update your sources in /usr/src/. I suggest going for releng/13.1 (that's 13.1-RELEASE). Build world, build kernel, install kernel, install world, run etcupdate(8), etc. to correctly update the host. The host will require at least one reboot. I suggest not rebooting after the installation of the kernel, just reboot once after the whole system has been updated.
/usr # git clone -b releng/13.1 --depth 1 https://git.freebsd.org/src.git src
Cloning into 'src'...
ld-elf.so.1: /usr/local/bin/git: Undefined symbol "regcomp@FBSD_1.6"
[Can you post the output offreebsd-version -ruk?
Undefined symbol "regcomp@FBSD_1.6". The following is uname output:$ uname -a
FreeBSD xxx 13.0-CURRENT FreeBSD 13.0-CURRENT #3 r363383: Thu Jul 23 01:09:38 PDT 2020 root@xxx:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
cd /tmp.# /rescue/nc -l 1234 > libc.so.7
nc -N [IP_address_of_affected_system] 1234 < /lib/libc.so.7
/rescue/chflags noschg /lib/libc.so.7
/rescue/cp libc.so.7 /lib/libc.so.7
/usr/bin/fetch is working? If it's working you can use it to download the src from the ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/src.txz and rebuild. Otherwise you will need to mount the virtual iso using idrac then mount it via /rescue/mount_udf or /rescue/mound_cd9660 and extract the src.txz via /rescue/tarI extracted the file from ISO withcan you check if the/usr/bin/fetchis working? If it's working you can use it to download the src from the ftp://ftp.freebsd.org/pub/FreeBSD/releases/amd64/13.1-RELEASE/src.txz and rebuild. Otherwise you will need to mount the virtual iso using idrac then mount it via /rescue/mount_udf or /rescue/mound_cd9660 and extract the src.txz via /rescue/tar
mdconfig followed by mount and replace the existing one in single user mode and the error Undefined symbol "regcomp@FBSD_1.6" disappeared. make buildworld and make kernel, I have the error:kldxref /boot/kernel
kldxref: error while reading /boot/kernel/iwlwifi-9000-pu-b0-jf-b0-46.ucode.ko: Bad address
kldxref: error while reading /boot/kernel/iwlwifi-9260-th-b0-jf-b0-46.ucode.ko: Bad address
kldxref: /boot/kernel/kernel: too many segments
/usr/src # etcupdate -p
No previous tree to compare against, a sane comparison is not possible.
I didRemove the current src tree after /usr/src is empty extract the new src as i describe in my previous post then build the kernel and word and generate new current tree with etcupdate. Then use etcupdate diff.
![]()
Chapter 26. Updating and Upgrading FreeBSD
Information about how to keep a FreeBSD system up-to-date with freebsd-update or Git, how to rebuild and reinstall the entire base system, etcdocs.freebsd.org
etcupdate extract. diff gives too much I bypass the patch. The system still boots, but the ssh console shows it is still 13.0-CURRENT, while uname -a shows 13.1 release. Last login: Fri Jul 8 03:09:57 2022 from X.X.X.X
FreeBSD 13.0-CURRENT (GENERIC) #3 r363383: Thu Jul 23 01:09:38 PDT 2020
> uname -a
FreeBSD ftp0 13.1-RELEASE FreeBSD 13.1-RELEASE releng/13.1-fc952ac22 GENERIC amd64