-
RoyalYork
Evening all
-
realdeimos
dautor8518050: I figured it out, it was nat64/dns64 creating ipv6 addresses where none existed. truss is still great.
-
nmz
lua is pretty slow though
-
dautor8518050
realdeimos my favourite tool! It's also amazing for teaching and learning.
-
dautor8518050
What happened at 5:20 UTC? Is it only me or was there ~1000 leaves and joins?
-
AmyMalik
Rerouting at libera HQ
-
tm512
laptop setup is coming along nicely, I think. I bit the bullet and went with vector fonts, since I can dial in the exact size I want:
matrix-client.matrix.org/_matrix/me…matrix.org/dJkoHktrDrtbWCIgxJaeGhMk
-
tm512
not sure I'm going to stick with this font, I find the spacing between letters to look pretty off, like the weirdly large space between r and a in my hostname
-
dautor8518050
dwm is my favourite wm. Now I want to go back to it...
-
dautor8518050
tm512 which font is that?
-
tm512
dautor8518050: it's monoid
larsenwork.com/monoid
-
VimDiesel
Title: Monoid
-
tm512
available in ports
-
tm512
before ditching it I might check out the "tight" variant of the font which I'm pretty sure I saw got installed
-
megaTherion
Hi, I recently have trouble configuring net/samba416 from ports - via make config, regardless I always get "Skipping 'config' as NO_DIALOG is defined"
-
tm512
I'm noticing that suspending seems to interact weirdly with uptime on FreeBSD. I'm guessing it just pauses uptime, but the reported uptime when I shutdown seems lower than I'd expect
-
tm512
either way, definitely different from Linux, where uptime actually reports how long it's been since I turned the machine on, including time spent suspended
-
bitblt
Hello
-
bitblt
Can somebody tell me in what package the libz.so.6 belongs?
-
bitblt
I just updated a jail and it broke with: ld-elf.so.1: Shared object "libcrypto.so.111" not found, required by "pkg"
-
bitblt
and: ld-elf.so.1: Shared object "libz.so.6" not found, required by "indexinfo"
-
megaTherion
bitblt: libz.so should be part of base
-
megaTherion
is this about a broken upgrade process?
-
bitblt
Yes
-
megaTherion
I see, well then you should revert to the last working state and retry
-
bitblt
I'm a newbie so I'm trying to bring all the pieces together on how freebsd works, but for starters my huge mistake was trusting the truenas core ui to do a jail update instead of `iocage update`ing it my self
-
megaTherion
if you're doing this via freebsd-update and also have ZFS available you'll have a BE which you can switch to
-
bitblt
megaTherion: BE?
-
megaTherion
Boot Environment
-
megaTherion
try bectl list
-
bitblt
First of all this is about a jail update, but as far as I understand the principle should be the same?
-
megaTherion
yes the principle is exacly the same
-
megaTherion
except you obviously won't require a kernel update & reboot
-
bitblt
megaTherion: ld-elf.so.1: Shared object "libcrypto.so.111" not found, required by "libzfs.so.4"
-
megaTherion
which versions did you upgrade exacly?
-
crest_
bitblt: did you just upgrade from 13.x to 14.0?
-
megaTherion
that's what it looks like
-
crest_
sound like you already deleted the old shared libs before you upgraded the rest
-
bitblt
crest_: I don't really know what the truenas core ui actually does with the jail 'update' button (but for sure I wont be trusting it again)
-
crest_
can you still run freebsd-version -kru
-
crest_
and uname -a
-
bitblt
uname -a: FreeBSD radarr 13.1-RELEASE-p2 FreeBSD 13.1-RELEASE-p2 n245412-484f039b1d0 TRUENAS amd64
-
bitblt
freebsd-version does not exist in the container
-
bitblt
jail* (sorry linux habbits)
-
crest_
so they stripped down the userland beyond what is reasonable on a storage server^^
-
megaTherion
bitblt: you cant upgrade to 14.x if your host is 13.x
-
megaTherion
this is not supported
-
bitblt
megaTherion: I did not intent to
-
crest_
the annoying truth is that 13.1 has been end of life for a while so expect a bumpy ride
-
bitblt
I thought the jail 'update' button only did minor updates
-
megaTherion
I see, well then just rollback to a prior snapshot
-
megaTherion
problem solved then
-
crest_
if it ran env PAGER=cat freebsd-update fetch install it should just install security and bug fixes
-
crest_
but it appears to do more
-
megaTherion
he's not using FreeBSD, he's using a *NAS fork which is out of the scope of FreeBSD vanilla anyways
-
crest_
how familiar with freebsd are you? do you want to understand the problem or just get it working again?
-
bitblt
crest_: Great question, I really want to get familiar with freebsd
-
crest_
if you have a snapshot from before the upgrade (not update) rolling back would the easy way to undo it all, but that would include any data you changed in the jail since
-
bitblt
Last night I actually deep dived into some stuff before coming here, like iocage etc.
-
bitblt
crest_: another HUGE mistake I did is that I did not take any snapshots prior hitting the update in the jail
-
megaTherion
bitblt: the cleanest way is to go back to a state which works, but if you want you can copy the missing libs out of the host into the jail
-
megaTherion
its a dirty fix, could work
-
bitblt
so my previous snapshot is 4 months old
-
crest_
did their jail frontend do it for you?
-
bitblt
crest_: yes, never using it again
-
bitblt
I'm now trying to understand all the internals
-
bitblt
and manage these things by shell
-
bitblt
(I believe I'm pretty experienced with linux, but some basic knowledge around freebsd is trying to settle in my brain from last night now)
-
crest_
does /bin/sh still work in the jail?
-
bitblt
crest_: yes
-
bitblt
pkg-static works too
-
bitblt
crest_: I have a shell inside the jail
-
crest_
but you don't have /bin/freebsd-version?
-
bitblt
/bin/freebsd-version: Command not found.
-
bitblt
I do have freebsd-update though
-
crest_
the problem is that freebsd 13.1 is end of life which means that the update servers may no longer have everything you need cached
-
crest_
how big is your truenas system (cpu cores, ram)?
-
bitblt
crest_: Yeah I kind of got that when `iocage fetch` only showed me 13.2-RELEASE
-
bitblt
crest_: Intel(R) Xeon(R) CPU E3-1220 v3 @ 3.10GHz, 16G ECC RAM, 4+4TB storage in zfs mirror + 128G boot pool
-
crest_
there is a good chance that a freebsd 13.2 userland will (mostly) work on a 13.1 kernel, but it would only be by accident
-
crest_
because you're not supposed to run a newer userland on an older kernel (only the other way around is supported)
-
bitblt
crest_: ok, lets play
-
crest_
take a snapshot now if you haven't already
-
crest_
that way you can go back if you make it even worse
-
crest_
do you have any services you can't/won't stop still running in the jail?
-
bitblt
nop, no problem
-
bitblt
I broke my uptime after 325 days, at this point its all about recovery without loosing past 4 months
-
crest_
run sockstat -l -4 -6 to make sure nothing is listening on IP sockets that you forgot about
-
crest_
are you willing to share which service(s) the jail provided?
-
crest_
after you took the snapshot you can try this
-
megaTherion
big uptimes only suggest that you haven't updated a long time :)
-
bitblt
crest_: yes, its a jail that has radarr, similar thing happened to my sonarr,bazarr etc jails
-
bitblt
crest_: I just did `iocage snapshot radarr`, next step?
-
crest_
env PAGER=cat freebsd-update --currently-running 13.1-RELEASE -r 13.2-RELEASE upgrade
-
crest_
assuming you're stuck somewhere between freebsd 13.1 and 13.2
-
bitblt
Looking up update.FreeBSD.org mirrors... ld-elf.so.1: Shared object "libcrypto.so.111" not found, required by "libprivateldns.so.5"
-
crest_
can you run file -s /bin/sh to learn more about your current userland
-
bitblt
librypto.so.111 and libz.so.6 that are missing are major pain points now
-
bitblt
ld-elf.so.1: Shared object "libz.so.6" not found, required by "libmagic.so.4"
-
bitblt
when running file -s /bin/sh
-
crest_
run ls /.zfs/snapshot
-
crest_
it should show you your snapshots
-
bitblt
ok I have a REALLY old one
-
bitblt
2022-12-09-22:07:16
-
crest_
that's fine
-
bitblt
found libz.so.6 and libcrypto.so.111
-
bitblt
I suppose I copy them from the snapshot to the root fs?
-
crest_
run ls /.zfs/snapshot/$name/lib
-
bitblt
crest_: yeah, lots of libs there
-
crest_
you can copy the missing from the old snapshot's /lib into the messed up /lib
-
bitblt
I just did
-
bitblt
pkg now works
-
bitblt
freebsd-version too??
-
crest_
it would be kind of pointless because freebsd-version itself contains the userland version number
-
bitblt
I messed up
-
bitblt
I was on the host
-
bitblt
so no in the jail I dont have the relevant libs
-
crest_
can you run mount -v inside the jail?
-
bitblt
neither a zfs snapshot
-
bitblt
tank/iocage/jails/radarr/root on / (zfs, local, noatime, nfsv4acls)
-
crest_
or zfs list -t snapshot | grep radarr on the host
-
crest_
you can also try to copy the libraries from the host /lib into the jails /lib
-
bitblt
crest_: I tried copying from the host but I get
-
bitblt
cp: /mnt/tank/iocage/jails/radarr/root/lib/libz.so.6: Read-only file system
-
babz
you can run the update from the host
-
babz
with freebsd-update -b <path_to_jail_root>
-
bitblt
babz: what is the difference between iocage update and freebsd-update?
-
crest_
babz is right assuming truenas doesn't point freebsd-update to their own updating servers etc.
-
crest_
iocage is what's called a jail manager. a piece of software to manage multiple jails
-
crest_
it's one of the large ones (from the complexity point of view)
-
bitblt
host does not have a freebsd-update
-
bitblt
zsh: command not found: freebsd-update
-
crest_
freebsd itself has the mechanisms required to run jails, but almost no policies pushed on the user
-
crest_
bitblt: truenas probably removed it because it would be too tempting for a user to bypass their high level upgrade workflow
-
crest_
which would result in truly broken host systems
-
crest_
their design is to take full charge of the host system. you're not supposed to mess with the host. if you want be in control put it in a jail or virtual machine
-
crest_
which is a nice idea until their jail manager exploded into your face
-
bitblt
crest_: Ok so I suppose we are back into trying to add the missing libraries libz.so.6 and libcrypto.so.111 into the jail
-
bitblt
tried copying them from the host, I get read-only file system
-
crest_
can you run mount -v | grep /jails on the host
-
bitblt
loots of stuff
-
bitblt
crest_: I suppose you are interested in this:
-
bitblt
/mnt/tank/iocage/releases/13.1-RELEASE/root/lib on /mnt/tank/iocage/jails/radarr/root/lib (nullfs, local, noatime, read-only, nfsv4acls, fsid 8bff0c2929000000)
-
bitblt
I did this:
-
bitblt
cp /.zfs/snapshot/2022-12-09-22:07:16/lib/libz.so.6 /mnt/tank/iocage/releases/13.1-RELEASE/root/lib/
-
crest_
okay the jail manager (iocage) has used nullfs (the linux equivalent would be a bind mounted directory) for the jail
-
crest_
the nullfs mount is read-only to allow them to share a single copy of the userland among multiple jails
-
bitblt
crest_: I suppose they are using it to make some kind of container base / overlays
-
crest_
yes but only on a per mountpoint basis
-
crest_
without a dynamic unionfs (because there is no usable in-kernel unionfs)
-
crest_
i'm not familar enough with iocage to know how exactly they mount the writable filesystems on top of that
-
crest_
i assume there will be either a bunch of zfs filesystems mounted into the jail in the relevant places or a single one with writeable nullfs mounts to piece it together
-
bitblt
Ok, some progress
-
bitblt
ld-elf.so.1: Cannot open "/usr/local/lib/libcrypto.so.11"
-
crest_
thats a (broken) reference to the libcrypto provided by the openssl package (not the one in the base system)
-
crest_
if you have pkg working you can try pkg install -g 'openssl1*'
-
crest_
don't blindly press y
-
bitblt
crest_: I have pkg-static working
-
crest_
but check what it wants to change if you get that far
-
crest_
can you run pkg-static install pkg to reinstall the package manager?
-
bitblt
crest_: reinstalled pkg, still needs libcrypto.so.11
-
crest_
to be expected
-
crest_
run pkg search openssl
-
bitblt
(by the way, really thank you for going though this with me, learning a lot of tricks)
-
bitblt
I suppose we need openssl111-1.1.1w
-
crest_
now run pkg info | grep openssl
-
crest_
(yes there are more elegent ways to query the installed packages but this is easier)
-
bitblt
I just installed openssl111, pkg is alive
-
bitblt
Shall I run pkg update?
-
crest_
yes
-
bitblt
and pkg upgrade?
-
crest_
start with pkg update
-
bitblt
crest_: works
-
crest_
that updates your local copy of the package repo meta-data
-
bitblt
yep done
-
crest_
as in which packages are supposed to exist on the repo mirrors
-
bitblt
(similar to debian's apt update I suppose)
-
crest_
there is a difference between freebsd and most linux distros
-
crest_
freebsd splits the system into base (kernel + userland) and ports/packages
-
crest_
the ports tree is a collection of build instructions to fetch, compile and package software
-
bitblt
Ok
-
bitblt
I suppose that everything I install with pkg install <simplename> is a userland package
-
bitblt
from the official repos?
-
bitblt
crest_: also, shall I run upgrade now?
-
megaTherion
bitblt: pkg are 3rd party packages
-
megaTherion
official in the sense that each port has a maintainer and deals with the upstream
-
bitblt
megaTherion: But they live in the freebsd repos / mirrors yeah?
-
megaTherion
yes
-
megaTherion
pre-compiled packages which are on official mirrors
-
megaTherion
they are however, not part of the distribution
-
crest_
bitblt: back
-
crest_
can you run file -s /bin/sh inside the jail now?
-
bitblt
crest_: /bin/sh: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.1, FreeBSD-style, stripped
-
crest_
is that from inside the jail or on the truenas host?
-
bitblt
crest_: from the jail
-
crest_
at least that part of of your corrupted userland is from FreeBSD 13.1
-
bitblt
crest_: so, what's next?
-
crest_
the proper way to do it would be upgrade your host first, butthat could be problematic if truenas is still stuck on 13.1
-
crest_
you could try to use the iocage interface on the host to prepare a 13.2 jail template and switch your existing jail to it
-
bitblt
As far as I know it is even older than that, latest stable version in their site is: 'TrueNAS CORE 13.0-U6.1'
-
crest_
their release is a mix of a newer freebsd kernel with older parts on top of that
-
crest_
uname -a tells you among other details which kernel version you're running
-
bitblt
crest_: I suppose now the next step is something in the lines of 'iocage upgrade radarr -r 13.2-RELEASE'
-
crest_
that could work, but it wouldn't be a supported configuration
-
bitblt
lets see
-
crest_
i would also recommend that you install the package bsdadminscripts2
-
crest_
for its pkg_libchk script
-
crest_
which scans for missing libs
-
bitblt
inside the jail I suppose
-
crest_
some packages like the go compiler will produce false positive because they include test elf files
-
crest_
yes
-
crest_
it finds all elf executables installed via pkg and tries to locate the shared libs required
-
crest_
if it finds any missing libs it will tell you which package contains the executeable, the path and the missing libs
-
crest_
e.g. i just found this on a lab machine
-
crest_
nfs-over-tls-1.2: /usr/local/sbin/rpc.tlsclntd misses libssl.so.111
-
crest_
nfs-over-tls-1.2: /usr/local/sbin/rpc.tlsclntd misses libcrypto.so.111
-
crest_
nfs-over-tls-1.2: /usr/local/sbin/rpc.tlsservd misses libssl.so.111
-
crest_
nfs-over-tls-1.2: /usr/local/sbin/rpc.tlsservd misses libcrypto.so.111
-
bitblt
I think we are good after the manual cp of libz.so.6 and libcrypto.so.111
-
bitblt
only these missing
-
bitblt
radarr-4.7.5.7809_2: /usr/local/share/radarr/bin/libMonoPosixHelper.so misses libiconv.so.2
-
bitblt
radarr-4.7.5.7809_2: /usr/local/share/radarr/bin/libcoreclrtraceptprovider.so misses liblttng-ust.so.0
-
crest_
did the jail upgrade to freebsd 13.2 go through?
-
bitblt
nop because the radarr package has a dependency on libssl.so.11
-
bitblt
that does not exist
-
crest_
i don't see how iocage upgrade to care about that
-
crest_
of course you as user care about the service the jail is supposed to provide
-
bitblt
it stopped with that error though
-
crest_
intersting
-
crest_
the easiest way to fix that would be to delete the package from the jail an install it again
-
crest_
because during the installation it will also install the dependencies
-
crest_
if you want to make sure the packages exist you can run pkg install -f -F radarr first
-
crest_
-f to force it to work on already installed packages, -F to only fetch the (latest version of) the packages
-
crest_
or if you want to upgrade everything pkg upgrade -F
-
bitblt
i think the usage of iocage plugins also complicates the whole setup
-
crest_
that only updates the packages not the base system
-
crest_
oh you're using plugins^^
-
crest_
yes that does complicate things
-
bitblt
if i knew I would just setup everything in vanilla jails
-
bitblt
yes I'm using this plugin:
-
bitblt
-
VimDiesel
Title: iocage-plugin-index/radarr.json at master · ix-plugin-hub/iocage-plugin-index · GitHub
-
bitblt
which in turn uses this repo:
-
bitblt
-
VimDiesel
Title: GitHub - freenas/iocage-plugin-radarr
-
crest_
the plugins are a nice idea, but they didn't invest the effort to support them
-
bitblt
and I suppose the problem in iocage upgrade is that the plugin has radarr as a dependency
-
bitblt
so as part of the upgrade process it tries to install that too
-
crest_
i would try to delete the package before the upgrade
-
crest_
either it reinstalls it or it doesn't in the later case you can reinstall it manually
-
bitblt
i don't really know how the package upgrade process happens, but I'm kinda afraid because I see that the program lives in /usr/local/radarr
-
crest_
because it looks to me like the radarr plugin only the port forwarding and runs a trivial post_install.sh script
-
crest_
-
bitblt
and its data live in /usr/local/radarr/data
-
VimDiesel
Title: iocage-plugin-radarr/post_install.sh at master · freenas/iocage-plugin-radarr · GitHub
-
crest_
take a snapshot of you jail datasets first *shurg*
-
crest_
it's already broken and if it gets worse you can go back
-
crest_
it's only a media downloader after all
-
bitblt
why do I always forget the snapshots
-
crest_
because few file systems truly support them
-
bitblt
maybe because I never lived in a powerfull fs as zfs
-
crest_
heck on real freebsd you can even create a new boot env, start it as a jail, run a system upgrade inside the jail and reboot the system into the new boot env
-
crest_
for minimal downtime upgrades
-
crest_
if fails you just boot the old boot env and try again
-
crest_
assuming you have access to the system console (e.g. ipmi, video+keyboard, serial port)
-
crest_
it doesn't help you with cheap budget hosters that don't provide a (trustworthy) way to access the system text console
-
bitblt
yes, I'm starting to see the power in all of it
-
bitblt
crest_: So I tried upgrade to 13.2-RELEASE in my bazarr jail, here is the log:
bsd.to/ctvB
-
VimDiesel
Title: dpaste/ctvB (Plain Text)
-
bitblt
crest_: update seemed to work, but the jail base does not seem to be updated?
-
crest_
when i still used truenas it had fairly good documentation on these things
-
crest_
i don't know if they maintained that quality when they moved from their own jail manager to iocage
-
bitblt
now they have nothing
-
bitblt
either where to click in the gui
-
bitblt
or an obvious pointer to the iocage upgrade
-
crest_
-
VimDiesel
Title: Jails, Plugins and Virtual Machines |
-
crest_
-
VimDiesel
Title: Jails |
-
crest_
i remember them going into more detail *sigh*
-
jimmiejaz
is it just me, or any one find it "odd" that /usr/ports/UPDATING hasn't seen an update since 20231229 ? I just check the GIT, and it's the same, or has there been nothing of note recently to add
-
voy4g3r2
jimmiejaz: they have been talking about splitting up libc and some bsdinstaller efforts.. with a sprinkle of gpart and bsd labels.. but i think it is still work in progress
-
voy4g3r2
so not surprised it has not been updated since that date
-
kevans
those are all src efforts, not ports
-
voy4g3r2
oh crap, i misread you are right kevans
-
BinGOs
maybe there are no updates that make it worth updating UPDATING
-
Demosthenex
but omg, this repo hasn't been updated in DAYS! it must be abandoned! i must complain on reddit instead of helping!
-
rwp
Demosthenex, Your comment torments me because I see that happening too often. It's satire but it is also a documentary.
-
Demosthenex
rwp: you think it's bad in a package manager? try common lisp libraries
-
Demosthenex
s/DAYS/YEARS/ fewer commits == mature, not dead.
-
Demosthenex
feel my tormet.
-
rwp
I feel it! I truly feel it. It is a shared torment.
-
Demosthenex
waaah i got an awesome os/program/library/framework for FREE! i demand premium support! i'll pay you in EXPOSURE
-
Demosthenex
gah! wait! c?! who writes in C? i demand you recode this in rust or $favnewlang asap!
-
Demosthenex
god i've done this too long. i hate modern computing
-
rwp
This code is so obsolete. No one has made a commit in the last several hours. It's obviously dead. Let me take over the project so that I can rewrite it entirely and make it into a MODERN thing with MODERN features. Let me alienate everyone else who uses it. Let me leave the project in disgust after breaking almost everything about it.
-
rwp
Just to let you know that I do feel your pain.
-
Demosthenex
OMG! it's not modern because it doesn't have a blinding white background and variable spaced fonts!
-
jimmiejaz
holy hannah, it was an observation, not a cry for help. I just don't think I've ever seen that file not updated in a couple months since.. at least 4.0 was released. But flame on, I got thick skin.
-
rwp
jimmiejaz, You did not realize it but you tripped and spilled lemon juice into our open wounds. Ouch! It's okay. It's just the state of things.
-
Demosthenex
they are delayedin their conversion of that file into git-mark-up-down-gui-font-terminaled-asciidoc!
-
Demosthenex
damn i'm salty
-
debdrup
jimmiejaz: have you noticed breaking changes, that should be in UPDATING?
-
debdrup
That's the purpose of the file, to keep track of breaking changes; if you haven't noticed any, and there's been no additions, it's possible there's been no breaking changes.
-
debdrup
It's also possible that they've gone unnoticed, but in that case it might be because something broke that nobody's using, so it's kinda hard to do anything about that when upstream doesn't supply a test harness and there's no standardized test harness.
-
crust_cheese
Hello folks
-
rtprio
hey cheezy
-
RoyalYork_
hi
-
crust_cheese
I'm in a bit of trouble, I got X11 running well on my x86 FreeBSD installation w/ KDE. I would prefer running Wayland using my AMD 5700 XT GPU, however SDDM seems to crash as soon as I log in to a Wayland session. I'm a bit stumped as to how to debug this, since KWin on Wayland doesn't write Xorg logs, nor anything else I could find. Does anyone have some pointers for me?
-
crust_cheese
Or might it be possible that SDDM with the Plasma Wayland option does not start KDE as outlined in the handbook (e.g. dbus launch --exit-with-x11 ck-launch-session startplasma-wayland)?
-
rtprio
can you try just starting wayland without the sddm
-
crust_cheese
For experiment's sake, I also tried with KDE6 - no dice unfortunately
-
Alloysious
Hi - naïve question - do AMD cpus report estimated wattage if you are not on battery/laptop hardware?
-
Alloysious
another beginner question - how can I view boot logs from a previous failed boot? eg equivalent of journalctl
-
Alloysious
or maybe... does freebsd even record logs from a boot that goes into KP before reaching login?
-
crest_
now that iX systems has given up on FreeBSD does would it be too much trolling (on top of a trademark lawsuit waiting to happen) to name the TrueNAS CORE fork TrulyFreeNAS?
-
crest_
.oO( i shouldn't switch tabs mit sentence )
-
crest_
*mid
-
crest_
gn8