-
tm512
so I'm back to trying to troubleshoot this issue with vt not displaying on amdgpu with drm-61-kmod
-
tm512
in dmesg, I am seeing: fbd0: not attached to vt(4) console; another device has precedence (err=17)
-
tm512
does anyone have any idea what is causing this? there's only one GPU in this laptop
-
tm512
it sounds like support for drm-510-kmod on the FreeBSD 14 series is going to go away sooner or later, even though that's the only driver that has properly worked so far :/
-
tm512
guess I could retry 515 at this point, see if these kernel panics were addressed in the last 7mo. I had meant to send in an issue regarding it, but since everything was working on 510 I just never got around to it (515 was causing page faults in the rcu subsystem, iirc)
-
rwp
For me 510 was causing frequent freezes. So far it has been 48 hours with 61 and I haven't noticed a freeze so looking good so far!
-
ober
515 has been solid for me on 14.1
-
tm512
this particular laptop has like a raven 2 or picasso iGPU in it. I think like Vega 8 or something?
-
tm512
it seems like the "another device has precedence" error message I'm getting is from drm-kmod itself
-
rwp
Sorry. I said 510 but I think it was actually 515 that I had the problem with. In any case it seems it was this problem:
freebsd/drm-kmod #302
-
tm512
rwp: hrm, with 515 I wasn't noticing performance issues, just after a couple of hours of web browsing (usually with a youtube vid playing), the system would randomly panic. it'd be locked up for like 5-10 seconds with the last chunk of the audio buffer playing repeatedly, I guess the delay was for writing out a core dump or something
-
tm512
but after that the system would automatically reboot
-
tm512
I'm wondering if it's this issue this person is having:
freebsd/drm-kmod #287
-
tm512
they never came back with a crash log or backtrace
-
rwp
I will be happy then that I only had freezes/pauses because that's a lot better than having a crash. I never had a crash out of it.
-
darwin
if I want global shell aliases (all shells) & functions (for shells that can) is it best put them in something such as /usr/local/etc/profile.d/aliases.sh ?
-
darwin
(functions would be separate file)
-
rwp
Personally I think that if possible that instead I would install an external program in /usr/local/bin/ as more universal. As long as it isn't a chdir or similar.
-
rwp
If you examine /etc/profile which I assume you have then you know all that you need to know to do this. A file there seems sufficient for all shells that read /etc/profile
-
darwin
one PC said "'pkg: No SRV record found for the repo 'FreeBSD'. pkg: An error occured while fetching package. Unable to update repository FreeBSD. Error updating repositories!'". The other upgraded. They're on same local area network (LAN)
-
rtprio
rwp: yeah, 'all shells' makes that a bit more complex
-
rwp
Yes. All shells... sh, ksh, mksh, pdksh, zsh, fish, bash, csh, tcsh, and I am sure I have offended someone for leaving out their favorite shell.
-
rwp
Also when that's done to me I feel it is too invasive. I then add stuff to my .profile to remove and undo what has been forced upon me.
-
rwp
darwin, Seems like a DNS lookup glitch of some sort. Since one worked and the other did not work. Which of course makes me suspect that your DNS server an MS-Server nameserver?
-
darwin
i don't have a DNS server and don't use MS
-
darwin
i use my ISP's settings in router and identical /etc/resolv.conf
-
rwp
In any case you can look up the DNS record yourself to verify the DNS operation. pkg.FreeBSD.org
-
rwp
Everyone has a favorite way to do a DNS lookup. Mine is "host pkg.FreeBSD.org".
-
rwp
It will use the first nameserver declared in the /etc/resolv.conf file.
-
darwin
yeah, it didn't find it on the particular one that couldn't upgrade
-
rwp
It would probably work if tried again I am guessing. Probably a transient glitch failure. Gremlins!
-
darwin
i tried many times. I'll reboot
-
darwin
this time worked
-
ober
does qemu on freebsd support vmm for acceleration? it just lists tsc for accel
-
llua
does that not answer the question?
-
kevans
yeah, it does not
-
kevans
a colleague was working on it in his spare time, but I don't know exactly how far he got / if he has any interest in continuing that
-
ober
cccccchchlkghrbjhcknfkvuvgibehtfbhhhneifhhul
-
» ober moves yubikey to other side of laptop
-
mzar
hello, is pam_gnome_keyring.so working as expected for you ?
-
mzar
it looks to me like we have regression with pam_gnome_keyring.so and virtual_oss
-
mzar
*regressions
-
dch
-
dch
jauntyd: ^
-
drobban
dch: read about that tool a while ago, looks very interesting. Have you tested it?
-
dch
drobban: yup, I wrote the docs for it & use it too.
-
xxy
how to set specific fonts with command, i have known "fc-list"
-
drobban
dch: nice! I have been curious to test it out. Now when I know you have been involved in the documentation I might find the courage to test it then :P
-
luciusf
Yesterday I tried encrypted zfs root with raidz2 in a VM (14.1 disc1 install on libvirt with uefi and virtio discs). All went fine, but after a `freebsd-update fetch install` upgrade, it failed to boot. It seemingly could decrypt all disks.
-
luciusf
Looking around, I came across issue 263171[*], and am now wondering, if I should dig into the issue I encountered any further, or if encrypted root is just not fully recommended atm. (the handbook doesn't seem to go into detail, just mentions the feature in the installer).
-
luciusf
-
luciusf
Is there consensus on wether encrypted zfs root should work(tm), or is it even considered experimental?
-
cedb
doesnt the official installer provide that option?
-
armin
luciusf: that totally should work, people use that since many years on their laptops.
-
luciusf
armin: ok, thanks for the info! - I just wanted to have that question out of the way, before I invest too much time
-
luciusf
cedb: indeed it does, quite conveniently tbh.
-
cedb
i mean isnt encryption at rest mostly for if someone gains physical access?
-
armin
luciusf: Yeah I mean it usually does just the right thing, what's not working for your?
-
luciusf
armin: I am already retrying the setup, to get more data and will try to reproduce the issue
-
cedb
luciusf: legitimate question btw, as in not rethorical
-
luciusf
cedb: that is correct. and the fact that freebsd offers this so conveniently, was the fact to consider it for a server in a remote location where I couldn't fully control who would have physical access.
-
luciusf
cedb: I just started with an experimental setup with VMs, when I encountered this issue
-
luciusf
But thank you all for the quick response and pointer - that was already quite helpful!
-
nimaje
keep in mind that disk encryption doesn't really protect the data while the system is running (I think that is pretty much impossible)
-
xxy
after installing zh-CJKUnifonts fonts, how to make it effect,
-
nimaje
depends on your setup; vt? xorg? some wayland compositor? hm, I think qt and gtk do their own stuff too
-
luciusf
nimaje: yes, data in use .. but my thread model is rather harmless. The disk encryption just serves as a precaution. The remote location is a family place. But remote nevertheless :)
-
mane
my pf.rules stopped loading automatically when i've upgraded to 14.1 from 14.0 today
-
mane
i need to load them with pfctl
-
oprs
I had this issue once, in my case it was due to an openvpn tunnel taking forever to come up
-
oprs
so pf_start (/etc/rc.d/pf) was called before openssl's tun0 interface was created
-
oprs
not sure if that can help, but probably worth checking
-
oprs
(and of course I had rules on tun0 in /etc/pf.conf)
-
GreenShield
I've picked up two VPS recently that use fe80::1 as the Ipv6 gateway address...anyone share ideas on getting FBSD to work?
-
ei
GreenShield: something like "route -6 add fe80::1%em1 -interface em1" then "route -6 add default fe80::1%em1" ? Have auto_linklocal on interface and should work as is, at least it does on -CURRENT after some commit (was MFC'ed to 14 too I guess?)
-
GreenShield
ei: Thanks...let me try that variation.
-
CrtxReavr
oprs, does fe80::1 work as a default router? Can you 'ping6 trioptimum.com'?
-
GreenShield
CrtxReavr: Not currently, pings and other outbound traffic don't even appear in TCPdump...odd
-
GreenShield
I've passed the No Route error, so we're making progress
-
CrtxReavr
Can you pastebin your 'ifconfig' and 'netstat -rn' output?
-
luciusf
armin: I tracked it down to the disks not being marked as boot discs in libvirt. If less than two discs aren't marked as boot disc, the system won't start
-
luciusf
armin: Oddly, if I remove the first disc (in a four disc raidz2 setup) everything brakes. My expectation would have been, that the whole encrypted system is still resilient enough to survive two disc failures, no matter which discs those were
-
GreenShield
CrtxReavr: ei: I've gotten it to work, removed the rc.conf settings and set everything manually...seems to ping now.
-
GreenShield
Thanks for the assist
-
ivy
has anyone managed to get SMART disk temperatures from freebsd into prometheus, and if so, how did you do it?
-
ei
GreenShield: enjoy ur modern end-to-end Internet <3
-
GreenShield
ei: HA...thanks for the tip...u'r settings worked. Now to figure out how to get them back into rc.conf
-
ei
ipv6_static_routes in rc.conf(5) iirc
-
ei
and for ipv6 is "ipv6_defaultrouter" for default route
-
GreenShield
Great...let me see what I can break. :)
-
mane
oprs: i run openvpn, this might be it
-
armin
luciusf: Oh wow, that sounds intense
-
luciusf
armin: the weird thing is, that with bios legacy it seems to be the opposite. Whenever disc1 is one of the two marked boot discs, the decrypt and subsequent boot would fail
-
armin
luciusf: Well yes THAT is something I do remember, that I had to switch between BIOS and UEFI boot somewhere in order to make it work. Quite frankly, I did *not* fully understand the root cause either.
-
luciusf
armin: this behaviour might also be because of libvirt, but so far, encrypted zfs root doesn't seem to be as straightforward, as I expected it to be
-
armin
I just fell in love with this little piece of software here:
fastestcode.org/emwm.html
-
luciusf
armin: but I gladly admit, that I always had problems understanding the boot process in it's entirety
-
armin
A completely oldschool window manager that looks absolutely terrible and does not have much functionality.
-
armin
Exactly what I wanted.
-
armin
That thing is fantastic.
-
|cos|
speaking of libvirt. do people actually run it? with virtbhyved?
-
|cos|
i'm asking because it seems to not pick up the configuration changes i make, and installed documentation appears to be linux specific.
-
jbo
any awk/sed pros around that like to teach a newbie?
-
rwp
dch, Uh, okay, but I see no change in this file that I was commenting upon:
github.com/KlaraSystems/sync-be/blob/main/sync-be
-
CrtxReavr
There's #awk & #sed specific channels.
-
jbo
ah neat - thanks!
-
rwp
Also it's always better that if you have a question you just ask the question. Then if someone knows something they might answer it.
-
rwp
Q: How do I print the 3rd column from a file? A: awk '{print$3}' And that type of thing.
-
ivy
Q: how do i implement Tower of Hanoi in sed? please keep you answer to a single line
-
CrtxReavr
rwp, cut(1) might be the better tool for that.
-
CrtxReavr
Though it depends on the file, really.
-
CrtxReavr
ivy, perl can do that in what looks like a few bytes of line noise.
-
ivy
CrtxReavr: okay, please include the complete C source code for perl in your answer
-
rwp
CrtxReavr, This is one of those things where there is overlap of functionality but awk is almost always the better tool than cut.
-
ivy
the only time i'd use cut is if i want to split at specific characters
-
ivy
for fielding splitting, awk is nearly always easier
-
rwp
It's a philosophy of design that makes them be different directions of thought though.
-
ivy
s/fielding/field
-
CrtxReavr
rwp, not when the field delimiters are set, vs. a mix of ambiguous whitespace.
-
rwp
We can just disagree here. But awk is designed for random whitespace. The cut, paste, join commands are designed for TAB delimited files, something rarely seen today.
-
ivy
rwp: don't forget col
-
CrtxReavr
Um. .. the -d option lets you specify the delimter.
-
rwp
And also col too. I had forgotten about it.
-
rwp
But using awk I didn't need to specify a delimiter.
-
ivy
wait i mean column not col. i always get those two confused
-
ivy
yes but column is nice to put at the end of your pipe to make it readable
-
rwp
There is also pr which can emit nice columns of data for human reading too.
-
ivy
(e.g.: column -ts: /etc/passwd)
-
rwp
I like perl but awk is both posix standard and also included in base whereas perl is in ports. So while I love perl for something like that I would choose awk for the portability and always available nature of it.
-
ivy
i try to avoid installing perl nowadays but so many things still depend on it...
-
CrtxReavr
awk is a crazy powerful tool. . . but its synatx looks like ass, soI avoid it when it's unnecessary.
-
rwp
Compared to sed's Turing complete language awk is very readable. :-)
-
ivy
awk is quite readable as long as you use newlines properly
-
ivy
more than perl, imo, although perl is certainly more powerful
-
CrtxReavr
Well, that's always been perl's biggest weakness, is that it's just too free-form.
-
rwp
I had to look up the pr options but try this for fun "echo * | tr ' ' '\n' | pr -2 -t -l1" Ha! Who needs ls? :-)
-
CrtxReavr
Reading other peoples' perl is just excruciating.
-
rwp
"Reading other peoples' /code/ is just excruciating." There! FTFY! :-)
-
CrtxReavr
Case in point:
bpa.st/X67Q
-
rwp
Clearly that is intentionally designed to be the way that it is formatted. That hardly counts.
-
CrtxReavr
In this case, yes. . . but I've inherited perl that I was expected to make modificaitons too. . .
-
CrtxReavr
And it "worked," but I couldn't make heads or tails of it.
-
CrtxReavr
That's one thing I really like about Python. . .
-
CrtxReavr
YOu can use shitty variable and class names. .. but it has a minimum level of enforced syntax.
-
» rwp avoids ranting about awful python, must resist...
-
CrtxReavr
You clearly ascribe to a lot of religous dogma.
-
rwp
Sigh. Okay. My impression of almost all python programs is a long two page backtrace when there is a slight breeze that has blown it over. MOST python PROGRAMMERS write terrible python code.
-
dch
rwp: the readme's updated
github.com/KlaraSystems/sync-be if you're missing something specific from the (very short) script then add an issue
-
CrtxReavr
So. . . when I "code," I do bourne shell and Python. . . but I woudln't call myself a "software developer" or programmer. . . I'm a sysadmin & netadmin that automates stuff with scripts. . . and I'm good at it.
-
CrtxReavr
Python is one of those things that brought "programming" to the masses.
-
rwp
dch, I see now that you updated the project README file but of course I went directly to the script and in the script there is no comment giving any clue about what its intentions. I can read the script itself and then try to deduce its purpose but at that point I lose interest in it pretty quickly.
-
CrtxReavr
IT allows people to write "bad" code, where maybe no code at all would have been written.
-
rwp
dch, Also in order to submit a Github issue I would need to create a Github account. I have resisted doing that for so many years that I ask myself if this is the one item that would push me over the edge to do it? Not yet. Sorry.
-
dch
well, I spent about 3h writing docs based on an adhoc comment in an irc repo
-
ivy
nice how mgmt/smartctl_exporter doesn't come with a configuration file or any pointers on how to use it
-
ivy
s/mgmt/net-mgmt
-
dch
I always wanted to write some notes for it, just never got quite enough .. momentum
-
rwp
dch, I do appreciate the updated README file. That's significantly nicer than it was before.
-
dch
sigh.. irc repo... I am too tired to computer
-
rwp
It's nearing the end of your day. It's the beginning of mine. However my days are always upside down. I wake up tire and go to bed wide awake.
-
rwp
Gah! *I wake up tired and go to bed wide awake. My brain is still not awake yet! Time to go make some caffeine.
-
CrtxReavr
rwp, BTW. . . I once tried chase down a perl linter or auto-formatter tha would help me decipher that script I pasted earlier. . . I didn't get far. Seems perl developers either don't care that other peoples' perl looks like ass or have just become used to the abuse.
-
ivy
hmm also it doesn't work, only picks up ada0 and ada1, none of my da* devices
-
ivy
oh, smartctl_exporter_devices
-
rwp
CrtxReavr, Well, I am one of "those emacs people" and so I just have emacs reformat code for me and that's the main tool I would use for reformatting things. (shrug)
-
ivy
no, that's not it. what's going on here
-
CrtxReavr
rwp, reformat that script for me then, please.
-
rwp
But obfuscated code is intentionally using obscure features in order to attain a visual effect.
-
rwp
I really don't want to spend more time on it. It's a clever rendering. I looked at it enough to see it. And to see that it is an obscured program. That's as much time as I want to spend on it.
-
ivy
oh this would explain it: root 85379 0.0 0.1 1268016 17108 - I 18:24 0:00.06 /usr/local/libexec/smartctl_exporter --web.listen-address=:9633 --smartctl.device=/dev/ada0 --smartctl.device=/dev/ada1 --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/ --smartctl.device=/dev/
-
ivy
hahahah
-
ivy
the rc script is broken because it uses 'cut', it should use 'awk' instead. yay awk
-
ivy
how timely
-
CrtxReavr
rwp, I thought you said emacs could remformat it in a canonical way?
-
CrtxReavr
That script does work, it's just slow AF:
bpa.st/X26Q
-
rwp
I said I use emacs to reformat code, code that the programmer intended not to be obscured. Reformatting code that is intended to be obscured will not make the intent of the code clear.
-
CrtxReavr
That's a huge dodge.
-
rwp
Sure. I am dodging. Why shouldn't I? What's in it for me?
-
hjf
mystery solved!!!
-
rwp
hjf, What was the solution?
-
hjf
-
hjf
i was using /dev/cuaUn instead of /dev/ttyUn
-
CrtxReavr
I just thought you could do me the favor of auto-reformatting it for them. . . then I could actaully begin to parse the code, pieck apart its elements, give it better variable names, etc.
-
hjf
i could swear there was no /dev/ttyUn device
-
hjf
but i'm sure i'm just stupid
-
CrtxReavr
Some things come and go as various devices are attached, detacted, various drivers loaded, etc.
-
rwp
So it was a /etc/ttys selection problem?
-
rwp
The serial port selected wasn't listed as a secure terminal line? And switching to one that is marked as secure solved it?
-
rwp
I would have expected that if it was not marked as secure that there would have been an error printed to that effect rather than it simply hanging though.
-
ivy
rwp: wasn't the issue using a cua device instead of a tty device?
-
ivy
cua is for outbound connections, tty is for inbound
-
rwp
ivy, I thought the issue was that sh and sudo and several other commands all hung until Control-C when attempted.
-
ivy
right, but user just said: [#freebsd] <hjf> i was using /dev/cuaUn instead of /dev/ttyUn
-
ivy
so device name mismatch rather than secure/insecure issue
-
ivy
(as in, putting /dev/cuaX in /etc/ttys is probably going to cause issues like that)
-
hjf
rwp: no, it was secure too at some point during my tests
-
hjf
i suppose freebsd treats cua different from tty
-
hjf
-
hjf
you know what time it is?
-
CrtxReavr
Fri Oct 11 13:42:01 EDT 2024
-
ivy
-
rwp
hjf, What are you using to clean those keycaps? A retrobright type solution I presume?
-
rtprio
christ that drive was hot
-
ivy
rtprio: the blue line is the CPU
-
rtprio
bah
-
ivy
although technically, i think the datasheet on these disks says they're fine up to 60C :-P
-
ivy
not that i'd want to run them that hot
-
rwp
Are the ada0 side of the drives pre-heating the air for the da4 and da3 drives which are much warmer? :-)
-
rwp
The color scale is hard to match to individual drives so that was my best color matching guess there.
-
ivy
rwp: those are SSDs, i guess they generate less heat
-
hjf
rwp: yes "retrobright", just pool-grade peroxide
-
ivy
they actually have no cooling at all, the da* disks have two 140mm fans blowing directly onto them...
-
ivy
i think da3 (the hot one) is sitting at the very bottom of the case and is not quite aligned with the fans, i should probably fix that
-
rwp
It's still within reasonable limits okay. But cooler is always better.
-
ivy
yeah, i'm happy with <= 40C but finding this sort of issue is why i set up the monitoring
-
hjf
welp, that CH340 based serial port adapter i bought seems to have died
-
ivy
i mean even if it's within limits, more heat probably = lower mtbf
-
hjf
the UPS refused to connect to it. terminal works. i think the ups uses signaling on pins other than TX/RX
-
hjf
so some of the other RS232 pins may have died
-
ivy
on the subject of graphs i also found a nice way to graph load average:
le-fay.org/tmp/30d/load.png - the red line is 15 minute average, the shaded area is 1 minute load average
-
ivy
(yes, the legends are unhelpful)
-
rwp
hjf, I doubt "RS232 pins may have died" but expect that there is a handshake protocol error from the UPS. The UPS may be expecting a 3-wire no handshake at all. Or the reverse.
-
rwp
Time for lunch here.
-
hjf
rwp: this retrobright turned amazing
-
goonmorning
hello I need some help for some vnet networking
-
goonmorning
should i go to ask here or networking
-
rtprio
you can ask here
-
goonmorning
I have three IPs: Two for fib0(by aliasing 2nd IP), and the last IP to the fib1. I have so two nics and this second nic of the last IP to be used for my vnet jails.
-
goonmorning
For fib 1, I bridged with the external interface and a couple of epair, membered.
-
goonmorning
I see my vnet jails can pinging each other but it cannot get any internet access. I left them plain. no pf*. I believe it is due to my lack of knowledge in either such a configuration or in general networking(or both).
-
goonmorning
I enjoyed jail, enough. I need to get back to my development. It is time to get some help.
-
goonmorning
it is a vm(ec2) by the way
-
rwp
You don't have any pf rules for forwarding installed?
-
goonmorning
not enabled
-
rwp
Then no packets will be forwarded. You will need to add a forwarding rule. Most typically at NAT rule.
-
rwp
Example of one: nat on $ext_if inet from $int_if:network to any -> ($ext_if:0)
-
rwp
You will want more in the file too but I wanted to point you to where you needed to look at adding specifically.
-
goonmorning
-
rwp
Without looking at it longer than just that amount of time, yes.
-
rwp
Here is the actual file I am using at this moment.
paste.debian.net/plain/1332033
-
rwp
And with that I am afk again for another bit. Good luck!
-
goonmorning
thx
-
tuaris
I'm tray to track down file activity. `gstat -ac` shows me the IO per device, but I want to know which files or paths are seeing the most IO. Is this possible?
-
-
jauntyd
nice. i use poweredge too! :D
-
jauntyd
i wonder exactly how many they have hmm
-
tuaris
-
goonmorning
what should I see in a pflog if a nat configuration works fine
-
ivy
goonmorning: nothing, unless you specifically added 'log' to some rules
-
goonmorning
i did
-
ivy
well, then the answer depends on what you added 'log' to
-
ivy
... and you can find the answer by running 'tcpdump -nei pflog0'
-
goonmorning
for nat
-
goonmorning
that's the question