OCC does not work, PHP problem?

Nextcloud version (eg, 20.0.5): 25.0.2
Operating system and version (eg, Ubuntu 20.04): Yunohost trough Debian
Apache or nginx version (eg, Apache 2.4.25): replace me
PHP version (eg, 7.4): 8.0.26
The issue you are facing:

Hello everyone,
I have a problem with nextcloud. :thinking:
Yesterday, I added a lot of files on my new drive trough command line. But thoses files (pictures, vidéos, pdf…) are not showing into Nextcloud. So I did some research and I found this command to scan all my files.

sudo -u www-data php /var/www/nextcloud/occ files:scan admin

But the answer is:

An unhandled exception has been thrown:
OCP\HintException: [0]: Memcache \OC\Memcache\APCu not available for local cache (Is the matching PHP module installed and enabled?)

I don’t know what does it mean ? if anyone know something about it :smiling_face_with_tear: :smiling_face_with_tear:

Thank you

Is this the first time you’ve seen this error? (Y/N): YES

please use search function - the issue have been often discussed in the past e.g.

@wwe

Thanks you for your answer. I didn’t see it sorry :frowning:

When I try to use the command that he gaves:

sudo -u www-data php8.0 --define apc.enable_cli=1  /var/www/nextcloud/occ  maintenance:repair

I have this message :confused:

Cannot write into "config" directory!
This can usually be fixed by giving the web server write access to the config directory.

But, if you prefer to keep config.php file read only, set the option "config_is_read_only" to true in it.

But I don’t really find info about it in the “search section”

If someone knows something about it ?