< 232022-02-24⋎25 >

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
10:24skipper_is[m]`v "${PWD}/sites:/opt/drupal/web/sites"` is the bind-mount command isnt it? Because I cannot seem to find /opt/drupal/web/sites...
10:25skipper_is[m]And is the module placement the same as FarmOS1.x?
11:30skipper_is[m]Am doing some additional field types, are they located in /modules/farm_modname/asset/land/ or /modules/asset/land/farm_modname/?
11:31skipper_is[m]I'm assuming it'd be modules/custom_module_name/
11:54skipper_is[m]...So some possible progress?
11:54skipper_is[m]I've tried to mimic the format of the /modules/asset/land/modules/types, but moved it to :
11:54skipper_is[m]/modules/farm_custom_land_types_vhf/ is this correct? Or does it still need to be in /modules/asset/land/modules/types/then the module name?
11:59mstenta[m]Yes that's correct. That "types" directory is just a deeply nested module directory
12:00mstenta[m]Did you put it in /modules or /sites/all/modules?
12:00skipper_is[m]/sites/all/modules/
12:01skipper_is[m]And bind-mount, I could only get to work somehow if I added the :shared tag after the directory
12:01skipper_is[m]github.com/Skipper-is/farm_vhffieldtypes
12:05skipper_is[m]Is the bind-mount volune live in the container, or does it need refreshing? Will the changes propagate through immediately? (I'm doing Clear Cache every time, but still nothing on my module list)
12:59mstenta[m]That link 404s for me
12:59skipper_is[m]Oh, it's private, my ba
12:59skipper_is[m]*bad
12:59mstenta[m]Bringing kids to school back later
13:01skipper_is[m]I've updated it to public
13:11mstenta[m]at quick look - the config/install and config/optional filenames are a bit off...
13:12mstenta[m]should just be `farm_land.land_type.[id].yml`
13:12mstenta[m]and `farm_map.layer_style.land_type_[id].yml`
13:13mstenta[m]but you said the module isn't even showing up in `/admin/modules`?
13:13skipper_is[m]It is not
13:13mstenta[m]or are you looking in `/farm/settings/modules`? only certain groups of modules get displayed there... needs to be in the "farmOS Contrib" package
13:13skipper_is[m]Ah, wasn't sure whether it needed the module name itself in the file name
13:13skipper_is[m]looking in admin/modules
13:13mstenta[m]ok if it's not showing up in `/admin/modules` then maybe somethings up with the volume mount
13:14mstenta[m]are you using docker compose? can you share the `volumes` line?
13:15skipper_is[m]I've justed used `docker run --rm -p 8080:80 -e VIRTUAL_HOST=farmOS2.valeheadfarm.com -v "${pwd}/sites:/opt/drupal/web/sites:shared" farmos/farmos`
13:16skipper_is[m]From the farmos2 documentation
13:16mstenta[m]oh ok, and `./sites/all/modules` has your module in it? (inside the directory you're running that form)?
13:16mstenta[m]s/form/from/
13:16skipper_is[m]yup
13:17mstenta[m]hmm seems like it should work
13:17mstenta[m]can you ctrl+f search for "Vale" on `/admin/modules` just to make sure it isn't hiding somewhere?
13:17mstenta[m]looks like it's in the "farmOS Assets" group
13:18mstenta[m](might want to change that to "farmOS Custom" - that's the pattern I use for custom modules)
13:19skipper_is[m]Yea, I was wondering about what group it should be in
13:20skipper_is[m]Nada on both
13:20skipper_is[m]I'm just wondering whether it is something off with my bind-mount settings
13:35mstenta[m]Yea not sure... Are you on Mac/Windows/Linux?
13:35skipper_is[m]Linux
13:36mstenta[m]I'm not familiar with how `:shared` works
13:36mstenta[m]I don't need to use that on my Linux
13:37mstenta[m]But I assume other stuff in your volume works? Like settings.php and uploading files?
13:37skipper_is[m]Don't know but without it there was no folder showing up in opt/drupal/web etc
13:37skipper_is[m]settings works, uploading files gives me a permissions error
13:37mstenta[m]Might be worth confirming that all works, and is actually persisting when you delete the container
13:38mstenta[m]Try deleting the container and see if your settings.PHP was persisted
13:38mstenta[m]Just to confirm
13:38skipper_is[m]...That is truly weird...
13:38skipper_is[m]It is persisting, somehow
13:38mstenta[m](assuming you don't have anything to lose)
13:38skipper_is[m]But that folder isn't updating, and I just emptied hte settings.php so it shouldnt work
13:38skipper_is[m]It's a clean install
13:39mstenta[m]Ok yea so maybe it's not actually persisting
13:39mstenta[m]And just saving inside the container, so it will be lost after you delete the container
13:40mstenta[m]Sorry on my phone right now... Can type better when I get back
13:40skipper_is[m]let me just confirm with the -v command, it is "target inside the container":"where it'll be accessible on the file system"?
13:40skipper_is[m]Not the other way around
13:54mstenta[m]its is `[dir outside the container]:[dir inside the container]`
13:55mstenta[m]so `${pwd}/sites:/opt/drupal/web/sites` will basically take the directory `./sites` and make it available inside the container at `/opt/drupal/web/sites`
13:56mstenta[m]one thing you could test is put a blank `test.txt` file in `./sites/test.txt` and then see if it shows up at `[mydomain]/sites/test.txt` in the browser
13:56mstenta[m]if not, then the volume isn't working
14:51skipper_is[m]Various fiddlings, restarts and cleared caches later, it seems to be working!
14:53skipper_is[m]So I've got my custom field types added. Is there any examples for modifying the migration for custom land types
14:53skipper_is[m]* land types?
14:58skipper_is[m]I can see the bit in github.com/farmOS/farmOS/blob/2.x/module for the default 1.x fields, but can't quite see how they map to the 2.x fields, I assume they're of the same name
15:26mstenta[m]brb on the phone...
15:32skipper_is[m]No problem.
15:32skipper_is[m]I'm also wondering how to edit that file in the docker container, to add in my bits, is there another way of editing the contents of the container prior to it running? Or do I need to mount the main modules folder too?
15:40skipper_is[m]I'm assuming the migration module is in `/opts/drupal/web/profiles/farm/modules/core/migrate/`
15:46skipper_is[m]I'm running : `docker run --rm -p 8080:80 -e VIRTUAL_HOST=###### -v "${PWD}/sites:/opt/drupal/web/sites" -v "${PWD}/migrate:/opts/drupal/web/profiles/farm/modules/core/migrate/" farmos/farmos` And then hoping that I can edit the migration options through that, but the /migrate/ folder is empty, so I assume something isn't quite right there
16:31paul121[m]hey all, the dev call might be a bit quiet today - at least some of us are at the Hack@Organic hackathon! farmos.discourse.group/t/feb-24-26-hacka
16:31mstenta[m]oh yes! thanks paul121 - i won't be there
16:32mstenta[m]everyone should come to the hackathon!! :-D
16:49symbioquine[m]There are two Youtube links; www.youtube.com/watch?v=0PJ0fvJdGjU & www.youtube.com/watch?v=3ENUi_UpV2k Not sure if that's intentional
16:52paul121[m]yeah.... not sure...
16:59paul121[m]working here: www.youtube.com/watch?v=TTsaEsp5K-k
17:00symbioquine[m]Yeah
17:12mstenta[m]Ah yea - so are you trying to migrate custom land types?
17:12mstenta[m]eg: you have custom types in v1 that you want to migrate to v2?
17:12mstenta[m]Here is a pattern you can copy in your module:
17:13mstenta[m]github.com/farmOS/farm_forest/blob/2.x/c
17:13mstenta[m]you need to add a file to your module in `config/optional/migrate_plus.migration.farm_migrate_area_[mytype].yml`
17:15mstenta[m](NOT in the farmOS core migration directory... fyi when you bind-mount a volume into a docker container it completely REPLACES that directory inside the container... that's why it made it empty for you ... so you don't want to do that in the farmOS core dirs... you just need to add migration config to YOUR module)
17:15mstenta[m]that example above migrates `stand` and `plantation` area types from v1 to `natural` and `plantation` land types in v2
17:58*uploaded an image: (758KiB) < libera.ems.host/_matrix/media/r0/downloa >
18:00paul121[m]woot woot who wants to hack on eco system service goals w/ farmOS ??
18:01paul121[m]maybe* :-)
18:14skipper_is[m]Is there a way of disabling the Warning message on FarmOS2, I know there is a security update available, stop telling me!
18:17mstenta[m]yes turn off the Update module
18:18skipper_is[m]Aha!
18:18skipper_is[m]And migration can only be called through Drush?
18:18mstenta[m]yea as far as i know
18:19mstenta[m](there might be a ui way to do it, but untested...)
18:19skipper_is[m]And can Drush be called through docker?
18:19mstenta[m]yes!
18:19mstenta[m]it's already installed in the container in `vendor/bin/drush`
18:19mstenta[m]`/opt/drupal/vendor/bin/drush`
18:20mstenta[m]hold on there's something in the docs i can point to...
18:20mstenta[m]farmos.org/development/environment/drush
18:20mstenta[m]`docker exec -it -u www-data [container name] drush`
18:20mstenta[m]i have a bash alias for it:
18:21mstenta[m]`alias fdrush='sudo docker exec -it -u www-data farmos_www_1 vendor/bin/drush'`
18:21mstenta[m]`fdrush` :-)
18:21mstenta[m](just replace `farmos_www_1` with your container name)
18:21skipper_is[m]So then you can just call fdrush
18:21skipper_is[m]Nice
18:21mstenta[m]and put that in `~/.bash_aliases`
18:21skipper_is[m]farmos_www_1 is the container name?
18:22symbioquine[m]If you're using `docker-compose`, you can avoid the more complicated prefixed container names...
18:22symbioquine[m]e.g. `docker-compose exec www whoami`
18:22mstenta[m]`farmos_www_1` is the container name if you use docker compose and your folder is called "farmOS"
18:22mstenta[m]so no... yours would be different
18:22mstenta[m]run `docker ps` to find out
18:22skipper_is[m]Ah, yea that's why mine is suspicious brown..
18:23symbioquine[m]But in that case, you need to run those commands from somewhere where `docker-compose` is aware of it.
18:23skipper_is[m]Which makes me suspect that Docker is racist
18:23mstenta[m]when you do `docker run` you can give it a specific name...
18:23mstenta[m]haha
18:24mstenta[m]> But in that case, you need to run those commands from somewhere where `docker-compose` is aware of it.
18:24mstenta[m]that's only if you use `docker-compose exec`... i use `docker exec` which works everywhere
18:34skipper_is[m]My FarmOS1.x doesn't seem to have a sites/default/private/files folder, is that ok?
18:34skipper_is[m]all of mine seem to be in default/files
18:37skipper_is[m]Nevermind, I moved it somewhere weird.. because of course I did...
18:41mstenta[m]Oh maybe you aren't using the private filesystem?
18:41skipper_is[m]For some reason it was set to /home/drupalFiles
18:42skipper_is[m]Moved them over, and now.. it's still not working...
18:42mstenta[m]I actually forget the details in v1 but I know that originally the default was not private
18:42mstenta[m]And you've had a v1 instance for a while so maybe you never used private?
18:43mstenta[m]I don't *think* it will matter though... You're following the migration docs right?
18:43skipper_is[m]It had 2 CSV files in it
18:43skipper_is[m]Yea, but it keeps failing on that step and not going further
18:44skipper_is[m]I was going to go through each group individually, but it failed immediately on the next one
18:44mstenta[m]What keeps failing? Migration? Or installation?
18:44skipper_is[m]Migration
18:44mstenta[m]You can get details with the drush migrate:messages command
18:48mstenta[m]here are some helpful commands...
18:48mstenta[m]`drush migrate:status --tag="farmOS 1.x"`
18:48mstenta[m]will show an overview of ALL farmOS v1->v2 migrations
18:49mstenta[m]`drush migrate:messages [migration name]` will show any messages/errors for a specific migration
18:49skipper_is[m]Most are idle, apart from taxonomy_animal_type, which is the one that gave me a warning, but when I do messages:taxonomy_aimal_type it says no messages
18:49mstenta[m]if you run into an issue on a migration, you should `drush migrate:rollback [migration name]` to roll it back before retrying
18:49skipper_is[m]So I stopped it, but now it's just sitting there saying "stopping"
18:50mstenta[m]ah ok - so sometimes if something break you need to "reset status"...
18:50mstenta[m]`drush migrate:reset-status farm_migrate_taxonomy_animal_type`
18:50skipper_is[m]Yea, just did that now, and it rolled back happily
18:50mstenta[m]ok cool
18:50mstenta[m]fyi the command for messages would be: `drush migrate:messages farm_migrate_taxonomy_animal_type`
18:51skipper_is[m]Yea, it just took ages to type out....
18:51mstenta[m]haha
18:52mstenta[m]just makin sure :-)
18:52mstenta[m]i'm headed back into the hackathon but will keep this chat open...
18:52mstenta[m]if you want to hop into one of the empty hackathon rooms with me i'd be happy to do some troubleshooting!
18:53skipper_is[m]Much appreciated!
18:53skipper_is[m]I'll see if it runs into any more issues!
19:02skipper_is[m]If an import fails, it is hateing one particular private file because I had deleted it ages ago (I assume....), can it be resumed from that point? Is there a skip function?
19:04mstenta[m]yes actually i think you can just re-run
19:11skipper_is[m]It doesn't mind if some of it is complete?
19:12*sent a code block: libera.ems.host/_matrix/media/r0/downloa
19:12skipper_is[m]How does it not exist?!
19:13skipper_is[m] * ```... (full message at libera.ems.host/_matrix/media/r0/downloa)
19:27mstenta[m]Huh when did that happen? Never saw that...
19:28skipper_is[m]Farm_migrate:import, was all happy, files had just completed, taxonomy started, and it threw that
19:31mstenta[m]sorry a bit distracted right now...
19:32skipper_is[m]No worries :)
19:32skipper_is[m]I'm just running and rolling back hoping that one time it'll get through
20:04skipper_is[m]Nope, no idea....
20:06skipper_is[m]Can I add the taxonomy manually (urgh)? Or will the ids need to match?
20:32mstenta[m]Hey skipper_is sorry it's afternoon time here picking up kids and such
20:32mstenta[m]Trying to think what the problem might be though...
20:33skipper_is[m]It seems that the revisions table is the issue though, as I've tried with the assets, and it is throwing the same error (wrong approach I know, as the dependencies aren't there)
21:10mstenta[m]hmm yea... i've never seen that error before `General error: 1093 You can't specify target table 'taxonomy_term_revision' for update in FROM clause`
21:11mstenta[m]are you using PostgreSQL?
21:11mstenta[m]i'm seeing some reports of that error but they seem to be mysql specific, eg: stackoverflow.com/questions/4429319/you-
21:12skipper_is[m]Went back to MySQL after the PostGreSQL issues years ago
21:12mstenta[m]WHAT! skipper_is you're one of the reasons I went with PostgreSQL! 😂
21:12skipper_is[m]Ha
21:12mstenta[m]lol
21:12skipper_is[m]I switched over to MySQL just because of all the issues in FarmOS1
21:12mstenta[m]well i guess now you've discovered a MySQL bug
21:12mstenta[m]congratulations
21:13mstenta[m]:-P
21:13skipper_is[m]That's my speciality
21:13mstenta[m]hahaha
21:13skipper_is[m]I think PostGreSQL is still running, I'll try it on that
21:13mstenta[m]so here's where that query is generated, if you want to try to fix it: github.com/farmOS/farmOS/blob/bd6499ecb5
21:13mstenta[m]it's part of farmOS code, so definitely a bug on us
21:14mstenta[m]i never tested migrations into mysql
21:14skipper_is[m]I am just going to switch over to PostGreSQL again I guess...
21:14mstenta[m]🤦
21:14mstenta[m]haha ok yes that's probably a good idea anyway
21:15skipper_is[m]Was nice having it all on the same db, but it's still running in the background
21:16mstenta[m]i suppose i should fix this mysql bug regardless...
21:16skipper_is[m]maybe I'll hang on until then....
21:16skipper_is[m]PostGreSQL is playing games and not making me a new db for FarmOS2..
21:17skipper_is[m]I think it's cranky I haven't opened it in 2 years
21:23mstenta[m]i honestly don't understand what's wrong with that query...
21:24skipper_is[m]Something about the inner join joining with itself?
21:24mstenta[m]i might not have a chance to debug this... but would you open a bug report?
21:24mstenta[m]so i don't forget
21:24skipper_is[m]stackoverflow.com/questions/45494/mysql-
21:25mstenta[m]it makes me wonder if other queries in the migration code are also affected, eg: github.com/farmOS/farmOS/blob/bd6499ecb5
21:25mstenta[m](that one, though, only runs if you are rolling back...)
21:26skipper_is[m]Quite possibly, but I only got so far. It would complete the first lot of migrations though, weirdly
21:26skipper_is[m]So the animal taxonomy was all imported, but it still failed
21:26mstenta[m]fwiw, if you just comment out this line it should allow you to migrate: github.com/farmOS/farmOS/blob/bd6499ecb5
21:27mstenta[m]the only downside is you won't get the nifty revision messages on your entities that says "Migrated on [date]"
21:28skipper_is[m]I can probably live with that
21:28skipper_is[m]Got to figure out how to bind that volume now too...
21:28mstenta[m]oh to make the edit?
21:29skipper_is[m]yea
21:29mstenta[m]you can just edit directly in the container...
21:29mstenta[m]`docker exec ... -it [container-name] bash`
21:29mstenta[m]that will drop you into a bash shell inside the container
21:29mstenta[m]then you can use `vi`
21:29skipper_is[m]Oooh
21:29skipper_is[m]That is handy
21:34skipper_is[m]vi?
21:35mstenta[m]en.wikipedia.org/wiki/Vim_(text_editor)
21:35skipper_is[m]Ohh, like Nano
21:35mstenta[m]yea - if you're coming from nano/emacs it might be a bit tricky
21:36mstenta[m]but you can `apt-get install nano` if you want (i believe)
21:36mstenta[m]just note: any changes you make inside the container (like editing this file, or installing `nano`) will be LOST as soon as you destroy the container... but that's fine in this case, because you're just making a temporary change to fix your migration
21:37skipper_is[m]Yea, perfect
21:37mstenta[m](unless of course you make changes in your mounted volumes... in which case it WILL persist)
21:39skipper_is[m]Alright, here goes V2
21:40skipper_is[m]Oh, I had another error message that was an asset failing to import, as Notes.0.format= was set to an invalid value
21:40skipper_is[m]Only on 2 animals
21:41skipper_is[m]I thought maybe it was the notes/description setting being something weird, but it was farm_format
21:44skipper_is[m][error] Migration failed with source plugin exception: SQLSTATE[23000]: Integrity constraint violation: 1052 Column &#039;id&#039; in on clause is ambiguous: SELECT DISTINCT &quot;fa&quot;.*, &quot;fs&quot;.&quot;type&quot; AS &quot;sensor_type&quot;, &quot;fs&quot;.&quot;settings&quot; AS &quot;sensor_settings&quot;... (full message at libera.ems.host/_matrix/media/r0/downloa)
21:44skipper_is[m]Another one for you....
21:45skipper_is[m]Failed on the sensor_listeners this time
21:54mstenta[m]> Oh, I had another error message that was an asset failing to import, as Notes.0.format= was set to an invalid value
21:54mstenta[m]oh did you figure this one out? or not?
21:56skipper_is[m]I think it was set to plain_text
21:56mstenta[m]oh ok - did you change it in the v1 database to `farm_format`?
21:59skipper_is[m]Yea
21:59skipper_is[m]It went through perfectly
22:00skipper_is[m]Just sensors that snagged now
22:00mstenta[m]ok great
22:00mstenta[m]i wonder if that's a mysql-specific query issue too
22:01mstenta[m](so bizarre because usually postgresql is the "stricter" one...)
22:01mstenta[m]i believe this is the code you're snagging on: github.com/farmOS/farmOS/blob/2.x/module
22:02mstenta[m]`Column id in on clause is ambiguous`
22:04mstenta[m]i don't understand why though
22:05skipper_is[m] `$query->join('farm_sensor', 'fs', 'fa.id = fs.id');` This?
22:05mstenta[m]ah actually... yea that's what i thought... but looking at the error more it looks like there's another join happening...
22:06mstenta[m]`LEFT OUTER JOIN farm2_vhf.migrate_map_farm_migrate_asset_sensor &quot;map&quot; ON id = map.sourceid1`
22:06skipper_is[m]And id is ambiguous
22:06mstenta[m]yea...
22:07mstenta[m]ah... on the trail...
22:08mstenta[m]wait nevermind :-(
22:09mstenta[m]i think that join might be added deeper down by the Drupal Migrate module itself (??)
22:09mstenta[m]and it probably isn't aliasing the table... but we are adding our own join WITH aliases...
22:11mstenta[m]ok i'm confused... i'm not actually sure where this query is coming from
22:12*uploaded an image: (7KiB) < libera.ems.host/_matrix/media/r0/downloa >
22:12skipper_is[m]I imagine this being a string of expletives
22:13mstenta[m]:-P
22:13mstenta[m]well i can only assume this TOO is a mysql issue...
22:14mstenta[m]but wait hold on........ the old database IS mysql...
22:14mstenta[m](right??)
22:14skipper_is[m]They both are
22:14mstenta[m]ok - so then maybe it's not a mysql syntax issue...
22:15mstenta[m]because that query is being run on the v1 database... and we DID test that because all v1 databases are mysql
22:15mstenta[m](i'd still be curious to see if a mysql->postgresql works fine for you...)
22:16skipper_is[m]Yea, I'll give that one a spin tomorrow, just trying to iron out my custom area type module before that
22:16skipper_is[m]`The "pasture" plugin does not exist. Valid plugin IDs for Drupal\farm_entity\AssetTypeManager are: animal, compost, equipment, group, land, material, plant, seed, sensor, structure, water (/opt/drupal/web/core/lib/Drupal/Component/Plugin/Discovery/DiscoveryTrait.php:53)`
22:16mstenta[m]cool - yea i'd definitely recommend migrating to postgresql if at all possible
22:16skipper_is[m]It's now going swimmingly
22:16skipper_is[m]*not
22:16mstenta[m]ok THAT i can help with :-)
22:17mstenta[m]do you have the code on github to look at?
22:17mstenta[m]oh wait... are you creating a new asset type?
22:17skipper_is[m]No
22:17skipper_is[m]New land type
22:17mstenta[m]what is your `config/install/..` file named?
22:18mstenta[m]farmos.org/development/module/fields/#la
22:18skipper_is[m]farm_land.land_type.garden.yml
22:18mstenta[m]ps we have some docs for this exact thing... but they are a bit hidden
22:18skipper_is[m]github.com/Skipper-is/farm_vhffieldtypes
22:18mstenta[m]ok what's "pasture"?
22:18skipper_is[m]one of the land types
22:18mstenta[m]ok what is that file named?
22:19skipper_is[m]migrate_plus.migration.farm_migrate_area_vhf.yml
22:19mstenta[m]`farm_land.land_type.pasture?.yml`
22:19mstenta[m]s/?././, s/`/`?/
22:19skipper_is[m]Oh
22:19skipper_is[m]Yea
22:19mstenta[m]are you SURE it's named that? copy and paste?
22:19skipper_is[m]farm_land.land_type.pasture.yml
22:19mstenta[m]because it sounds like it's trying to create an asset type
22:19skipper_is[m]That is copied and pasted from github
22:20mstenta[m]`Valid plugin IDs for Drupal\farm_entity\AssetTypeManager are: animal, compost, equipment, group, land, material, plant, seed, sensor, structure, water`
22:20mstenta[m]`AssetTypeManager`
22:20mstenta[m] * "`AssetTypeManager`"
22:21mstenta[m]oh ... you said you're not sure if the volume mount is working?
22:21skipper_is[m]Which I assumed it was refering to this: process:... (full message at libera.ems.host/_matrix/media/r0/downloa)
22:21mstenta[m]so the code on github might NOT be what's running in your container?
22:21skipper_is[m]I just pushed it now from my container
22:22skipper_is[m](well, from my -v volume
22:22mstenta[m]oh wait... sorry... what's actually going wrong? CREATING the land types? or MIGRATING them?
22:22mstenta[m]i was assuming "creating"
22:22skipper_is[m]Migrating
22:22mstenta[m]ahh oh sorry
22:22skipper_is[m]Creating seems to be ok, I can see it on the list of land types
22:22mstenta[m]ok ok gotcha
22:22mstenta[m]sorry i was going down the wrong path :-)
22:22mstenta[m]one sec...
22:26mstenta[m]> ok THAT i can help with :-)
22:26mstenta[m]i may have been overzealous
22:26skipper_is[m]Oh :(
22:27mstenta[m]your migration yml LOOKS good
22:27skipper_is[m]From the forest example you sent me, I've only changed the area_types at the top/middle, and where it said "forest_type" I assumed it meant land_type
22:27mstenta[m]OH WAIT! question: did you install the module and then make changes to the YML?
22:28skipper_is[m]I did....
22:28mstenta[m]AHHH HAAA
22:28mstenta[m]:-)
22:28skipper_is[m]I cleared CC
22:28skipper_is[m]Drupal 8 doesn't work like that does it?
22:28mstenta[m]ahhhh yeaaaa you would THINK that would make a difference... it does not.
22:28mstenta[m]in this case, "config" only gets created on initial module install
22:28mstenta[m]so it only reads that YML file on first install
22:28skipper_is[m]ah
22:28mstenta[m]ok ok,.... here's what to do...
22:29mstenta[m]drush en config_update_ui
22:29skipper_is[m]Uninstall and reinstall?
22:29skipper_is[m]Ooh ok
22:29mstenta[m]or that
22:29mstenta[m]you could just do that... i think in this case that would be harmless
22:30mstenta[m]i was going to show you the "config comparison UI" :-)
22:30skipper_is[m]Not good with more complex modules?
22:30skipper_is[m]I'll go with config comparison
22:30mstenta[m]well... i was just thinking... if your module provided an asset type (for instance), and you had migrated assets, then uninstalling that module wouldn't be possible
22:31mstenta[m]but in this case you're just dealing with land types, so that wouldn't matter i don't think
22:31mstenta[m]and they haven't been migrated (that's the whole point haha)
22:31skipper_is[m]So I've enabled config_update_ui
22:31mstenta[m]in the UI go to Administration > Configuration > Development > Configuration Synchronization
22:32skipper_is[m]There are no changes?
22:32mstenta[m]Then click the "Updates Report" tab - and click the "Everything" button
22:33mstenta[m]That will show a summary of ALL config that doesn't match what's in modules (essentially)
22:33mstenta[m]search for "vhf"
22:33skipper_is[m]Ooh look at that
22:33mstenta[m]it should show your migration config - revert that
22:33mstenta[m]"revert" will basically revert it to the module YML
22:34mstenta[m]just to explain: "config" is used for a LOT of things in Drupal - and basically Drupal maintains it in the database... so when a module is installed it reads from `config/install` and creates all those as "config entities" in Drupal
22:34skipper_is[m]I don't have the migration for the VHF area types
22:34mstenta[m]this `config_update_ui` module is an add-on module that helps to visualize the differences
22:35mstenta[m]oh? you don't see that config item in the "Everything" report?
22:35skipper_is[m]I do not...
22:35skipper_is[m]If they didn't exist when it was installed, would they still be there?
22:35mstenta[m]uhhh... but you were able to run the migration?
22:35mstenta[m](i assume you did - to get the error)
22:36skipper_is[m]Yea, the migration option is there
22:36mstenta[m]alright - well if it doesn't appear in the "Everything" report, that suggests that it's NOT overridden
22:36skipper_is[m](and I checked it was being updated by adding a V2 to the title)
22:36mstenta[m]and the YML in the file IS the config being used
22:37mstenta[m]> If they didn't exist when it was installed, would they still be there?
22:37mstenta[m]they would show under "missing config" i believe
22:37mstenta[m]but the fact that you ran the migration means it's not missing
22:37mstenta[m]and the fact it's not showing under "changed config" means that it matches the module
22:37mstenta[m]did you uninstall and reinstall? after that error occurred?
22:38skipper_is[m]Giving that a try now
22:39mstenta[m]ok - worth a shot
22:40mstenta[m]i would be curious to have you `bash` into the container, navigate to your module, and confirm that the YML matches what's in GitHub
22:40mstenta[m]eg: if something funky happened with the volume mount, and the code was NOT updated... that could explain all this
22:40mstenta[m]and `bash`ing into the container to look at what's *actually* in there would tell you that
22:40skipper_is[m]Yea, though when I added V2 to the title, it appeared in the migration window
22:41mstenta[m]oh ok that's what you meant
22:41mstenta[m]well that's good
22:41mstenta[m]i still suspect overridden config...
22:41mstenta[m]but reinstalling the module should resolve that
22:42mstenta[m]ooh wait... you might run into an issue when you try to re-install...
22:42mstenta[m]your module needs to be in this list: github.com/farmOS/farmOS/blob/bd6499ecb5
22:42skipper_is[m]The bash version matches
22:43skipper_is[m]oh that list, one second
22:43mstenta[m]unfortunately i don't think that config is going to be deleted when your module gets uninstalled
22:43mstenta[m]so when you try to reinstall it's going to complain that it already exists
22:44mstenta[m]i have to sign off soon for dinner...
22:44mstenta[m]here are some helpful drush commands:
22:44mstenta[m]`drush config:revert migrate_plus.migration.farm_migrate_area_structure`
22:45mstenta[m]^ will revert the config to whatever is in your module
22:45mstenta[m]`drush config:delete ...` will delete it
22:45skipper_is[m]structure?
22:45mstenta[m](in case you run into the issue i just described, where you can't reinstall the module)
22:45mstenta[m]oh oops sorry
22:45mstenta[m]copied the wrong name
22:46mstenta[m]`migrate_plus.migration.farm_migrate_area_vhf`
22:46mstenta[m]s/farm_migrate_area_structure/farm_migrate_area_vhf/
22:46skipper_is[m]oh, in the sites modules folder
22:47skipper_is[m]That all matches
23:10skipper_is[m]Went for the complete wipe approach... Gone for PostGreSQL
23:42mstenta[m]oh nice :-)
23:43skipper_is[m]For the sensors, no graphs anymore?
23:43mstenta[m]no... not yet :-(
23:43skipper_is[m]Ah ok, but planned?
23:43skipper_is[m]As much as I like looking at a sheet of data :)
23:44skipper_is[m]It is late o' clock... But I really want to see this migration done
23:44mstenta[m]yea just one of the things that didn't make it to v2 yet
23:44mstenta[m]www.drupal.org/project/farm/issues/32030
23:44skipper_is[m]Doing the 2656 logs now..
23:44mstenta[m]oh man yea it's late for me it must be very late for you
23:45skipper_is[m]23:45...
23:45skipper_is[m]I've got my goat shed live camera on as well, and I'm really hoping I don't see one giving birth as I don't want to have to deal with that tonight...
23:46mstenta[m]haha
23:46skipper_is[m]fb.watch/bnQAP_uJ_p/ If anyone wants to see some goats...
23:46mstenta[m]i came across this the other day - ever heard of it? github.com/ZoneMinder/ZoneMinder
23:47skipper_is[m]Oh nice!
23:47skipper_is[m]Can it do some nice object recognition too? That'd be cool
23:47mstenta[m]zoneminder.com/
23:48mstenta[m]> Amazing 3rd party integrations - ALPR, Object/Person Detection, Event Blending and more
23:48mstenta[m]maybe!
23:48skipper_is[m]Very cool
23:48mstenta[m]oh fyi, re sensor graphs, might be something you can use jupyterlite for!
23:49mstenta[m]farmos.discourse.group/t/share-your-jupy
23:49skipper_is[m]Oh nice!
23:49mstenta[m]at least to mock something up
23:49skipper_is[m]Right, I'm going to bed!
23:49mstenta[m]gnight!
23:49skipper_is[m]Goodnight and thank you for all your help!

< 232022-02-24⋏25 >