Unavailable display of files in the web interface and unable to synchronise since nc25 update

Support intro

Sorry to hear you’re facing problems :slightly_frowning_face:

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

Nextcloud version: 25.0.0.18
Operating system and version: Debian 10.13 32bit on RPi4
Apache version: 2.4.38
PHP version: 8.1.11

The issue you are facing:

Hello,

After upgrading NextCloud from version 24 to 25, I can no longer see my files from the web interface with an error message: this directory is unavailable. The client (appImage 3.6.1) does not synchronize anymore and tells me: error while reading directory "".

I suspect a problem with the 32bit version of my system but unfortunately I don’t have the opportunity to reinstall my system in 64bit for a while.

If anyone has an idea… thanks in advance :slight_smile:

Is this the first time you’ve seen this error?: Yes

Steps to replicate it:

  1. Update NC from 24 to 25
  2. Login to WebUI
  3. Go to Files
  4. See error: “ce répertoire est indisponible” (“this directory is unavailable”)

The output of your Nextcloud log in Admin > Logging:

[webdav] Erreur: TypeError: OCA\DAV\Connector\Sabre\FilesPlugin::OCA\DAV\Connector\Sabre\{closure}(): Return value must be of type ?int, float returned at <<closure>>

 0. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
    OCA\DAV\Connector\Sabre\FilesPlugin->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
 1. /mnt/raid1/apache2-data/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 356
    Sabre\DAV\PropFind->handle()
 2. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    OCA\DAV\Connector\Sabre\FilesPlugin->handleGetProperties()
 3. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
    Sabre\DAV\Server->emit()
 4. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
    Sabre\DAV\Server->getPropertiesByNode()
 5. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
 6. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
 7. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
 8. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
 9. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
10. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
11. /mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
12. /mnt/raid1/apache2-data/nextcloud/apps/dav/lib/Server.php line 360
    Sabre\DAV\Server->exec()
13. /mnt/raid1/apache2-data/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
14. /mnt/raid1/apache2-data/nextcloud/remote.php line 167
    require_once("/mnt/raid1/apac ... p")

PROPFIND /nextcloud/remote.php/dav/files/xsf/
from 192.168.1.1 by xsf at 2022-10-19T18:38:03+02:00

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 => '*',
  ),
  'datadirectory' => '/var/www/nextcloud/data',
  'dbtype' => 'mysql',
  'version' => '25.0.0.18',
  'overwrite.cli.url' => '*',
  'dbname' => 'nextcloud',
  'dbhost' => 'localhost',
  'dbport' => '',
  'dbtableprefix' => 'oc_',
  'mysql.utf8mb4' => true,
  'dbuser' => '*',
  'dbpassword' => '*',
  'installed' => true,
  'logtimezone' => 'Europe/Paris',
  'updater.release.channel' => 'stable',
  'maintenance' => false,
  'mail_smtpmode' => 'smtp',
  'mail_sendmailmode' => 'smtp',
  'mail_from_address' => '*',
  'mail_domain' => '*',
  'mail_smtphost' => 'localhost',
  'mail_smtpport' => '25',
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'has_rebuilt_cache' => true,
  'theme' => '',
  'loglevel' => 2,
  'default_language' => 'fr',
  'default_locale' => 'fr_FR',
  'default_phone_region' => 'FR',
  'auth.bruteforce.protection.enabled' => true,
  'enable_previews' => true,
  'enabledPreviewProviders' => 
  array (
    0 => 'OC\\Preview\\PNG',
    1 => 'OC\\Preview\\JPEG',
    2 => 'OC\\Preview\\GIF',
    3 => 'OC\\Preview\\HEIC',
    4 => 'OC\\Preview\\BMP',
    5 => 'OC\\Preview\\XBitmap',
    6 => 'OC\\Preview\\MP3',
    7 => 'OC\\Preview\\TXT',
    8 => 'OC\\Preview\\MarkDown',
    9 => 'OC\\Preview\\OpenDocument',
    10 => 'OC\\Preview\\Krita',
    11 => 'OC\\Preview\\Movie',
    12 => 'OC\\Preview\\SVG',
  ),
  'app_install_overwrite' => 
  array (
    0 => 'flowupload',
  ),
  'trashbin_retention_obligation' => 'auto, 180',
  'updater.secret' => '*',
);

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.

