< 082022-11-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
00:27paul121[m]👀 Maybe they can share more at our monthly call tomorrow??
01:31threewordchant<jgaehring[m]> "paul121: you should have been..." <- thanks for the welcome, and the kind words jgaehring! (and for your time earlier, awesome chat from my perspective too 😊)
01:31threewordchant<paul121[m]> "👀 Maybe they can share more at..." <- what time is that? I'm down!
01:31threewordchant* I'm down in theory!
01:47jgaehring[m]<paul121[m]> "👀 Maybe they can share more at..." <- Oh almost forgot that was tmw, 11am Pacific 3wc ~ they/them:
01:54symbioquine[m]farmos.org/community/monthly-call/
02:18threewordchantawesome, thanks both! 🙏
02:58*farmBOT has joined
03:11threewordchantis this a decent place to ask for some help getting started with a deployment? I'm trying to get a Co-op Cloud hosted version going properly in time for the meeting tomorrow, in case folks are interested in a demo or some tyre-kicking – but running into some PHP errors that I haven't seen in Github issues
03:15threewordchantusing `farmos/farmos:2.x` docker image, `postgresql:12`
03:16threewordchantand seeing `InvalidArgumentException: Class "\Drupal\farm_ui_dashboard\Controller\DashboardController" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()`
03:16threewordchantand ` Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "collapsible_filter" plugin does not exist. Valid plugin IDs for Drupal\\views\\Plugin\\ViewsPluginManager are: default" at /opt/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53
03:16threewordchant * and `Uncaught PHP Exception Drupal\\Component\\Plugin\\Exception\\PluginNotFoundException: "The "collapsible\_filter" plugin does not exist. Valid plugin IDs for Drupal\\views\\Plugin\\ViewsPluginManager are: default" at /opt/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php line 53`
03:21threewordchant* – but I'm running into
03:21threewordchant * and seeing `InvalidArgumentException: Class "\Drupal\farm_ui_dashboard\Controller\DashboardController" does not exist. in Drupal\Core\DependencyInjection\ClassResolver->getInstanceFromDefinition()`
03:41threewordchantI tried ticking all the options in the installer, then... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
04:15threewordchantupdate: `farmos/farmos:2.x-dev` works fine locally. trying `2.x` (non-dev) locally next
04:20symbioquine[m]The `2.x` docker tag might be out of date on your system... What if you try `farmos/farmos:2.0.0-beta7`?
04:23symbioquine[m]<threewordchant> "and seeing `InvalidArgumentExcep..." <- Were there any errors in the docker console log during the installation? How about if you go to `my-farmos-url.example.com/admin/reports/` after the install?
04:26threewordchantthanks symbioquine! 🙏
04:27threewordchant<symbioquine[m]> "The `2.x` docker tag might be..." <- ```... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
04:27threewordchants/calix/user/
04:27threewordchanttrying the manual `2.0.0-beta7` tag now, while also trying `2.x` locally
04:28threewordchant<symbioquine[m]> "Were there any errors in the..." <- I ate the logs but I'll keep an eye, and try that URL, with the `2.0.0-beta7` tag deployment
04:35threewordchant<threewordchant> "update: `farmos/farmos:2.x-dev..." <- hmm `farmos:2.x` also works locally 🤔 so I suspect my `compose.yml` file
04:36threewordchantcompose file is here: git.coopcloud.tech/coop-cloud/farmos/src
04:55threewordchantyeah some errors in docker logs before starting install:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
04:56threewordchant�2022-11-09T04:56:24.647603794Z 2022-11-09 04:56:24.647 UTC [117] STATEMENT: SELECT "cid", "data", "created", "expire", "serialized", "tags", "checksum" FROM "cache_config" WHERE "cid" IN ( 'core.extension' ) ORDER BY "cid"
04:56threewordchant�2022-11-09T04:56:24.648549296Z 2022-11-09 04:56:24.648 UTC [117] ERROR: relation "public.cache_config" does not exist at character 409
04:57threewordchantsome output from `drush ws` on the remote server:
04:57threewordchant```
04:57threewordchantWarning: is_dir(): Unable to find the wrapper "private" - did you forget to enable it when you configured PHP? in Drupal\Core\File\FileSystem->prepareDirectory()
04:57threewordchant```
04:58threewordchant(I see a lot of these locally too tho)
04:58threewordchant> <@3wc:autonomic.zone> some output from `drush ws` on the remote server:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
05:02threewordchantand, last for now - when I try and hit `.../dblog`:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
05:04threewordchantlarge subset of docker logs: paste.centos.org/view/1a9e34c0
05:04threewordchantlast 100 `drush ws` messages: paste.centos.org/view/35936a84
05:27symbioquine[m]> <@3wc:autonomic.zone> some output from `drush ws` on the remote server:... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
05:28symbioquine[m] * This is probably not related to the `DashboardController`/`ViewPageController` missing issue
06:03paul121[m]Hmm yeah these are some odd errors.. by chance have you tried a `drush cr` ?
12:15mstenta[m]> paul121: you should have been there just now for the lil demo 3wc ~ they/them just showed me, they whipped up a farmOS recipe for coopcloud.tech/ and I was just....
12:15mstenta[m]ooh cool!
12:21mstenta[m]Huh yea... weird PHP errors indeed. I've never seen those and can't think why they would occur with the docker compose config you are using... lgtm 🤔
12:22mstenta[m]The other SQL/Drush errors/notices are "normal"... no worries there
12:22mstenta[m]Really just seems that something is wrong with the Drupal codebase, causing issues with classes not being found
12:26mstenta[m]3wc ~ they/them: we also host a weekly dev call - welcome join that too! maybe we could debug a bit together. monthly calls are usually less technical, but would be cool to hear more about coopcloud from a high level either way! feel free to add to our agenda: farmos.discourse.group/t/farmos-monthly-
15:05threewordchant<mstenta[m]> "Huh yea... weird PHP errors..." <- thanks so much for looking!
15:07threewordchant<mstenta[m]> "3wc ~ they/them: we also host..." <- ah fantastic, thanks! what time are the weekly dev calls? (sorry I did try `site:farmos.org` search this time, but no 🎲🎲)
15:09mstenta[m]ah yea that one isn't on the website 😅
15:10mstenta[m]farmos.discourse.group/t/farmos-communit
15:13FarmerEd[m]Maybe they should be?
15:14mstenta[m]or at least a link to that forum topic
15:16mstenta[m]3wc ~ they/them: my gut says its a volume issue you're experiencing, but i'm not sure what exactly
15:17mstenta[m]is it possible that you have changed the volume config and might have a persistent volume hanging over from a previous attempt?
15:18mstenta[m]maybe worth blowing everything away and trying again fresh?
15:18mstenta[m]eg: if you originally mounted the whole /opt/drupal codebase and then later changed to /opt/drupal/web/sites
15:18mstenta[m]just a guess
15:19threewordchantI think I tried that, but I will do again! I'm wondering if maybe the volume is mounted too deep? my working local config is `/opt/drupal`, the non-working one is `/opt/drupal/web/sites`
15:19mstenta[m]recommended production volume is /opt/drupal/web/sites, so that updates can be made by updating the image
15:20mstenta[m]otherwise you also have to manage rebuilding the codebase inside the volume
15:21mstenta[m] /opt/drupal/web/sites will just be the persisted settings and uploaded files
15:22mstenta[m]this is standard Drupal, so if you get it working then you can start hosting Drupal more generally! 😄
15:22mstenta[m](more to it than just running containers, but a first step!)
15:45threewordchant<paul121[m]> "Hmm yeah these are some odd..." <- did this, ran successfully, still no joy. I'll try clearing volumes and then switching the volume mountpoint.
15:45threewordchantthanks so much for assistance, everyone 🙏
15:46mstenta[m]huh. the fact that `drush` "ran successfully" is itself perplexing... and might disprove whatever hypothesis i had with volumes 😅
15:46mstenta[m]drush uses the same PHP files/classes as Drupal
15:47mstenta[m]something fishy is going on...
17:53threewordchant<threewordchant> "did this, ran successfully..." <- so weird! clearing volume didn't work, but switching to `/opt/drupal/
17:53threewordchants/`//\`//, s////` did/
17:54threewordchants////\` did/
17:54threewordchants////` did/
17:55threewordchantanyway, it's working! 🎉
17:55threewordchantfarmos.demo.coopcloud.tech/
17:55mstenta[m]oh ya know what? this might be related to bind-mount vs named volumes behavior
17:55mstenta[m]maybe...
17:56mstenta[m]> anyway, it's working! 🎉
17:56mstenta[m]cool!!
17:56mstenta[m]maybe we can talk more on call... or dev call if you can join
17:57mstenta[m]typing is hard for me right now, and about to jump on a call
17:57mstenta[m]but good work 3wc ~ they/them !
18:04threewordchant<mstenta[m]> "farmos.discourse.group/t..." <- nice thanks! I think I'm free 🙂
18:05threewordchant<mstenta[m]> "oh ya know what? this might be..." <- could well be!
18:38mstenta[m]this is what i was thinking... but now that i think about it i don't see how it would matter in this case stackoverflow.com/a/49635340/5365545
18:39mstenta[m]we have a special entrypoint script to fill in bind-mounted volumes
18:39mstenta[m]but i think you are using named volumes
18:39mstenta[m]i think both should work fine though
18:40mstenta[m]github.com/farmOS/farmOS/blob/2.x/docker
18:50symbioquine[m]farmOS monthly call in 10 minutes farmos.org/community/monthly-call/
18:51symbioquine[m]* minutes farmos.org/community/monthly-call/ - meet.jit.si/farmos-community
19:16threewordchant<mstenta[m]> "github.com/farmOS/farmOS..." <- ah this sounds like a brilliant clue, thank you! 🙏 will take a look ASAP
19:58mstenta[m]paul121 jgaehring symbioquine I added you all to the farmOS.org webmaster tools
20:04symbioquine[m]<symbioquine[m]> "Also, it doesn't look like that..." <- Created github.com/farmOS/farmOS.org/issues/59 to track my investigation into this...

< 082022-11-09⋏10 >