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