00:32:51 I can run multiple `nc -l :: ` or `nc -l 0.0.0.0 ` or `nc -l 127.0.0.1 ` and I don't get port in use error on the second instance. 00:33:09 Is that expected with FreeBSD or is there something unique about my setup that would allow it. 00:33:50 Like have multiple IPv6 or IPV4 addresses 00:50:53 ,/34 03:59:21 . 13:09:13 anyone here running FreeBSD ZFS on AWS ECS/EBS? I used the official AMI for 14.2 for root ZFS and ashift is set to '0' by default. Not sure if this is intended? Should ashift be set to '12' for AWS EC2 with EBS disks? 13:52:47 Do we have an example in base Kyua where we're testing a command line utility? 13:53:37 s/ECS/EC2/ 14:20:29 pertho: does it say "One or more devices are configured to use a non-native block size." or nah? if it doesn't it's probably fine 14:22:41 rtprio: would that be in dmesg? 14:22:44 <[tj]> antranigv: are you asking how to run kyua or if there is documentation? 14:23:00 pertho: in `pool status` 14:23:25 <[tj]> antranigv: tests(7) is the place to look, it includes this example: 14:23:25 <[tj]> $ kyua test -k /usr/tests/Kyuafile bin/cp usr.bin/cut 14:23:29 rtprio: zpool status shows no errors 14:23:40 [tj] both. I have a jail manager that needs better testing, I want to do something like `make test` and I'd like it to use Kyua to run automated tests (create a jail, do the init commands, etc) and then I'd like to automate that process in our CI/CD. 14:23:58 I'm just wondering if I need ashift=12 for EBS disks or else there could be some performance penalty? 14:24:25 <[tj]> antranigv: I am not aware of an example of kyua being as easy to use as `make test` 14:25:10 since they're virtual i would imagine that you don't need it 14:25:18 [tj] doesn't have to be, I just need examples of testing a command line utility. (expected outcome, expected output, etc). are you saying that `cut` and `cp` have Kyua tests? 14:25:46 <[tj]> the man page is saying that 14:26:12 <[tj]> the kyua tests ship in /usr/tests 14:28:02 <[tj]> some kyua tests are along side the tool in the source tree and some are in /usr/src/tests/ 14:30:18 rtprio: ah cool.. good to know 14:37:40 [tj] thank you! time to start researching! 14:38:03 <[tj]> I'm happy to help if you have more questions - this isn't straight forward to use 14:38:15 <[tj]> for individual tests you can use kyua debug 14:38:20 <[tj]> but not for sets of tests 16:07:59 i am trying to push a git repository via ssh (from windows) to a remote (freebsd server) and i'm getting a error: unable to write file ./objects/18/82886fd3af212fa4b54325fd6bd6ca6fb38584: Permission denied 16:07:59 I can ssh to the server and create a file in the ./objects folder. any ideas as to what could be going on? 16:18:48 that looks like git 16:19:07 what is the ownership and permissions on whatever/objects/18 and the file (if it exists) 16:30:40 owned by another user who is working in the repository as well. 16:31:07 drwxr-sr-x halemu git halemu is not my username 16:31:07 then unless you're in the same group and it's chmod 664 it's not going to work 16:31:16 we're both in the git group 16:31:37 but christ, it's 2024 you could spin up a gitea instance faster than it'd take you to figure this out 16:31:44 *2025 hah 16:31:50 idk what that is 16:32:02 do you know what umask is? 16:33:11 yeah, but knowing what files should have and whether i should chmod -R the whole directory or why i should have to at all is still a mystery for some of this stuff 16:39:57 so each user will need to set their umask correctly so that files they create will hav e the right permissions 16:41:53 and each file will need 664 and directory 775 16:44:08 jnewt: An error writing to ./ means the current directory. What are the permissions on the base directory (.)? The "git" group may have read access but not write access. 16:45:48 find yourgitdirectory -type f -exec chmod 664 {} \;find yourgitdirectory -type d -exec chmod 775 {} \; and make sure everyone has umask 002 in their shell rc file 16:45:49 If you do a "chmod -R 0664 ." in the base directory, that should fix your issue for anyone in the "git" group. However, I do see you have a set-bit setup for the group in your permissions as well. I'm not sure if that's needed or not. 16:46:05 ek: don't do that 16:46:13 Ah. There's directories. 16:46:18 I thought it was just files. 16:51:41 I suppose you could just keep it really simple and do: chmod g+w . 16:51:48 And just be done from the base directory. 16:52:48 yes, you could use that syntax i suppose 16:53:32 jnewt: gitea is a selfhosted git platform. can run sqlite. self contained. 16:53:33 Wouldn't remove the setgid bit (again, not sure if it's even needed.) 16:53:52 it is, he has two developers in the `git` group 16:54:27 Right, but are the executing the code together or something? It certainly isn't needed just to share write access. 16:55:34 what isn't needed? 16:57:18 The setgid bit on the base dir. 16:58:37 right, setgid shoudln't be needed if everyone sets their umask before shitting across the repo 17:11:12 I thought gitea was dead? 17:11:15 This is an impressive project: https://github.com/izabera/pseudo3d 17:11:24 Oh, no, that was gitosis or something. 17:11:40 With zero special terminal config, it ran in putty on a remote FreeBSD server, with quite reasonable performance, I'd say. 17:14:51 CrtxReavr: Interesting, for sure. 17:19:31 ek: no, it is not dead. some folks didn't like the vibe and make forjo 17:20:17 tsoome 17:20:20 oops 18:21:58 hey, another dummy question. Can I change a zpool (single vdev using 2 disks stripe - raid0 like) towards a zpool single vdev with 2 disks mirror? 18:22:43 or is it that the only way is to do it destroying and starting from scratch? 18:33:26 cybercrypto: since that's smaller than your original config, you would have to re-create 18:34:52 rtprio: That's what I suspect from docs. I am talking about the same 2 disks becoming a mirror. Guess I will need a backup and planned work. 18:34:55 rtprio: thanks. 18:36:23 here's a stupid question, does anyone know if I can convert /var/db/freebsd-update into a cache directory for reverse proxy? I don't want to wait an hour again. 18:41:38 antranigv: i don't think that would work, but you could probably pre-populate the /var/db/freebsd-update/files directory? 18:42:15 cybercrypto: yes, i have 20tb of files to shuffle around, to further complicate things, insufficient sata ports to run both pools at the same time 18:43:11 rtprio probably, yes. I do have a /var/db/freebsd-update/files directory already populated, but seems to be large, and my router is tiny, so lets see how it goes. maybe for the next run in a bit, after I upgrade from 13.2 to 14.0 18:43:21 I'll check again just to be sure. 18:49:11 cybercrypto, afaik this is possible if you have space 18:49:30 Just tested in VM 18:50:09 For example you have pool with name mypool with 2 disks stripe da0 da1. 18:50:34 zpool remove mypool da1 18:51:14 zpool attach mypool da0 da1 18:51:18 rtprio I just realized I can do NFS mount of that directory. never mind :)) 18:53:15 VVD: really 18:53:43 then you can zpool create newpool da1; copy your stuff; and then add the mirror 18:55:33 antranigv: can't you mount it over NFS if it's your LAN? 18:56:02 Remilia one message above ^ :D that's what I realized as well 18:56:24 oh 18:56:30 I glazed over that, sorry 19:11:29 rtprio, u don't need create new pool 19:12:12 after "zpool remove mypool da1" u get pool mypool with 1 disk da0 19:12:50 after "zpool attach mypool da0 da1" u get pool mypool with 2 disks mirror - da0 and da1 19:14:09 "zpool remove mypool da1" can work very long (depends free space on pool) 19:24:53 I swear to god I configure NFS for living, how is showmount not showing anything? 19:24:55 firewall ports should be 111, 2049, on TCP and UDP. did I miss something? 19:29:48 Can I do `bhyve -s 3:0,virtio-blk,/path/to/rootfs` where /path/to/rootfs is a directory? 19:30:25 FragmentedCurve you probably need p9fs for that :) 19:30:32 FragmentedCurve: probably not; why are you asking ? 19:31:10 I'm trying to mount an install of src as a root partition in bhyve 19:31:27 But I can't get bhyve to treat it as ufs 19:31:40 Unless I put the directory into an image with makefs 19:31:53 ok, follow antranigv's guidance to use p9fs, but you can use NFS too 19:33:37 Ok, I'll look at that. 19:52:14 I believe there is a typo in the portsnap(8) man page. At the bottom, a directory is shown as "/var/db//portsnap", when I think it should be "/var/db/portsnap"... 19:54:22 also weird that when one installs portsnap, /var/db/portsnap isn't automatically created. 20:10:09 these are only mild flaws, is portsnap working for you dfdx ? 20:10:41 maybe you want to switch to git-lite or gitup ? 20:27:06 mzar: i would not consider documentation errors mild flaws. in any case, portsnap is working for me, thanks. 20:32:41 cool, but portsnap is deprecated, please take a look at git 20:35:42 I read that portsnap was deprecated, i just couldn't find out what replaced it. If it's git, great, I can use that going forward. 20:35:49 Thanks. 20:55:03 I am installing www/nextcloud from ports and running through the `make config-recursive` step now. I noticed a config for openssl-3.0.15_1,1, which already seems to be installed. Is that normal? I definitely have the /usr/bin/openssl executable. 20:56:55 it's also asking me to configure bash, which I also already installed via packages earlier today. 20:57:15 should I uninstall openssl and bash before compiling these via ports? 20:57:47 i'm being asked to config all sorts of bizarre deps, like groff... 20:58:14 i mean i love groff, don't get me wrong. i'm not even asking *why* it's a dependency. I'm just curious why i'm being asked to configure it when it's already installed. 20:58:49 hm... nextcloud is only webapp, so you need http server, php engine and database, you don't have to install it from ports 21:00:54 mzar: yes, agreed. that's why I find this so weird. there is a nextcloud package, too, but it uses mysql instead of postgresql, which I prefer. so I made the switch in ports with `cd /usr/ports/www/nextcloud && make config`. but now running `make config-recursive` is making me configure all sorts of stuff, like just now i configured curl (!!!) 21:01:07 if you install it from ports or as a pkg it will probably pull apache and mysql, but if you want to run it on nginx and postgress you have to intstall nextcloud by nahd 21:01:10 hadn 21:01:12 hand 21:01:53 yes, precisely. I have always used postgresql and nginx on my other systems for nextcloud, so I was hoping to replcate that here (besides, my nextcloud database backup is in postgresql). 21:02:06 this is my first time using FreeBSD ports, so i'm not sure if i'm doing anything wrong. 21:04:17 it will only deteriorate your user experience 21:05:08 seems like everywhere I look everyone is discouraging the use of ports... why even include it as part of the OS at this point. 21:05:54 dfdx: ports are basically build recipes for third-party software on FreeBSD. you are meant to build them using something like poudriere rather than use manually. using them manually is largely an accident due to their history rather than the recommended way to interact with them 21:06:11 it's not like in 1990s, for 3+ FreeBSD systems you usually want to configure own poudriere and build ports in one place 21:06:27 most people that build their own port tree will use poudriere to build a package repository and then use that package repository via pkg 21:06:33 dstolfa: I'm coming from Gentoo so i'm very familiar and comfortable with something akin to ports. 21:06:52 IIRC Gentoo was FreeBSD inspired 21:07:16 yes, gentoo's portage is excellent, in my opinion. 21:08:09 dfdx: you can imagine poudriere + pkg as freebsd's "emerge" split into two parts: build the repository and install on a box (not an exact analogy, but it'll serve for the purpose of this point). cloning ports and going `make install` would be the equivalent of bypassing emerge and manually running the build steps 21:08:18 dfdx: so we have own builders running poudriere or poudriere-devel for such deployments 21:09:13 dstolfa: ahh... which of course, even on gentoo, no one really does (unless you're a developer, say). 21:09:39 so the lesson here is: read up and learn about poudriere, and then figure out how to install nextcloud with its dependencies via pouodriere. 21:09:42 do I have that right? 21:10:11 for single FreeBSD running nextcould I would install webserwer php modules and database using pkg and official pkg FreeBSD repository 21:10:44 poudriere is used for the build step, pkg is for the install step. official freebsd packages are distributed in that exact way, but building your own via poudriere allows you to target different architectures which may not be supported or change options to your liking sort of like gentoo does, although USE flags are more generic than what you'd see in freebsd ports 21:10:46 mzar: nextcloud is but the first of many things I want to install with my own custom modifications (e.g., mastodon being another one, which is "just" a huge ruby on rails program). 21:10:54 I keep getting "mountd[49337]: Warning: exporting /var/db/freebsd-update/files exports entire / file system". thoughts? 21:11:24 dstolfa: that was not what i thought you were going to say. 21:11:51 who cares right now about targeting different architectures? I'm on this machine and this machine only. how should I install nextcloud? 21:12:29 dfdx pkg install nextcloud? probably prefixed with phpXX- 21:12:34 pkg install nextcloud-phpXY if you don't want to change anything 21:12:47 antranigv: that will pull in mysql as a dependency; i prefer postgresql. what should I do in this case? 21:13:26 i have been running nextcloud for a number of years and my nextcloud database that i've always used (and have backed up, and plan to use to populate my freebsd nextcloud installation) is in postgresql. so i can't just switch to mysql right now. 21:13:38 oh 21:13:49 I was writing a long message on how to do it properly with Jails 21:13:49 for that you'd probably want to use poudriere to build nextcloud yourself and then pkg add it (no need to host a repo using nginx) 21:14:00 but in that case... you might need to build it yourself 21:14:00 but 21:14:03 before we do that 21:14:31 let's check the Makefile and see if you can install from pkg AND just install the deps for PSQL version, without building 21:14:53 meanwhile, can anyone help me with NFS? I just need a rubber ducky 21:15:07 I poked around the Makefile and saw both a MYSQL_USE and PGSQL_USE line items. 21:15:43 I also want to enable redis -- which the normal package doesn't pull in. 21:16:12 dfdx I think if you install the pdo's manualy, you might be able to get away with it :)) 21:16:21 but I might be wrong 21:16:25 when I run `cd /usr/ports/www/nextcloud && make config` I see options both for postgresql and redis, which I selected. 21:16:43 antranigv: when you say install the pdo's manually you mean via packages? 21:16:50 dfdx yup! 21:17:07 sure. I don't mind doing that. do I basically just do everything manually except for installing nextcloud then? 21:17:36 maybe not 21:17:48 actually, I think I would do `pkg install nextcloud` and then do `pkg install ` and finally do `pkg install postgresqlXX-server` 21:18:00 It may not necessarily be nextcloud that's dependent on mysql, maybe something else in the dependency tree is dependent on it. 21:18:21 TommyC would this help? https://cgit.freebsd.org/ports/tree/www/nextcloud/Makefile#n57 21:18:31 TommyC: yes, I thought about that. for example, when I ran `make config-rescurive` i was getting config options for sqlite. I can imagine a scenario where one of the deps itself requires sqlite. 21:18:43 i feel like i'm in dependency hell all over again. 21:18:53 * dfdx looks at calendar... notes that its is 2025... 21:19:19 antranigv: lines don't render well in lynx :/ 21:20:14 but it is looking like nextcloud itself is what depends on sql and not one of its dependencies (which makes sense to me) 21:20:52 i'm not sure if i should pay attention to `make all-depends-list`, which is 945 lines long... 21:21:11 if this is like a fresh brand new install then it's gonna be pretty long, yeah 21:21:29 it is a fresh band new install. i have installed bash, ssl, and... I think that's about it. i'm not sure where to get a list of hte history of packages i've installed. 21:21:32 but it's less than 10. 21:21:48 oh, i installed nginx. so that's at least 3. 21:22:11 dfdx: FWIW i'm not personally aware of any easy way to say: "build and install this port with these configurations" since i've never needed to really do that. the way i build my ports is by using poudriere to basically build the entire port collection and then use different machines to pkg install from that single repository. you could avoid hosting the repository and then simply use pkg add 21:22:17 /path/to/pkg.txz instead of pkg install .. but it's still not as simple as emerge if that's what you're looking for 21:23:32 dstolfa: so you build every package in the ports tree? and then pkg add is just like a glorified install(1)? 21:24:00 i guess I still don't see how that helps if you want to change dependencies, e.g., from mysql to postgresql, as an example. 21:24:31 dfdx: i build everything because the boxes i need to do it on break KBI which means i can't just use the official freebsd ones, i don't personally have usecases where i need to just modify & install a few things 21:24:39 well, poudriere allows you to specify options 21:24:47 so you can say to use psql and redis instead of mysql 21:24:54 dfdx: They did say "... i've never really needed to do that" 21:25:23 Fair enough. But isn't that kind of what `make config` does in /usr/ports/www/nextcloud? 21:25:30 dfdx: pretty much 21:25:40 maybe I can skip running `make config-recusrive` entirely? 21:25:50 Just curious though, why can't you convert the database (from pgsql) to mariadb? 21:25:59 yes, but it does so in a "dirty" environment as opposed to a clean one in a jail using a tool that is widely tested for building your own ports 21:26:09 TommyC: I don't know how to do that, and I 21:26:25 i've worked on postgresql for years and don't really want to switch to mariadb just becuase FreeBSD can't handle dependencies :|| 21:26:37 it would be nice to have a tool that does the equivalent of a gentoo emerge, but i'm not aware of one atm :/ 21:27:35 for a while there was synth that i believe was somewhat close to it, but i don't think it's supported anymore 21:27:42 Gentoo's emerge is phenomenal. the problem is that you get all the other linux problems that come with Gentoo. 21:27:55 that aren't necessarily gentoo-specific. 21:27:57 What are "... all the other linux problems ..."? 21:28:21 like having to configure your own initramfs if you want to combine LUKS and ZFS. 21:28:21 I have had nextcloud on MariaDB, but migrated all the instances to PostgreSQL one by one 21:28:52 dfdx: Does dracut not have a plugin to support that set up? 21:28:56 dfdx: oh actually.. last commit is a week ago: https://github.com/jrmarino/synth 21:28:59 maybe this helps? 21:29:01 not sure if this is the most relevant critique of gentoo 21:29:08 given dracut supports that out of the box 21:29:16 TommyC: the point is why do i even have to think about it? I could care less about the intricacies of my bootloader. 21:29:25 i don't think synth does quite as much as poudriere to ensure clean environments for builds, but it does have a synth install that could solve your problem 21:30:04 in fact, the default config file has both of those modules in it 21:30:12 you don't even need to edit it. 21:30:15 I was using portmaster in the past, but it's still time consuming process when compared to centralised poudriere server 21:30:19 duncan: if you can find me a tutorial that lets you install ZFS on LUKS encrypted hard disks and walks you through using dracut to roll your own initramfs I will read it. 21:31:16 configuring dracut is definitely in the handbook 21:32:21 it is possible that ZFS config isn't in the handbook, I don't know 21:32:27 duncan: ZFS is not in the handbook. 21:32:31 LUKS is also not in the handbook. 21:32:49 ZFS has its own wiki, ZFS/RootFS. But there are problems with it, and it doesn't incorporate LUKS. 21:32:56 in FreeBSD this is all very easy with GELI. 21:33:04 I'm not really sure what your criticism is, is it that it's gentoo? or is it that it's linux? 21:33:13 It's that its linux. 21:33:22 OK, typical IRC blether, then 21:33:43 I was trying to praise gentoo, not criticize it, so not sure why you jumped on that. 21:34:44 more to the topic, dfdx, if i was trying to do what you're trying to do now, i would probably look at testing synth (pkg install synth) in a local vm or something to make sure nothing goes horribly wrong, and if it works, just use that probably? 21:35:37 okay, thanks for your help. I will experiment. 21:36:22 dfdx: https://pastebin.com/98U4nqa7 <- pkg install $i , one by one, and then you can install nextcloud by hand 21:37:00 mzar: amazing, thank you. I tried coming up with a similar list, but it wasn't as complete as this. 21:48:05 could anyone invite github bot to #freebsd-pulse again ? 22:24:58 VVD: your suggestion quite good. 22:25:30 u r welcome :-] 22:26:03 VVD: I believe I will need to recreate. I am talking about zroot pool (not sure if the same applies) I am not that knowledge on it. 22:26:40 just try 22:26:40 imagine a freebsd standard installation with zfs on root using 2 disks striped. thats what I have now. 22:28:33 I want to convert that freebsd install from striped disks towards mirrored (so I get redundancy of one disk) 22:29:07 I can always reinstall... but I was wondering if any other way, therefore, my questioning. 22:33:40 cybercrypto: you can do that 22:33:56 see zpool-remove(8) 22:34:44 zfs is flexible 22:34:45 if I remove da1 from zroot pool - I believe I will loose data (since the zroot pool is stripe and not mirror yet 22:35:13 cybercrypto: read zpool-remove(8) first 22:35:20 remove: Removal of vdev 1 copied 15.1G in 0h0m, completed on Fri May 15 20:04:34 2020 22:35:56 your zpool will remember this 22:36:15 mzar: you saying that even if it is currently striped 2 disks = removing one disk will make zfs to recopy data into the remaining single disk? 22:36:43 I can't comfirm, neither deny, please read zpool-remove(8) 22:46:43 mzar: I can successfully use p9fs to mount root as you guys suggested above. This is only in CURRENT though, correct? 22:54:03 GOD DAMN IT JERRY 22:54:06 all this time 22:54:10 it was the NFSd tunable 22:54:15 and it was stuck in V4 mode 22:54:27 and I kept wondering "why isn't V3 working????" 22:54:33 I think it's a bug. 22:54:41 I will to reproduce today 22:55:35 OK, good luck with debugging antranigv 22:55:43 thanks for reporting FragmentedCurve 23:25:40 mzar: this is fabulous = remove: Evacuation of /dev/vtbd1p3 in progress since Fri Jan 3 20:24:48 2025 23:27:08 mzar: by removing one disk out of the vdev strip pool - the zfs is populating the remaining disk to guarantee the data. 23:27:18 cybercrypto, zpool remove copy all data from removed disk to remaining 23:27:34 VVD: Yes! 23:27:50 I tested this behavior several days ago 23:28:20 it works since we switched to openzfs 23:29:00 VVD: now, I have a 'spare' disk to attach again (this time, setting as mirror vdev) 23:29:31 worked like a charm 23:29:46 cybercrypto, I already wrote commands remove and attach 23:30:06 backup is stanfby anyway... but I can confirm I will not use bkp for this operation :D maybe another time 23:30:49 VVD: I know, I acknowledge your suggestions (history chat above) appreciate that. 23:30:52 running zpool labelclear on the device before attaching would be nice