-
skered
I can run multiple `nc -l :: <n>` or `nc -l 0.0.0.0 <n>` or `nc -l 127.0.0.1 <n>` and I don't get port in use error on the second instance.
-
skered
Is that expected with FreeBSD or is there something unique about my setup that would allow it.
-
skered
Like have multiple IPv6 or IPV4 addresses
-
mewt
,/34
-
delta0
.
-
pertho
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?
-
antranigv
Do we have an example in base Kyua where we're testing a command line utility?
-
pertho
s/ECS/EC2/
-
rtprio
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
-
pertho
rtprio: would that be in dmesg?
-
[tj]
antranigv: are you asking how to run kyua or if there is documentation?
-
rtprio
pertho: in `pool status`
-
[tj]
antranigv: tests(7) is the place to look, it includes this example:
-
[tj]
$ kyua test -k /usr/tests/Kyuafile bin/cp usr.bin/cut
-
pertho
rtprio: zpool status shows no errors
-
antranigv
[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.
-
pertho
I'm just wondering if I need ashift=12 for EBS disks or else there could be some performance penalty?
-
[tj]
antranigv: I am not aware of an example of kyua being as easy to use as `make test`
-
rtprio
since they're virtual i would imagine that you don't need it
-
antranigv
[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?
-
[tj]
the man page is saying that
-
[tj]
the kyua tests ship in /usr/tests
-
[tj]
some kyua tests are along side the tool in the source tree and some are in /usr/src/tests/
-
pertho
rtprio: ah cool.. good to know
-
antranigv
[tj] thank you! time to start researching!
-
[tj]
I'm happy to help if you have more questions - this isn't straight forward to use
-
[tj]
for individual tests you can use kyua debug
-
[tj]
but not for sets of tests
-
jnewt
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
-
jnewt
I can ssh to the server and create a file in the ./objects folder. any ideas as to what could be going on?
-
rtprio
that looks like git
-
rtprio
what is the ownership and permissions on whatever/objects/18 and the file (if it exists)
-
jnewt
owned by another user who is working in the repository as well.
-
jnewt
drwxr-sr-x halemu git halemu is not my username
-
rtprio
then unless you're in the same group and it's chmod 664 it's not going to work
-
jnewt
we're both in the git group
-
rtprio
but christ, it's 2024 you could spin up a gitea instance faster than it'd take you to figure this out
-
rtprio
*2025 hah
-
jnewt
idk what that is
-
rtprio
do you know what umask is?
-
jnewt
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
-
rtprio
so each user will need to set their umask correctly so that files they create will hav e the right permissions
-
rtprio
and each file will need 664 and directory 775
-
ek
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.
-
rtprio
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
-
ek
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.
-
rtprio
ek: don't do that
-
ek
Ah. There's directories.
-
ek
I thought it was just files.
-
ek
I suppose you could just keep it really simple and do: chmod g+w .
-
ek
And just be done from the base directory.
-
rtprio
yes, you could use that syntax i suppose
-
rtprio
jnewt: gitea is a selfhosted git platform. can run sqlite. self contained.
-
ek
Wouldn't remove the setgid bit (again, not sure if it's even needed.)
-
rtprio
it is, he has two developers in the `git` group
-
ek
Right, but are the executing the code together or something? It certainly isn't needed just to share write access.
-
rtprio
what isn't needed?
-
ek
The setgid bit on the base dir.
-
rtprio
right, setgid shoudln't be needed if everyone sets their umask before shitting across the repo
-
ek
I thought gitea was dead?
-
CrtxReavr
This is an impressive project:
github.com/izabera/pseudo3d
-
ek
Oh, no, that was gitosis or something.
-
CrtxReavr
With zero special terminal config, it ran in putty on a remote FreeBSD server, with quite reasonable performance, I'd say.
-
ek
CrtxReavr: Interesting, for sure.
-
rtprio
ek: no, it is not dead. some folks didn't like the vibe and make forjo
-
tsoome
tsoome
-
tsoome
oops
-
cybercrypto
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?
-
cybercrypto
or is it that the only way is to do it destroying and starting from scratch?
-
rtprio
cybercrypto: since that's smaller than your original config, you would have to re-create
-
cybercrypto
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.
-
cybercrypto
rtprio: thanks.
-
antranigv
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.
-
rtprio
antranigv: i don't think that would work, but you could probably pre-populate the /var/db/freebsd-update/files directory?
-
rtprio
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
-
antranigv
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
-
antranigv
I'll check again just to be sure.
-
VVD
cybercrypto, afaik this is possible if you have space
-
VVD
Just tested in VM
-
VVD
For example you have pool with name mypool with 2 disks stripe da0 da1.
-
VVD
zpool remove mypool da1
-
VVD
zpool attach mypool da0 da1
-
antranigv
rtprio I just realized I can do NFS mount of that directory. never mind :))
-
rtprio
VVD: really
-
rtprio
then you can zpool create newpool da1; copy your stuff; and then add the mirror
-
Remilia
antranigv: can't you mount it over NFS if it's your LAN?
-
antranigv
Remilia one message above ^ :D that's what I realized as well
-
Remilia
oh
-
Remilia
I glazed over that, sorry
-
VVD
rtprio, u don't need create new pool
-
VVD
after "zpool remove mypool da1" u get pool mypool with 1 disk da0
-
VVD
after "zpool attach mypool da0 da1" u get pool mypool with 2 disks mirror - da0 and da1
-
VVD
"zpool remove mypool da1" can work very long (depends free space on pool)
-
antranigv_
I swear to god I configure NFS for living, how is showmount not showing anything?
-
antranigv_
firewall ports should be 111, 2049, on TCP and UDP. did I miss something?
-
FragmentedCurve
Can I do `bhyve -s 3:0,virtio-blk,/path/to/rootfs` where /path/to/rootfs is a directory?
-
antranigv
FragmentedCurve you probably need p9fs for that :)
-
mzar
FragmentedCurve: probably not; why are you asking ?
-
FragmentedCurve
I'm trying to mount an install of src as a root partition in bhyve
-
FragmentedCurve
But I can't get bhyve to treat it as ufs
-
FragmentedCurve
Unless I put the directory into an image with makefs
-
mzar
ok, follow antranigv's guidance to use p9fs, but you can use NFS too
-
FragmentedCurve
Ok, I'll look at that.
-
dfdx
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"...
-
dfdx
also weird that when one installs portsnap, /var/db/portsnap isn't automatically created.
-
mzar
these are only mild flaws, is portsnap working for you dfdx ?
-
mzar
maybe you want to switch to git-lite or gitup ?
-
dfdx
mzar: i would not consider documentation errors mild flaws. in any case, portsnap is working for me, thanks.
-
mzar
cool, but portsnap is deprecated, please take a look at git
-
dfdx
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.
-
dfdx
Thanks.
-
dfdx
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.
-
dfdx
it's also asking me to configure bash, which I also already installed via packages earlier today.
-
dfdx
should I uninstall openssl and bash before compiling these via ports?
-
dfdx
i'm being asked to config all sorts of bizarre deps, like groff...
-
dfdx
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.
-
mzar
hm... nextcloud is only webapp, so you need http server, php engine and database, you don't have to install it from ports
-
dfdx
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 (!!!)
-
mzar
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
-
mzar
hadn
-
mzar
hand
-
dfdx
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).
-
dfdx
this is my first time using FreeBSD ports, so i'm not sure if i'm doing anything wrong.
-
mzar
it will only deteriorate your user experience
-
dfdx
seems like everywhere I look everyone is discouraging the use of ports... why even include it as part of the OS at this point.
-
dstolfa
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
-
mzar
it's not like in 1990s, for 3+ FreeBSD systems you usually want to configure own poudriere and build ports in one place
-
dstolfa
most people that build their own port tree will use poudriere to build a package repository and then use that package repository via pkg
-
dfdx
dstolfa: I'm coming from Gentoo so i'm very familiar and comfortable with something akin to ports.
-
mzar
IIRC Gentoo was FreeBSD inspired
-
dfdx
yes, gentoo's portage is excellent, in my opinion.
-
dstolfa
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
-
mzar
dfdx: so we have own builders running poudriere or poudriere-devel for such deployments
-
dfdx
dstolfa: ahh... which of course, even on gentoo, no one really does (unless you're a developer, say).
-
dfdx
so the lesson here is: read up and learn about poudriere, and then figure out how to install nextcloud with its dependencies via pouodriere.
-
dfdx
do I have that right?
-
mzar
for single FreeBSD running nextcould I would install webserwer php modules and database using pkg and official pkg FreeBSD repository
-
dstolfa
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
-
dfdx
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).
-
antranigv
I keep getting "mountd[49337]: Warning: exporting /var/db/freebsd-update/files exports entire / file system". thoughts?
-
dfdx
dstolfa: that was not what i thought you were going to say.
-
dfdx
who cares right now about targeting different architectures? I'm on this machine and this machine only. how should I install nextcloud?
-
antranigv
dfdx pkg install nextcloud? probably prefixed with phpXX-
-
dstolfa
pkg install nextcloud-phpXY if you don't want to change anything
-
dfdx
antranigv: that will pull in mysql as a dependency; i prefer postgresql. what should I do in this case?
-
dfdx
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.
-
antranigv
oh
-
antranigv
I was writing a long message on how to do it properly with Jails
-
dstolfa
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)
-
antranigv
but in that case... you might need to build it yourself
-
antranigv
but
-
antranigv
before we do that
-
antranigv
let's check the Makefile and see if you can install from pkg AND just install the deps for PSQL version, without building
-
antranigv
meanwhile, can anyone help me with NFS? I just need a rubber ducky
-
dfdx
I poked around the Makefile and saw both a MYSQL_USE and PGSQL_USE line items.
-
dfdx
I also want to enable redis -- which the normal package doesn't pull in.
-
antranigv
dfdx I think if you install the pdo's manualy, you might be able to get away with it :))
-
antranigv
but I might be wrong
-
dfdx
when I run `cd /usr/ports/www/nextcloud && make config` I see options both for postgresql and redis, which I selected.
-
dfdx
antranigv: when you say install the pdo's manually you mean via packages?
-
antranigv
dfdx yup!
-
dfdx
sure. I don't mind doing that. do I basically just do everything manually except for installing nextcloud then?
-
TommyC
maybe not
-
antranigv
actually, I think I would do `pkg install nextcloud` and then do `pkg install <whatever deps needed for psql>` and finally do `pkg install postgresqlXX-server`
-
TommyC
It may not necessarily be nextcloud that's dependent on mysql, maybe something else in the dependency tree is dependent on it.
-
antranigv
-
dfdx
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.
-
dfdx
i feel like i'm in dependency hell all over again.
-
» dfdx looks at calendar... notes that its is 2025...
-
TommyC
antranigv: lines don't render well in lynx :/
-
TommyC
but it is looking like nextcloud itself is what depends on sql and not one of its dependencies (which makes sense to me)
-
dfdx
i'm not sure if i should pay attention to `make all-depends-list`, which is 945 lines long...
-
TommyC
if this is like a fresh brand new install then it's gonna be pretty long, yeah
-
dfdx
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.
-
dfdx
but it's less than 10.
-
dfdx
oh, i installed nginx. so that's at least 3.
-
dstolfa
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
-
dstolfa
/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
-
dfdx
dstolfa: so you build every package in the ports tree? and then pkg add is just like a glorified install(1)?
-
dfdx
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.
-
dstolfa
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
-
dstolfa
well, poudriere allows you to specify options
-
dstolfa
so you can say to use psql and redis instead of mysql
-
TommyC
dfdx: They did say "... i've never really needed to do that"
-
dfdx
Fair enough. But isn't that kind of what `make config` does in /usr/ports/www/nextcloud?
-
TommyC
dfdx: pretty much
-
dfdx
maybe I can skip running `make config-recusrive` entirely?
-
TommyC
Just curious though, why can't you convert the database (from pgsql) to mariadb?
-
dstolfa
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
-
dfdx
TommyC: I don't know how to do that, and I
-
dfdx
i've worked on postgresql for years and don't really want to switch to mariadb just becuase FreeBSD can't handle dependencies :||
-
dstolfa
it would be nice to have a tool that does the equivalent of a gentoo emerge, but i'm not aware of one atm :/
-
dstolfa
for a while there was synth that i believe was somewhat close to it, but i don't think it's supported anymore
-
dfdx
Gentoo's emerge is phenomenal. the problem is that you get all the other linux problems that come with Gentoo.
-
dfdx
that aren't necessarily gentoo-specific.
-
TommyC
What are "... all the other linux problems ..."?
-
dfdx
like having to configure your own initramfs if you want to combine LUKS and ZFS.
-
mzar
I have had nextcloud on MariaDB, but migrated all the instances to PostgreSQL one by one
-
TommyC
dfdx: Does dracut not have a plugin to support that set up?
-
dstolfa
dfdx: oh actually.. last commit is a week ago:
github.com/jrmarino/synth
-
dstolfa
maybe this helps?
-
duncan
not sure if this is the most relevant critique of gentoo
-
duncan
given dracut supports that out of the box
-
dfdx
TommyC: the point is why do i even have to think about it? I could care less about the intricacies of my bootloader.
-
dstolfa
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
-
duncan
in fact, the default config file has both of those modules in it
-
duncan
you don't even need to edit it.
-
mzar
I was using portmaster in the past, but it's still time consuming process when compared to centralised poudriere server
-
dfdx
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.
-
duncan
configuring dracut is definitely in the handbook
-
duncan
it is possible that ZFS config isn't in the handbook, I don't know
-
dfdx
duncan: ZFS is not in the handbook.
-
dfdx
LUKS is also not in the handbook.
-
dfdx
ZFS has its own wiki, ZFS/RootFS. But there are problems with it, and it doesn't incorporate LUKS.
-
dfdx
in FreeBSD this is all very easy with GELI.
-
duncan
I'm not really sure what your criticism is, is it that it's gentoo? or is it that it's linux?
-
dfdx
It's that its linux.
-
duncan
OK, typical IRC blether, then
-
dfdx
I was trying to praise gentoo, not criticize it, so not sure why you jumped on that.
-
dstolfa
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?
-
dfdx
okay, thanks for your help. I will experiment.
-
mzar
dfdx:
pastebin.com/98U4nqa7 <- pkg install $i , one by one, and then you can install nextcloud by hand
-
dfdx
mzar: amazing, thank you. I tried coming up with a similar list, but it wasn't as complete as this.
-
mzar
could anyone invite github bot to #freebsd-pulse again ?
-
cybercrypto
VVD: your suggestion quite good.
-
VVD
u r welcome :-]
-
cybercrypto
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.
-
VVD
just try
-
cybercrypto
imagine a freebsd standard installation with zfs on root using 2 disks striped. thats what I have now.
-
cybercrypto
I want to convert that freebsd install from striped disks towards mirrored (so I get redundancy of one disk)
-
cybercrypto
I can always reinstall... but I was wondering if any other way, therefore, my questioning.
-
mzar
cybercrypto: you can do that
-
mzar
see zpool-remove(8)
-
mzar
zfs is flexible
-
cybercrypto
if I remove da1 from zroot pool - I believe I will loose data (since the zroot pool is stripe and not mirror yet
-
mzar
cybercrypto: read zpool-remove(8) first
-
mzar
remove: Removal of vdev 1 copied 15.1G in 0h0m, completed on Fri May 15 20:04:34 2020
-
mzar
your zpool will remember this
-
cybercrypto
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?
-
mzar
I can't comfirm, neither deny, please read zpool-remove(8)
-
FragmentedCurve
mzar: I can successfully use p9fs to mount root as you guys suggested above. This is only in CURRENT though, correct?
-
antranigv
GOD DAMN IT JERRY
-
antranigv
all this time
-
antranigv
it was the NFSd tunable
-
antranigv
and it was stuck in V4 mode
-
antranigv
and I kept wondering "why isn't V3 working????"
-
antranigv
I think it's a bug.
-
antranigv
I will to reproduce today
-
mzar
OK, good luck with debugging antranigv
-
mzar
thanks for reporting FragmentedCurve
-
cybercrypto
mzar: this is fabulous = remove: Evacuation of /dev/vtbd1p3 in progress since Fri Jan 3 20:24:48 2025
-
cybercrypto
mzar: by removing one disk out of the vdev strip pool - the zfs is populating the remaining disk to guarantee the data.
-
VVD
cybercrypto, zpool remove copy all data from removed disk to remaining
-
cybercrypto
VVD: Yes!
-
VVD
I tested this behavior several days ago
-
mzar
it works since we switched to openzfs
-
cybercrypto
VVD: now, I have a 'spare' disk to attach again (this time, setting as mirror vdev)
-
cybercrypto
worked like a charm
-
VVD
cybercrypto, I already wrote commands remove and attach
-
cybercrypto
backup is stanfby anyway... but I can confirm I will not use bkp for this operation :D maybe another time
-
cybercrypto
VVD: I know, I acknowledge your suggestions (history chat above) appreciate that.
-
mzar
running zpool labelclear on the device before attaching would be nice