Empty Folder (Files)

Support intro

If I log in my Instance, there are no files and folder shown

If I try to start scanning on cli, I get this messages

sudo -u www-data /usr/bin/php --define apc.enable_cli=1 /var/www/html/nextcloud/occ files:scan ms
Starting scan for user 1 out of 1 (ms)
Exception during scan: Permission denied
#0 /var/www/html/nextcloud/lib/private/RedisFactory.php(117): Redis->pconnect()
#1 /var/www/html/nextcloud/lib/private/RedisFactory.php(158): 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/Storage/Wrapper/Wrapper.php(607): OC\Files\Storage\Common->acquireLock()
#7 /var/www/html/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php(607): OC\Files\Storage\Wrapper\Wrapper->acquireLock()
#8 /var/www/html/nextcloud/lib/private/Files/Cache/Scanner.php(339): OC\Files\Storage\Wrapper\Wrapper->acquireLock()
#9 /var/www/html/nextcloud/lib/private/Files/Utils/Scanner.php(273): OC\Files\Cache\Scanner->scan()
#10 /var/www/html/nextcloud/apps/files/lib/Command/Scan.php(180): OC\Files\Utils\Scanner->scan()
#11 /var/www/html/nextcloud/apps/files/lib/Command/Scan.php(241): OCA\Files\Command\Scan->scanFiles()
#12 /var/www/html/nextcloud/3rdparty/symfony/console/Command/Command.php(298): OCA\Files\Command\Scan->execute()
#13 /var/www/html/nextcloud/core/Command/Base.php(177): Symfony\Component\Console\Command\Command->run()
#14 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(1040): OC\Core\Command\Base->run()
#15 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(301): Symfony\Component\Console\Application->doRunCommand()
#16 /var/www/html/nextcloud/3rdparty/symfony/console/Application.php(171): Symfony\Component\Console\Application->doRun()
#17 /var/www/html/nextcloud/lib/private/Console/Application.php(206): Symfony\Component\Console\Application->run()
#18 /var/www/html/nextcloud/console.php(100): OC\Console\Application->run()
#19 /var/www/html/nextcloud/occ(11): require_once('...')
#20 {main}
+---------+-------+-----+---------+---------+--------+--------------+
| Folders | Files | New | Updated | Removed | Errors | Elapsed time |
+---------+-------+-----+---------+---------+--------+--------------+
| 0       | 0     | 0   | 0       | 0       | 1      | 00:00:00     |
+---------+-------+-----+---------+---------+--------+--------------+

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 :heart:

Nextcloud version (eg, 20.0.5): 28.0.1
Operating system and version (eg, Ubuntu 20.04): Debian Bookworm (12.4)
Apache or nginx version (eg, Apache 2.4.25): Nginx1.22.1
PHP version (eg, 7.4): 8.2

Steps to replicate it:

  1. sudo -u www-data /usr/bin/php --define apc.enable_cli=1 /var/www/html/nextcloud/occ files:scan ms

The output of your Nextcloud log in Admin > Logging:

empty

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

<?php
$CONFIG = array (
  'instanceid' => 
  'passwordsalt' => 
  'secret' => 
  'trusted_domains' => 
  array (
    0 => 
    1 => 
  ),
  'datadirectory' => '/home/nextcloud',
  'dbtype' => 'mysql',
  'version' => '28.0.1.1',
  'overwrite.cli.url' => 'http://ardbeg/nextcloud',
  'dbname' => 'nextclouddb',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => 'nextclouduser',
  'dbpassword' => 'password',
  'installed' => true,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => 'nextcloud',
  'mail_domain' => 
  'mail_smtphost' => 
  'mail_smtpport' => '587',
  'app_install_overwrite' => 
  array (
    0 => 'dicomviewer',
    1 => 'dashboardcharts',
    2 => 'admin_notifications',
    3 => 'breezedark',
    4 => 'richdocumentscode',
    5 => 'apporder',
  ),
  'maintenance' => false,
  'theme' => '',
  'loglevel' => 2,
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'default_phone_region' => 'DE',
  'enforce_theme' => 'breezedark',
  'mail_smtpsecure' => 'tls',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtpname' => 
  'mail_smtppassword' => 
  'filelocking.enabled' => true,
  'memcache.locking' => '\\OC\\Memcache\\Redis',
  'redis' => 
  array (
    'host' => '/var/run/redis/redis-server.sock',
    'port' => 0,
    'timeout' => 0.0,
  ),
  'updater.secret' => 
);

