Files and groupfolders produce server error after update to nc 27

After the update from NC 26 to NC 27 I had no access to my nextcloud instance telling me, I have a server error 500. After some testing I figured, that if I deactivate the app “groupfolders” I get access to nc again. Calendar, deck, contacts … are alle accessible again. But I can not access my files.

When accessing the files tab (groupfolders deactivated), I get the error message :

“The server encountered an internal error and was unable to complete your request. Please contact the server administrator if this error reappears multiple times, please include the technical details below in your report.
More details can be found in the server log.”

In the log I get the message:

“GET /apps/files/ HTTP/1.1” 500 1261 “-” “Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:109.0) Gecko/20100101 Firefox/115.0”

When I reactivate the groupfolders app I loose nc completely again.

My config.php file is:

<?php
$CONFIG = array (
  'htaccess.RewriteBase' => '/',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'apps_paths' => 
  array (
    0 => 
    array (
      'path' => '/var/www/html/apps',
      'url' => '/apps',
      'writable' => false,
    ),
    1 => 
    array (
      'path' => '/var/www/html/custom_apps',
      'url' => '/custom_apps',
      'writable' => true,
    ),
  ),
  'instanceid' => 'ocmhiaw15epi',
  'passwordsalt' => 'XXXXXXXXXX',
  'secret' => 'XXXXXXXXXX',
  'trusted_domains' => 
  array (
    0 => 'XXXXXXde',
    1 => 'XXXXXXX.net',
  ),
  'datadirectory' => '/var/www/html/data',
  'dbtype' => 'mysql',
  'version' => '27.0.0.8',
  'overwrite.cli.url' => 'http://192.168.1.242',
  'overwriteprotocol' => 'https',
  'dbname' => 'db',
  'dbhost' => 'nextcloud_db_1',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'XXXXXXX',
  'dbpassword' => 'XXXXXXXX',
  'installed' => true,
  'default_phone_region' => 'DE',
  'maintenance' => false,
  'loglevel' => 2,
  'theme' => '',
  'app_install_overwrite' => 
  array (
    0 => 'cookbook',
    1 => 'occweb',
    2 => 'ocjobs',
    3 => 'pdfdraw',
    4 => 'backup',
    5 => 'fulltextsearch_elasticsearch',
    6 => 'fulltextsearch',
    7 => 'files_fulltextsearch',
    8 => 'bookmarks_fulltextsearch',
    9 => 'nextbackup',
    10 => 'appointments',
    11 => 'maps',
  ),
  'mail_domain' => 'XXXXXXX',
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'XXXXXX',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'XXXXXXXXX',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpsecure' => 'tls',
  'mail_smtpname' => 'XXXXXXXXX',
  'mail_smtppassword' => 'XXXXXXXXXXX,
  'mail_smtpport' => '587',
  'trashbin_retention_obligation' => '14, 14',
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => 'localhost',
    'port' => 6379,
    'timeout' => 0.0,
    'password' => 'XXXXXXXXX',
  ),
  'data-fingerprint' => 'XXXXXXXXXXXXXX',
);

I’m running nextcloud in docker using a cloudflare tunnel for access.

What I have tried :
I checked the file permissions (www-data:www-data).
I tried “php occ files:scan --all”, “php occ groups:scan --all”, “php occ maintenance:repair”, “php occ db:repair” and “php occ maintenance:mimetype:update-db --repair-filecache”.

How can I reactivate groupfolders and have access to my files ?

Thanks for helping !

Have you checked the reported issues of the Group Folders app? One of it is e.g. this one (I don’t know if this is causing your issue too):

1 Like

The log you need to look at is your nextcloud.log located in your data directory. It will contain the actually error message and stack trace associated with the generic error you’re seeing from the web interface.

Please post that entry.

The nextcloud.log is like this:

