< 292019-05-30⋎31 >

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
02:04*JustTB has quit (Quit: Leaving.)
06:27*JustTB has joined
07:11*JustTB has quit (Quit: Leaving.)
07:33*JustTB has joined
10:44skipper_is[m]Just ordered a new dedicated server, and am busy getting FarmOS installed on it. I'll try and put 2 versions on, a Postgresql and a Mysql version as well, so I can do some field testing of Postgresql functionality
10:47skipper_is[m]@mstenta, Is the mobile version on the play store the farmOS-Client as well?
10:52mstenta[m]@skipper_is awesome!
10:52mstenta[m]Yes farmOS-client == field kit
10:56skipper_is[m]Awesome, I'll drop a issue log on there. I've not managed to debug it at all, just had the crash when I opened it... Will do some poking at one point
12:41*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
12:42skipper_is[m]Oh, that wasn't the actual error page...:
12:42*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
12:43mstenta[m]skipper_is: Is this a fresh installation you are attempting?
12:44mstenta[m]That error would indicate that you are trying to install into a database that was already created.
12:44mstenta[m]Hence the tables already exist
12:56skipper_is[m]It was a blank database, just created it for the test. Completely empty apart from the public schema
12:57mstenta[m]Hmm, well try blowing away the database completely and trying again. See if it happens a second time.
12:57skipper_is[m]That was the 2nd time...
12:58skipper_is[m]I'll try wiping the server files as well, and doing a complete fresh install
12:58mstenta[m]You could check sites/default/settings.php
12:58mstenta[m]that's where the database credentials get stored for farmOS to connect
12:59mstenta[m]Maybe they are pointing to a different db?
12:59mstenta[m]Just guessing at this point...
12:59mstenta[m]Starting fresh is always a good approach :-)
13:55skipper_is[m]That's what I thought too.. No idea. done a complete wipe anyway, database wipe and file wipe
13:55skipper_is[m]3rd time lucky!
13:57mstenta[m]Ah great!
13:58mstenta[m]Probably just some artifact leftover from a previous install.
13:58skipper_is[m]Yea, or some dependency I've missed on the new server install...
13:59mstenta[m]skipper_is: I forget if I've mentioned this to you already or not... but there is a Docker image available for farmOS
13:59mstenta[m]which packages all the dependencies
13:59mstenta[m](except the database)
14:00skipper_is[m]I've not used Docker before, so I'm trying to avoid learning something new..
14:01mstenta[m]Fair enough - it is definitely another layer
14:01mstenta[m]And it's good to have you testing all of this outside of Docker - because that needs to work too
14:02skipper_is[m]I'm just trying to figure out how to patch......
14:02skipper_is[m]Without reading the instructions....
14:03mstenta[m]`patch -p1 < [filename.patch]`
14:03mstenta[m](back up your codebase before you run it, so you can easily roll back)
14:04mstenta[m]the patch command has an ability to roll back too... but since you don't feel like reading instructions ;-)
14:05skipper_is[m]Ooooh, that is too easy. I was going to manually edit all the files the .patch file touches..
14:05mstenta[m]well you could do that if you really way :-)
14:05mstenta[m]want*
14:05skipper_is[m]I'm assuming you do that in the install directory..
14:09mstenta[m]what patch are you applying? the one to drupal core for postgresql?
14:09mstenta[m]if so, then you run that in the webroot directory
14:09skipper_is[m]Yea
14:09skipper_is[m]www.drupal.org/files/issues/2019-04-30/2
14:09skipper_is[m]That one
14:22skipper_is[m]Seems to be working!
14:27mstenta[m]Great!!
14:27mstenta[m]Can you add a comment to that issue and close it if you think it's all set?
16:38skipper_is[m]Hmm, the issue cropped up again
16:48mstenta[m]Oh?
16:48mstenta[m]Same error?
16:48mstenta[m]Or something similar but different perhaps?
17:06skipper_is[m]Same error I think:
17:06skipper_is[m]PDOException: SQLSTATE[42803]: Grouping error: 7 ERROR: column "ss_log.timestamp" must appear in the GROUP BY clause or be used in an aggregate function LINE 1: SELECT ss_log.timestamp AS ss_logtimestamp, ss_log.id AS ss_... ^: SELECT ss_log.timestamp AS ss_logtimestamp, ss_log.id AS ss_logid, SUM(ss_fdffiv.field_farm_inventory_value_numerator / ss_fdffiv.field_farm_inventory_value_denominator) AS inventory FROM {log}
17:06skipper_is[m]ss_log INNER JOIN {field_data_field_farm_inventory} ss_fdffi ON ss_fdffi.entity_type = 'log' AND ss_fdffi.entity_id = ss_log.id AND ss_fdffi.deleted = 0 INNER JOIN {field_data_field_farm_inventory_asset} ss_fdffia ON ss_fdffia.entity_id = ss_fdffi.field_farm_inventory_value AND ss_fdffia.deleted = 0 INNER JOIN {field_data_field_farm_inventory_value} ss_fdffiv ON ss_fdffiv.entity_id = ss_fdffi.field_farm_inventory_value
17:06skipper_is[m]AND ss_fdffiv.deleted = 0 WHERE (ss_log.timestamp <= 1559233593) AND (ss_log.done = 1) AND (ss_fdffia.field_farm_inventory_asset_target_id = 1) ORDER BY ss_log.timestamp DESC, ss_log.id DESC LIMIT 1 OFFSET 0; Array ( ) in farm_inventory() (line 417 of /var/www/html/farmOSpost/profiles/farm/modules/farm/farm_inventory/farm_inventory.module).
17:08skipper_is[m]Am just going through verifying that I've got everything updated now
18:53skipper_is[m]Yea, seems to be ok, but I'll try a fresh install again, just to be sure
19:28mstenta[m]> seems to be ok
19:28mstenta[m]Do you mean it's fixed?
19:55skipper_is[m]So, complete fresh install. Fully updated, same error
19:56skipper_is[m]And weirdly 2 new ones I've not seen before
19:56mstenta[m]Did you re-patch?
19:56skipper_is[m]Warning: Invalid argument supplied for foreach() in views_handler_filter->prepare_filter_select_options() (line 1208 of /var/www/html/farmOSpost/profiles/farm/modules/contrib/views/handlers/views_handler_filter.inc).
19:56skipper_is[m]and
19:56skipper_is[m]Notice: Undefined variable: options in views_handler_filter_term_node_tid->value_form() (line 238 of /var/www/html/farmOSpost/profiles/farm/modules/contrib/views/modules/taxonomy/views_handler_filter_term_node_tid.inc).
19:56skipper_is[m]Yup
19:57mstenta[m]Oh are you using 7.x-1.x-dev? Or 7.x-1.1?
19:57skipper_is[m]dev
19:57skipper_is[m]I just cloned the git
19:57skipper_is[m]and drush make the build-farm.make
19:57mstenta[m]Ah ok
19:58mstenta[m]So the new ones... those may be caused by a recent update to the Views module
19:59mstenta[m]I updated it in farmOS when the new version was released, and then started seeing some notices like those too
19:59mstenta[m]I haven't investigated yet
19:59mstenta[m]I think they are harmless, because they are just notices - but it needs to be fixed upstream in the Views module, I believe...
19:59skipper_is[m]Yea, they're just at the top of the screen
19:59mstenta[m]Regarding the patch... if you ran drush make on the dev branch, then it would already be patched
20:00skipper_is[m]Everything still works, well, it doesnt, hence the main error
20:00mstenta[m]Did you also run a `patch` command?
20:00mstenta[m](Drush downloads and applies the patch automatically)
20:00mstenta[m]I wonder if maybe you accidentally undid the patch?
20:00mstenta[m]Just guessing... :-)
20:01skipper_is[m]I did not, just did build-farm.make
20:01skipper_is[m]I can try and repatch
20:01mstenta[m]ok hmm. can you check to see if the patch was applied?
20:02mstenta[m]i think it would be listed in PATCHES.txt in the webroot
20:03mstenta[m]farmOS applies two core patches, if i remember correctly, so that file should show two
20:03*sent a long message: < matrix.org/_matrix/media/v1/download/mat >
20:03mstenta[m]Ok yea that's both of them
20:04mstenta[m]well i guess we could check to make sure the file is patched by looking at it
20:04mstenta[m]includes/database/pgsql/select.inc
20:04mstenta[m]do you see `public function orderBy` in that function?
20:04mstenta[m]you shouldn't
20:05skipper_is[m]No, just see one function, orderRandom
20:05mstenta[m]ok good
20:06mstenta[m]well, now i'm stumped
20:08skipper_is[m]Do you have a dependency list? Are there any others aside from what is in the install menu?
20:22mstenta[m]farmos.org/hosting/installing/
20:23mstenta[m]Question: you did see the error go away the first time you applied the patch, correct?
21:09*JustTB1 has joined
21:09*JustTB has quit (Read error: Connection reset by peer)
23:28*JustTB1 has quit (Quit: Leaving.)
23:30*JustTB has joined

< 292019-05-30⋏31 >