< 112023-03-12⋎13 >

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
04:03*spitz234[m] has quit (*.net *.split)
04:03*botlfarm[m] has quit (*.net *.split)
04:04*spitz234[m] has joined
04:04*botlfarm[m] has joined
04:06*botlfarm[m] has quit (Ping timeout: 242 seconds)
04:06*keylum88[m] has quit (Ping timeout: 252 seconds)
04:06*scrdcow[m] has quit (Ping timeout: 252 seconds)
04:06*marcelo[m] has quit (Ping timeout: 246 seconds)
04:06*lordeddi[m] has quit (Ping timeout: 246 seconds)
04:06*symbioquine[m] has quit (Ping timeout: 256 seconds)
04:06*wotnak[m] has quit (Ping timeout: 265 seconds)
04:06*paul121[m] has quit (Ping timeout: 252 seconds)
04:06*piegeux[m] has quit (Ping timeout: 252 seconds)
04:06*spitz234[m] has quit (Ping timeout: 246 seconds)
04:06*OctavioMartnDuar has quit (Ping timeout: 264 seconds)
04:06*DavidWilson[m] has quit (Ping timeout: 260 seconds)
04:06*jgaehring[m] has quit (Ping timeout: 260 seconds)
04:07*yahtu[m] has quit (Ping timeout: 265 seconds)
04:07*FarmerEd[m] has quit (Ping timeout: 252 seconds)
04:07*mstenta[m] has quit (Ping timeout: 264 seconds)
04:07*gbathree[m] has quit (Ping timeout: 264 seconds)
04:10*jsoons[m] has quit (*.net *.split)
04:10*heartburn has quit (*.net *.split)
04:11*jsoons[m] has joined
04:11*jsoons[m] has quit (*.net *.split)
04:12*heartburn has joined
04:19*scrdcow[m] has joined
04:20*DavidWilson[m] has joined
04:20*jgaehring[m] has joined
04:20*symbioquine[m] has joined
04:20*wotnak[m] has joined
04:21*botlfarm[m] has joined
04:21*keylum88[m] has joined
04:22*marcelo[m] has joined
04:22*piegeux[m] has joined
04:22*mstenta[m] has joined
04:22*gbathree[m] has joined
04:22*OctavioMartnDuar has joined
04:23*paul121[m] has joined
04:23*FarmerEd[m] has joined
05:10*spitz234[m] has joined
05:15*yahtu[m] has joined
05:47*lordeddi[m] has joined
06:02*jsoons[m] has joined
09:00*botlfarm[m] has quit (Quit: You have been kicked for being idle)
09:00*keylum88[m] has quit (Quit: You have been kicked for being idle)
15:07FarmerEd[m]<FarmerEd[m]> "Ok think I have my 2.0.1 working..." <- Actually, still had an issue, and it broke my API access. (sorted now though)... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
15:08FarmerEd[m]I updated from beta7 to 2.0.1
15:09mstenta[m]Oh I ran into that at one point too Farmer Ed - I forget what I did to fix it... paul121 might remember?
15:09mstenta[m]🤔
15:09mstenta[m]Lemme see if I can dig it up...
15:10FarmerEd[m]I did this (for right or wrong)... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
15:10FarmerEd[m]followed by several Cache clears / Cron runs and deleting / re creating the consumer
15:11mstenta[m]ah yea, devel_entity_updates does usually work to fix that message
15:11mstenta[m]it's not recommended for "production" but as long as you are careful and have a backup i've never had a problem with it
15:12FarmerEd[m]yea, it fixed the message but API still would't work "invalid client"
15:12mstenta[m]i think the solution paul121 and I found is basically the same result
15:12mstenta[m]oh ok
15:12mstenta[m]so recreating your client fixed it?
15:12FarmerEd[m]yep
15:12mstenta[m]cool
15:12mstenta[m]it's because of changes to the simple_oauth and/or consumers modules if i remember correctly
15:13mstenta[m]basically we were waiting for those before tagging stable
15:13FarmerEd[m]think I tried recreating the client a few times, so cache clear and or cron run helped
15:14FarmerEd[m]mstenta[m]: I know............... but I was prepared to revert to backup if needed
15:14mstenta[m]we included some custom update hooks to try to workaround and smooth over the poorly released upstream changes, but maybe they didn't work in every scenario
15:15FarmerEd[m]I'm sorted now, just wanted to report back.
15:15mstenta[m]github.com/farmOS/farmOS/blob/4ec1709a7b
15:16mstenta[m]although maybe that bit was only partially related... i forget
15:16mstenta[m]in either case, now that you're on stable you should be good moving forward
15:16FarmerEd[m]I came across your comments in an thread on the oath2 module about that
15:17FarmerEd[m]mstenta[m]: Is it worth open an issue? or you already have something somewhere?
15:18mstenta[m]i don't think we need an issue. if it comes up again maybe, but hopefully most people who are using the API have made the jump from beta to stable now (or are starting on stable)
15:19mstenta[m]there is a simpler manual fix for it too... i can dig that up in my convo w/ paul121 if it comes up again
15:19mstenta[m](if i remember correctly)
15:20mstenta[m]sounds like you ended up fixing it all the same
15:20FarmerEd[m]I probably should have asked sooner, but sometimes I like digging holes 😃
15:21mstenta[m]haha yep. that seems to be a common theme among us here in #farmOS:matrix.org 😂
15:27FarmerEd[m]Hmm....
15:27FarmerEd[m]I may have a different issue, I'll ask since I'm here now
15:27FarmerEd[m]Image files uploaded to assets are not loading, initially noticed from my app through the API, but it's the same on the site.
15:27FarmerEd[m]probably need to check folder permissions
15:28mstenta[m]oh you know... symbioquine discovered an issue that may explain it
15:28mstenta[m]are you authenticating as the admin user, or a non-admin user?
15:28mstenta[m]maybe try as admin user and see if that works
15:28mstenta[m]github.com/farmOS/farmOS/pull/563
15:28FarmerEd[m]Admin at the moment
15:28mstenta[m]ah ok
15:28mstenta[m]nevermind then i guess
15:29mstenta[m]oh wait do you mean images you upload through the farmOS UI? or through API?
15:29mstenta[m](i assumed API)
15:30mstenta[m]* assumed API but then reread your description)
15:31symbioquine[m]mstenta[m]: Those with Asset Link installed already have that fix: github.com/symbioquine/farmOS_asset_link
15:31FarmerEd[m]Uploaded through farmOS UI as far as I remember, but they usually load in my app via API
15:31mstenta[m]oh nice symbioquine! that's a clever contrib workaround :-)
15:32mstenta[m]oh ok Farmer Ed huh. so you're saying NO asset images load in the farmOS UI for you?
15:32mstenta[m]or only recently uploaded ones? or... something else?
15:32symbioquine[m]mstenta[m]: Yeah, would have liked to help fix it upstream right away, but time being what it is...
15:33mstenta[m]that's part of the beauty of contrib + hooks - flexibility to fix things downstream until they get fixed upstream
15:33FarmerEd[m]think It's all uploaded probably an issue with my private folder so
15:36mstenta[m]yea could be. first check /admin/config/media/file-system to see if it looks right
15:37FarmerEd[m]just there now..... looks ok, but doing a save / cache clear anyway
15:37mstenta[m]then i'd probably try loading a file path directly in my browser, and see what the http status code is
15:37mstenta[m]and check logs
15:38mstenta[m]"private files" are served by Drupal, not Apache, so that application-level access control logic can be enforced on them... so if Drupal's having trouble reading them it may log the error
15:40FarmerEd[m]Forbidden
15:40FarmerEd[m]You don't have permission to access this resource.
15:40FarmerEd[m]Apache/2.4.54 (Debian) Server at farmos.maherfarm.work Port 80
15:41FarmerEd[m]think this relates to something else I've done recently
15:41FarmerEd[m]s/farmos.maherfarm.work/snip/
15:42mstenta[m]ok so that may be a Drupal access issue
15:42FarmerEd[m]I put everything behind a cloudflare tunnel so probably have a settings.php issue
15:42mstenta[m]oh interesting
15:43symbioquine[m]These threads were a good reminder to me that sometimes one is just troubleshooting at entirely the wrong network layer: github.com/symbioquine/farmOS_asset_link github.com/symbioquine/farmOS_asset_link 😒
15:44FarmerEd[m]yea........... in case oath2 wasn't interesting enough my API requests need additional cloudflare tokens
15:44symbioquine[m]TL;DR; Days and days of back and forth, only to find that the person's firewall was the cause of the 403 errors and POST requests weren't even reaching Drupal
15:44mstenta[m]debugging is an exercise in lateral thinking :-)
15:46FarmerEd[m]symbioquine[m]: Yea.......... I followed a lot of that...
15:47symbioquine[m]Took a lot of effort to stay patient/helpful there 😮‍💨
15:49mstenta[m]any of y'all ever do lateral thinking puzzles? the kind that are sort of like a clue and you have to figure out the specific situation by asking yes or no questions...
16:59FarmerEd[m]all is well here again
16:59FarmerEd[m]I hope
17:00FarmerEd[m]Had to update settings.php to do with hostnames and proxies
17:01FarmerEd[m]think I'll leave 2.0.2 till next week 🫣
17:02FarmerEd[m]<mstenta[m]> "any of y'all ever do lateral..." <- Pretty much every day, I work in software support now :D
18:07symbioquine[m]www.drupal.org/project/drupal/issues/306 😬
18:34symbioquine[m]TL;DR; You can't filter multi-value fields by two values inside the same AND condition. So instead of;... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
18:43FarmerEd[m]Bit of a PITA,
18:43FarmerEd[m]We could nearly do with a repo for filtering rules alone.
19:09mstenta[m]Another option might be to make a custom API endpoint via Views
20:37symbioquine[m]Well, as far as Asset Link is concerned, I don't think I have to. I should just be able to rewrite the query to employ the work-around...

< 112023-03-12⋏13 >