aiowps_global_meta preventing database backups / dump
-
if filescan is activated, the list of all found files is squeezed into one serialized string of several megabytes (aiowps_global_meta.meta_value4).
this may work without problems if you have a very, very small site, but if you have a bunch of plugins and one or more complex theme(s) you will end up with a single row containing more data then all the rest of your database, leading to a situation where your are not able to dump/backup your database anymore because you will hit: Got packet bigger than ‘max_allowed_packet’. failing database backups is a serious problem. you may truncate the table or delete the row but after the next scan you will be in trouble again. you could also raise max_allowed_packet but i doubt that is reasonable.
it is getting even worse on a multisite installation, i witnessed a situation where the problem got duplicated to each and every site within the multisite installation, the same data everywhere. this single row tremendously bloats the database. (an almost 2GB database was down to a few hundred MB after truncating and optimizing all the aiowps_global_meta tables)
i understand, that this may only happen if you export/import the settings from your main site, but if you have a couple of sites this is what you do: setting up your main site and copy over all the setting to your subsites. i love that feature, it safes you so much time.sadly, the only real solution is to switch off filescan.
AIOWPS is an awesome collection of tools, enhancing wordpress security in many aspects, but the filescan as it is now, feels like the opposite because it is leading to failing database backups, and using an absurd amount of databasememory/RAM.
IMHO AIOWPS should put out a warning regarding this problem, or at least ensure that the scan will never run on subsites, even with imported settings, as it makes no sense at all scanning the same files again and again etc.
i know this issue has already been reported years ago, and obviously there is no fix for it until now, so maybe it might simply be better to remove that feature completely? chances are too high you will run into troubles with this feature enabled, it may work today but its just a matter of time, sooner or later you will reach max_allowed_packet. if someone wants a filescan, tools like “tripwire” may do a better job without risking database troubles.
- The topic ‘aiowps_global_meta preventing database backups / dump’ is closed to new replies.