01:00:29 Heya. I'm trying to make thin jail in 14-RELEASE the same way I've made them in previous versions, but after I make the jail the `pkg` command gets SSL error when it tries to bootstrap. Did I forget something? 01:03:08 The first in the long series of errors is this; 00202166573D0000:error:0A000086:SSL routines:tls_post_process_server_certificate:certificate verify failed:/usr/src/crypto/openssl/ssl/statem/statem_clnt.c:1890:Certificate verification failed for /C=US/O=Let's Encrypt/CN=R3 01:04:24 Sorry, *one* of the first. 01:09:46 fuck 01:23:18 gh00p: what's /etc/ssl/certs look like, in the jail 01:32:48 rtprio: almost identical to the host (where pkg works). There's one more file on the host, 'cd8c0d63.1'. 01:33:32 Copying that file to the jail's certs dir didn't help. 01:35:59 I get similar errors when I use `fetch` to hit other https sites. 01:50:50 It happens with any HTTPS target, it seems. I get it with `fetch` too. https://termbin.com/bwn0 01:52:03 Oh, I just said that. I seem to be monopolizing the conversation. 01:56:52 they are symlinks, you know 01:57:03 and that termbin looks like they're broken symlinks 02:02:26 Ah, that's it! The thin jail has it certs in /s/etc/ssl/certs, so '../../..` resolves incorrecly. Why has this never happened before? 02:03:18 because /s/usr/share/certs/trusted doesn't exist ? 02:03:32 is the jail name 's'? 02:08:09 no, `/s/` is the mountpoint of the jail skeleton, from within the jail. Everything outside /s is mounted read-only, /var is a symlink to s/var, /usr/local is a symlink to /s/usr-local, etc. 02:10:32 And /usr/share/verts/trusted exists, but is not visible as `../../../usr...` from /s/etc/ssl/certs. I need one more `../`. 02:13:31 check out /usr/src/usr.sbin/certctl/certctl.sh might fix it for you 02:19:30 Looks promising. I'll need to deal with my readonly filesystem, but maybe rehashing updates the symlinks 02:19:40 Thanks for the tip. 02:20:55 I'll update them manually if I have to, but I'd much rather add this to my jail provisioning scripts. 02:38:35 Solved with certctl! Thanks very much! 02:40:15 👍 08:25:11 mornings y'all 08:38:21 hey antranigv :) 08:41:22 Hello, all. Upon wake-up from suspend, my laptop was optining the "Display" application. I found a fix: : reset the XF86Display property from the "Keyboard shortcuts" section of Xfce settings. That settings was bound to any keyboard combination, so why was it firing? Nor is it an Xfce default, but FreeBSD-specific. Does anybody have the same symptom when your computer waskes up after suspend 08:41:23 (zzz(8))? 08:43:32 ^ Reset means restore to default, and in my keys it caused that property to disappear from the settings, so that reset == remove. 10:59:30 Hello everybody , when I have freeBSD 14.0 RELEASE , myvirtualbox run nice but I have upgrade 14.1 RELEASE , virtualbox don't run , I have error Kernel driver not installed (rc=-1908), I check kenel driver and they are loaded, can you help me please ? 11:08:54 how did you upgrade? 11:12:06 rtprio: freebsd-update -r 14.1-RELEASE upgrade 11:17:24 you need to update virtualbox too 11:22:19 rtprio: I will try, 11:32:14 rtprio: I upgrade virtualbox but I have the same trouble 11:34:10 and restarted the system? 11:34:41 rtprio: I have not reboot 11:35:08 I will reboot 11:35:11 great 11:35:14 see you soon 11:35:25 rtprio: Thanks 11:39:53 rtprio: I reboot but I have same trouble 11:44:21 dwho: You need to rebuild and reinstall /usr/ports/emulators/virtualbox-ose-kmod 11:44:36 oh, thanks vkarlsen 11:44:43 dwho: The pkg for it is built for the 14.0 kernel, and won't work with 14.1 11:45:32 vkarlsen: Thank you very much 11:46:40 vkarlsen: I use pkg and I 'm not use ports 11:48:32 dwho: I figured. But you will need virtualbox-ose-kmod to be built for your kernel, so for that you will need to build it from ports. You'll also need to have the kernel source in /usr/src 11:50:17 vkarlsen: thanks 11:53:24 I could give you my pkg if you really get stuck, but you shouldn't install pkgs from strangers, especially not kernel modules 12:00:16 vkarlsen: No thanks , I will make the ports , but it's kind of you 12:50:47 * ant-x vouches for vkarlsen 14:17:50 I'm trying to write an rc script for a python tool I made. This is what I've got so far: https://pastebin.com/zGWAcksK 14:17:51 it starts my code on system startup, I can stop/start in manually, "status" works, but it seems it doesn't properly stop it on system shutdown - at least my "got sigterm, shutting down" doesn't appear in /var/log/messages during shutdown although a manual stop of the service makes that line appear 14:37:26 Grabunhold_, have you tried implementing your own stop command and log its execution? Or at least log the invocations of your rc.d script together with $1? 14:37:42 ant-x: not so far 14:38:14 ant-x: i also thought that maybe the logger was gone already when my script finally got stopped because i'm missing a dependency or something? 14:38:17 My experience is so low that I log whatever stuff I am trying to use/debug... 14:38:18 could that be a thing? 14:38:38 By loggin I mean the simplest thing possible: direct output to a file., 14:42:40 ant-x: gimme a sec 14:42:47 adding debug logging 14:43:00 Yes -- the stone-age method. 14:43:16 at least we can still bring out the axe, hehe 14:43:21 The problem with debug loggin is you had better remove it after use~! 14:44:04 the first and foremost problem is that every test takes ages because i have to reboot this stupid server that i'm testing on 14:44:08 and the firmware takes ages 14:47:35 okay, I added this: if [ "$1" = "stop" ]; then echo "$(date): Received stop command" >> /var/log/debug_stop; fi 14:47:36 In that case, be very liberal with your debug logging. 14:47:58 when running "service anlasser stop", I get the proper line in /var/log/debug_stop 14:48:03 Better and safer to log every command received by your service. 14:48:04 however, when rebooting I don't 14:48:43 so it seems that the rc script isn't even invoked with the "stop" argument during shutdown 14:50:15 Grabunhold_, I got it: you neglected to add the `shutdown' keyword. 14:50:51 ant-x: huh? check https://pastebin.com/zGWAcksK again, line 5 14:50:59 or is that wrong somehow? 14:51:30 Ough, so it /is/ there all right. 14:53:17 i have removed the "python" keyword, i'm not even sure that I need it. is there a list of keywords with explanations somewhere? 14:53:27 Grabunhold_, see: "Operation of rc.shutdown" in . Does it mean the actual command is `faststop'? 14:54:41 For an overview of stanard keywords, see: . 14:57:09 hmm, why did i even limit the logging. i have changed the script to simply log all arguments, not only "stop" 14:57:18 let's see try the reboot again 14:58:01 should have listened and been more liberal with logging like you said! 14:58:32 See the note about `faststop' at the end of section 7 here: 14:59:10 Grabunhold_, At least in debug logging, liberalism is a good thing. 14:59:19 okay, i got "faststart" during boot but no "stop" or "faststop" during shutdown... 15:01:44 Try calling `rcorder -k shutdown' and see if it detects your script. 15:03:13 next reboot, next "faststart", no "stop" or "faststop". 15:03:14 "rcorder -k shutdown /usr/local/etc/rc.d/*" does indeed list /usr/local/etc/rc.d/anlasser 15:04:09 Then I am at a loss. Have you tried placing your script in /etc/rc.d instead? 15:04:55 not so far. might try that next. for the record: manually invoking "service faststop anlasser" works and correctly logs into the debug file 15:05:32 Does you script really run a deamon process with pid? 15:05:56 it runs via DAEMON(3) 15:06:10 so it doesn't fork into the background itself 15:06:59 but the script does indeed keep running, needs a proper shutdown and that shutdown does work properly when manually invoked via "service anlasser stop" or "/usr/local/etc/rc.d/anlasser stop" 15:07:04 Are you logging as early as possible, that is before `. /etc/rc.subr` ? 15:07:35 no, after that. but it does work for all my manual invocations so far... i will move it above that line 15:08:32 It is best to do it before, lest you miss a case, however improbably, that rc.subr terminates . 15:08:55 last experiment before i got to got, unfortunately. many thanks for your help and time, it's very much appreciated 15:09:00 reboot is running... 15:09:37 Have you added the early undonditional logging? 15:10:04 yep 15:11:08 If you solve this mystery, please let me know (using memoserv if I am not online) -- I have a learner's interest in it. 15:11:14 nope, "faststart" only 15:11:26 Duh... 15:11:47 ant-x: i will try to remember that :) will share the source for the python stuff in the coming days, too. it's a bhyve manager 15:11:49 Sounds like a stupid error, or a problem with DAEMON(3)... 15:12:10 Thanks. 17:47:43 i suspect you don't have all the bits in your rc script 20:49:29 rtprio: and I have no idea what bits that may be 21:08:00 lw, ping 21:55:27 Grabunhold_, looking at some other rc.d scripts, I wonder is the DAEMON keyword might help... 21:57:04 ^ I mean REQUIRE: DAEMON 22:01:41 ant-x: as in line 4 here? https://pastebin.com/zGWAcksK 22:04:31 Yes. 22:07:18 so i've already done that, or am i misunderstanding what you mean? 22:10:37 exit 22:11:41 Grabunhold_, yes, you have. 22:12:32 Guys, I accidentally destroyed my /usr/local/etc/rc.d/dbus . Where can I find a copy? 22:14:00 I'm gonna sleep a whole, cya guys tomorrow! Thanks for all the suggestions and help 22:14:21 Good night, let the solution come to you in sleep! 22:27:44 ant-x: If you are still searching, it is in the ports tree 22:27:51 https://cgit.freebsd.org/ports/tree/devel/dbus/files/dbus.in 22:28:05 souji, I was trying to extract the .pkg file... 22:28:56 ant-x: is also a way to do it... I guess 22:29:01 ant-x, First locate the package containing that file. "pkg which /usr/local/etc/rc.d/dbus" which is unsurprisingly /usr/local/etc/rc.d/dbus was installed by package dbus-1.14.10_5,1 22:29:10 Then install dbus again: pkg install -f dbus 22:30:08 souji, Thank you, you saved me. I just curl'ed the plain version of the page. 22:30:30 rwp, Right, I tried to install it, but it was already installed. I did not try the -f option. 22:30:59 nw 22:31:04 I have read the pkg manual, but did not find a way to extract a .pkg file, only to list its contents. 22:37:25 Since FreeBSD tar uses libarchive it means tar is now even more powerful. Just use tar: tar xvf /var/cache/pkg/dbus-1.14.10_5,1~ec69e040c9.pkg /usr/local/etc/rc.d/dbus 22:38:50 rwp, even though .pkg is not a tar archive? 22:40:14 Really? What does "xzcat /var/cache/pkg/dbus-1.14.10_5,1~ec69e040c9.pkg | file -" say for you? 22:40:29 Using a version that you have available of course. 22:41:49 Ouch, I read it was txz, but that was in an unofficial source. 22:42:37 The 'z' used to be needed to indicate that it was a gzip'd tar file. But that is no longer needed when libarchive is used to identify the compression method dynamically. 22:43:01 Meaning that one no longer needs to include z or J or any of the other specific compressions when reading an existing archive. 22:43:35 The t and x are conflicting though. I don't understand that. Maybe they both work together okay but it used to be either t for table of contents or x for extract the file. 22:43:48 And v gives a long listing like ls -l. 22:44:05 so tvf is table of contents, verbosely like ls -l, file listed as following. 22:45:08 There are some crazy syntax things suitable for a trivia contest that I will avoid overwhelming people with and just say, ignore those for now. 22:47:06 Thank. I am tryng to restore my dbus, and hope it runs now that I have substituded the correct prefix in the dbus.in file for rc.d 22:47:34 Whew. It works now. 22:48:54 Now I must to bed. I will continue rc.d experiments tomorrow. I wanted to make a simle script to run at resume event, because handling it via devd is out of the question, beucase it does not support multiple subscriptions, and alway runs the first mathcing rule. 22:49:02 Do you by any chance use Boot Environments or snapshots? You could then reach into a previous snapshot and retrieve it from there. 22:50:02 Good night! 22:50:49 rwp, no, I am learing the simplest things on the simplest filesystems. Good-night, rwp. 22:51:00 You might look to see if you have a snapshot: ll /.zfs/snapshot/*/usr/local/etc/rc.d/dbus 22:51:38 I would also say if you have any other system then you could copy it from there. But anyway: Good Night! 23:09:46 Grabunhold_: you did read the handbook section on this, yeah? 23:45:14 Is there an option for `date` to output the date in the short format defined for LC_TIME? 23:53:54 what is LC_TIME 23:54:36 phryk: if anything, it would be in `man strftime` 23:54:51 the env var that sets which locale is used for time-specific localization 23:55:11 rtprio: i don't think so. that's for supplying an explicit format string. 23:56:47 %Ex, maybe? 23:57:15 hrm 23:58:01 ah, right – `date +%Ex`, thanks. 23:58:57 well, not certain about that, 23:59:05 doesn't say short or not short but could be the right thing 23:59:09 Let me advocate for "date +%F" instead as that's more standard. 23:59:25 Not the F that is standard but the 2024-07-22 output format. 23:59:57 The format %Y-%m-%d is more standard and portable.