-
pgib
I'm not sure if this is FreeBSD specifically, but maybe someone here can help. I have a machine with ZFS, and it's been a backup target for many years. I forget or never really knew exactly how all the files came into place (mostly a mix of rsync, and perhaps some zfs send|recv when migrating to new HW). Anyway, many of the older directories are prone to "Invalid argument" in many cases.
-
pgib
In particular, the problem seems to revolve around facls. For example, with some directories, I can `ls -l` it, but I'll get "ls: path/to/file: Invalid argument". Not fetching any acls with plain `ls` works. I cannot `getfacl`: "getfacl: www: Invalid argument", cannot setfacl. But I can `stat`. Any ideas about how to fix these directories?
-
rtprio
what's "zfs get aclmode <volume>" set to?
-
pgib
rtprio - passthrough
-
rtprio
i wondre if setting it to discard would 'fix' it
-
pgib
can give it a shot. I'm actually in the progress of trying to migrate this data to a new machine, so anything temporary is ok by me
-
rtprio
i think discard is the default, maybe it was set from a zfs recv
-
pgib
ah. I was under the impression that only impacts new files, but I might be confusing that with something else.
-
pgib
Interestingly though, everything from the last 4 years or so in the same dataset is fine, and it only affects some of the older directories :shrugs:
-
pgib
rtprio - no go on the "discard" attempt though :-(
-
rtprio
youre right, it probably does
-
rtprio
there are other acl flags you can twiddle with
-
jonusenet
hey whats the freebsd developer channel?
-
jonusenet
nevermind, #freebsd-dev
-
apteryx
kevans: actually, it's already been reported here:
freebsd/atf #26
-
VimDiesel
Title: execute_with_shell() failed on FreeBSD/MIPS with GCC 4.2.1 · Issue #26 · freebsd/atf · GitHub
-
VimDiesel
-
apteryx
the temporary string returned by atf::env::get needs to be saved to a local variable to be used later
-
kevans
oh right, because it otherwise goes out of scope and the c_str() result is invalidated
-
kevans
so is the ATF_SHELL default being substituted in there correctly, or no?
-
kevans
apteryx: bah, I thought someone had pushed our contrib/ changes back into the github repo, but apparently not
-
kevans
br@ (reporter of that issue, even) fixed this locally:
cgit.freebsd.org/src/commit/?id=c5072d5c94034
-
VimDiesel
Title: src - FreeBSD source tree
-
kevans
I'll get it pushed to freebsd/atf and see what else might be missing
-
kevans
the diff is actually larger than I expected: 41 files changed, 46 insertions(+), 32 deletions(-)
-
kevans
mostly small things
-
apteryx
OK, I had a very small fix (the same without the typo) coming as PR in case that's needed
-
apteryx
tested working
-
kevans
apteryx: this is really nitty, but can you move the `shell` declaration/definition up one line, please? I'll merge it and drop the patch in this branch that does the same
-
kevans
oh, bah, I don't think I was given access to this version of the atf repo
-
apteryx
kevans: I can do this yes
-
kevans
apteryx: thanks; I'm poking around to try and get access, but we'll get it taken care of asap
-
apteryx
-
VimDiesel
Title: debian Pastezone
-
apteryx
pkgconf question: does it behave the same as pkg-config in cross-compilation contexts?
-
kevans
apteryx: yes, perfect, thank you
-
apteryx
pr refreshed
-
Aedil
Good morning, guys.
-
tercaL
Morning
-
Aedil
I wish you fast progress for today, guys. FreeBSD 14 works good so far on my tiny virtual private server, running VMWare ESXi at my providers location.
-
V-T60
Hello
-
V-T60
Has anyone got successful experience of using net-im/py39-matrix-synapse port?
-
V-T60
I had very strange trouble on new operating system
-
kenrap
V-T60: successful experience in which way?
-
V-T60
after transfer. First the federation didn't work at all, as i understand. It was giving errors about SSL
-
V-T60
than i reached such a state that the messages via federation were successfully transmitted
-
V-T60
but nothing received back
-
V-T60
i just updated some dependencies with pip
-
V-T60
-
VimDiesel
Title: Installation - Synapse
-
kenrap
you probably should uninstall the port and install the lib through pip then
-
V-T60
Installing as a Python module from PyPI
-
kenrap
yes
-
V-T60
i did mkdir -p ~/synapse, virtualenv -p python3 ~/synapse/env, source ~/synapse/env/bin/activate, pip install --upgrade pip, pip install --upgrade setuptools
-
V-T60
and now pip install matrix-synapse is getting completed
-
V-T60
how will i use service synapse start/stop/enable though?
-
V-T60
the daemon will be unoperable (it will even get removed with the port)
-
AmyMalik
awooo
-
kenrap
howling to the moon, Amy? :P
-
V-T60
I can't remove my jail
-
V-T60
root@p5kpl-am:/usr/local/jails/containers/classic/dev # ls
-
V-T60
fd pts
-
V-T60
these two are anyway present
-
V-T60
# rm -rf fd/
-
V-T60
rm: fd/: Operation not supported
-
kenrap
chflags -R noschg fd/
-
kenrap
then remove it
-
V-T60
# chflags -R noschg dev/
-
V-T60
root@p5kpl-am:/usr/local/jails/containers/classic # rm -r dev/
-
V-T60
rm: dev/fd: Operation not supported
-
V-T60
rm: dev/pts: Operation not supported
-
V-T60
rm: dev/: Device busy
-
V-T60
isn't that the same from documentation? # chflags -R 0 /usr/local/jails/classic
-
V-T60
which didn't work
-
kenrap
Okay, well I didn't know in the advance because you didn't explain what you already did. It sounds like you need to umount those directories.
-
kenrap
Please be more specific about your problems too, we can't read your mind.
-
V-T60
oh
-
V-T60
devfs on /usr/local/jails/containers/classic/dev (devfs)
-
V-T60
when did i mount it?
-
V-T60
don't remember at all
-
msamsing
I am trying to get my ThinkPad X280 to work with HDMI. It works if I boot with the cable in. But not if I plug it in after boot. Is there any "magic trick"?
-
V-T60
i've just spinned up my brand new thick jail environment
-
V-T60
then looked inside of the /var/log
-
V-T60
ld-elf.so.1: Shared object "libssl.so.30" not found, required by "sendmail"
-
V-T60
what does this error mean? do i have to worry about it?
-
lw
V-T60: do you have /usr/lib/libssl.so.30? this should be in base, so it seems like something is wrong with the install (assuming this is base sendmail, not ports)
-
V-T60
i do have on host
-
V-T60
# ls -al /usr/lib/libssl.so.30
-
V-T60
-r--r--r-- 1 root wheel 692208 Nov 10 10:23 /usr/lib/libssl.so.30
-
lw
in the jail though?
-
V-T60
# cat /usr/lib/libssl.so
-
V-T60
/usr/lib/libssl.so /usr/lib/libssl.so.111
-
V-T60
only /usr/lib/libssl.so and /usr/lib/libssl.so.111
-
V-T60
no /usr/lib/libssl.so.30 though
-
lw
did you install a different OS version in the jail than the host?
-
V-T60
seems that no
-
V-T60
# uname -a
-
V-T60
FreeBSD matrix-synapse 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023 root⊙rnfo:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
-
V-T60
root@p5kpl-am:/var/log # uname -a
-
V-T60
FreeBSD p5kpl-am 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:57:23 UTC 2023 root⊙rnfo:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64
-
V-T60
looks more like totally same version
-
lw
what does 'file /bin/ls' say in the jail?
-
V-T60
/bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 13.2, FreeBSD-style, stripped
-
V-T60
host: # file /bin/ls
-
V-T60
/bin/ls: ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0 (1400097), FreeBSD-style, stripped
-
lw
did you install jail with bsdinstall, after upgrading host from 13 to 14? in this cases you also need to update files in ... uh, i think it's /usr/freebsd-dist, which is what bsdinstall uses
-
V-T60
so the output is different
-
V-T60
i did clean install of FreeBSD 14 yesterday in the evening
-
V-T60
there was no 13.2
-
V-T60
-
VimDiesel
Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal
-
lw
odd, but it seems like you ended up with 13 in the jail somehow anyway
-
lw
ah... did you edit the url in that fetch command to be 14.0 instead of 13.2?
-
V-T60
they recommend this way fetch
download.freebsd.org/ftp/releases/amd64/amd64/13.2-RELEASE/base.txz -o /usr/local/jails/media/13.2-RELEASE-base.txz
-
V-T60
yesterday i did, but today i didn't
-
lw
(fwiw, i don't understand why this breaks your sendmail, but i assume it's not wha you want)
-
V-T60
and it anyway updated later
-
V-T60
in the next command it got patched
-
lw
so you updated the jail to 14 after installing it?
-
V-T60
With the files copied, the next thing to do is update to the latest patch level by executing the following command:
-
V-T60
-
V-T60
# freebsd-update -b /usr/local/jails/containers/classic/ fetch install
-
V-T60
^ this command somehow took 13.2 and did 14 from it
-
V-T60
(instead of classic i just wrote my matrix-synapse, and that's all)
-
lw
that's odd, fetch + install shouldn't do a release upgrade, just upgrade to latest 13.2-pX
-
V-T60
strange, should i substitute to 14 in url?
-
V-T60
so something went wrong
-
V-T60
i should start over
-
lw
V-T60: just out of interest can you check 'file /usr/sbin/sendmail' (or it might be /usr/libexec/sendmail/sendmail) to see if that's the 13.x or 14.x version?
-
V-T60
# file /usr/libexec/sendmail/sendmail
-
V-T60
/usr/libexec/sendmail/sendmail: setgid ELF 64-bit LSB pie executable, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /libexec/ld-elf.so.1, for FreeBSD 14.0 (1400097), FreeBSD-style, stripped
-
V-T60
14.0 i guess
-
V-T60
both in host and thick jail
-
lw
that's odd, it seems like jail ended up half-upgraded somehow. i would suggest deleting it and start with 14.0 when creating the jail, but i don't know how it ended up like that
-
babz
immutable files
-
babz
(premium footgun)
-
lw
babz: but wouldn't it still have installed the new /usr/libssl.so.30 then? that didn't exist in 13 so it couldn't be immutable
-
lw
/usr/lib/libssl i mean
-
lw
hm... isn't there some weird edge case / bug where freebsd-update can install updates from the host into the jail? maybe sendmail was updated on the host... i can't remember where i saw that now
-
lw
ah i was thinking of
bugs.freebsd.org/bugzilla/show_bug.cgi?id=235318 but that's something else, probably not related
-
VimDiesel
Title: 235318 – when updating jails using -b, freebsd-update is reusing host's /var/db/freebsd-update without indication of doing so, unless explicit -d as well
-
V-T60
I fixed the issue with mentioned earlier wya
-
V-T60
way
-
lw
jbo: i can't assign sublime-music PR back to you anymore (since it was assigned away from me by triage) but based on vvd@'s comment i hope this is ready for merging now
-
V-T60
postgres:\ :lang=en_US.UTF-8:\ :setenv=LC_COLLATE=C:\ :tc=default:
-
V-T60
i will be creating such: createdb --encoding=UTF8 --locale=C --template=template0 --owner=synapse_user synapse
-
V-T60
what do i have to substitute in my system for such command?
-
V-T60
i know that it required me to set up the lang to C
-
lw
V-T60: i think what you have is correct for UTF-8 encoding / C collation. run initdb and try to start postgres, if the locale is wrong, it will produce an error
-
V-T60
remember it from before
-
V-T60
okay
-
V-T60
--locale is equal to collation?
-
lw
--locale sets all the various --lc-* options including --lc-collate
-
lw
i think --lc-collate is the only one that has to match at both initdb and runtime though because it affects how indexes are created
-
V-T60
can sysvmsg=new sysvsem=new sysvshm=new harm anything to me in /etc/jail.conf?
-
V-T60
running bootstrap script ... 2024-01-30 17:29:47.402 EET [46210] FATAL: could not create shared memory segment: Function not implemented
-
V-T60
that's what i have now
-
V-T60
won't that break another features?
-
lw
V-T60: that should be fine, i think it's only not the default because it's a fairly new feature
-
lw
used to be you had to let the jail access the global shm which is obviously much worse
-
dch
debdrup: finally got my pc migrated, running my first buildworld on it, can't get cpu temp > 86˚C so far
-
lw
dch: you're doing well, i can't get my CPU to go above ~62C in buildworld or poudriere. but i think this is because the AMD X3D CPUs just run cooler
-
dch
lw do you have that fancy AIO cooler stuff? I am using humble fans for the moment
-
dch
it's not in a case yet, just sitting on my desk.
-
lw
dch: no, just a (large) fan
-
dch
I'd move to an AIO thing if it turns out that the pc is noisy overnight, but atm it seems pretty quiet
-
dch
maybe i build my own case out of wood, all I really need is power buttons and a few more USB slots on the front
-
jbo
lw, sorry mate, I had some terrible weeks. won't be able to jump on this before weekend
-
lw
jbo: no rush at all, just wanted to mention it
-
jbo
lw, lol, I just saw that mark was not happy about me assigning the PR to you - I didn't know that :s
-
lw
jbo: i found it a bit odd but i guess it sort of makes sense if it's policy? ... but like, i could have done something about it: i could have assigned it back to you :-P
-
lw
i guess maybe the idea is that you personally don't "own" the bug and perhaps someone else could have picked it up in the mean time? although that would be odd/annoying
-
lw
(i mean, annoying for you mostly since you put all that effort into this then someone comes and take the bug out from under you)
-
jbo
they are welcome to do that - plenty of work for everybody :)
-
jbo
lw, if you want to help me out: I wanted to do this myself (because it's a minor change and easy to be handled by the committer) but you could address the requested change here:
reviews.freebsd.org/D43477
-
VimDiesel
Title: ⚙ D43477 multimedia/mediaelch: New port
-
lw
ah, i didn't know about that syntax, i can fix that
-
jbo
please be sure not to change _anything_ else in the patch if possible
-
lw
jbo: do you want me to put my branch on github or something (or even make a phab review for it) rather than submitting patches in bugzilla? i don't mind either way, just wondering if this might be easier
-
jbo
lw, nono, bugs reports via bugzilla are the way to go.
-
lw
ok
-
jbo
lw, typically I would have changed this on-the-fly without you knowing. I just was totally buried the last two weeks
-
jbo
if you can wait a few more days you can also leave it as is - makes not much more work for me
-
jbo
just in case you're bored :p
-
lw
i have nothing particular to do right now so it's np
-
lw
at least i have a proper git worktree setup now + a custom testport workflow which makes all this much easier
-
lw
no more messing with poudriere, just 'sudo testport' and it does testport, bulk, and sets up a pkg repository for the branch
-
jbo
jup, your PRs will certainly get through faster if you properly testported it and everything
-
jbo
note that committers don't do runtime tests. that is on the maintainer's plate. we only do build tests.
-
lw
yeah, i use mediaelch all the time so i'll definitely notice if it's broken
-
lw
jbo: i was testporting it before, it just took so long to commit, update poudriere branch, testport, install, test... now one command does it all
-
mp322
\
-
lw
/
-
lw
does FreeBSD have a Video4Linux compatible API for using video en/decoding hardware on GPUs?
-
lw
or can DRI do this directly
-
nimaje
hm, multimedia/ffmpeg has a V4L option, so there seems to be video4linux stuff on freebsd, but no idea what it does
-
dch
See v4l2 in ports this is how the webcam driver works for example
-
dch
can’t help much more than that sorry
-
antranigv
Anyone knows if I can make if_bridge support more than 1Gbps with a bhyve VM? the connection I'm interested in is between the Host and the Guest.
-
orbifx
antranigv, dont know but why not try?
-
antranigv
orbifx I tried, the most I can squeez is 1.8Gbps, I'd like to get much, much more.
-
meena
antranigv: that seems… bad
-
meena
what's your config look like? how are you measuring this?
-
meena
have you tried alternatives like vswitch?
-
tercaL
-
VimDiesel
Title: bhyve - Bhyve VMs network speed test: OpenBSD 3x slower than FreeBSD? | The FreeBSD Forums
-
tercaL
Yours similar results?
-
antranigv
meena wait, openvswitch works on FreeBSD?
-
meena
hrmm…
freshports.org/net/openvswitch Last update has been a while
-
VimDiesel
Title: FreshPorts -- net/openvswitch: Production quality, multilayer virtual switch
-
meena
that's not even the latest 2.x release
-
antranigv
tercaL very much so. but I haven't booted a FreeBSD guest yet.
-
antranigv
meena I can try compiling manually, that's fine.
-
antranigv
meena do you have a setup guide for OpenVSwitch?
-
meena
antranigv: nope, I've only ever used it indirectly, so, no
-
tm512
welp, it begins: unxz -c Downloads/FreeBSD-14.0-STABLE-amd64-20240125-3f2c2dda2631-266523-memstick.img.xz | dd of=/dev/sdc bs=1M
-
tm512
still not sure if I will end up going with FreeBSD on this ThinkPad long-term, but I've gotta at least see how things are working in order to make an informed decision
-
mns
That is always the best way, to try it out and see what happens
-
dautor85180
which thinkpad are you setting it up on?
-
tm512
it's a first-gen E14
-
tm512
one with an i3-10110U
-
tm512
mainly concerned about the wireless chip, which uses the apparently very much beta-quality rtw88 driver
-
dautor85180
wifi has always been pain for me on fbsd
-
antranigv
tm512 as a last resort, you can use a WiFI dongle OR a Linux VM with bridging or something
-
antranigv
but yes, the only way for me to use FreeBSD is with Ethernet.
-
tm512
I'm also a little bit concerned about sleep states, which on FreeBSD has driven me to OpenBSD in the past
-
tm512
this was like FreeBSD 9.x though
-
tm512
antranigv: I'm aware of wifibox, which I might end up going for. bit annoying, but it sounds like it works fine
-
antranigv
tm512 I've been pretty lucky with Sleep states! all my FreeBSD support never had any issue.
-
antranigv
FreeBSD laptops*
-
tm512
I suspect I won't have to rely on wifibox permanently, since this wifi chip does have a driver in the kernel already, just sounds like it needs more time in the oven
-
tm512
for some reason this laptop kinda smells like mushrooms. really curious how it was stored
-
tm512
hoping it airs out sooner rather than later
-
tm512
nice, rtw88 loads, it also appears like the bluetooth radio on this realtek chip attaches as ubt0
-
tm512
bluetooth radio connects separately from the wifi (USB vs PCIe) so even if I have to resort to passing through the wifi to a Linux VM, seems like FreeBSD will still have unrestricted access to bluetooth
-
sixpiece
make: "/usr/ports/Mk/bsd.port.mk" line 1204: UNAME_r (14.0-RELEASE-p3) and OSVERSION (1302001) do not agree on major version number.
-
sixpiece
I might be solving this issue so ignore the question for now
-
sixpiece
ok problem is persisting
-
deever
-
VimDiesel
Title: Mozilla Community Pastebin/preuMHCB (C)
-
sixpiece
Users can set CRYPTOGRAPHY_OPENSSL_NO_LEGACY environment variable
-
sixpiece
how do I set the environment variable on cryptography open ssl?
-
tm512
looking through dmesg from the live USB, and noticed a couple things that I'm a bit concerned about. only the touchpad (not the trackpoint) seems to be detected, and for the touchpad it uses the psm driver which it says is giant locked and might be removed in FreeBSD 15
-
tm512
doesn't the giant lock basically remove all concurrency in the kernel while it's active?
-
tm512
the keyboard seems to be giant locked as well