Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
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:
example
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
Nextcloud version: 21.0.3
Operating system and version: Ubuntu 20.04.2 LTS
Apache or nginx version: Caddy server v2.3.0
PHP version: 7.4.3
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 /var/log/____
:
command-line output:
An unhandled exception has been thrown:
OC\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)
Additional info:
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.