`

{“reqId”:“1jDGGtedR5xvMF5U6hOL”,“level”:3,“time”:“2023-06-29T07:29:24+00:00”,“remoteAddr”:“172.30.0.1”,“user”:“johnmiehler”,“app”:“core”,“method”:“GET”,“url”:“/apps/files/”,“message”:“Redis server went away”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:101.0) Gecko/20100101 Firefox/101.0”,“version”:“27.0.0.8”,“exception”:{“Exception”:“RedisException”,“Message”:“Redis server went away”,“Code”:0,“Trace”:[{“file”:“/var/www/html/lib/private/Memcache/Redis.php”,“line”:126,“function”:“set”,“class”:“Redis”,“type”:“->”,“args”:[“d377ab8c1df4f176329d5cfb37b867c2/lockfiles/91cf27bfcb11b4b241f902d240a6f298”,“0”,[“nx”]]},{“file”:“/var/www/html/lib/private/Lock/MemcacheLockingProvider.php”,“line”:65,“function”:“add”,“class”:“OC\Memcache\Redis”,“type”:“->”,“args”:[“files/91cf27bfcb11b4b241f902d240a6f298”,“0”]},{“file”:“/var/www/html/lib/private/Files/Storage/Common.php”,“line”:765,“function”:“acquireLock”,“class”:“OC\Lock\MemcacheLockingProvider”,“type”:“->”,“args”:[“files/91cf27bfcb11b4b241f902d240a6f298”,2,“local::/var/www/html/data/::scanner::appdata_ocmhiaw15epi/js/files/merged-index.js”]},{“file”:“/var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php”,“line”:607,“function”:“acquireLock”,“class”:“OC\Files\Storage\Common”,“type”:“->”,“args”:[“scanner::appdata_ocmhiaw15epi/js/files/merged-index.js”,2,[“OC\Lock\MemcacheLockingProvider”]]},{“file”:“/var/www/html/lib/private/Files/Cache/Scanner.php”,“line”:339,“function”:“acquireLock”,“class”:“OC\Files\Storage\Wrapper\Wrapper”,“type”:“->”,“args”:[“scanner::appdata_ocmhiaw15epi/js/files/merged-index.js”,2,[“OC\Lock\MemcacheLockingProvider”]]},{“file”:“/var/www/html/lib/private/Files/Cache/LocalRootScanner.php”,“line”:39,“function”:“scan”,“class”:“OC\Files\Cache\Scanner”,“type”:“->”,“args”:[“appdata_ocmhiaw15epi/js/files/merged-index.js”,false,3,true]},{“file”:“/var/www/html/lib/private/Files/View.php”,“line”:1317,“function”:“scan”,“class”:“OC\Files\Cache\LocalRootScanner”,“type”:“->”,“args”:[“appdata_ocmhiaw15epi/js/files/merged-index.js”,false]},{“file”:“/var/www/html/lib/private/Files/View.php”,“line”:1356,“function”:“getCacheEntry”,“class”:“OC\Files\View”,“type”:“->”,“args”:[[“OCA\Files_Trashbin\Storage”,[“OC\Files\Cache\Cache”],[“OC\Files\Cache\LocalRootScanner”],null,null,null],“appdata_ocmhiaw15epi/js/files/merged-index.js”,“/appdata_ocmhiaw15epi/js/files/merged-index.js”]},{“file”:“/var/www/html/lib/private/Files/Node/Root.php”,“line”:205,“function”:“getFileInfo”,“class”:“OC\Files\View”,“type”:“->”,“args”:[“/appdata_ocmhiaw15epi/js/files/merged-index.js”,false]},{“file”:“/var/www/html/lib/private/Files/Node/Folder.php”,“line”:139,“function”:“get”,“class”:“OC\Files\Node\Root”,“type”:“->”,“args”:[“/appdata_ocmhiaw15epi/js/files/merged-index.js”]},{“file”:“/var/www/html/lib/private/Files/Node/Folder.php”,“line”:148,“function”:“get”,“class”:“OC\Files\Node\Folder”,“type”:“->”,“args”:[“merged-index.js”]},{“file”:“/var/www/html/lib/private/Files/SimpleFS/SimpleFolder.php”,“line”:71,“function”:“nodeExists”,“class”:“OC\Files\Node\Folder”,“type”:“->”,“args”:[“merged-index.js”]},{“file”:“/var/www/html/lib/private/Template/JSCombiner.php”,“line”:107,“function”:“fileExists”,“class”:“OC\Files\SimpleFS\SimpleFolder”,“type”:“->”,“args”:[“merged-index.js”]},{“file”:“/var/www/html/lib/private/Template/JSCombiner.php”,“line”:93,“function”:“isCached”,“class”:“OC\Template\JSCombiner”,“type”:“->”,“args”:[“merged-index.js”,[“OC\Files\SimpleFS\SimpleFolder”]]},{“file”:“/var/www/html/lib/private/Template/JSResourceLocator.php”,“line”:145,“function”:“process”,“class”:“OC\Template\JSCombiner”,“type”:“->”,“args”:[“/var/www/html/apps/files”,“js/merged-index.json”,“files”]},{“file”:“/var/www/html/lib/private/Template/JSResourceLocator.php”,“line”:103,“function”:“cacheAndAppendCombineJsonIfExist”,“class”:“OC\Template\JSResourceLocator”,“type”:“->”,“args”:[“/var/www/html/apps/files”,“js/merged-index.json”,“files”]},{“file”:“/var/www/html/lib/private/Template/ResourceLocator.php”,“line”:73,“function”:“doFind”,“class”:“OC\Template\JSResourceLocator”,“type”:“->”,“args”:[“js/merged-index”]},{“file”:“/var/www/html/lib/private/TemplateLayout.php”,“line”:377,“function”:“find”,“class”:“OC\Template\ResourceLocator”,“type”:“->”,“args”:[[“core/js/common”,“core/js/main”,“files_sharing/l10n/de”,“files_sharing/js/main”,“files_sharing/js/collaboration”,“And 75 more entries, set log level to debug to see all entries”]]},{“file”:“/var/www/html/lib/private/TemplateLayout.php”,“line”:222,“function”:“findJavascriptFiles”,“class”:“OC\TemplateLayout”,“type”:“::”,“args”:[[“core/js/common”,“core/js/main”,“files_sharing/l10n/de”,“files_sharing/js/main”,“files_sharing/js/collaboration”,“And 75 more entries, set log level to debug to see all entries”]]},{“file”:“/var/www/html/lib/private/legacy/OC_Template.php”,“line”:182,“function”:“__construct”,“class”:“OC\TemplateLayout”,“type”:“->”,“args”:[“error”,“”]},{“file”:“/var/www/html/lib/private/Template/Base.php”,“line”:132,“function”:“fetchPage”,“class”:“OC_Template”,“type”:“->”,“args”:},{“file”:“/var/www/html/lib/private/legacy/OC_Template.php”,“line”:331,“function”:“printPage”,“class”:“OC\Template\Base”,“type”:“->”,“args”:},{“file”:“/var/www/html/index.php”,“line”:74,“function”:“printExceptionErrorPage”,“class”:“OC_Template”,“type”:“::”,“args”:[[“RedisException”],500]}],“File”:“/var/www/html/lib/private/Memcache/Redis.php”,“Line”:126,“CustomMessage”:“–”}}

`