The output of your Apache/nginx/system log in /var/log/____:

PASTE HERE

PASTE HERE


Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.

PASTE HERE

If you just use the web-interface, do you also get errors from redis? Or just when scanning from command line?

Hi, and merry Christmas.

I don’t understand your question. How can I scan files from webGUI?

When I log in, it shows me the page ‘files’, and it’s empty.
To the hostory: I had NC25.x, there were shown all the files and folders and a cron job recently scanned. Also the external storage were shown.
After upgrade to NC27.x there were still shown the files and folders, but the scan seemed not to work anymore. With this upgrade I also upgraded PHP from 7.4 to 8.2.
Now after upgrade to NC28.0.1 the page is completely empty. I just have no idea what caused this behavior. I didn’t change the files/folders. There is also no button for upload or anythinge else.

Thanks,
Schultze

Just from using it, try to upload a file. Anything in the log files? How does your redis setup look like? It was working before?

I can not upload anything, there is no button to start.

From the logfile:

{
  "reqId": "MeYzB4VOc020IrVHt3BP",
  "level": 3,
  "time": "2023-12-24T12:21:16+00:00",
  "remoteAddr": "192.168.42.187",
  "user": "ms",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/nextcloud/remote.php/dav/files/ms/",
  "message": "Permission denied",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "28.0.1.1",
  "exception": {
    "Exception": "RedisException",
    "Message": "Permission denied",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 117,
        "function": "pconnect",
        "class": "Redis",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 158,
        "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/View.php",
        "line": 1935,
        "function": "acquireLock",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 2048,
        "function": "lockPath",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 1141,
        "function": "lockFile",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 581,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/File.php",
        "line": 54,
        "function": "file_get_contents",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php",
        "line": 119,
        "function": "getContent",
        "class": "OC\\Files\\Node\\File",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 95,
        "function": "OCA\\Text\\DAV\\{closure}",
        "class": "OCA\\Text\\DAV\\WorkspacePlugin",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php",
        "line": 117,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "propFind",
        "class": "OCA\\Text\\DAV\\WorkspacePlugin",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1052,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 984,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1662,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1647,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "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/lib/Server.php",
        "line": 370,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/remote.php",
        "line": 172,
        "args": [
          "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
    "Line": 117,
    "message": "Permission denied",
    "exception": {},
    "CustomMessage": "Permission denied"
  }
}
{
  "reqId": "xB1BVsaaBgq1JsgwklA2",
  "level": 3,
  "time": "2023-12-24T12:21:24+00:00",
  "remoteAddr": "192.168.42.187",
  "user": "ms",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/nextcloud/remote.php/dav/files/ms/home%40ardbeg/",
  "message": "Permission denied",
  "userAgent": "Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0",
  "version": "28.0.1.1",
  "exception": {
    "Exception": "RedisException",
    "Message": "Permission denied",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 117,
        "function": "pconnect",
        "class": "Redis",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 158,
        "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/View.php",
        "line": 1935,
        "function": "acquireLock",
        "class": "OC\\Files\\Storage\\Wrapper\\Wrapper",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 2048,
        "function": "lockPath",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 1141,
        "function": "lockFile",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 581,
        "function": "basicOperation",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/File.php",
        "line": 54,
        "function": "file_get_contents",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php",
        "line": 119,
        "function": "getContent",
        "class": "OC\\Files\\Node\\File",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 95,
        "function": "OCA\\Text\\DAV\\{closure}",
        "class": "OCA\\Text\\DAV\\WorkspacePlugin",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php",
        "line": 117,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "propFind",
        "class": "OCA\\Text\\DAV\\WorkspacePlugin",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1052,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 984,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1662,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1647,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "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/lib/Server.php",
        "line": 370,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/remote.php",
        "line": 172,
        "args": [
          "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
    "Line": 117,
    "message": "Permission denied",
    "exception": {},
    "CustomMessage": "Permission denied"
  }
}
{
  "reqId": "y07cVqyD7e9KK4tl8KhR",
  "level": 2,
  "time": "2023-12-24T14:40:54+00:00",
  "remoteAddr": "",
  "user": "--",
  "app": "appstoreFetcher",
  "method": "",
  "url": "--",
  "message": "Permission denied",
  "userAgent": "--",
  "version": "28.0.1.1",
  "exception": {
    "Exception": "RedisException",
    "Message": "Permission denied",
    "Code": 0,
    "Trace": [
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 117,
        "function": "pconnect",
        "class": "Redis",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
        "line": 158,
        "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": 126,
        "function": "getCache",
        "class": "OC\\Memcache\\Redis",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Lock/MemcacheLockingProvider.php",
        "line": 65,
        "function": "add",
        "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/Cache/Scanner.php",
        "line": 339,
        "function": "acquireLock",
        "class": "OC\\Files\\Storage\\Common",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Cache/LocalRootScanner.php",
        "line": 39,
        "function": "scan",
        "class": "OC\\Files\\Cache\\Scanner",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 1335,
        "function": "scan",
        "class": "OC\\Files\\Cache\\LocalRootScanner",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/View.php",
        "line": 1374,
        "function": "getCacheEntry",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/Root.php",
        "line": 203,
        "function": "getFileInfo",
        "class": "OC\\Files\\View",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/LazyFolder.php",
        "line": 161,
        "function": "get",
        "class": "OC\\Files\\Node\\Root",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/AppData/AppData.php",
        "line": 132,
        "function": "get",
        "class": "OC\\Files\\Node\\LazyFolder",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Preview/Storage/Root.php",
        "line": 57,
        "function": "getFolder",
        "class": "OC\\Files\\AppData\\AppData",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Preview/Watcher.php",
        "line": 64,
        "function": "getFolder",
        "class": "OC\\Preview\\Storage\\Root",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Preview/Watcher.php",
        "line": 54,
        "function": "deleteNode",
        "class": "OC\\Preview\\Watcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Preview/WatcherConnector.php",
        "line": 62,
        "function": "postWrite",
        "class": "OC\\Preview\\Watcher",
        "type": "->"
      },
      {
        "function": "OC\\Preview\\{closure}",
        "class": "OC\\Preview\\WatcherConnector",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Hooks/EmitterTrait.php",
        "line": 105,
        "function": "call_user_func_array"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Hooks/PublicEmitter.php",
        "line": 40,
        "function": "emit",
        "class": "OC\\Hooks\\BasicEmitter",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/Root.php",
        "line": 145,
        "function": "emit",
        "class": "OC\\Hooks\\PublicEmitter",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/Node.php",
        "line": 133,
        "function": "emit",
        "class": "OC\\Files\\Node\\Root",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/Node/File.php",
        "line": 77,
        "function": "sendHooks",
        "class": "OC\\Files\\Node\\Node",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php",
        "line": 92,
        "function": "putContent",
        "class": "OC\\Files\\Node\\File",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/Fetcher.php",
        "line": 201,
        "function": "putContent",
        "class": "OC\\Files\\SimpleFS\\SimpleFile",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/App/AppStore/Fetcher/AppFetcher.php",
        "line": 187,
        "function": "get",
        "class": "OC\\App\\AppStore\\Fetcher\\Fetcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/private/Installer.php",
        "line": 423,
        "function": "get",
        "class": "OC\\App\\AppStore\\Fetcher\\AppFetcher",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php",
        "line": 252,
        "function": "isUpdateAvailable",
        "class": "OC\\Installer",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php",
        "line": 150,
        "function": "isUpdateAvailable",
        "class": "OCA\\UpdateNotification\\Notification\\BackgroundJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/apps/updatenotification/lib/Notification/BackgroundJob.php",
        "line": 76,
        "function": "checkAppUpdates",
        "class": "OCA\\UpdateNotification\\Notification\\BackgroundJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/Job.php",
        "line": 81,
        "function": "run",
        "class": "OCA\\UpdateNotification\\Notification\\BackgroundJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
        "line": 102,
        "function": "start",
        "class": "OCP\\BackgroundJob\\Job",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/lib/public/BackgroundJob/TimedJob.php",
        "line": 92,
        "function": "start",
        "class": "OCP\\BackgroundJob\\TimedJob",
        "type": "->"
      },
      {
        "file": "/var/www/html/nextcloud/cron.php",
        "line": 152,
        "function": "execute",
        "class": "OCP\\BackgroundJob\\TimedJob",
        "type": "->"
      }
    ],
    "File": "/var/www/html/nextcloud/lib/private/RedisFactory.php",
    "Line": 117,
    "message": "Permission denied",
    "exception": {},
    "CustomMessage": "Permission denied"
  }
}

Oh, now I see, there is a “permission denied” in the log. How can I make it more readable?

The redis.conf:

~# grep -ve '^#' -e '^$' /etc/redis/redis.conf
bind 127.0.0.1 -::1
protected-mode yes
port 0
tcp-backlog 511
unixsocket /var/run/redis/redis-server.sock
unixsocketperm 770
timeout 0
tcp-keepalive 300
daemonize yes
pidfile /run/redis/redis-server.pid
loglevel notice
logfile /var/log/redis/redis-server.log
databases 16
always-show-logo no
set-proc-title yes
proc-title-template "{title} {listen-addr} {server-mode}"
stop-writes-on-bgsave-error yes
rdbcompression yes
rdbchecksum yes
dbfilename dump.rdb
rdb-del-sync-files no
dir /var/lib/redis
replica-serve-stale-data yes
replica-read-only yes
repl-diskless-sync yes
repl-diskless-sync-delay 5
repl-diskless-sync-max-replicas 0
repl-diskless-load disabled
repl-disable-tcp-nodelay no
replica-priority 100
acllog-max-len 128
lazyfree-lazy-eviction no
lazyfree-lazy-expire no
lazyfree-lazy-server-del no
replica-lazy-flush no
lazyfree-lazy-user-del no
lazyfree-lazy-user-flush no
oom-score-adj no
oom-score-adj-values 0 200 800
disable-thp yes
appendonly no
appendfilename "appendonly.aof"
appenddirname "appendonlydir"
appendfsync everysec
no-appendfsync-on-rewrite no
auto-aof-rewrite-percentage 100
auto-aof-rewrite-min-size 64mb
aof-load-truncated yes
aof-use-rdb-preamble yes
aof-timestamp-enabled no
slowlog-log-slower-than 10000
slowlog-max-len 128
latency-monitor-threshold 0
notify-keyspace-events ""
hash-max-listpack-entries 512
hash-max-listpack-value 64
list-max-listpack-size -2
list-compress-depth 0
set-max-intset-entries 512
zset-max-listpack-entries 128
zset-max-listpack-value 64
hll-sparse-max-bytes 3000
stream-node-max-bytes 4096
stream-node-max-entries 100
activerehashing yes
client-output-buffer-limit normal 0 0 0
client-output-buffer-limit replica 256mb 64mb 60
client-output-buffer-limit pubsub 32mb 8mb 60
hz 10
dynamic-hz yes
aof-rewrite-incremental-fsync yes
rdb-save-incremental-fsync yes
jemalloc-bg-thread yes

Everything was working before upgrade from NC25 to NC27.

Thank you,
Schultze

Does the problem go away if you simply comment out the redis section of your config.php? (It is safe; it won’t impact your data - it’s merely for performance as long as your only have a standalone instance).

If that fixes things then in order to figure out why Redis is giving you trouble:

  • Is redis running and responding via the UNIX socket? (i.e. redis-cli -s /var/run/redis/redis-server.sock PING)
  • Is redis on the same host? Also, no Docket/VMs/etc involved, correct?
  • What is the full owner/group of /var/run/redis/redis-server.sock and /var/run/redis?
  • You said you “just” upgraded NC and PHP, but if you’re running Bookworm now did you also by chance upgrade your distribution (Bookworm doesn’t do PHP 7.4 by default hence my question)
1 Like

Please also check the permissions in the data folder. In normal cases the permissions should be granted to www-data.www-data

Oh yes, seems to work now. Thank you.

First brings back a “PONG”
It’s all running on one host. No containers, no VM.
Owner and group ist “redis”
I’m not sure, maybe I upgraded to PHP8.2 before upgrade to Bookworm.

Thanks,
Schultze

Then 770 permissions will not work here. There are multiple approaches, but the easiest is 777.

Another possibility might be to explore running redis either under the same UID as your web service or, more reasonably, either as the same GID or perhaps adding redis group to your web server user.

1 Like

Usually in many manuals, they add the www-data user to the redis group. And that makes the most sense that the services using redis have access to it, and not everybody on the system.

And you should have the php-redis package installed (normally the case when you get these permission errors).

1 Like

Yes! I did this and now it’s still working.

Thank you, merry christmas and a happy new year,
Schultze

1 Like

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.