< 072019-11-08⋎09 >

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:01mstenta[m]That's correct
00:02mstenta[m]But locale module needs to be installed, and languages need to be enabled on the site first
00:02mstenta[m]And on general farmOS isn't translated into most languages yet
00:06paul121[m]Ahh okay. Neat
00:06paul121[m]Just wanted to check that out. Some "common" words would get translated, right?
00:32mstenta[m]Yea exactly, translations are downloaded from localize.drupal.org
00:32mstenta[m]So a lot of common strings are already there
02:18*FijiDave_ has joined
02:20*FijiDave has quit (Ping timeout: 276 seconds)
05:05*FijiDave has joined
05:07*FijiDave_ has quit (Ping timeout: 276 seconds)
07:23*JustTB has joined
07:27*JustTB has quit (Read error: Connection reset by peer)
07:46*JustTB has joined
08:44*JustTB has quit (Quit: Leaving.)
13:03*JustTB has joined
15:56*JustTB has quit (Quit: Leaving.)
18:28skipper_is[m]All sorts of issues, grumping that there are 2 primary keys, formatting that was different between PostGres and MySQL...
18:29skipper_is[m]Me being an idiot and not installing all the same things...
18:30skipper_is[m]Going to drop all tables and reinstall
18:30mstenta[m]Ok yea - worth another shot!
18:30mstenta[m]:-)
18:30*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
18:31skipper_is[m]Yea, yea, I know, I know
18:31skipper_is[m]Had to recreate a bunch of tables from the postgresql definition
18:31skipper_is[m]And try and figure out what the MySQL equivelant was for some data types
18:33skipper_is[m]I've got the college principle onboard with me rolling out FarmOS on their systems
18:33mstenta[m]I wouldn't think you'd need to mess with data types at all
18:33skipper_is[m]Couldn't find a TEXT type in MySQL
18:33mstenta[m]As long as you're ONLY doing `INSERT` statements in the dump...
18:34skipper_is[m]Yea, the issue was that some tables didn't exist, because I hadn't installed that module
18:34mstenta[m]You should not be creating any tables in the dump
18:34mstenta[m]Right... so the best way to do it is to install the modules
18:34mstenta[m]Drupal will take care of that for you
18:34skipper_is[m]Yea, I know, I was just trying to be quick yesterday and skip the installation of them...
18:34skipper_is[m]And ended up taking much longer than intended
18:36mstenta[m]Haha yup yup
18:36skipper_is[m]But there are also some statements that are different, or rather the formatting is diffferent
18:36skipper_is[m]For example, timestamp as a column name
18:37mstenta[m]Oh yea? Curious
18:37skipper_is[m]In Postgresql, because timestamp is a function, it "timestamp"s it
18:37mstenta[m]Oh... gotcha
18:37skipper_is[m]And MySQL wasn't happy about some column names being in "
18:37mstenta[m]That's good to know.....
18:37mstenta[m]What table(s) is that in? Can you see easily?
18:37skipper_is[m]It is a simple find/replace I know
18:37mstenta[m]{log}
18:37mstenta[m]Others?
18:38skipper_is[m]I just couldn't be bothered with it at 11pm and a 5am start..
18:38skipper_is[m]MySQL didn't seem to like emojis in notes..
18:38skipper_is[m]I gave up about 25% through all the insert statements, so possibly
18:39skipper_is[m]There are some headers on the pgsql dump, which MySQL doesnt like
18:39skipper_is[m]Its like 10 lines that just ned removing
18:42*farmBOT has joined
18:42skipper_is[m]I've got as many logs in there as I do sensor readings.... Which is about 20k
18:42mstenta[m]Watchdog should get pruned automatically if you have cron configured... but you can also just truncate it manually
18:43skipper_is[m]Yea, my cron is playing silly buggers
19:07skipper_is[m]Right, fresh install done
19:07skipper_is[m]All modules installed..
19:07skipper_is[m]Lets truncate all that hard work!
19:08mstenta[m]Haha
19:09mstenta[m]after you do that, you might want to take a quick snapshot of the empty databases
19:09mstenta[m]are you doing this in docker, perchance?
19:09skipper_is[m]I am not
19:10skipper_is[m]Oh.
19:10skipper_is[m]Table 'farmos.farm_grazing_animal_types' doesn't exist
19:10mstenta[m]Oh
19:10mstenta[m]Yea...
19:10mstenta[m]:-(
19:10skipper_is[m]It didn't clean up after itself XD
19:11mstenta[m]Ooooh!
19:11mstenta[m]Right. You didn't uninstall the module
19:11mstenta[m]Disabling doesn't clean up... uninstalling does
19:12skipper_is[m]Aah
19:12skipper_is[m]I'll just remove all references to it I can find...
19:12mstenta[m]There may be other tables
19:13skipper_is[m]There are a couple
19:13skipper_is[m]Have removed them too
19:13skipper_is[m]There are references to it in other tables, but if they're not called, shouldn't matter
19:13skipper_is[m]Duplicate entry 'farm_map_kml_action' for key 'PRIMARY'
19:13mstenta[m]:-/
19:13mstenta[m]Well that suggests you didn't truncate
19:14skipper_is[m]Weird...
19:14skipper_is[m]I'll truncate the lot again...
19:14mstenta[m]You would need to truncate again after `Table 'farmos.farm_grazing_animal_types' doesn't exist`
19:15skipper_is[m]Yea, just realised that :)
19:15mstenta[m]I'll be honest I don't love that there will be messy stuff left over from the grazing module
19:15skipper_is[m]It doesn't rollback on failure
19:15mstenta[m]If you ever try to install it again in the future, it may throw errors
19:15mstenta[m]Or cause weird issues
19:15skipper_is[m]I'll burn that bridge when I come to it
19:16mstenta[m]lol
19:16mstenta[m]you're assuming that I'll help you burn it I think ;-)
19:16mstenta[m]don't say i didn't warn you ;-)
19:16skipper_is[m]:P
19:17skipper_is[m]This is just a test run really, rather than migrating it to my new server (If they give it to me...)
19:17mstenta[m]alternatively... you could open up your farmOS running on postgres, uninstall it (and any other modules you may have disabled but not uninstalled), and then re-dump
19:17skipper_is[m]So I can do a clean up of the grazing module prior to that
19:17mstenta[m]ok cool cool
19:18skipper_is[m]I'll do that now while I remember
19:19skipper_is[m]Ah nuts, I meant to inject a goat today... It was right there on my upcoming tasks list as well
19:19skipper_is[m]..brb...
19:19mstenta[m]haha
19:19mstenta[m](we need notifications in field kit)
19:19mstenta[m]jgaehring: ^!
19:20mstenta[m]:-)
19:20skipper_is[m]I had to uninstall mine, it kept refusing to sync on the phone, so I'd have to relog, but that removed the log I was trying to sync..
19:20skipper_is[m]Probably a Postgres issue...
19:20mstenta[m]oh right
19:21mstenta[m]well worth testing again after you migrate
19:22jgaehring[m]> (we need notifications in field kit)
19:22jgaehring[m]haha, yea!
19:22mstenta[m]i had a similar thought the other day when i realized my dog was past due for heartworm pill
19:23mstenta[m]it was in my late tasks :-)
19:27skipper_is[m]All of mine, apart from that one, are late tasks...
19:27skipper_is[m]The dates are just the dates I created them.. Like "Broken gate"... I have no idea when I'm going to fix that.... Just wanted to make a note to make myself feel better
19:27skipper_is[m]Out of range value for column 'value_denominator' at row 1
19:28skipper_is[m]....Flipping sensors
19:28mstenta[m]hmm any more details on that one?
19:28mstenta[m]full error?
19:29skipper_is[m]ERROR 1264 (22003) at line 10819 in file: '/home/dcaplin/farmosbackup.sql': Out of range value for column 'value_denominator' at row 1
19:29skipper_is[m]Pseudo precision on the average temperature
19:29skipper_is[m]INSERT INTO farm_sensor_data (id, timestamp, name, value_numerator, value_denominator) VALUES (97, 1571686056, 'Temperature Average', 93171052631579, 10000000000000);
19:29skipper_is[m]Is the line
19:30mstenta[m]`10000000000000` is the denominator in that...
19:30mstenta[m]can you look at the mysql schema for that table?
19:31skipper_is[m]Doing so now
19:31skipper_is[m]Ah
19:31skipper_is[m]Yea, there it is
19:31mstenta[m]is it because it's unsigned?
19:31skipper_is[m]numerator is Bigint(20)
19:31skipper_is[m]denominator is int(10)
19:32skipper_is[m]No, unsigned would've been fine...
19:32skipper_is[m]It is only a 10 digit int
19:32mstenta[m]ok.... but....
19:32skipper_is[m]That is a 15 digit number
19:32skipper_is[m]10000000000000
19:32mstenta[m]i don't think we can do a bigint for that
19:32skipper_is[m]No?
19:32mstenta[m]hold on one sec...
19:33skipper_is[m]Surely the type should be the same as the numerator?
19:33mstenta[m]how the heck did you get that value into postgresql?
19:33skipper_is[m]Because postgresql isn't using bigint
19:33skipper_is[m]I don't even think that is an available datatype
19:34mstenta[m]did you do something manually to allow it?
19:34skipper_is[m]I'll get you the schema from postgresql now
19:34skipper_is[m]Nope, I think it is using a different data type
19:34skipper_is[m]Well, I'll tell you in just a moment
19:35skipper_is[m]Ahhh
19:35skipper_is[m]They're both set to bigint in postgresql
19:35mstenta[m]that shouldn't be
19:36*uploaded an image: image.png (58KB) < matrix.org/_matrix/media/r0/download/mat >
19:36skipper_is[m]I haven't touched anythign
19:36mstenta[m]stop finding bugs with postgresql skipper_is !!!
19:36mstenta[m]lol
19:36mstenta[m](or rather, bugs with Drupal's postgresql driver
19:36skipper_is[m]Weirdly id is bigint, but in MySQL it is int(10), but timestamp which is int(11) is still just a normal int
19:37skipper_is[m]I'll just set it to bigint in MsySQL as well... and remember to round my averages...
19:37mstenta[m]what the heck
19:37mstenta[m]no wait
19:37mstenta[m]i can't be held responsible for manual overrides! lol
19:37*JustTB has joined
19:38skipper_is[m]No fear :)
19:38mstenta[m]there's reasoning behind those decisions... i'm just trying to refresh on that now
19:38mstenta[m]www.drupal.org/project/fraction
19:38skipper_is[m]But surely they should be the same datatype?
19:38mstenta[m]that's the module that defines those
19:38mstenta[m]no
19:38mstenta[m]they shouldn't
19:38mstenta[m]maybe they could be... but that was a decision
19:38mstenta[m]> This means that for price storage, this module supports up to 9 decimal places of precision (because the maximum denominator is 4,294,967,295, meaning the highest possible base-10 number that fits into that is 1,000,000,000). Ultimately, the maximum numerator depends on the size of the denominator. But, using the maximum precision (of 9 decimal places), the biggest number this can store is 9,223,372,036.854775807.
19:39mstenta[m]if you go higher with the denominator, it limits how high you can go with the numerator
19:39mstenta[m]which maybe is something we could still allow... but that would require adding logic to prevent certain scenarios
19:39skipper_is[m]yea, but if you go low with the denominator, you lose the precision
19:40skipper_is[m]Which, to be fair, is pseudoprecision anyway
19:40mstenta[m]lol is 9 decimal places not precise enough for you??
19:41skipper_is[m]Not when I've been lazy on my programming!
19:41mstenta[m]hahaha
19:41mstenta[m]well ultimately... this just reveals a different issue entirely... for some reason postgresql is defaulting to bigint when it should be int
19:42mstenta[m]that resulted in you being able to store a value you shouldn't have been able to store
19:42skipper_is[m]Might not do unsigned...
19:42mstenta[m]i'm laughing out loud right now skipper_is - you've managed to find the deepest and most annoying bugs
19:43skipper_is[m]www.postgresql.org/docs/9.1/datatype-num
19:43skipper_is[m]I think I should have some sort of badge for that :P
19:43mstenta[m]i think so!
19:43mstenta[m]haha
19:44skipper_is[m]Urgh, going to have to go through and strip back that pseudo precision from postgresql before importing it into mysql
19:44mstenta[m]yea... that may be the easiest... are you willing to lose some of those decimal places?
19:44skipper_is[m]It is a tough call
19:45mstenta[m]haha
19:45skipper_is[m]I was really counting on having my temperature averages to 15 decimal places
19:45mstenta[m]LOL
19:45skipper_is[m]That 0.000000000000001 degree shift can make a massive difference to grass growth
19:47skipper_is[m]It might be 4.999999999999999c, and I would think that they grass would be growing if it had rounded it up to 5, but grass doesn't grow until 5... And does absolutely nothing 1e-15c below that so i'd be basing all my management decisions on that loss of precision..
19:47mstenta[m]I think if you can manage to just drop the last 4 or 5 digits from both the numerator and the denominator then you'll be able to import it
19:48skipper_is[m]I can probably do that in sql actually...
19:48mstenta[m]Of course, you should also update your sensor at the same time so that it rounds the numbers
19:48mstenta[m]Yea perhaps
19:48mstenta[m]Probably want to update your sensor first
19:48mstenta[m]So that you don't have to keep re-running the SQL to trim new stuff coming in
19:49skipper_is[m]Yea, already done that
19:49skipper_is[m]It wasn't actually the sensor doing it, I was... not smart, but not as daft... there. I've got a python script that runs nightly and just gives me an average for the day
19:49mstenta[m]i'm still baffled as to why you ended up with bigint in the first place...
19:49mstenta[m]www.drupal.org/docs/7/api/schema-api/dat
19:49skipper_is[m]And it was just dumping that raw average straight in
19:50skipper_is[m]But since it was python, easy fix, round(avgTemp,2) job done
19:50mstenta[m]Yea that makes sense... and it makes me wonder if we need some validation code in farmOS to handle values that are out of range coming from a sensor
19:51mstenta[m]I'm curious what happens if you try to push a big value like that to mysql
19:51skipper_is[m]I'll probably find out XD
19:51mstenta[m]If it rounds it automatically or chokes on it in the db insert... I forget if we have any logic in place for that
19:52mstenta[m]If anyone will - it will be you haha
19:53skipper_is[m]MySQL might have something internal
19:53mstenta[m]> i'm still baffled as to why you ended up with bigint in the first place...
19:53mstenta[m]Let me start up my postgres farmOS test instance and look at my DB... to see if it also has bigint
19:53skipper_is[m]No, it clearly doesnt
19:53skipper_is[m]Otherwise we wouldn't be having this discussion
19:54mstenta[m]Well I haven't tested that specifically in postrges
19:54skipper_is[m]Sorry, my reply got split, sounds like I was calling you out XD
19:54skipper_is[m]MySQL clearly doesn't have an automatic way of dealing with it, otherwise I wouldn't have noticed when I tried to insert that row
19:54mstenta[m]oh gotcha ;-)
19:55skipper_is[m]I've just got terrible internet
19:55mstenta[m]are you familiar with pgsql command line? i don't have the pgadmin tool
19:55skipper_is[m]For dumping?
19:55mstenta[m]it might be riot actually... seems to be a bit laggy
19:55mstenta[m]i want to see the table definition for the sensor table
19:56skipper_is[m]We're running the entire farm off of one 4g wifi dongle
19:56skipper_is[m]Describe table?
19:56skipper_is[m]\d
19:56mstenta[m]yea
19:56skipper_is[m]Then the table name
19:57mstenta[m](i don't even know what the postgres command is to start the prompt though lol)
19:57skipper_is[m]sudo su to the postgres user
19:57skipper_is[m]or whatever your login user is for the db
19:58skipper_is[m]psql
19:58mstenta[m]ok i did `psql -U farm`
19:59mstenta[m]it didn't ask for password
19:59mstenta[m]but i'm in the command line now i think
20:00skipper_is[m]You in the right db?
20:00skipper_is[m]I've got a whole load on one server...
20:00mstenta[m]oh i got it!
20:01*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
20:01mstenta[m]AH HA!
20:01mstenta[m]`bigint`s!
20:01skipper_is[m]Ah! nice one
20:02skipper_is[m]Ok, so it isn't me poking it in the wrong place :P
20:03mstenta[m]no not you!
20:03mstenta[m]you just found it
20:03mstenta[m]and i will still hold that against you ;-)
20:03mstenta[m]i'm searching Drupal queues to see if anyone else has reported this
20:10skipper_is[m]ERROR 1064 (42000) at line 8041 in file: '/home/dcaplin/farmosbackup.sql': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '"position", weight, include_file) VALUES ('comment/reply/%', '\x613a313a7b693a32' at line 1
20:11skipper_is[m]It doesnt like emojis
20:11mstenta[m]ah you need to set your mysql collation to...
20:11skipper_is[m]Oh, that is something weird..
20:12mstenta[m]`utf8mb4`
20:12skipper_is[m]menu_router
20:12mstenta[m]stackoverflow.com/questions/39463134/how
20:12mstenta[m]It's actually the same reason why using emojis in this chat crashes farmBOT
20:13mstenta[m]i need to update the mysql db that @farm
20:13mstenta[m] * i need to update the mysql db that @farmBOT uses
20:13mstenta[m]wait, was that in menu_router?
20:13skipper_is[m]That is the bit causing the crash
20:13mstenta[m]there shouldn't be any emojis in menu_router
20:13skipper_is[m]It isnt
20:13mstenta[m]oh ok
20:14skipper_is[m]It is:
20:14skipper_is[m]> INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, delivery_callback, fit, number_parts, context, tab_parent, tab_root, title, title_callback, title_arguments, theme_callback, theme_arguments, type, description, "position", weight, include_file) VALUES ('farm/logs/sales', '\x', '\x', 'views_access',
20:14skipper_is[m]'\x613a313a7b693a303b613a323a7b693a303b733a31363a2276696577735f636865636b5f7065726d223b693a313b613a313a7b693a303b733a33313a227669657720616e79206661726d5f73616c65206c6f6720656e746974696573223b7d7d7d', 'views_page', '\x613a323a7b693a303b733a31333a226661726d5f6c6f675f73616c65223b693a313b733a343a2270616765223b7d', '', 7, 3, 0, '', 'farm/logs/sales', 'Sales', 't', '', '', 'a:0:{}', 6, '', '', 0, '');
20:14mstenta[m]uhh
20:16skipper_is[m]Oh no, it is the line above
20:16skipper_is[m]''INSERT INTO menu_router (path, load_functions, to_arg_functions, access_callback, access_arguments, page_callback, page_arguments, delivery_callback, fit, number_parts, context, tab_parent, tab_root, title, title_callback, title_arguments, theme_callback, theme_arguments, type, description, "position", weight, include_file) VALUES ('comment/reply/%', '\x613a313a7b693a323b733a393a226e6f64655f6c6f6164223b7d', '\x',
20:16skipper_is[m]'node_access', '\x613a323a7b693a303b733a343a2276696577223b693a313b693a323b7d', 'comment_reply', '\x613a313a7b693a303b693a323b7d', '', 6, 3, 0, '', 'comment/reply/%', 'Add new comment', 't', '', '', 'a:0:{}', 6, '', '', 0, 'modules/comment/comment.pages.inc');''
20:16mstenta[m]Hmm
20:17skipper_is[m]I suspect it is the % in the value..
20:17mstenta[m]Hmm
20:17mstenta[m]Those `\x`s are suspicious
20:18skipper_is[m]Can i skip that table? Or is menu_router vital to operation?
20:19mstenta[m]It is vital, but you could skip it if you don't truncate The original MySQL table that farmOS created during install
20:19skipper_is[m]Yea, bit late now :D
20:19mstenta[m]I think that must be a postgres dump thing
20:20mstenta[m]Hmm reading stackoverflow.com/questions/9264808/conv
20:20mstenta[m]Yea this is all very complicated
20:20mstenta[m]Who would have thought
20:21skipper_is[m]Indeed...
20:21mstenta[m]github.com/ChrisLundquist/pg2mysql
20:21skipper_is[m]I am thinking that it would be easier to just use FarmOS.py to migrate the assets and logs..
20:21mstenta[m]Found that
20:22skipper_is[m]PostGreSQL is storing the load_functions as a bytea
20:22skipper_is[m]MySQL is storing it as a blob
20:22mstenta[m]Yea...
20:23mstenta[m]I dunno, doing it via api would be possible, but will require a lot more manual linking up of stuff
20:23mstenta[m]Eg: you won't have the same asset IDs when you create assets via API
20:23mstenta[m]So log references would need to be manually updated
20:23mstenta[m]And any other references like that
20:24skipper_is[m]Yea, though could have a 'lookup table' for that
20:24mstenta[m]So here's another idea...
20:24mstenta[m]Yup but that feels like it will be more work
20:24skipper_is[m]I dunno.. this is a fair bit of work XD
20:24mstenta[m]Although this hasn't been easy either haha
20:25mstenta[m]<mstenta[m] "So here's another idea..."> I could tell you which tables to import
20:25skipper_is[m]Yea
20:25mstenta[m]And you could JUST dump/truncate/import those
20:25skipper_is[m]Rather than just truncating them all, that works
20:25mstenta[m]Might avoid some issues
20:26mstenta[m]Yes
20:26skipper_is[m]There are like 244 tables..
20:26mstenta[m]Can you paste a list of all your current tables into a gist or pastebin and send to me?
20:26mstenta[m]I'll copy and remove all the ones you don't need to worry about
20:27skipper_is[m]I can indeed
20:29*posted a file: data-1573244929835.csv (24KB) < matrix.org/_matrix/media/r0/download/mat >
20:30mstenta[m]standby
20:33mstenta[m]pastebin.com/SZ264zVa
20:33mstenta[m]that pastebin expires in 24 hours fyi, so copy it
20:33mstenta[m]those are the tables you need
20:34skipper_is[m]Ah nice one
20:34mstenta[m](note: this assumes you haven't done any customizations to farmOS, aside from adding content to it)
20:35skipper_is[m]Ok, I'll reinstall and give it a try
20:37mstenta[m]i made this issue so i can follow up on the `bigint` thing: github.com/farmOS/farmOS/issues/213
20:42mstenta[m]alright well - i need to go move some firewood
20:42mstenta[m]let me know how that goes for you
20:42mstenta[m]tip: take a snapshot of the MySQL database after you install farmOS, so that you don't have to go through the whole install process again in the future
20:42mstenta[m](and remember to uninstall the grazing module (and others) before you dump)
20:43mstenta[m]oh... one other thought came to mind... regarding the `bytea` vs `blob`...
20:44mstenta[m]as far as I know, there is only one piece of farmOS data that might be stored as `bytea`/`blob` in the database...
20:44mstenta[m]geofields
20:44mstenta[m]so you should look in the table `field_data_field_farm_geofield` (as well as `field_revision_field_farm_geofield`)
20:44mstenta[m]that is where that will be
20:45mstenta[m]so you might run into that as an issue again... you might need to figure out how to dump those differently...
20:56skipper_is[m]Well, I can always just have them as non-geometry features, and then add the geometry from WKT
21:02mstenta[m]skipper_is: I just realized I had opened an issue for this a while ago already... www.drupal.org/project/fraction/issues/2
21:02mstenta[m](not exactly the same, but very much related)
21:33skipper_is[m]Getting "Access Denied"
21:33skipper_is[m]At least it isn't a 500 error
21:33mstenta[m]oh are you unable to log in?
21:34mstenta[m](via `/user`)
21:34skipper_is[m]Notice: unserialize(): Error at offset 0 of 101 bytes in UserController->attachLoad() (line 307 of /var/www/html/farm-7.x-1.x-dev/modules/user/user.module).
21:34skipper_is[m]Ooo
21:35skipper_is[m]That is really broken
21:35mstenta[m]eek
21:35mstenta[m]clear caches?
21:36mstenta[m]manually truncate all `cache_` tables
21:36skipper_is[m]The theme isn't even there, and there are no FarmOS modules in the module list
21:37*uploaded an image: image.png (40KB) < matrix.org/_matrix/media/r0/download/mat >
21:37mstenta[m]ok i think i know why...
21:37*uploaded an image: image.png (112KB) < matrix.org/_matrix/media/r0/download/mat >
21:37mstenta[m]but not sure why it happened
21:37mstenta[m]Drupal has what are called "installation profiles"
21:37mstenta[m]farmOS is a profile
21:38mstenta[m]it appears that your installation thinks it is a different profile
21:38mstenta[m]you went through the normal install process, right?
21:38skipper_is[m]I did indeed
21:40mstenta[m]k lemme see if i can remember how to do this...
21:40mstenta[m]do you have mysql workbench open?
21:40mstenta[m]`SELECT * FROM system WHERE name = 'farm';`
21:40mstenta[m]and
21:41mstenta[m]`SELECT * FROM variable WHERE name = 'install_profile';`
21:41mstenta[m](iirc)
21:41skipper_is[m]I do
21:42skipper_is[m]profiles/farm/farm.profilefarmmodule1070491000....
21:42skipper_is[m]The other one is just blob data
21:42skipper_is[m]and the name
21:43mstenta[m]is it blob data, or just serialized?
21:43mstenta[m]is the `1` in `system` in the `status` column?
21:44skipper_is[m]It says "blob" under value]
21:44skipper_is[m]1 is status
21:45mstenta[m]right click on the blob and select "open value in editor"
21:46*sent a long message: < matrix.org/_matrix/media/r0/download/mat >
21:47mstenta[m]oh sorry... i mean for the second query
21:47skipper_is[m]Oh
21:47mstenta[m]`SELECT * FROM variable WHERE name = 'install_profile';`
21:47skipper_is[m]I've just run the truncate script again
21:47skipper_is[m]x733a343a226661726d223b
21:48mstenta[m]bah
21:48mstenta[m]that's what was in `variable`?
21:48skipper_is[m]x733a343a226661726d223b was in there
21:48mstenta[m]ha. ok.
21:48mstenta[m]well. that's a problem
21:48mstenta[m]yea... so we gotta figure out how to fix the blob issue
21:49skipper_is[m]So it is bringing it across as a bytea
21:49mstenta[m]yea, which is not getting converted to a blob
21:52mstenta[m]skipper_is: would you be willing to send me a dump of your postgres database that i could load into my test instance and experiment with?
21:52mstenta[m]i will keep it private
21:52mstenta[m]if i can get it migrated, i might be able to send you a mysql dump file you could import
21:53mstenta[m](of course i say this at 4:52 pm on a friday... about to leave for the weekend) :-P
21:54skipper_is[m]Yea, I can do, I'm just testing one last thing
21:54skipper_is[m]restoring the variables column from my mysql backup
21:55mstenta[m](don't post to this chat, of course... DM me with a link or something)
21:55mstenta[m]oh yea you could try that
21:55mstenta[m]but there will be blobs elsewhere i'm sure
21:55skipper_is[m]Yea, probably
21:55skipper_is[m]Nope, nvm
21:56skipper_is[m]Well, some info is there!
21:56*uploaded an image: image.png (80KB) < matrix.org/_matrix/media/r0/download/mat >
21:56mstenta[m]oh try clearing caches now
21:57skipper_is[m]A lot of errors!
21:57skipper_is[m]But the theme looks like it is there
21:58skipper_is[m]Map is destroyed
22:00skipper_is[m]I'm just doing a fresh dump for you
22:00skipper_is[m]That sounds wrong..
22:00mstenta[m]lol
22:00*uploaded an image: image.png (171KB) < matrix.org/_matrix/media/r0/download/mat >
22:00mstenta[m]do a normal postgres dump
22:01mstenta[m]hey that's not bad
22:01mstenta[m]but yea... i'd be suspicious of issues lurking in the database
22:02mstenta[m]> do a normal postgres dump
22:02mstenta[m]meaning: one that has statements for creating tables and everything... i will wipe my entire postgres database and import yours
22:02skipper_is[m]Ooh ok
22:02mstenta[m]just so i know i'm starting with exactly the same thing as you
22:03skipper_is[m]I've never tried to recover it from that dump
22:04skipper_is[m]Shall I send it to your twitter account in a PM?
22:05mstenta[m]sure
22:07skipper_is[m]Done
22:08skipper_is[m]I wish you the best of luck with it!
22:08mstenta[m]got it
22:09mstenta[m]no guarantees :-)
22:09skipper_is[m]I'm going to have to dash as well, got a hedgelaying course over the weekend, so need to get some rest before! Gnight o/
22:10mstenta[m]Sounds fun!
22:10mstenta[m]Have a nice weekend

< 072019-11-08⋏09 >