Ocs/v2.php/apps/serverinfo/api/v1/info takes 30-50 seconds to execute

Recover is in a few steps.

Step 1. Find out what is wrong in DB by listening all shares, data folders etc. You should execute command in shell to your DB, e.g. mysql/mariaDB:

You will see a table and should identify what are wrong storage’s there.

Step 2.

Step 3.

the ID is in a second raw in table from Step 1.

Step 4. Do some DB cleanup:

Step 5. Run FS rescan, for this use command:
sudo -u www-data php occ files:cleanup

You can see on my graphs in older treat that this operation will take a while…