Hi all, after upgrading my instance to v25.0.0 I lost access to all files stored in my instance. Nextcloud clients cannot sync with the instance anymore; opening the “All Files” tab in the Web UI shows nothing but this error message:
This directory is unavailable, please check the logs or contact the administrator
The updater did not report any error during the upgrade. Running occ maintenance:repair
did not solve the problem; judging by the output nothing has been identified as broken and repaired.
Two errors were recorded in the log after the upgrade. I am not sure how much they are related to the problem, but please see snippets below.
Nextcloud version: 25.0.0
Operating system and version: Raspberry Pi OS 11 (bullseye)
Apache or nginx version: Apache 2.4.54
PHP version: 7.4.30
Is this the first time you’ve seen this error? Yes
Steps to replicate it:
- Run the built-in updater to update the instance to v25.0.0.
The output of your Nextcloud log in Admin > Logging:
Error 1:
[index] Error: OCP\Files\NotPermittedException: Could not create folder at <<closure>>
0. /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFolder.php line 106
OC\Files\Node\Folder->newFolder()
1. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 165
OC\Files\SimpleFS\SimpleFolder->newFolder()
2. /var/www/nextcloud/apps/theming/lib/ImageManager.php line 180
OCA\Theming\ImageManager->getCacheFolder()
3. /var/www/nextcloud/apps/theming/lib/Controller/IconController.php line 123
OCA\Theming\ImageManager->getCachedImage()
4. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Theming\Controller\IconController->getFavicon()
5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController()
6. /var/www/nextcloud/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch()
7. /var/www/nextcloud/lib/private/Route/Router.php line 298
OC\AppFramework\App::main()
8. /var/www/nextcloud/lib/base.php line 1047
OC\Route\Router->match()
9. /var/www/nextcloud/index.php line 36
OC::handleRequest()
GET /nextcloud/apps/theming/favicon/files?v=26
from 127.0.0.1 by UM-Li at 2022-10-20T10:36:06+00:00
Error 2:
[webdav] Error: TypeError: Return value of OCA\DAV\Connector\Sabre\FilesPlugin::OCA\DAV\Connector\Sabre\{closure}() must be of the type int or null, float returned at <<closure>>
0. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php line 95
OCA\DAV\Connector\Sabre\FilesPlugin->OCA\DAV\Connector\Sabre\{closure}("*** sensitive parameters replaced ***")
1. /var/www/nextcloud/apps/dav/lib/Connector/Sabre/FilesPlugin.php line 356
Sabre\DAV\PropFind->handle()
2. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
OCA\DAV\Connector\Sabre\FilesPlugin->handleGetProperties()
3. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1052
Sabre\DAV\Server->emit()
4. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 984
Sabre\DAV\Server->getPropertiesByNode()
5. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
Sabre\DAV\Server->getPropertiesIteratorForPath()
6. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
Sabre\DAV\Server->writeMultiStatus()
7. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
Sabre\DAV\Server->generateMultiStatus()
8. /var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPropFind()
9. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit()
10. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod()
11. /var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
12. /var/www/nextcloud/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
13. /var/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
14. /var/www/nextcloud/remote.php line 167
require_once("/var/www/nextcl ... p")
PROPFIND /nextcloud/remote.php/dav/files/UM-Li/
from 127.0.0.1 by UM-Li at 2022-10-20T11:34:02+00:00
The output of your config.php file in /path/to/nextcloud
:
<?php
$CONFIG = array (
'datadirectory' => '/var/www/html/nextcloud/data',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbpassword' => '...',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbtype' => 'mysql',
'dbuser' => 'nextcloud',
'default_phone_region' => 'US',
'htaccess.RewriteBase' => '/nextcloud',
'installed' => true,
'instanceid' => '...',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mysql.utf8mb4' => true,
'overwrite.cli.url' => '...',
'passwordsalt' => '...',
'secret' => '...',
'trusted_domains' =>
array (
0 => '...',
),
'version' => '25.0.0.18',
'mail_smtpmode' => 'sendmail',
'mail_sendmailmode' => 'smtp',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'mail_from_address' => '...',
'mail_domain' => '...',
'updater.secret' => '...',
);