< 082022-04-09⋎10 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
03:48symbioquine[m]<symbioquine[m]> "I really need to dust that one..." <- I took a first pass at dusting it off this evening and published some [next steps](github.com/farmOS/farmOS/pull/458#issuec) (mostly for me)... 😅
05:36FarmerEd[m]> <@noaht:matrix.org> Could anyone help me figure out this issue? I tried setting up a local instance of farmOS 2.x using the default docker-compose file, but it hasn't been working. I think it's failing to generate the correct files in the www directly, but not sure why. Heres the output message from the farmos/... (full message at libera.ems.host/_matrix/media/r0/downloa)
08:22ludwa6[m]<symbioquine[m]> "I'm curious why it makes much..." <- To put this in perspective: not a big hairy deal... Just enough of a PITA that it kinda takes the fun out of working with data.
08:28ludwa6[m]<symbioquine[m]> "Is it a performance problem?" <- Occasionally (as described above) when i try to pull a single set of some hundreds of records, i might get a server error... But now it's a human performance problem, in that i have to compile a data set via multiple operations, i.e.: copy/paste these 50-size subsets into a google sheet, 10x to get my 500 record set. Do this enough times, and i start to question the meaning of life!
08:34FarmerEd[m]You need node red 😉
08:34FarmerEd[m]Not sure if I've mentioned it previously🤣
08:41ludwa6[m]<symbioquine[m]> "If so, what are you trying to..." <- Immediate problem is trying to whittle my 250-ish set of 'Plant type' records down to the ~100-ish set that it should be, once i eliminate dupes (too easily created via typo, absent date entry constraints) and orphans (i.e. those w/ no related records), and then ensure each of my (more numerous) 'Plant asset' records is related to its proper 'Plant type' record. Not easy, since (as
08:41ludwa6[m]symbioquine well knows ;-) there is no reasonable way to find via 'Plant asset" record all the other records that point to it :-(
08:44ludwa6[m]<symbioquine[m]> "I took a first pass at dusting..." <- Great to hear, symbioquine ! And from the sounds of this todo list: github.com/farmOS/farmOS/pull/458#issuec
08:45ludwa6[m]... "em principio, ja esta feito," as we would say here in Portugal (i.e. already done -in principle :-)
08:47ludwa6[m]'course principles in PT are not quite as exacting as they are in other places, arguably... But don't get me started on that topic :-)
08:49ludwa6[m]<FarmerEd[m]> "Not sure if I've mentioned it..." <- You may have dropped a hint or few, Farmer Ed ... Which i will eventually follow-thru on i expect, once the pain of copy/pasting from farmOS to google sheets hits my pain threshold!
09:12FarmerEd[m]😁
09:13FarmerEd[m]I worked for IBM for nearly 17 years and probably never have promoted a product of theirs as much as I have Node Red since I left.
09:14FarmerEd[m]s/17/18/
09:19ludwa6[m]That is the surest indicator of a product worthy of trial: that it needs no professional sales force to drive adoption
09:33FarmerEd[m]Well I honestly think it is great for those data transfer operations like from file to API or even API to API.
09:33FarmerEd[m]I'm probably over using it at the moment as it has been a great tool to produce quick stop gap tools and definitely useful for prototyping my workflows but ultimately I'd like to build some of these as proper farmOS modules.
13:06ludwa6[m]<paul121[m]> "You could get all of your..." <- Q paul121 : did you happen to test this script? I've developed a GET request in Postman to pull me Name, ID (short) and UUID for all my 'Plant type' records... But when i replace UUID in your script with the actual value, i get no results, even for a 'Plant type' that i know is referenced as "Crop/variety" on many records. So: can you please test this script, just to confirm that i'm an idiot?
13:06ludwa6[m]<8-)...
15:17symbioquine[m]<ludwa6[m]> "... "em principio, ja esta feito..." <- Yeah, I think it's ready for another review pass now - probably from mstenta . I know he's busy though so it could still take a while to get through review and merged 😅
21:42Noaht[m]> <@farmer-ed:matrix.org> Did you ever get any further?
21:42Noaht[m]> I think I had similar issue with trying to install over an existing failed installation. You need to completely remove any directories that are a bind mount.
21:42Noaht[m]Yeah, I figured it out. I didn't realize how long it could take to finish initialization of the farmos container. If I may suggest something, I recommend adding a line at the end of the "1. Set up Docker containers" block at farmos.org/development/environment/ saying it may take some time for this setup to complete.
21:45FarmerEd[m]As a matter of interest what OS are you running? It seems it takes much longer on some OS's.
21:47Noaht[m]macOS Monterey
21:47Noaht[m]Took around 10 minutes or so to complete
21:47Noaht[m]Give or take a few
21:47mstenta[m]WOW!
21:47mstenta[m]It's like <10 seconds on Linux
21:48mstenta[m]What exactly took so long? Do you have any idea?
21:49Noaht[m]Surprised me too! The postgres DB was super fast. I think the longest part was copying the farmOS codebase
21:49FarmerEd[m]So not just an issue with the Linux subsystem for Windows then?
21:50mstenta[m]Are you using the development docker-compose config?
21:50Noaht[m]Yes
21:50mstenta[m](The production docker-compose only mounts the `sites` directory... not the whole codebase FWIW)
21:52Noaht[m]farmos-www-1 | farmOS codebase not detected. Copying from pre-built files in the Docker image.
21:52Noaht[m]Attaching to farmos-www-1, farmos-db-1
21:53Noaht[m]Not sure if it was the entire code base or not, but following the line above is what took some time.
21:59mstenta[m]Wow that is outrageous
21:59mstenta[m]I know I've heard that bind-mounts on Mac were slow... but wow.
21:59mstenta[m]And I thought that was fixed
22:00mstenta[m]maybe not... github.com/docker/for-mac/issues/3677
22:01mstenta[m](Docker issue, not farmOS) 🤷
23:55Noaht[m]I'm using the farmos.py module and I created a self signed local ssl key. When I attempt to authorize the client it's throwing a error because it's self signed.... (full message at libera.ems.host/_matrix/media/r0/downloa)
23:55Noaht[m]I running the server on my local machine.
23:58symbioquine[m]Maybe github.com/symbioquine/farmOS_wfs/blob/2

< 082022-04-09⋏10 >