Files page hangs after mimetype update

Hi, I’m looking for a quick sanity check just to know whether I’ve done something catastrophically wrong or if this is normal. I added a custom mimetypes list to include some custom filetypes, and ran the occ update commands as directed here. On my test instance, this worked brilliantly and caused no problems, so I deployed it on our work instance (~100 users). Now on that instance, Files is non-functional - it seems to be hanging, and I get the “This page is slowing down Firefox” after a few seconds.
Is this a normal/known occurrence with a big instance that’ll resolve itself in an hour, or have I messed something up?

Update: from the UI log:
[PHP] Error: Maximum execution time of 60 seconds exceeded at [Nextcloud installation]/lib/private/Files/Type/Detection.php#344
GET /ocs/v2.php/apps/dashboard/api/v2/widget-items?widgets%5B%5D=recommendations

line 344 is the end of that php file, so I’m still not sure what’s happening except that I’m now quite sure it’s the mimetype thing causing an issue. Is there a command/way to reset the mimetypes table back to default? I’m poking around the docs but I haven’t found anything yet.

Adding the fix for posterity: I still don’t know what caused the issue, but it appears to fix itself if you take out the mimetype aliases file and run occ maintenance:repair --include-expensive. (The --include-expensive is the important part; running maintenance-repair on its own doesn’t change anything.) A friend found it for me in another post on the forum.

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.