00:10:00 how do i prevent x from loading at start 00:10:22 i made a mistake with my configuration and im getting a black screen 00:10:31 i am unable to change to another tty 00:10:48 ctl f1 or ctl alt f1 does nothing 00:11:03 i’ve tried all the function keys 00:11:33 Boot Environments. FTW! Boot to a previous boot environment. Mount the default one. Fix it. Boot back to the default one. 00:12:19 how do i do that? 00:12:40 https://wiki.freebsd.org/BootEnvironments 00:12:41 Title: BootEnvironments - FreeBSD Wiki 00:13:32 At the boot screen there will be a menu of actions. Instead of booting directly select the boot environments entry (I forget the wording) and select a previous boot environment. 00:13:52 Boot. Then use "bectl mount default /mnt" to mount the default boot environment on /mnt. 00:14:11 Then edit files in /mnt/boot/loader.conf or /mnt/etc/rc.conf as needed to repair the problem. 00:14:34 "bectl umount default" to unmount it. Then "shutdown -r now" to reboot normally back to your default environment. FTW! 00:15:29 This does require ZFS. If you installed using UFS instead then this won't work. In that case boot the install disk, select a shell, mount the drive, and do basically the same thing that way. 00:34:00 i guess they left, but an easier way might be to just boot -s and disable whichever rc script starts the X dm 00:34:38 rwp: btw, since you seemed interested in my ZFS problem the other day... after the system rebooted the problem vanished. which is nice, i guess, but makes me suspicious there's some other problem that will make it recur later. 00:34:50 i did run a memtest86+ and it found no problems 00:49:47 hi, my desktop fan goes on for 1 seconds and then goes off, and it is like that all time 00:49:54 any ideas on why that could be happening? 00:53:11 uskerine_: since FreeBSD doesn't usually control fan speed by default, my first thought would be incorrect fan speed control settings in firmware. e.g. if the temperature fluctuates around 50C, and the fans are configured to go from 10% to 50% at 50C 00:54:54 (temperature goes to 50C, fan goes on, increase airflow reduces temperature to 49C, fan goes off again) 01:03:02 ok thanks 01:03:14 how can I change that? 01:03:16 BIOS? 01:03:34 BIOs/UEFI, yes, at least on most systems i've used 01:03:44 next time I shutdown I will check 01:03:45 thanks 01:03:51 it is really annoying 01:04:42 in the mean time, you could use something like 'sysctl dev.cpu.0.temperature' or htop (which can display CPU temperature in real time) to see if there is a particular temperature that triggers the fan to come on 01:04:59 enabling powerd (if you aren't already using it) might also help to scale down CPU frequency when idle 01:05:34 or it might be something completely unrelated... but this is at least the first thing i'd check in this situation 01:45:56 ooi, does anyone run -STABLE in production nowadays? i remember back in 3.x/4.x that was the normal way to do it, but it seems like the releng branches are preferred now 02:08:11 ISTR one regular mentioned using -STABLE as their daily driver. 02:10:50 (I prefer -RELEASE because of freebsd-update. Back in the 4.x days there was no way other than building from sources.) 02:29:01 I definitely daily drove -STABLE back when I last used freebsd on desktop 02:37:43 the only systems I have now are -RELEASE, but I still build from source, because sooner or later I'll have to backport a patch (most recently: D41330) 02:40:07 which also lets me enable extra hardening (full relro, kernel retpoline), disable stuff I don't need (e.g. krb5), and compile for newer CPUs (because why not?) 02:42:34 uskerine_, (unixwitch), +1 for powerdxx (plus plus) but -1 for powerd which does not function sufficiently on my system. But powerdxx works great. 02:53:24 VVD: on the off-chance you remember my 10GbE link issue from the other day, i moved the system closer to the switch and connected it with a Cat6 patch cable, and now the 10G link comes up fine. so i guess the problem is with the cable, but it seems odd for a cable to work at 1G and not 10GE... i don't suppose you have any ideas what might be wrong with the other cable? 02:54:20 unixwitch, check standard for cables different cats 02:54:38 supported frequency 02:55:02 it's Cat6A STP, should be fine for 10GE 02:55:11 the working cable isn't even 6A, just 6 (but it's also a bit shorter) 02:55:27 unixwitch, I could see a shorter better cable working for 10 GHz and a longer not so good cable not working at 10 but working okay at 1 GHz. 02:56:11 rwp: yeah, that's reasonable, but the 'long' cable is only ~20 metres, it should be well within spec (10GBASE-T over Cat6A is rated for 100m) 02:56:23 It's amazing to me that things work in the Giga Hz range at all. It's all electro-magic up in those frequencies. 02:56:32 maybe that cable is just bad, i could climb into the attic and replace it... 02:56:36 https://en.wikipedia.org/wiki/Twisted_pair 02:56:37 Title: Twisted pair - Wikipedia 02:56:42 > Building infrastructure 02:57:13 Cat 6 - 250 MHz 02:57:15 It might also depend upon the port on the switch. If those drivers have been damaged with an ESD in the past. If the connector on the RJ-45 socket was perfect or if it had some lint caught in it. 02:57:17 VVD: yeah, that page says Cat6A STP is rated for 100m at 10GBASE-T 02:57:22 so the cable is fine by spec 02:57:22 Cat 6A - 500 MHz 02:57:35 "Improved standards, tested to 500 MHz. Full 100 m distance at 10GBASE-T ISO/IEC 11801 2nd Ed. Am. 2. (2008), ANSI/TIA-568-C.1 (2009)" 02:58:50 unixwitch, Regarding your zfs problem that disappeared after a reboot, well, I guess I would still take it as a win. What controller are you using? I noticed the /dev/da0 name so should I assume a serious controller like an LSI2008 or something? 02:58:51 rwp: pretty sure it's not the switch, i tried two different copper ports and also a 10GBASE-T SFP+ i had spare which had the same behaviour 02:59:10 the working cable is fine in the same port 03:00:47 It could also be the end on the cable too. Just a not-perfect crimp might cause it not to be great at that point. Or it might have a damaged section in the cable at just a bad harmonic distance from an end which affects things badly on one of the twisted pairs. It only takes one bad twisted pair to prevent the full speed from working. 03:01:23 yeah, i already recrimped the socket end, i guess i'll try redoing the patch panel end as well 03:01:57 if i do have to climb into the attic i might just replace the entire cable with 10GBASE-LR, i hate this copper 10GE anyway 03:03:55 or maybe 10GBASE-SR, idk if anyone makes PCIe NICs with LR SFPs in 03:25:01 rwp: yeah, it's a bog-standard 2-port LSI: mps0: port 0xf000-0xf0ff mem 0xfbbc0000-0xfbbc3fff,0xfbb80000-0xfbbbffff irq 24 at device 0.0 on pci1 03:26:49 although i don't have a proper backplane so it's using SFF-8087 to 4x SFF-8482 breakout cables 03:27:48 Sounds good to me though. Those work really well. I basically have three of those myself. 03:27:52 mpsutils says: Board Name: SAS9211-8i 03:28:08 yeah, i've been using mpt/mps controllers since the days of the old Sun X4xxx systems and they've always been great 03:28:53 except for one weird bug we had in the Solaris driver back in the day... but i had a chat with the driver developer on IRC and got a fixed version the same week, which was pretty neat. i miss opensolaris :-( 03:30:07 I'll just note that they get quite hot. I have made some fan ducting to make sure the heat sink on mine gets airflow. Otherwise they get so hot I worry they will cook off. 03:31:06 the PCIe slots here are packed pretty tight, there's an Intel X540-AT2 (10GbE copper NIC), this card, and a graphics cards (just a basic PCIe x1 VGA card) all next to each other... but the case does have pretty decent airflow and all the reported temps seem okay 03:32:48 I noticed it early on setting them up. My finger felt like it got burned when I touched it! After that I always improved the airflow on it. I added a fan on it for one and I made a ducted air tube from a fan on the other one. 03:33:24 With a little airflow directly on it though the temperature noted by my finger seems to be just fine. 03:36:09 actually i found an older photo of the layout and it's not as bad as i thought https://i.imgur.com/Nc30765.jpeg 03:36:47 i really hate how PCIe-starved these AM4 boards are 03:37:38 i should replace it with a proper threadripper/epyc/something one day 03:37:44 Looks like the cpu cooler fan will swirl air around it. 03:38:30 I need to shop for two motherboards to replace two aging and partially failing motherboards that I am using. One has a failed dimm socket reducing memory by half. 03:38:49 yeah, the CPU cooler is oriented very weirdly, but it flows bottom to top so it should pull air from the PCIe cards through the top of the case 03:39:13 rather than pushing the CPU's hot air onto the cards which wouldn't be ideal 03:39:40 i wanted to put the VGA card in the bottom x1 slot but it didn't work there, it only works in this slot. why? who knows. 03:39:55 If you reach in there and put your finger on the SAS/SATA controller hit sink and find you can't keep it there for it burning your skin then you might consider adding a fan on it. But if it feels cool enough to you then it is good enough as it is and don't worry about it. 03:40:21 i might check that tomorrow 03:41:44 I don't care about looks but only functionality and no one can see in my case anyway so I have literally taken a bit of string and tied a fan into place on systems as needed. Around the disk controller as we are discussing. Around disk drives that needed more airflow. I mostly use 120mm fans that are pretty quiet so the extra fan does not add appreciably to the noise level but still moves a lot of air. 03:42:59 this case does have a clear panel on the side but only because it was the only full tower case i could find at a reasonable price with a decent number of 3.5" slots (9!). i've been thinking i should at least add another fan at the back at some point 03:44:07 the airflow from the front goes straight over the disks so their temps seem okay 03:44:20 I wish I could find a decent deskside case with that many 3.5 inch slots! Four is about the normal and it is really very difficult to locate one with more. There are two home NAS cases that keep popping up for reviews but only one is available and the other is $300. 03:44:31 # smartctl -x /dev/da0|grep Temp 03:44:31 Current Drive Temperature: 36 C 03:44:31 Drive Trip Temperature: 40 C 03:44:41 I eventually gave up and bought rack mount cases. I have been using them ever since. 03:45:29 rwp: this is a Corsair Obsidian 750D (https://www.corsair.com/uk/en/p/pc-cases/cc-9011078-ww/obsidian-series-750d-airflow-edition-full-tower-atx-case-cc-9011078-ww) - if you can live with the clear side panel it's actually not a bad case for the price. but you will need to buy some extra 3.5" cages because it only comes with 2 by default (3 disks per cage, so you need 3 for 9 disks) 03:46:06 also the plastic disk brackets are super cheap and break if you look at them wrong, but you can buy more of those 03:47:03 That appears to me to have three front side accessible 3.5 inch bays that someone could install up to 3 hot swap cages. 03:47:44 Oh! I guess there are 6 more inside mounted sideways. That would be okay. 03:48:17 it looks like this: https://i.imgur.com/wlcROjD.jpeg - except imagine the third disk bay is on top of the other day, that's how i have it configured 03:48:26 s/other day/other two/ (wtf) 03:48:51 according to the manual that's not a supported configuration but it's obviously meant to work this way, there are slots at the top to hold all 3 cages securely 03:49:55 (when i had it configured like in that photo, the disks in the third cage got very hot, since as you can see there's not much airflow over them down there) 03:50:37 and yes, re: front bays, i have an Icy cage with 4x 2.5" bays that i use for my SSDs. you could fit up to 3 of those if you wanted 03:50:56 That looks pretty good. Looks like all of the drives would have solid power and connections. Looks like reasonable airflow, though the drives are planar in the wrong direction for great air flow across them. But your data shows they are good enough. 03:51:48 I would definitely tie fans on with twine if needed! :-) 03:52:19 rwp: disk data+power looks like this: https://i.imgur.com/iN2dIYB.jpeg (except i have 8 disks now, and they're all in a single vertical column). lots of places to tie down cables at the back side which is nice. 03:52:58 those blue cables are the SFF-8087 breakouts 03:54:47 I think it looks good. Dust and spider webs aside. I can't throw stones on that either though. Looks like as good of a case as you could find for it today. Lots of space and lots of airflow. Good! 03:55:27 i did ask Noctua support about having two fans blowing over 8 disks in that configuration and they said it would be fine, fwiw 03:56:25 although there is some variation in disk temperatures now that i look at it 03:56:26 # smartctl -x /dev/da7|grep Temp 03:56:26 Current Drive Temperature: 29 C 03:56:26 Drive Trip Temperature: 85 C 03:56:26 # smartctl -x /dev/da6|grep Temp 03:56:26 Current Drive Temperature: 36 C 03:56:27 Drive Trip Temperature: 65 C 04:00:14 i'm all about doing things as cheaply as possible though so not too concerned about that :D 05:25:26 true/false: shielded twisted pair cable (STP) has to be grounded at both ends, or else it's worse than UTP because the shielding acts like an antenna to pick up interference? 05:27:44 Don't quote me on this, look it up, but IIRC shielded twisted pair is grounded on only one end. 05:27:59 But it's not due to becoming an antenna. It's to avoid creating a ground current loop. 05:28:07 hmm. interesting 05:28:30 You want zero current flow in the shield. So if it is not connected through there can't be current flow in the shield. 05:29:14 so does this mean NICs don't have the shield connected to ground, while switches do? or the other way around? or are you meant to use unshielded patches to connect to hosts? 05:30:18 I am embarrassed I don't immediately know the answer to that question. But I don't know what the strategy is there. I mean I have a BSEE degree but I have slept many times since then and most of those brain cells have expired. 05:30:38 But remember that most networking equipment is expected to be indoors and unshielded. 05:31:31 When dealing with shielded equipment that's unusual and so I think you would be expected to Do The Right Thing at that point as required. 05:33:09 https://community.spiceworks.com/topic/433095-how-to-set-up-grounding-for-shielding-on-a-cat-6a-network agrees with you and says to only earth at one end, but it doesn't say how actual behave here 05:33:11 Title: How to set up grounding for shielding on a cat 6a network 05:33:33 i suppose the obvious answer is to use UTP for the last-metre connection to the host, so the shield isn't connected at all at that end 05:34:09 (... which is actually what i'm already doing, i just thought this was wrong) 05:36:33 About 15 years ago I had a project installing weather cameras up towers and that used outdoor rated shielded twisted pair due to the hazards of lightning and trying to protect against it. 05:36:44 interestingly one post there says _not_ to run the shield to the switch, but to terminate it at the patch panel. ground the patch panel, and use UTP to the switch 05:36:48 my understanding (could be wrong) is that standard networking equipment - switches and nics alike - won't ground a shielded cable through its connector alone 05:37:24 We had lightning arrestors up at the top of the tower. Another at the base of the tower. And every couple of years one would be blown out by lightning either a strike or just close and I woudl have to replace the arrestor. 05:37:28 ... which does make sense, and our patch panels have an earth terminal, so maybe i should do it like that 05:38:02 For that job crimping on the shieled connectors was truly a painful experience. Just awful. 05:38:41 rwp: we use Keystone connectors which are quite nice to terminate. the shielding is just a bit of copper tape over the wire, and it snaps in like a Krone terminal but without needing a tool 05:39:11 We did not have a patch panel available at those sites. But as I understand it things would have been just as you mentioned that the patch panel would be used to either ground or not ground that end and the final cable from the patch panel to the switch would be unshielded. 05:39:23 i rewired one the other day (because of my 10GE issue) and it only took 10 minutes or so 05:39:36 I could have used those nicer connectors. But that's water long gone under that bridge now. 05:41:17 On nice weather days it really wasn't bad to be working up a tower but when it was cold with a wind that would freeze my fingers off! That was not the normal plan. But I remember needing to do a repair after a lightning strike and needing to run a new cable and install new boxes and had to crimp an end on the tower and that was truly miserable. 05:41:53 what in god's name is this: https://www.amazon.co.uk/Grounding-Connection-Earthing-Grouding-Pillowcase-White/dp/B0CMT5BYY5 - it claims to be an "earthing cord" but it converts a 2-pin USA plug to a 3-pin UK plug... but a 2-pin US plug doesn't have an earth pin?! 05:41:55 Title: Grounding Cable Connection with UK Plug, 4.6 m Earthing Cord for Grouding Pillowcase, Grounding Sheet and Grounding Mat: Amazon.co.uk: DIY & Tools 05:42:05 We are talking like 30 feet up and not like really tall. These were airport beacon towers. Low to the ground in the grand scheme of things. 05:44:04 That is just what it says it is but I think it is pretty funny. I believe the idea is that in the winter when it is dry and you walk across carpet you can build up quite the static ESD zap which then arcs when you touch something. That mat is meant to discharge that harmlessly into the ground. Er, Earth. 05:44:55 Americans say "ground" and the British say "earth" and the two are the same. We are a people divided by a common language. 05:45:23 but how can it discharge anything to earth (ground) when it only has a 2-pin plug? 05:45:36 So that cord has only the ground/earth terminal on the power plug. The other plug pins are plastic, insulating, and there just to hold the plug in place. 05:45:37 the 2-pin plug is live+neutral, right? there's no ground? 05:46:14 It has a 3-prong plug for the AC mains socket. Only the ground/earth terminal is metal and the other two for the AC mains is plastic insulating and just mechanical support. 05:46:38 click the second picture 05:46:40 On the other end it has one snap connector. It's a snap like a coat snap. That connects to the blanket. 05:46:45 it's a US 2-pin plug with a US-to-UK adapter 05:47:00 if that's a normal adapter of that type, only live+neutral are connected and ground is not connected anywhere 05:47:17 Amazon might have redirected me to a different image. I am in the US and that is a UK site. 05:47:28 I am seeing only British style plugs. 05:48:02 Oh! I see the photo you mean. It just has one prong. 05:48:11 this is the imagine i find concerning https://i.imgur.com/5SS1kTg.jpeg 05:48:26 That is just the ground/earth prong. Just push it into the ground/earth hole of any power plug anywhere in the world that has ground plugs. 05:48:52 oh, i thought it was a 2-pin plug viewed from the side so it looks like a single pin 05:49:33 British ground holes are rectangular. US are round. US sockets: https://en.wikipedia.org/wiki/AC_power_plugs_and_sockets#/media/File:NEMA_5-15_Outlet_120V-15A.jpg 05:49:34 Title: AC power plugs and sockets - Wikipedia 05:50:27 And that amazon mat allows you to stand on it to discharge built up static before sparking something. That's the plan. 05:50:48 But for years we would have said attach a wire to the house water pipes. That's been the usual standard. 05:51:14 Except now all new construction uses plastic water pipes! Making hooking to a convenient water pipe worthless now. 05:51:28 Which is probably why they are plugging into the ground/earth hold of an AC mains power socket. 05:52:15 Meanwhile... Those type of anti-ESD mats are very familiar to anyone who has ever worked in an electronics manufacturing site. 05:52:52 We would have wrist straps, or shoe straps (I preferred the shoe straps), and everything would have an anti-ESD mat to avoid zapping things. 05:53:09 well, in any case, i went with a standard UK re-wireable plug and some green/yellow earth wire, which i hope is BS-compliant :-) 05:53:27 there's no water pipes or other earth sources near the patch panel so i'll just have to plug it into a socket 05:53:28 That actually means not having a direct wire connection but always using something like a 1 Mega Ohm resister so that there is no spark zap but it slowly drains the charge away without a spark. 05:54:32 In the US almost all power wiring is in metal conduit with metal junction boxes. Though those are also turning into plastic in new construction. But can almost always get a good ground/earth connection. 05:55:12 Unless we are dealing with amateur ham radio transmitters in which case it's not sufficient there and you should run a separate heavy ground/earth but that's really getting off topic. 05:55:30 I am getting called IRL and must go... 05:56:18 But ground wires are just wires. They don't need to be special wires. Any wire will do. Bare wire without insulation is generally used. 05:57:28 rwp: yeah i know, but you're suppose to use green/yellow wire for earth here, so people know what it is 05:57:39 a blue wire going from a 240V mains plug to a patch panel might raise some eyebrows :-) 09:31:41 Is there any possibility to fix the error I caused? 09:31:49 Here is what happened: 09:33:30 I have a FreeBSD installation with root-on-zfs (dual boot with Windows), the pool was called "root". I was trying to rename it to zroot. For that I booted from 14.0 memstick and opened a shell. There I did as follows: 09:33:44 zpool import root zroot 09:33:51 zpool export zroot 09:34:45 now I cannot boot anymore and it says "insufficient replicas" and below "invalid lable" when trying to import that pool from usb stick 09:46:19 well i managed to import the pool from memstick boot. It says ONLINE and a scrub revealed no errors. 09:46:42 nevertheless I cannot boot it, it says "Invalid file system specification" 09:47:07 I set vfs.root.mountfrom to zroot in loader.conf 09:53:11 somehow it seems to find 2 pools named zroot and the conflict is causing a püroblem 09:55:06 'zpool import zroot' says 'cannot import zroot, more than one matching pool', 'zpool import -a' import the pool, i can set mountpoint to /mnt and it is mounted and looks good. 10:18:09 does FreeBSD have a driver for Mellanox ConnectX-2 cards? 10:18:56 oh, mlx4en(4) says yes, the summary is just incomplete 10:23:47 hello great master's (nice UGT) I need some help here, I'm building one debian ltsp server to two raspberries pi4, but have something wrong, kkk... 11:14:57 I Connected my laptop to my tv via hdmi. used arandr and it was fine. problem was that the sound was coming from my laptop not the tv. any ideas ? running 14.0-RELEASE 12:02:02 jb1277976: hw.snd.default_unit is probably what you're looking for; see: https://docs.freebsd.org/en/books/handbook/multimedia/#sound-setup 12:02:04 Title: Chapter 9. Multimedia | FreeBSD Documentation Portal 12:15:44 how do I specify which minimum version of Go a port wants 12:15:55 encountered Ruby-like behaviour with Go 1.21 12:19:17 Remilia: did you check the porters handbook? 12:20:10 I actually didn't, thanks for reminding me (half asleep) 12:27:01 hmm, apparently I cannot specify '1.21+' like illustrated for python but it works with 1.21, which is why I asked that question above haha 12:27:15 I guess I should have tried without + from the start 12:28:05 wonder if you cannot specify a minimum version for Go, only exact 15:12:00 I'm trying to get mysql57-server running in a jail. I'm getting an error that libpcap libraries are missing, preventing the service from starting up. However, I do see them in my corresponding Poudriere build jail. 15:12:34 Do I need to manually install net/libpcap? 15:18:13 The answer to that is no. I built and installed libpcap, and the error persists. 15:18:56 wait, why does mysql server require pcap? 15:19:49 and libpcap is part of base system anyway 15:25:57 Schamschula: is there a reason you need that EOL'd version btw? 15:26:15 That's what I've found out, but both ping and mysql-server throw the error 15:26:35 your jail has Issues then 15:26:49 with its distribution set 15:26:57 check `freebsd-update IDS` 15:27:11 Yes, I need to get back up and the update to mysql 8.0 did not go smoothly. I've got duplicate .ibd files. 15:27:40 The jail was a fresh install last night (13.2 RELEASE) 15:27:44 can't you just restore from the dump you made before upgrading 15:28:12 hmm 15:28:25 you installed it with bsdinstall in jail mode I presume? 15:28:49 Nope. I can't even get it to give me a clean fresh empty structure. 15:29:00 what 15:29:14 sorry I do not understand 15:30:21 Schamschula: did you use `bsdinstall jail /path/to/jail`? 15:30:27 or something else? 15:32:06 I used pkg with the jail 15:32:16 s/with/within/ 15:32:43 once again sorry I do not understand, how did you use pkg to create a new jail? 15:32:47 are you using pkgbase? 15:32:56 Remilia: for years now, yes 15:33:03 lol, sorry… 15:33:11 I have PkgBase in my hilights… 15:33:11 meena: oh 15:33:27 if they used pkgbase I have no idea so will withdraw 15:33:57 I had no idea that with pkgbase you can use pkg to create jails w 15:34:04 No, I followed https://docs.freebsd.org/en/books/handbook/jails/#classic-jail 15:34:05 Title: Chapter 17. Jails and Containers | FreeBSD Documentation Portal 15:34:06 * Remilia learns something new every day 15:34:29 Remilia: yeah, my jails are tailor made for the software they run and only have very minimal stuff installed 15:35:38 Schamschula: I would try to create a new jail using `bsdinstall jail` and seeing if stuff works there 15:37:05 also check if you have /usr/lib/libpcap.so in your jail at all 15:37:15 and /lib/libpcap.so.8 15:37:17 OK. I'll need to figure out how to get the right OS version under bsdinstall 15:37:31 it will use host version though 15:37:37 if I recall right 15:37:52 Yes t's there. 15:38:07 The hoist version won't work. 15:38:42 Here't the actual error I'm seeing: ld-elf.so.1: Shared object "libcap_fileargs.so.1" not found, required by "wc" 15:38:49 Schamschula: in your jail, do `ldd /usr/local/sbin/mysqld` and check what it is linked against 15:38:51 oh 15:39:13 libcap 15:39:26 you should have started with that 15:39:43 sorry, I thought you meant libpcap 15:40:01 based on this [15:11:59] I'm trying to get mysql57-server running in a jail. I'm getting an error that libpcap libraries are missing, 15:40:34 libcap is /lib/libcap_fileargs.so.1 though 15:40:40 in this case 15:41:13 and if you do not have that in place your base system is ??? 15:41:49 In the meantime, I do see that I have a mysql skeleton on the host OS. 15:42:08 I may try restoring there. 15:42:26 libcap_fileargs is not in base.txz 15:43:02 It's installed on the host system and the Poudriere jails. 15:43:13 yes, it comes from something else 15:44:05 OH 15:44:10 yeah it makes sense 15:44:49 Indeed, I did a pkg list pcap, not there. 15:45:21 why are you looking for pcap? 15:45:28 I am just curious 15:45:51 are you sure libcap and libpcap are the same? 15:45:51 Because I misread the library name... 15:46:44 I've used libpcap for so long, I ended up assuming something. 15:46:53 this is actually a bug, 13.2-RELEASE base.txz is missing libcap 15:47:26 meena: ^ wow 15:47:42 whew. wow. that sounds bad 15:49:08 meena: https://i.koumakan.jp/2023-12-18/1702914489.png 15:51:11 All of them are missing here's ping: ld-elf.so.1: Shared object "libcap_dns.so.2" not found, required by "ping" 15:51:14 fetching the 13.1 one 15:52:23 Not there, either. Only my 14.0 build jail provides libcap_* 15:52:41 I wonder if this is just new in 14 15:53:07 it's not in my install of 13.2 either. couldn't that mysql build be from a 14 system? 15:53:27 yeah 15:53:40 that is noticeably more likely 15:53:59 Could be, but the executables in the jail seem to be linked to it. 15:54:08 Schamschula: `freebsd-version -u` in the jail 15:54:16 BTW: mysqld is in libexec 15:54:34 meena: disregard that 15:54:41 they are in /lib/casper in 13. 15:54:47 I was blind \o/ 15:55:22 Ahh: It shows to be 14.0-RELEASE-p3. Not good. 15:55:32 well there you go 15:55:39 you have a mix of 13.2 and 14.0 15:55:41 or 15:55:50 you are not inside the jail 15:55:59 Time to detlete it and start over. 15:56:31 tbh I am curious as to how you ended up with this arrangement 15:56:44 you probably have /lib/casper/ in there 15:58:01 have you tried to mysqldump and then restore into the new version? most likely you already have the dumps from your backups? 15:58:16 Definately in the jail via jexec myssql /bin/sh 15:58:59 ridcully: yes, but the nearly week old scheduler dump. 16:00:47 And, I can't log into mysql -u root. 16:01:32 i doubt there where new mysql 5.7 releases in the last week, that would give you a different result. so did that work? 16:02:35 No, 5.7 is pretty much done. 16:03:04 5.7 is utterly EOL 16:03:31 Indeed. 16:04:26 It is, but I had previously updated to 8.0 twice, and gone back to 5.7 twice. Unusably slow. 16:04:45 the problem with the current situation is that if they ran 8.x with 5.7's data directory and that failed, there is a high chance the files are already incompatible 16:05:03 On linux, the scheduler can make a difference. I don't know what the BSD equivalent is. 16:05:55 I backed up the file structure before updating. So I have a copy for 5.7. 16:06:28 why not use MariaDB instead btw? 16:06:53 do your tables use some mysql-only storage engine? 16:07:01 I've also tried that over the summer. I had issues getting it up and running. 16:07:02 then again did 5.7 have any 16:07:11 huh 16:07:32 If you migrate to MariaDB, you have to do a logical dump + restore. 16:07:42 There are other steps needed, as well. 16:08:02 yeah but you must always do a dump before switching major versions anyway 16:18:18 Progress. Reset mysql server root passwd. Next: I'll see if I can restore the dump. 16:36:33 exciting. 17:25:53 evening guys, wonder if anyone could help me a bit, messed up with R13->R14 upgrade and zpool update - forgot to update bootloader aaand electricity went down, so I can no longer boot the devil 17:28:59 boot from CD or usb? 17:29:44 its basically home NAS with two pool and m2/ssd acting as system drive 17:30:23 paulf: its basically home NAS with two pool and m2/ssd acting as system drive, i have shell from usb now, but i messed up bootloader trying to recover the system probably 17:30:42 *two pools, zroot and zdata, let's say 17:34:52 https://bsd.to/JLKc 17:34:53 Title: dpaste/JLKc (Plain Text) 17:37:07 nimmen_dimmur: As paulf noted, if you can boot from rescue media, just copy in the new bootloader. 17:38:13 nimmen_dimmur: For an EFI system, copy loader.efi from /boot (as mounted in your rescue system) to whichever drives and names are appropriate. 17:38:47 A local example, not taking into account where you've got stuff mounted in the rescue environment: cp /boot/loader.efi /boot/efi/efi/boot/bootx64.efi 17:39:42 Note the doubled EFI, as it's common to mount these on /boot/efi, and therein is the EFI directory. Variations depend on whether you're using EFI boot variables or just the fallback naming, bootx64.efi as noted. 17:40:08 nimmen_dimmur: If you have more detailed questions, go ahead and ask them. 17:40:31 yeaaah, well thats the part i messed up... I dont remember how I did setup system so I went with some forum post about bootloader update, and obviously I did guess wrong 17:41:37 i did some gpart bootcode with wrong stuff 17:41:42 https://bsd.to/riuG 17:41:43 Title: dpaste/riuG (Plain Text) 17:42:00 nimmen_dimmur: Is your system UEFI? 17:42:07 zfs 17:42:17 That's unrelated to the question. 17:42:38 sorry, a bit tired, not sure to be honest 17:42:46 i've set it up years ago and it was running with no problems 17:43:06 I ask because "gpart bootcode" is only something you'd need for a legacy-boot system. 17:43:44 And your first paste shows EFI System Partitions. 17:44:23 But assuming it is UEFI, you seem not to have your ESP mounted in that second paste. 17:45:30 ESP? with second paste i'm showing that I thought i'll just mount zpool, copy over /etc and reinstall everything, but i don't see any zroot / data 17:45:49 nimmen_dimmur: https://0x0.st/HY77.png 17:46:47 yeah, it was different before i messed up that part, I think second item was - maybe third was uefi? (definitely *efi*) 17:48:55 You've also got that freebsd-boot partition there, so I guess it could be either. 17:54:29 aha, found the wrong command - gpart bootcode -p /boot/boot1.efi -i1 nda0 17:54:58 so now what i'm pasting is after it - which messed up the bootloader to non boot state 17:56:01 command was issues after i booted from usb image, trying to fix the old bootloader problem (zpool upgrade after R13->R14 upgrade, without bootloader upgrade) 17:56:14 *issued 17:56:15 nimmen_dimmur: If you "man gpart" it talks about the different boot-related files. 17:56:43 https://man.freebsd.org/cgi/man.cgi?gpart(8) 17:56:44 Title: gpart(8) 17:57:02 Specifically look at the "BOOTSTRAPPING" section. 17:57:28 Not an exhaustive list sadly. 17:58:14 The EXAMPLES section might interest you too. 17:59:30 do i assume right if its zfs base, than pretty much gptzfsboot is the only option to use? 17:59:41 *zfs root 18:01:57 Since we see EFI stuff, GPT is a safe bet. 18:02:11 That said, you don't need gpart bootcode at all if it's UEFI. 18:02:21 Do need it if it's a legacy boot. 18:02:50 should be uefi, i did fresh 13 install there with mostly close to defaults (if i remember right) 18:03:48 so gpart bootcode -p /boot/gptzfsboot -i1 nda0 does sound right? since i did pretty much mess up with similar command 18:04:01 not what does not mean i'll solve the issue, but i'll be back to where i was? 18:04:11 *not that it does mean 18:04:12 >> That said, you don't need gpart bootcode at all if it's UEFI. 18:04:35 Sorry, a bit busy with work and concurrently sick, so my bandwidth is a bit lower than normal. 18:05:11 In short, find and mount your EFI System Partition. See what's there. Copy the correct boot loader into place. 18:05:35 It's probably going to be /boot/loader.efi (relative to where you have your /boot mounted) 18:08:58 mason: no worries, thanks for help anyway, well thats the problem i would have done that but i'm not able to mount it or i'm too dumb today to figure it out, https://bsd.to/Jsk2 18:08:59 Title: dpaste/Jsk2 (Plain Text) 18:11:28 obviously i tried to mount it before i tried the gpart bootcode stuff 18:13:02 so lets keep this simple, since the zroot seems to be ok, but why i can't see the zroot/ data? how can I mount it, i'll just copy it over and do a reinstall, since I think it will take more time for me to understand the bootloader things than going for this workaround =] 18:14:19 I see nothing immediately wrong with your mount_msdosfs syntax. 18:15:45 Your paste https://bsd.to/riuG suggests that your ZFS stuff is accessible...? 18:15:46 Title: dpaste/riuG (Plain Text) 18:16:12 mason: it is, but not the / part??? 18:16:24 i did zpool import -R /mnt/zfs zroot 18:17:00 obviously /mnt is from usb drive and I did mount -uw / 18:18:00 https://bsd.to/Bjug 18:18:01 Title: dpaste/Bjug (Plain Text) 18:19:53 you can ignore the 'unionfs' bit as i've used it to boot sshd so could connect it in more convenient way from another computer 18:20:26 I do the same. 18:21:11 nimmen_dimmur: Not sure what you mean by, "but why i can't see the zroot/ data?" 18:21:30 Is there stuff that you expect to see in /mnt/zfs/zroot? 18:22:22 The typical layout uses something like zroot/ROOT/default or zroot/ROOT/some-snapshot 18:22:46 mason: i did expect to see the / data - lets say /etc so in this case -> /mnt/zfs/zroot/etc ? 18:22:47 You probably shouldn't expect to see anything in the base zroot dataset. 18:22:55 i see 18:23:07 nimmen_dimmur: Have a look at 'zfs list' as well 18:23:08 so my main concern is how do i recover /etc ? 18:23:25 sorry, /usr/local/etc ideally 18:23:29 nimmen_dimmur: If you paste "zfs list" output we can likely tell you where to look. 18:26:42 mason: formatting is pretty bad so i'll send you this one then: https://paste.ofcode.org/37SNrrzaw4pcFfJTq9JnPLf 18:26:44 Title: Paste ofCode 18:27:27 So, yeah, one of those zroot/ROOT options needs to be mounted up as the root of your hierarchy. 18:27:38 Apologies, meeting, but I'll check in after. 18:27:57 Almost certainly easier to reinstall bootcode than reinstall EVERYTHING. I can poke about some more later. 18:27:59 mason: no worries, you already helped a lot 18:28:24 well ok, i'll ready more on bootcode then if you think its easier 18:29:06 but I may already messed it up one more time with - gpart bootcode -b /boot/pmbr nda0 18:58:33 nimmen_dimmur: That shouldn't harm anything. The real thing to figure out is if it's UEFI or legacy. I suspect it's UEFI, so you need to figure out what that mount_msdos is failing. If you figure that out, then you can mount it up and copy in the correct bootloader. 19:15:06 mason: so would dd /boot/loader.efi /dev/nda0 not mess things up? 19:15:59 nimmen_dimmur: dd is commonly used for block devices. You want to copy a file to a filesystem. 19:16:24 You want to mount that first partition somewhere, and look at what's in it, and then copy loader.efi to the right places based on what you see. 19:16:30 Hi, I'm experiencing freezes on my APU2 based router since upgrading to 14.0-Release, never had any such issues with 13.2-Release. Any known issues? It's this board: https://pcengines.ch/apu6b4.htm 19:16:31 Title: PC Engines apu6b4 product file 19:18:04 espen: Regardless of what you learn here, it'd be a great idea to file a bug about it. 19:19:52 Thanks, but I haven't been able to get any more debug information. So the bug report would be pretty empty. I tried to enable dumpdev=AUTO, but there's nothing in /var/crash after the freeze. 19:21:04 Even that's a start. 19:22:00 /boot/loader.efi[23~~ 19:22:14 sry 19:36:11 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275830 filed a bug 🤞 19:36:13 Title: 275830 – APU2 based router freezes after upgrade to 14.0-RELEASE 19:38:33 well at least i got my zroot/ but now i remembered that mason is probably bot? hah 19:42:04 Most people can't tell. 19:42:20 I can pass the Turing test, though. 19:42:26 I'm pretty sure mason isn't a bot. 19:43:16 At least not tained on social media comments, he seems nice ;) 19:43:23 *trained 19:44:16 "not tainted" also works. :-) 19:44:21 for a reason freebsd wont apply my pf rules on boot 19:44:54 espen: =] 19:46:31 i was able to mount /boot but surely this did not help as there is no /boot/loader.efi so then i remembered from older times that there was a nice bot in here 19:46:43 I added mason on linkedin, so this will be most embarassing if he's not real 19:46:56 mane, 2 possible reasons: not having pf_enable="YES" in rc.conf, and syntax error in your rules file. 19:47:05 well ok, but surely there used to be a bot here 19:47:12 what was the name? 19:47:12 kevans: LinkedIn is not real 19:47:16 VimDiesel is a bot, but he mostly scans for URLs 19:47:25 mason is integer. At least in Fortran. 19:47:37 heheh 19:47:43 To be fair, I'm sick today (not covid thankfully) so I'm at my most botlike. 19:48:36 well even if mason is bot im doing a copy of / and reinstall since bootloader was too tough for my determination today 19:48:54 nimmen_dimmur: There are more smart people on and paying attention now. 19:49:01 mane, pfctl -vnf /etc/pf.conf 19:49:05 sadly i'll have to get to this anyway, as i have 2 nas servers and they both have same problem 19:49:05 If we can figure out your mounting issue, I bet you'll be mostly done. 19:49:11 I think I've accused meena of being a bot before 19:49:19 except i did not mess up the bootloader of the second :/ 19:49:37 nimmen_dimmur: The thing that comes to mind is that if you somehow corrupted your ESP, that might be why you can't mount it. Not sure how reasonably to verify this. 19:49:52 V_PauAmma_V i have pf_anble="YES" in my rc.conf 19:50:04 espen that just returns all the rules for my pf 19:50:07 mane: try pf_enable="YES" ? 19:50:15 nimmen_dimmur i have that 19:50:20 ah 19:50:33 mane, it's verifying it, so if there's something wrong it should tell you 19:50:48 if i run service pf start manually all works fine 19:50:59 pf_flags? 19:51:45 mane: are configuring things, that are not there yet/when it runs while booting? e.g. vpn, tunnels, things from a local rc-file, ... 19:51:50 *you 19:52:03 everything works fine but pf 19:52:21 is order of the services in rc.conf relevant/ 19:52:22 ? 19:52:25 mason: no clue why it doesnt mount, thats how i went to radical uknown solutions and messed up my bootloader 19:52:59 mane: no, rc.conf is basically just env-vars read before running the actual scripts 19:53:34 ok, i tried working around it and tried to start to service in /etc.local but rc.local seems to not be executed 19:55:12 i thought maybe it doesnt mount as it it zfs on root, as in, its not msdosfs and needs something else, i'm as lame in boot stuff as i am with 8086 assembler(or any other, for that matter) 19:55:36 i've noticed that pkg update/upgrade has picked up nothing for a while (a week or two?)...checked today and $ABI as used by the update script is an empty variable. what *should* it be for 14.0-RELEASE on amd64, and why might it be empty please? 19:56:18 ps. FreeBSD.conf is set to use 'latest' 19:57:35 cant tell as my all bsd boxes are out of order :D noticed that R13 didnt have much updates, thats how i spotted there is R14 and did upgrades... 19:58:16 nimmen_dimmur: fair play! i'd have expected something, however minor though... 19:59:22 FlibberTGibbet: quick question, you did upgrade or fresh install? I remember some minor issue with pkg 20:00:00 nimmen_dimmur: upgrade from 13.${whateveritwas}. all smooth otherwise 20:01:01 you would double check from R14 git /usr/local/etc/pkg.conf and compare 20:01:22 if no diff, then there could be more things involved 20:03:27 could be. i'm guessing (heh) that the absence of the environment variable is kicking pkg into touch, as that's what the conf file seems to use to select the repo. but why that variable is empty could be down to something else, like you say 20:03:29 FreeBSD does not need to have a pkg.conf file. Many installations will work well with no pkg.conf at all or with an empty pkg.conf (other than comment lines). 20:03:32 my bad 20:03:48 nifty 20:03:50 you could try this then, no/empy pkg.conf 20:03:59 well, i'll back it up first :D 20:04:06 smart choice 20:04:23 /etc/rc.local i mean 20:07:50 * meena is not a bot 20:08:42 * nimmen_dimmur is turing hallucation 20:09:29 thanks for help mason, i'll have to recover other server tomorrow with bootloader, this one will do the crude copy/reinstall way 20:17:03 Is there another way other than parsing "zpool status" output to get a list of devices that part of a pool? 20:18:45 all things being equal the timestaps at http://pkg.freebsd.org/FreeBSD:14:amd64/latest/Latest/ are 8 December, so there might not be any updates anyway! 20:18:46 Title: Index of /FreeBSD:14:amd64/latest/Latest/ 20:41:09 unixwitch: you know, I should test my ConnectX-2s on FreeBSD... I've generally had very bad experience trying to get them to work 20:41:31 only really got anywhere on RHEL 6, newer Linux just wouldn't work 21:21:45 how do i change password with pw? 21:22:18 ok got it 23:53:37 espen: I wonder what is the major difference between apu2 and apu4 because I upgraded my apu4d4 to 14.0-RELEASE without any issues 23:53:43 a good while ago 23:58:51 dh: zpool list -v as well 23:59:31 (that one can be made "parsable")