IRC logs for #farmOS, 2017-08-22 (GMT)

2017-08-21
2017-08-23
TimeNickMessage
[22:20:17]* JustTB has quit (Ping timeout: 248 seconds)
[22:35:51]* JustTB has joined #farmos
[08:17:19]* brucedawson has joined #farmos
[08:21:01]* mstenta has joined #farmos
[09:09:34]<brucedawson>Anyone know where are the instructions for upgrading farmos? And can I skip beta13 (go from beta12 to beta14)?
[09:31:57]* mac___ has joined #farmos
[09:33:16]* mac___ has quit (Client Quit)
[09:36:19]<mstenta>hi brucedawson
[09:36:46]<mstenta>there are some basic updating instructions here: http://farmos.org/hosting/updating/
[09:37:15]<mstenta>and yes, you should be able to upgrade from beta12 to beta14 without beta13 in between...
[09:37:46]<mstenta>be sure to take a database backup beforehand, in case there are any issue with that jump (shouldn't be, but i've only tested the incremental update steps)
[09:38:25]<mstenta>also FYI: I'm actually going to be releasing beta15 this week... there are a few bugs with beta14 (and a security issue with the Views module that a new release is available for)
[09:39:14]<mstenta>i just need a bit of time to fix one last bug, then i will package beta15
[09:42:35]<brucedawson>Thanks! OK. I'll wait for Beta15!
[09:44:47]<mstenta>brucedawson: cool! i'd be happy to help you through the update process when you're doing it
[09:45:16]<mstenta>brucedawson: how are things? it's been a while! :-)
[09:45:36]<mstenta>i was up at Dorn's a few weeks ago, we were saying we need to have another iFarm
[09:46:33]<brucedawson>OK. Thanks - I'll let you know if I need help. I was just concerned that Beta13/14 may have introduced some DB changes, but if not, then I can safely skip them.
[09:47:41]<brucedawson>Yeah. We've had to let some workers go due to cash flow problems. Now I have to take up the slack. Sigh. I agree, we need another iFarm.
[09:54:34]<mstenta>Sorry to hear about the workers (and the slack that needs taking up)
[09:54:59]<mstenta>There are DB updates in both beta13 and beta14... but they are automated as part of the update.php script
[09:55:10]<mstenta>So just be sure you run the update.php script after you update the codebase
[09:55:57]<mstenta>I've tested them individually, but haven't tested running them all at once (both the beta13 and beta14 updates) - should work in theory, but always a good idea to take a database snapshot beforehand just in case.
[09:56:47]<mstenta>If you hit any issues, take a screenshot, and maybe look at the "Recent log entries"... send me all the clues you can, and then restore your DB backup and roll back your codebase
[11:43:08]<mstenta>brucedawson: do you have any Features modules overridden in your farmOS?
[11:43:45]<mstenta>brucedawson: I just remembered... I think some of the db updates automatically revert some of the features - which would cause your changes to be reverted possibly
[11:44:14]<mstenta>(this is something I should start documenting in the release notes...)
[11:47:35]<mstenta>(made a note for that... https://github.com/farmOS/farmOS.org/issues/16#issuecomment-324068535)
[14:27:39]<brucedawson>Sorry for the delay - "real life" interfered... I have not overridden any Features modules.
[14:48:33]<mstenta>brucedawson: great - then you don't have to worry :-)
[14:48:43]<mstenta>brucedawson: i just released beta15
[15:20:45]<brucedawson>Just installed Beta15, and I got errors. Do you want me to log them on github? Or do you just want to look at the site?
[15:21:24]<mstenta>Can you paste the errors to https://pastebin.com ?
[15:21:38]<mstenta>And then paste the link to the pastebin here
[15:31:25]<brucedawson>Well, I've got 2 screenshots, and I don't think I can put them on pastebin. They should be on http://www.milessmithfarm.com/sites/default/files/<wait a sec>...
[15:31:42]<brucedawson>Screenshot-08222017-030303PM.png and Screenshot-08222017-031834PM.png
[15:33:31]<brucedawson>I think you're also user 'mike' on the site.
[15:33:42]<brucedawson>http://farmos.milessmithfarm.com
[15:33:51]<mstenta>Thanks - OK so some of these you can safely ignore...
[15:33:53]<mstenta>Parsing...
[15:34:39]<mstenta>Did you have the farm_bee module installed at one point?
[15:35:47]<mstenta>In the first screenshot, you can ignore the first and last "User warning" points.
[15:36:01]<mstenta>The middle one is there (and in the second screenshot) because the farm_bee module is missing.
[15:36:23]<mstenta>Maybe you removed the module without uninstalling it first... if that's the case, it's pretty much harmless, and you can ignore it.
[15:36:53]<mstenta>If you want to solve it permanently, add the module back, and then uninstall it - I think that will work. Or you can manually delete the module's entry from the {system} database table.
[15:37:30]<mstenta>I'm a bit stumped by the last two errors in the second screenshot... I'm not sure what caused those.
[15:39:57]<mstenta>brucedawson: I googled those messages, and found this: https://www.drupal.org/node/826640
[15:41:00]<mstenta>It sounds like that is caused by the "anonymous" user (uid 0) not existing in the {user} database table
[15:41:35]<mstenta>Could you check to see if there is a user with uid 0 in the {user} database table?
[15:42:01]<brucedawson>Hang on...
[15:42:25]<mstenta>It sounds like you may also just be able to re-run update.php, and it will work...
[15:42:26]<brucedawson>BTW... there's a few boatloads of messages in the logs.
[15:42:40]<mstenta>But if uid 0 is missing, this might happen again in the future.
[15:43:01]<mstenta>Hmm, lots of logs is normal... assuming there aren't errors...
[15:43:16]<mstenta>But if you want me to take a look, feel free to paste them in a pastebin
[15:43:45]<mstenta>Try re-running the update.php first... see if that works.
[15:45:18]<brucedawson>Uid 0 is in table users with blank name and email
[15:45:55]<brucedawson>mysql> select uid,name,mail from users; +-----+---------+-------------------------------------+ | uid | name | mail | +-----+---------+-------------------------------------+ | 0 | | | | 1 | jbd | webmaster+farmos@milessmithfarm.com | | 8 | teresa | tmdowney61@gmail.com | | 9 | mike | mike@mstenta.net | |
[15:46:19]<brucedawson>Urg. cut and paste don't work here.
[15:46:56]<mstenta>No worries - i see it
[15:47:06]<mstenta>I'm checking my db to see if that all looks normal
[15:47:39]<mstenta>yup that looks the same as mine
[15:47:49]<mstenta>hmm ok so maybe it wasn't the same issue :-/
[15:47:53]<mstenta>did you try re-running update.php?
[15:48:29]<brucedawson>running it now. I'll have to re-install farm-bee module later.
[15:48:40]<mstenta>OK
[15:48:58]<mstenta>Yea - the whole "module missing" notice was something Drupal core added in 7.50 (i think)
[15:49:14]<mstenta>it was basically to help prevent some other issues where people had lots of orphaned entries in their {system} table
[15:49:18]<mstenta>it's mostly harmless
[15:49:42]<mstenta>the reason you saw it for farm_admin and farm_taxonomy is because I broke those modules up into different modules in these past two releases, so those two don't exist anymore.
[15:50:05]<mstenta>But the updates remove the orphaned rows from {system}, which is why those messages go away after you run update.php.
[15:51:24]<brucedawson>I ran update.php again - "No pending updates". Now the only message is about farm-bee.
[15:52:46]<mstenta>Ok cool
[15:52:50]<mstenta>so maybe it's all fixed!
[15:53:03]<mstenta>I would go to /admin/structure/features and see if anything appears as "Overridden"
[15:53:36]<mstenta>And maybe also take a look at Recent log messages to see if any errors jump out... but if there's nothing recent then it's probably fine.
[15:56:17]<brucedawson>OK. But things don't look right. I'll create another screenshot. Does pastebin allow images?
[15:56:35]<mstenta>Uh oh. No, but imgur.com does
[15:59:09]<brucedawson>Well, its now on milessmithfarm.com/sites/default/files/Screenshot-08222017-035645PM.png
[16:00:27]<mstenta>ok thanks
[16:00:37]<mstenta>oh... hmm yea i noticed that issue on the modules page too...
[16:00:57]<mstenta>i don't know what's caused that... i need to debug it still, but it shouldnt affect other parts of farmOS
[16:01:11]<mstenta>i think it's an issue with the module_filter module (which provides that nice UI on the module page)
[16:01:28]<mstenta>(well... theoretically nice UI... this is not very nice at all...) :-)
[16:01:46]<mstenta>does the rest of the farmOS UI seem to work correctly?
[16:01:54]<mstenta>i'll try logging in too and take a look...
[16:03:07]<brucedawson>OK. I added the farm_bee module and those messages went away - we'll be getting bees again (but probably at a remote location), so I might as well leave it in.
[16:03:36]<mstenta>Everything looks good, at quick glance! No issues that I can see.
[16:03:37]<brucedawson>I've got some animal movements to record. I'll let you know if there's any problems!
[16:03:41]<mstenta>Congrats! I think it worked! :-)
[16:03:47]<mstenta>Ok great!
[16:03:59]<mstenta>I have to sign off for a bit now anyway - we're meeting some friends for dinner
[16:04:08]<brucedawson>Have fun!
[16:04:12]<mstenta>Glad we were able to get it all resolved :-)
[16:04:16]<mstenta>Thanks! Talk to you later...
[16:04:36]<brucedawson>Yup. Scary message were just that... scary!
[16:04:53]* brucedawson has quit (Quit: Page closed)