IRC logs for #farmOS, 2023-03-12 (GMT)

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