Sorry to hear you’re facing problems
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
Or for longer, use three backticks above and below the code snippet:
longer example here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Operating system and version:
Ubuntu 20.04.2 LTS
Apache or nginx version:
Caddy server v2.3.0
The issue you are facing:
Cannot update missing indices.
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
sudo -u www-data php occ db:add-missing-indices
The output of your Nextcloud log in Admin > Logging:
(no idea where I can find that info)
The output of your config.php file in
/path/to/nextcloud (make sure you remove any identifiable information!):
... 'memcache.local' => '\\OC\\Memcache\\APCu', ...
The output of your Apache/nginx/system log in
command-line output: An unhandled exception has been thrown: OC\HintException: : Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
I upgraded from 20.0.11 (I think, latest), then to 21.0.3, which arrived yesterday (I waited for it to appear in “stable”, as I was trying to avoid issues like these).
There was a 2nd problem after this upgrade: cron ceased to work. I switched to AJAX, the only option which made the error message go away (“cron has not run for 2 days”).
Update - as mentioned in the guide, the cron issue can be fixed by adding
--define apc.enable_cli=1 to the cron job. It’s odd that this change is needed after the upgrade, but at least it seems to solve the cron issue.