Hi all, (first post so apologies in advance if I mess things up),
I help out with a small group that runs a DokuWiki instance (amongst several other services). Recently we've run into an issue where DokuWiki is creating hundreds of thousands of files / folders in the /var/lib/dokuwiki/<url>/data/meta
directory. In fact, it created so many that the filesystem ran out of inodes (so the whole VM crashed).
It looks like these are being created recursively. For example, there's a raw_admin_systems.meta
file, then a raw_raw_admin_systems.meta
, then a raw_raw_raw_admin_systems.meta
and so on. As the filenames get larger, the term xhtml
gets used a bit, e.g. raw_raw_raw_xhtml_raw_raw_xhtml_raw_raw_raw_raw_admin.meta
- in fact, the files at the end of the (alphabetically-sorted) list contain just xhtml
s, e.g. xhtml_xhtml_xhtml_xhtml_xhtml_xhtml_xhtml_hosts
.
My very-poorly-thought-out solution last night was to delete a bunch of these files: rm -r raw_raw*
(although the actual command used find
because the arguments list when using the above was too long). This was because the VM was used by other services that I needed to get back up ASAP. I did take a backup of the VM first 🙂 . But I checked this morning and it's doing it again - and in a few hours all the inodes will be used again.
I wasn't involved in setting up the DokuWiki instance, so am at a bit of a loss as to what to do. I've got access to the admin account to perform any troubleshooting.
Is anyone able to shed some light as to what is going on?