Looking at it, there seems to be a Problem with redis … ?

Thank you. I have deactivated all possible apps to no avail.

Yes, that’s definitely an issue with your Redis server. So you may have an additional problem beyond that noted by @j-ed.

The RedisException is triggered when NC can’t reach the Redis server. That can happen in case of connectivity issues, if the Redis service is down, or if the Redis host is overloaded.

Hi,

I have similar problems: after update to NC27 I can not access files anymore.

The error is “Internal Server Error”.

In nextcloud log I see this kind of errors:

{"reqId":"7EOmMvj2HiWTdR9Hw2Ba","level":3,"time":"2023-07-06T14:45:21+00:00","remoteAddr":"192.168.1.101","user":"6575037B-E9D1-425C-A952-801FC144D7DA","app":"webdav","method":"GET","url":"/remote.php/webdav/carzooon-qa.zip?downloadStartSecret=ymfn5b290ki","message":"No such file or directory","userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Firefox/102.0","version":"27.0.0.8","exception":{"Exception":"Sabre\\DAV\\Exception","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":494,"function":"convertToSabreException","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php","line":85,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":172,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","Line":755,"Previous":{"Exception":"RedisException","Message":"No such file or directory","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":137,"function":"pconnect","class":"Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/RedisFactory.php","line":178,"function":"create","class":"OC\\RedisFactory","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":66,"function":"getInstance","class":"OC\\RedisFactory","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Memcache/Redis.php","line":137,"function":"getCache","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php","line":61,"function":"inc","class":"OC\\Memcache\\Redis","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Common.php","line":765,"function":"acquireLock","class":"OC\\Lock\\MemcacheLockingProvider","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":607,"function":"acquireLock","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":607,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":607,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":607,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1917,"function":"acquireLock","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":2030,"function":"lockPath","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":1123,"function":"lockFile","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Files/View.php","line":969,"function":"basicOperation","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/File.php","line":492,"function":"fopen","class":"OC\\Files\\View","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":85,"function":"get","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpGet","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php","line":85,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/var/www/html/nextcloud/remote.php","line":172,"args":["/var/www/html/nextcloud/apps/dav/appinfo/v1/webdav.php"],"function":"require_once"}],"File":"/var/www/html/nextcloud/lib/private/RedisFactory.php","Line":137},"message":"No such file or directory","exception":{},"CustomMessage":"No such file or directory"}}

Redis seems ok to me:

# systemctl status redis
● redis-server.service - Advanced key-value store
     Loaded: loaded (/lib/systemd/system/redis-server.service; enabled; preset: enabled)
     Active: active (running) since Fri 2023-06-30 15:44:55 CEST; 6 days ago
       Docs: http://redis.io/documentation,
             man:redis-server(1)
   Main PID: 462 (redis-server)
     Status: "Ready to accept connections"
      Tasks: 5 (limit: 19145)
     Memory: 11.3M
        CPU: 19min 17.290s
     CGroup: /system.slice/redis-server.service
             └─462 "/usr/bin/redis-server 127.0.0.1:6379"

Jun 30 15:44:55 nextcloud systemd[1]: Starting redis-server.service - Advanced key-value store...
Jun 30 15:44:55 nextcloud systemd[1]: Started redis-server.service - Advanced key-value store.

If I try to run “occ files:scan-app-data” I get:

Scanning AppData for files

Exception during scan: No such file or directory
#0 /var/www/html/nextcloud/lib/private/RedisFactory.php(137): Redis->pconnect()
#1 /var/www/html/nextcloud/lib/private/RedisFactory.php(178): OC\RedisFactory->create()
#2 /var/www/html/nextcloud/lib/private/Memcache/Redis.php(66): OC\RedisFactory->getInstance()
#3 /var/www/html/nextcloud/lib/private/Memcache/Redis.php(126): OC\Memcache\Redis->getCache()
#4 /var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php(65): OC\Memcache\Redis->add()
#5 /var/www/html/nextcloud/lib/private/Files/Storage/Common.php(765): OC\Lock\MemcacheLockingProvider->acquireLock()
#6 /var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php(339): OC\Files\Storage\Common->acquireLock()
#7 /var/www/html/nextcloud/lib/private/Files/Cache/LocalRootScanner.php(39): OC\Files\Cache\Scanner->scan()
#8 /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php(269): OC\Files\Cache\LocalRootScanner->scan()
#9 /var/www/html/nextcloud/apps/files/lib/Command/ScanAppData.php(125): OC\Files\Utils\Scanner->scan()
#10 /var/www/html/nextcloud/apps/files/lib/Command/ScanAppData.php(160): OCA\Files\Command\ScanAppData->scanFiles()
#11 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\ScanAppData->execute()
#12 /var/www/html/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#13 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#14 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#15 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#16 /var/www/html/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#17 /var/www/html/nextcloud/console.php(100): OC\Console\Application->run()
#18 /var/www/html/nextcloud/occ(11): require_once('...')
#19 {main}

Matteo

I found a solution: redis was the culprid in my case

Problem:

I figured, that the command occ files:scan --all was producing an error with redis.

Starting scan for user 2 out of 8 (antoniaarend)
Exception during scan: Redis server went away
#0 /var/www/html/lib/private/Memcache/Redis.php(126): Redis->set('603c751a3cbb60b...', '0', Array)
#1 /var/www/html/lib/private/Lock/MemcacheLockingProvider.php(65): OC\Memcache\Redis->add('files/3e89747b7...', '0')
#2 /var/www/html/lib/private/Files/Storage/Common.php(765): OC\Lock\MemcacheLockingProvider->acquireLock('files/3e89747b7...',>
#3 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(607): OC\Files\Storage\Common->acquireLock('scanner::', 2, Obje>
#4 /var/www/html/lib/private/Files/Storage/Wrapper/Wrapper.php(607): OC\Files\Storage\Wrapper\Wrapper->acquireLock('scanner::'>
#5 /var/www/html/lib/private/Files/Cache/Scanner.php(339): OC\Files\Storage\Wrapper\Wrapper->acquireLock('scanner::', 2, Objec>
#6 /var/www/html/lib/private/Files/Utils/Scanner.php(269): OC\Files\Cache\Scanner->scan('', true, 3)
#7 /var/www/html/apps/files/lib/Command/Scan.php(164): OC\Files\Utils\Scanner->scan('/antoniaarend', true, NULL)
#8 /var/www/html/apps/files/lib/Command/Scan.php(219): OCA\Files\Command\Scan->scanFiles('antoniaarend', '/antoniaarend', fals>
#9 /var/www/html/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute(Object(Symfony\Component\C>
#10 /var/www/html/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\>
#11 /var/www/html/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run(Object(Symfony\Component\Console\I>
#12 /var/www/html/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand(Object(OC>
#13 /var/www/html/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun(Object(Symfony\C>
#14 /var/www/html/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run(Object(Symfony\Componen>
#15 /var/www/html/console.php(100): OC\Console\Application->run()
#16 /var/www/html/occ(11): require_once('/var/www/html/c...')
#17 {main}

...

+---------+-------+--------+--------------+
| Folders | Files | Errors | Elapsed time |
+---------+-------+--------+--------------+
| 0       | 0     | 8      | 00:00:01     |
+---------+-------+--------+--------------+

Solution :

So commented redis out of config/config.php and restartet my docker container.

Now I could use

sudo docker exec -u www-data nextcloud_app_1 php occ files:scan --all

and it worked (with a view errors on specific files).

+---------+-------+--------+--------------+
| Folders | Files | Errors | Elapsed time |
+---------+-------+--------+--------------+
| 5765    | 49613 | 25     | 00:06:43     |
+---------+-------+--------+--------------+

After restarting nc I could use files again (even after reactivating redis)

Thanks, the problem in my case was that redis sock file was not created.

My solution on Debian 12 was I added in /etc/redis/redis.conf:

unixsocket /var/run/redis/redis-server.sock
unixsocketperm 777

So now in /var/www/html/nextcloud/config/config.php

  'memcache.local' => '\\OC\\Memcache\\APCu',
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' =>
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),

everything is ok.

Good day,
Matteo

1 Like

This adding the redis sock file from Matteo_C worked for me in Ubuntu as well. Thanks!