< 252023-02-26⋎27 >

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
16:04lordeddi[m]i am trying to go through the update process farmos.org/hosting/update/
16:04lordeddi[m]it says automated-updates.
16:04lordeddi[m]does this cover v2.0-beta4 -> v2.0.1 ?
16:05lordeddi[m]also, the steps on the update.php state: install your new files in the appropriate location, as described in the handbook
16:05lordeddi[m]does that mean downloading farmOS tarbal 2.0.1 and unpacking it, then replacing all files EXCEPT the /sites ?
16:06lordeddi[m]making sure, i do have backups of which one has been restored just now, just to make sure :D
16:29mstenta[m]> does this cover v2.0-beta4 -> v2.0.1 ?
16:29mstenta[m]yes it should!
16:29mstenta[m]are you running farmOS in Docker? or in a normal Apache webroot?
16:30lordeddi[m]this is a "normal apache webroot"
16:30mstenta[m](did you use the "docker" or "tarball" method described here: farmos.org/hosting/install/)
16:30mstenta[m]ok
16:30mstenta[m]farmos.org/hosting/update/#updating-via-
16:30lordeddi[m]yeah that's what i'm doing
16:30mstenta[m]> does that mean downloading farmOS tarbal 2.0.1 and unpacking it, then replacing all files EXCEPT the /sites ?
16:30mstenta[m]yes
16:30mstenta[m]BUT
16:31mstenta[m]have you done any customization outside of the web/sites directory?
16:31lordeddi[m]mstenta[m]: i think i replaced all files but have an SQL PDO error or something, wo- oooowwww 😅
16:31mstenta[m]eg: added new modules somewhere?
16:31lordeddi[m]not on this install
16:31mstenta[m]ok
16:31mstenta[m]best way to be sure you've replaced everything is to move the sites directory up to a parent directory, then delete everything, unpack the new tarball, then move sites back
16:32lordeddi[m]yeah, that's what i will do now, i called rsync with the `--delete' flag which should've worked
16:32lordeddi[m]had to upgrade to php 8.0.1
16:32mstenta[m](note that sites is actually in web/sites in the webroot... but you probably figured that out already)
16:33mstenta[m]i would rm, but that's just my preference. as long as you are confident rsync will result in the same permissions etc
16:33mstenta[m]you have to make sure you have all the right rsync args
16:34lordeddi[m]i thought i did, then again, your option is much much cleaner
16:34lordeddi[m]:)
16:34mstenta[m]less room for error
16:36lordeddi[m]hm... something else must've gone wrong then.
16:36lordeddi[m]after unpacking and replacing, do i still continue on that `update.php/selection` url ?
16:36mstenta[m]go to [url]/update.php no other arguments in the URL
16:36lordeddi[m]Backend log: Error: Undefined constant PDO::MYSQL_ATTR_USE_BUFFERED_QUERY in /web/core/modules/mysql/src/Driver/Database/mysql/Connection.php on line 172
16:36lordeddi[m]so happy i have a restored instance running next to this failing upgrade 😅 hahaha
16:37mstenta[m]never saw that before... but this seems to suggest a solution: stackoverflow.com/questions/52163353/err
16:37mstenta[m]you said you also upgraded PHP? maybe you lost php-mysql in the process?
16:37mstenta[m]there are a bunch of other PHP libs that are required by drupal FYI
16:37lordeddi[m]thinking the same
16:38mstenta[m]www.drupal.org/docs/system-requirements/
16:38lordeddi[m]don't worry ay mstenta, if you have more fun things todo, i will figure it out
16:38mstenta[m](this is one of the benefits of the Docker container) :-)
16:38lordeddi[m]mstenta[m]: i was gonna say that
16:38lordeddi[m]haha
16:38lordeddi[m]in the future i'll move it to a k8s cluster
16:45lordeddi[m]`... (full message at <libera.ems.host/_matrix/media/v3/downloa>)
16:45*uploaded an image: (80KiB) < libera.ems.host/_matrix/media/v3/downloa >
16:45lordeddi[m]not sure if i need to act on this, or not, it says both "error message" and "warning"
16:45lordeddi[m] :)
16:46*uploaded an image: (25KiB) < libera.ems.host/_matrix/media/v3/downloa >
16:46lordeddi[m]well, that seems to be fixed-ish :D
16:47lordeddi[m]quickly sweep it under the rug 🧹
16:47mstenta[m]Haha did it work?
16:47lordeddi[m]seems it did work yes..
16:47mstenta[m]Go to /admin/reports/status
16:47lordeddi[m]i'm still logged in and all
16:47mstenta[m]It will say what farmOS version you have, and if there are any warnings/issues
16:47*uploaded an image: (11KiB) < libera.ems.host/_matrix/media/v3/downloa >
16:48lordeddi[m]it's all fine
16:48lordeddi[m]nice! the future is here!
16:48mstenta[m]Hooray!
16:48mstenta[m]Are those warnings OK?
16:49lordeddi[m]semi
16:49lordeddi[m]` Database Isolation Level
16:49lordeddi[m]REPEATABLE-READ
16:49lordeddi[m]For the best performance and to minimize locking issues, the READ-COMMITTED `
16:49lordeddi[m]GEOS PHP extension The GEOS PHP extension is not installed.
16:49lordeddi[m]PHP OPcode caching Not enabled
16:49lordeddi[m]` Update notifications
16:49lordeddi[m]Not enabled
16:49lordeddi[m] * ` Update notifications
16:49lordeddi[m]Not enabled `
16:49lordeddi[m]s///, s//`/
16:49lordeddi[m]that GEOS i don't know how important that is
16:49lordeddi[m]the database i am looking into
16:56mstenta[m]ok those are minor yea
16:56lordeddi[m]cool
16:56mstenta[m]GEOS improves accuracy of polygon area calculations
16:56mstenta[m]opcode cache will improve performance
16:57lordeddi[m]so square meters being more accurate? or also more accurate GPS to points on map accuracy?
16:57mstenta[m]> square meters being more accurate
16:57lordeddi[m]now i will do the same upgrade on my dockerized restored instance from beta4 -> 2.0.1
16:58lordeddi[m]:)
17:03lordeddi[m]one funny remark, i have upgraded another instance where that first one runs, and it did not complain about anything (of course i fixed that PDO bug already, but that warning screenshot thingy never happened)
17:03lordeddi[m]🤷 won some time i guess
17:04mstenta[m]do you mean the "undefined array key" warnings? i haven't seen those before either
17:04lordeddi[m]yup those ones, they did not happen on that other one
17:04mstenta[m]those were all in the EntityViewsData class it seems... which runs when cache is rebuilt - so it shouldn't cause any issues... but if you continue to see that then something might be wrong
17:05lordeddi[m]it might have been because of that mysql error earlier on? who knows, quickly now, 🧹 under the rug with it all
17:05mstenta[m]go to /admin/reports/dblog and check to see if you're getting any recurring errors
17:05mstenta[m]then maybe try clearing the cache and checking again
17:06mstenta[m](to see if the errors occur when cache is being rebuilt)
17:06lordeddi[m]on my way
17:06mstenta[m]those are the things i would try
17:07lordeddi[m]nope, not recurring, only on those couple of pageloads of update.php it seems
17:07mstenta[m]ok then, it's probably fine
17:07lordeddi[m]again, in that docker container, it all "just works" it seems
17:08mstenta[m]sometimes Drupal shows warnings/errors AFTER they've occurred to... eg: maybe it cached the message and then showed it to you the next time you loaded the page
17:09lordeddi[m]those caches man, they seem to mess things up sometimes :D
17:09mstenta[m]but either way... that `EntityViewsData` stuff is "stateless" in the sense that it's just used to build information about the database tables for Views to use... so re-running it (via cache rebuild) will reset it
17:09lordeddi[m]that's okay, it all works though, this aint no big problems
17:09mstenta[m]caches... can't live with them, can't live without them
17:09lordeddi[m]🎻
17:26lordeddi[m]one more small question, if i want to know the most recent version of farmOS where do i find that ? i did not see it on farmos.org... so i went to the github page
17:26lordeddi[m]not sure if that's the way though
17:28mstenta[m]yea either github.com/farmOS/farmOS/releases or www.drupal.org/project/farm/
17:29lordeddi[m]ah, forgot the drupal one! gotcha thanks
17:29mstenta[m]our github actions packaging logic automatically creates the github release, so that's sort of the canonical
17:29mstenta[m]then i manually create the drupal.org release and link to the github one
17:29lordeddi[m]is this information on farmos.org? asking more as non-technical end-user
17:29mstenta[m]maybe not
17:29lordeddi[m]like on the update or hosting page
17:29lordeddi[m]just have a link pointing to where to go
17:29mstenta[m]yea good idea
17:29lordeddi[m]like that one person who tried running docker container v2.x
17:30mstenta[m]yup :-)
17:30mstenta[m]it would be cool if we could just automatically populate the docs with the current version
17:31mstenta[m]but simple enough to add something like "To find the current version, go to github.com/farmOS/farmOS/releases"
17:32lordeddi[m]🤔 not sure how to pull that information into the .md page though
18:54*jsoons[m] has joined

< 252023-02-26⋏27 >