{
  "reqId": "*",
  "level": 3,
  "time": "2022-10-19T18:34:09+02:00",
  "remoteAddr": "192.168.1.1",
  "user": "xsf",
  "app": "webdav",
  "method": "PROPFIND",
  "url": "/nextcloud/remote.php/dav/files/xsf/",
  "message": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}(): Return value must be of type ?int, float returned",
  "userAgent": "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:105.0) Gecko/20100101 Firefox/105.0",
  "version": "25.0.0.18",
  "exception": {
    "Exception": "TypeError",
    "Message": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}(): Return value must be of type ?int, float returned",
    "Code": 0,
    "Trace": [
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php",
        "line": 95,
        "function": "OCA\\DAV\\Connector\\Sabre\\{closure}",
        "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
        "type": "->",
        "args": [
          "*** sensitive parameters replaced ***"
        ]
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
        "line": 356,
        "function": "handle",
        "class": "Sabre\\DAV\\PropFind",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "handleGetProperties",
        "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1052,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 984,
        "function": "getPropertiesByNode",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1662,
        "function": "getPropertiesIteratorForPath",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 1647,
        "function": "writeMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php",
        "line": 346,
        "function": "generateMultiStatus",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
        "line": 89,
        "function": "httpPropFind",
        "class": "Sabre\\DAV\\CorePlugin",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 472,
        "function": "emit",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 253,
        "function": "invokeMethod",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php",
        "line": 321,
        "function": "start",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/apps/dav/lib/Server.php",
        "line": 360,
        "function": "exec",
        "class": "Sabre\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/apps/dav/appinfo/v2/remote.php",
        "line": 35,
        "function": "exec",
        "class": "OCA\\DAV\\Server",
        "type": "->"
      },
      {
        "file": "/mnt/raid1/apache2-data/nextcloud/remote.php",
        "line": 167,
        "args": [
          "/mnt/raid1/apache2-data/nextcloud/apps/dav/appinfo/v2/remote.php"
        ],
        "function": "require_once"
      }
    ],
    "File": "/mnt/raid1/apache2-data/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
    "Line": 355,
    "message": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}(): Return value must be of type ?int, float returned",
    "exception": {},
    "CustomMessage": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}(): Return value must be of type ?int, float returned"
  }
}

Same for me!
Migrated from 24.0.6.1 to 25.0.0 running on Raspberry-PI Bullseye 32bit.

Pretty much the same error:

{
    "reqId": "exXBVi1ojM6a6EQ2uju1",
    "level": 3,
    "time": "2022-10-19T18:29:26+00:00",
    "remoteAddr": "37.148.159.132",
    "user": "<user>",
    "app": "webdav",
    "method": "PROPFIND",
    "url": "/nextcloud/remote.php/dav/files/<user>/",
    "message": "Return value of OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}() must be of the type int or null, float returned",
    "userAgent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0",
    "version": "25.0.0.18",
    "exception": {
        "Exception": "TypeError",
        "Message": "Return value of OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}() must be of the type int or null, float returned",
        "Code": 0,
        "Trace": [
            {
                "file": "/var/www/html/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php",
                "line": 95,
                "function": "OCA\\DAV\\Connector\\Sabre\\{closure}",
                "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
                "type": "->",
                "args": [
                    "*** sensitive parameters replaced ***"
                ]
            },
            {
                "file": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
                "line": 356,
                "function": "handle",
                "class": "Sabre\\DAV\\PropFind",
                "type": "->"
            },
            {
                "file": "/var/www/html/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php",
                "line": 89,
                "function": "handleGetProperties",
                "class": "OCA\\DAV\\Connector\\Sabre\\FilesPlugin",
                "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": 360,
                "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": 167,
                "args": [
                    "/var/www/html/nextcloud/apps/dav/appinfo/v2/remote.php"
                ],
                "function": "require_once"
            }
        ],
        "File": "/var/www/html/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php",
        "Line": 355,
        "message": "Return value of OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}() must be of the type int or null, float returned",
        "exception": {},
        "CustomMessage": "Return value of OCA\\DAV\\Connector\\Sabre\\FilesPlugin::OCA\\DAV\\Connector\\Sabre\\{closure}() must be of the type int or null, float returned"
    }
}

The folders show up well using webdav.
Tried “sudo -u www-data php /var/www/nextcloud/occ files:scan --all”. But that didn’t help.

You find a quick fix in Cannot access files after upgrade to Nextcloud 25

3 Likes

A long term fix would be upgrading your Pi to the 64bit operating system.

NC25 works rock stable with it.

1 Like

Thanks a lot !