< 062019-01-07⋎08 >

farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Feature requests and bug reports: github.com/farmOS/farmOS/issuesSet by ChanServ on 2018-08-16 at 14:32
00:11*Fosten has joined
00:54*Fosten has quit (Quit: Leaving.)
01:47*Fosten has joined
08:10*Fosten has quit (Quit: Leaving.)
08:22*Fosten has joined
09:40*Fosten has quit (Quit: Leaving.)
09:51*Fosten has joined
09:51*Fosten has quit (Client Quit)
09:52*Fosten has joined
11:38*Fosten has quit (Quit: Leaving.)
13:54*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
13:59mstenta[m]jgaehring: Whoa never saw that one before...
14:00mstenta[m]Try `sudo docker network prune`
14:00mstenta[m]Per: stackoverflow.com/questions/43720339/doc
14:00mstenta[m]Might be just caused by starting a lot of docker containers and having too many
14:01mstenta[m](when you shut down a docker container it doesn't destroy it, nor the network, so if you're doing a lot of testing of different containers you need to clean them up from time to time)
14:03jgaehring[m]oh duh, it was the VPN.... i think i encountered that before the first time i ran docker-compose
14:04*jgaehring[m] has left ("User left")
14:06*jgaehring[m] has joined
14:06jgaehring[m]it's working now... reason i was updating though was b/c I couldn't get quick forms to work... do i need to do more than just enable the module from the GUI?
14:07mstenta[m]Ah yes. Do you see a Quick tab on the dashboard?
14:07mstenta[m]When you go to that you should see a configure form that lets you enable specific quick form
14:07mstenta[m]forms*
14:08jgaehring[m]i don't see the quick tab
14:08jgaehring[m]whoa, also just got this nasty error blowup when i went to the 'Areas' tab: `Fatal error: Class 'Drupal\openlayers\Types\Base' not found in /var/www/html/profiles/farm/modules/contrib/openlayers/src/Types/Map.php on line 14`
14:09mstenta[m]Ok sounds like you only did a partial update
14:10jgaehring[m]ah, ok
14:10jgaehring[m]i just did this: farmos.org/development/docker/#updating-
14:13mstenta[m]Oh haha I was just about to say "we need to write some documentation for updating docker dev environments" but there it is! :-D
14:13mstenta[m]Forgot I wrote that
14:13mstenta[m]Ok...
14:13jgaehring[m]hahaha
14:14mstenta[m]Did you do the `rm .data/www/profiles/farm/farm.info` part?
14:14jgaehring[m]now we can improve the documentation ;)
14:14jgaehring[m]i did
14:14mstenta[m]Ok... and did you run `sudo docker-compose down`?
14:14mstenta[m]`docker-compose down` is important because it destroys the container. Simply stopping the process won't.
14:14jgaehring[m]i did, but you what, maybe i need to run it again
14:15jgaehring[m]after those failed attempts to run docker-compuse up -d
14:15mstenta[m]oh ok
14:16jgaehring[m]still getting the same errors
14:17jgaehring[m]maybe try removing farm.info again?
14:17mstenta[m]did you go to /update.php and perform the automated updates?
14:17jgaehring[m]oh shoot
14:18mstenta[m]yea looking at the docs... that part's easy to miss
14:18mstenta[m]maybe we can make that more prominent
14:19jgaehring[m]hmm, at /update.php there are some errors too
14:19jgaehring[m]User warning: The following module is missing from the file system: libraries_cdn. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/html/includes/bootstrap.inc).
14:19jgaehring[m]User warning: The following module is missing from the file system: libraries_cdn. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/html/includes/bootstrap.inc).
14:19mstenta[m]you can ignore that
14:19mstenta[m]it will go away after update.php is run
14:21jgaehring[m]it won't let me run it
14:21jgaehring[m]also an openlayers error
14:21mstenta[m]oh?
14:21jgaehring[m]The configured Openlayers library variant (cdnjs:ol3:4.6.4) was not found. To install it, download it manually or use drush dl-openlayers. The library directory must be named openlayers3 to be recognized by this module. Don't forget to update your settings and select a valid library variant.
14:24mstenta[m]Ok can we try this again from the beginning real quick? Did you create a data-backup.tar.gz?
14:25jgaehring[m]i did
14:26mstenta[m]ok so shut down the containers, destroy them, and restore the backup
14:26*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
14:27mstenta[m]Then:
14:27mstenta[m]`rm .data/www/profiles/farm/farm.info`
14:28mstenta[m]And:
14:28mstenta[m]`sudo docker-compose up`
14:28mstenta[m]Watch the output of that in terminal... you should see farmOS being built by Drush make
14:28mstenta[m]Don't open/reload any of the pages in the browser
14:29mstenta[m]It MAY be that in this particular update you NEED to go to /update.php BEFORE you go to any other pages
14:29mstenta[m]So let's wait for farmOS to build, and then go straight to /update.php
14:31jgaehring[m]ok, i'ts building with drush now
14:31mstenta[m]cool
14:32jgaehring[m]ok it's done, go to /update.php?
14:33mstenta[m]yep
14:33mstenta[m]fingers crossed :-)
14:34jgaehring[m]same errors, still can't complete the update
14:37jgaehring[m]what about going to /admin/structure/features?
14:40*uploaded an image: image.png (124KB) < matrix.org/_matrix/media/v1/download/mat >
14:40jgaehring[m]do i need to recreate those that say "Overridden"?
14:42mstenta[m]Sorry back...
14:42mstenta[m]Ok, so let's just manually fix that Openlayers dependency issue
14:42mstenta[m]One sec...
14:44mstenta[m](PS: no, don't worry about /admin/structure/features)
14:47mstenta[m]Ok so this is the database command you need to run:
14:47mstenta[m]`UPDATE variable SET value = 'a:1:{s:10:"openlayers";a:2:{s:7:"variant";s:11:"local:4.6.4";s:5:"debug";i:0;}}' WHERE name = 'openlayers_config';`
14:47mstenta[m]so to do that via docker you would do...
14:49mstenta[m]`sudo docker exec -it farmos_db_1 mysql -u root -p -e "UPDATE farmos.variable SET value = 'a:1:{s:10:"openlayers";a:2:{s:7:"variant";s:11:"local:4.6.4";s:5:"debug";i:0;}}' WHERE name = 'openlayers_config';"`
14:49mstenta[m](That is assuming your farmOS database container is named `farmos_db_`)
14:50mstenta[m]I mean: `farmos_db_1`
14:50mstenta[m]After you run that, try reloading update.php and see if it lets you continue
14:51mstenta[m](btw that command will ask for you database root password, which in the Docker dev env default to simply `farmos`)
14:54jgaehring[m]haha, more errors
14:54jgaehring[m]User warning: The following module is missing from the file system: libraries_cdn. For information about how to fix this, see the documentation page. in _drupal_trigger_error_with_delayed_logging() (line 1143 of /var/www/html/includes/bootstrap.inc).
14:54jgaehring[m]Warning: array_key_exists() expects parameter 2 to be array, boolean given in Drupal\openlayers\Config::get() (line 60 of /var/www/html/profiles/farm/modules/contrib/openlayers/src/Config.php).
14:54mstenta[m]hmm, you can ignore the first
14:55mstenta[m]second... not sure... but can you proceed with update.php or no?
14:55jgaehring[m]nope
14:55jgaehring[m]still disabled
14:55jgaehring[m]still the same open layers error too
14:56mstenta[m]brb phone call
14:56jgaehring[m]np
14:57mstenta[m]did we ever get drush working in your env? last time we ran into issues because apt-get couldn't communicate with the network
14:58jgaehring[m]hm, i can't recall
15:01mstenta[m](i wonder if that was due to the VPN as well?)
15:01jgaehring[m]could have been
15:02jgaehring[m]i have it down now
15:02mstenta[m]`sudo docker exec -it farmos_www_1 apt-get update`
15:02mstenta[m]does that work?
15:03jgaehring[m]/update.php still shows the same errors
15:10mstenta[m]Did apt-get update work?
15:11mstenta[m]I want to get mariadb-client installed in your www container so that we can use Drush to solve the problem.
15:11mstenta[m]But we need to get apt-get working first.
15:12jgaehring[m]apt-get worked, but it didn't have to update anything
15:12mstenta[m]ok now do...
15:12*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
15:12mstenta[m]sudo docker exec -it farmos_www_1 apt-get install -y mariadb-client
15:13jgaehring[m]ok, that seems to have worked
15:13mstenta[m]cool
15:13mstenta[m]now:
15:13mstenta[m]`sudo docker exec -it farmos_www_1 drush vget openlayers_config`
15:13mstenta[m]tell me what that gives you
15:14mstenta[m](good to know for future reference that the VPN was preventing apt-get from working)
15:15*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
15:15mstenta[m]ah ok
15:16mstenta[m]so i think my previous mysql query screwed that up
15:17mstenta[m]how about trying this...
15:17mstenta[m]sudo docker exec -it farmos_www_1 drush php-eval '\Drupal\openlayers\Config::set("openlayers.variant", "local:4.6.4");'
15:17mstenta[m](not sure if that will work or not)
15:18mstenta[m]after you run that, run the previous command again to see if it changed the `openlayers_config` variable
15:18jgaehring[m]oh that might have worked
15:18*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
15:19jgaehring[m]and /update.php seems to be working
15:19mstenta[m]great!
15:19mstenta[m]YES!
15:19mstenta[m]that SHOULD take care of the rest (running update.php)
15:19jgaehring[m]cool!
15:19mstenta[m]not sure why yours got hung up on the openlayers config... i didn't experience that in my own testing (nor when I rolled it out to the sites I host)
15:20jgaehring[m]huh, yea, i can't imagine, unless it was necessary to load update.php first
15:20mstenta[m](shrug emoji)
15:21jgaehring[m]hehe, still not seeing quick forms though
15:21mstenta[m]ok - no tab at all?
15:21jgaehring[m]none at all
15:22mstenta[m]go to /admin/modules
15:22jgaehring[m]just tried turning it back on an off, no effect
15:22mstenta[m]and see if the Farm Quick module is enabled
15:22mstenta[m]the Quick module?
15:23jgaehring[m]Farm Quick Forms (farm_quick)
15:23jgaehring[m]there's also an openlayers quicktabs that is set to off
15:23mstenta[m]yup that one
15:23mstenta[m]no not the OL one
15:23jgaehring[m]but quick forms is on
15:23mstenta[m]ok hmm
15:23mstenta[m]what happens if you go directly to /farm/quick?
15:24mstenta[m]if you see the farm dashboard, then it's not working
15:24jgaehring[m]oh there they are!
15:24mstenta[m]oh!
15:24mstenta[m]weird
15:24mstenta[m]well... try turning on some... that might fix it
15:24mstenta[m]it was just the tab that wasn't working, for some reason...
15:25mstenta[m]turning on some quick forms may fix the tab too
15:25jgaehring[m]the quick forms are working, but still no tab for it
15:25mstenta[m]blast!
15:26mstenta[m]can you screenshot /farm/quick?
15:27*uploaded an image: image.png (65KB) < matrix.org/_matrix/media/v1/download/mat >
15:28mstenta[m]ok, i do see the tab there...
15:28mstenta[m](Dashboard, Produce Safety, Quick forms)
15:28mstenta[m](maybe "tab" was misleading? and it is working?)
15:31jgaehring[m]OHHHHHHH!!!
15:31jgaehring[m]duh
15:32mstenta[m]i take it that means they're working! great! :-D
15:33*farmBOT has joined
15:34mstenta[m]check out the new soil disturbance quick form
15:34mstenta[m]just pushed that up last week
15:34mstenta[m]in particular: start typing something (like "plow") into the "Activity" field under the "Disturbance Information" section - and click on one of the choices that appears
15:35mstenta[m]it will auto populate the STIR field below it (Soil Tillage Intensity Rating)
15:35mstenta[m]@dornawcox:matrix.org: check it out! ^
15:35mstenta[m](just a first step)
15:40dornawcox[m]Fantastic! Great to see the expanding interoperability.
15:45jgaehring[m]oh awesome!
16:31dornawcox[m]Hmm - the activity does not seem to be autopopulating. Is there a list handy of supported terms/operations?
16:32mstenta[m]does anything show up if you type "plow"?
16:34jgaehring[m]Yea! All the different categories
16:35mstenta[m]hmm... i am seeing the same issue @dornawcox:matrix.org - on farmier hosted sites... i will look into it
16:35mstenta[m]thanks jgaehring
16:35mstenta[m]good to know it worked for you
16:35mstenta[m]seems like the database table wasn't populated in these cases...
16:48mstenta[m]@dornawcox:matrix.org: fixed on wolfesneck.farmos.net
16:49mstenta[m]I need to run an update to fix other sites too...
16:49mstenta[m]thanks for the heads up
17:10*Fosten has joined
17:10*Fosten has quit (Client Quit)
17:12dornawcox[m]Very cool. One more important step.
20:08*Fosten has joined
20:09*Fosten has quit (Client Quit)
20:30*Fosten has joined
21:02*Fosten has quit (Quit: Leaving.)
22:58*nabil_ has joined
22:58*nabil_ has left ("Leaving")
23:46*Fosten has joined

< 062019-01-07⋏08 >