[26.0.x] Can't save External Storage global credentials, 500 response in console

Nextcloud version: 26.0.0
Operating system and version: Docker | Linux 5.19.17
Apache or nginx version: Nginx 1.22.1
PHP version: 8.1.17

The issue you are facing:

Unable to save Global Credentials for External Storage, clicking the save button does nothing, just sits on Saving... forever. Looking at browser dev tools console, shows POST https://savestate.retroject.tech/apps/files_external/globalcredentials 500.

Is this the first time you’ve seen this error?: No, I’ve been facing this issue since using version 25.x, since updated to 26.0.0 and nothing changed. Used to work fine in version 24.x.

Steps to replicate it:

  1. Open administration settings, go to external storage
  2. Enter credentials in the “Gloabal Credentials” section
  3. Click save

The output of your Nextcloud log in Admin > Logging:

[webdav] Error: Sabre\DAV\Exception\ServiceUnavailable: Storage with mount id 1 is not available at <<closure>>

 0. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 78
    OCA\DAV\Connector\Sabre\Directory->getChild()
 1. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 971
    Sabre\DAV\Tree->getNodeForPath()
 2. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
 3. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
 4. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
 5. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
 6. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
 7. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
 8. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
 9. /config/www/nextcloud/apps/dav/lib/Server.php line 366
    Sabre\DAV\Server->exec()
10. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
11. /config/www/nextcloud/remote.php line 171
    require_once("/config/www/nex ... p")

PROPFIND /remote.php/dav/files/vernoulli/Music
from 71.193.39.35 by vernoulli at 2023-04-15T20:35:59+00:00
[webdav] Error: Sabre\DAV\Exception\ServiceUnavailable:  at <<closure>>

 0. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php line 78
    OCA\DAV\Connector\Sabre\Directory->getChild()
 1. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 971
    Sabre\DAV\Tree->getNodeForPath()
 2. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
    Sabre\DAV\Server->getPropertiesIteratorForPath()
 3. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
    Sabre\DAV\Server->writeMultiStatus()
 4. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
    Sabre\DAV\Server->generateMultiStatus()
 5. /config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
    Sabre\DAV\CorePlugin->httpPropFind()
 6. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 472
    Sabre\DAV\Server->emit()
 7. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 253
    Sabre\DAV\Server->invokeMethod()
 8. /config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php line 321
    Sabre\DAV\Server->start()
 9. /config/www/nextcloud/apps/dav/lib/Server.php line 366
    Sabre\DAV\Server->exec()
10. /config/www/nextcloud/apps/dav/appinfo/v2/remote.php line 35
    OCA\DAV\Server->exec()
11. /config/www/nextcloud/remote.php line 171
    require_once("/config/www/nex ... p")

PROPFIND /remote.php/dav/files/vernoulli/Music
from 71.193.39.35 by vernoulli at 2023-04-15T20:30:29+00:00
[PHP] Error: Undefined array key 1 at /config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php#46

PROPFIND /remote.php/dav/files/vernoulli/Music
from 71.193.39.35 by vernoulli at 2023-04-15T20:30:29+00:00

Main Database Error:

[index] Error: OC\DB\Exceptions\DbalException: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'password::global' for key 'oc_storages_credentials.stocred_ui' at <<closure>>

 0. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 328
    OC\DB\Exceptions\DbalException::wrap()
 1. /config/www/nextcloud/lib/private/DB/Connection.php line 396
    OC\DB\QueryBuilder\QueryBuilder->executeStatement()
 2. /config/www/nextcloud/lib/private/DB/ConnectionAdapter.php line 114
    OC\DB\Connection->setValues()
 3. /config/www/nextcloud/lib/private/Security/CredentialsManager.php line 72
    OC\DB\ConnectionAdapter->setValues()
 4. /config/www/nextcloud/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php line 69
    OC\Security\CredentialsManager->store()
 5. /config/www/nextcloud/apps/files_external/lib/Controller/AjaxController.php line 114
    OCA\Files_External\Lib\Auth\Password\GlobalAuth->saveAuth()
 6. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Files_External\Controller\AjaxController->saveGlobalCredentials()
 7. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
 8. /config/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
 9. /config/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
10. /config/www/nextcloud/lib/base.php line 1055
    OC\Route\Router->match()
11. /config/www/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

Doctrine\DBAL\Exception\UniqueConstraintViolationException: An exception occurred while executing a query: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'password::global' for key 'oc_storages_credentials.stocred_ui' at <<closure>>

 0. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1814
    Doctrine\DBAL\Driver\API\MySQL\ExceptionConverter->convert()
 1. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1749
    Doctrine\DBAL\Connection->handleDriverException()
 2. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1163
    Doctrine\DBAL\Connection->convertExceptionDuringQuery()
 3. /config/www/nextcloud/lib/private/DB/Connection.php line 297
    Doctrine\DBAL\Connection->executeStatement()
 4. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 354
    OC\DB\Connection->executeStatement()
 5. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 6. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 326
    OC\DB\QueryBuilder\QueryBuilder->execute()
 7. /config/www/nextcloud/lib/private/DB/Connection.php line 396
    OC\DB\QueryBuilder\QueryBuilder->executeStatement()
 8. /config/www/nextcloud/lib/private/DB/ConnectionAdapter.php line 114
    OC\DB\Connection->setValues()
 9. /config/www/nextcloud/lib/private/Security/CredentialsManager.php line 72
    OC\DB\ConnectionAdapter->setValues()
10. /config/www/nextcloud/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php line 69
    OC\Security\CredentialsManager->store()
11. /config/www/nextcloud/apps/files_external/lib/Controller/AjaxController.php line 114
    OCA\Files_External\Lib\Auth\Password\GlobalAuth->saveAuth()
12. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Files_External\Controller\AjaxController->saveGlobalCredentials()
13. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
14. /config/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
15. /config/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
16. /config/www/nextcloud/lib/base.php line 1055
    OC\Route\Router->match()
17. /config/www/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

Doctrine\DBAL\Driver\PDO\Exception: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'password::global' for key 'oc_storages_credentials.stocred_ui' at <<closure>>

 0. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 103
    Doctrine\DBAL\Driver\PDO\Exception::new()
 1. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1153
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /config/www/nextcloud/lib/private/DB/Connection.php line 297
    Doctrine\DBAL\Connection->executeStatement()
 3. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 354
    OC\DB\Connection->executeStatement()
 4. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 326
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /config/www/nextcloud/lib/private/DB/Connection.php line 396
    OC\DB\QueryBuilder\QueryBuilder->executeStatement()
 7. /config/www/nextcloud/lib/private/DB/ConnectionAdapter.php line 114
    OC\DB\Connection->setValues()
 8. /config/www/nextcloud/lib/private/Security/CredentialsManager.php line 72
    OC\DB\ConnectionAdapter->setValues()
 9. /config/www/nextcloud/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php line 69
    OC\Security\CredentialsManager->store()
10. /config/www/nextcloud/apps/files_external/lib/Controller/AjaxController.php line 114
    OCA\Files_External\Lib\Auth\Password\GlobalAuth->saveAuth()
11. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Files_External\Controller\AjaxController->saveGlobalCredentials()
12. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
13. /config/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
14. /config/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
15. /config/www/nextcloud/lib/base.php line 1055
    OC\Route\Router->match()
16. /config/www/nextcloud/index.php line 36
    OC::handleRequest()

Caused by:

PDOException: SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'password::global' for key 'oc_storages_credentials.stocred_ui' at <<closure>>

 0. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Driver/PDO/Statement.php line 101
    PDOStatement->execute()
 1. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Connection.php line 1153
    Doctrine\DBAL\Driver\PDO\Statement->execute()
 2. /config/www/nextcloud/lib/private/DB/Connection.php line 297
    Doctrine\DBAL\Connection->executeStatement()
 3. /config/www/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php line 354
    OC\DB\Connection->executeStatement()
 4. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 280
    Doctrine\DBAL\Query\QueryBuilder->execute()
 5. /config/www/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php line 326
    OC\DB\QueryBuilder\QueryBuilder->execute()
 6. /config/www/nextcloud/lib/private/DB/Connection.php line 396
    OC\DB\QueryBuilder\QueryBuilder->executeStatement()
 7. /config/www/nextcloud/lib/private/DB/ConnectionAdapter.php line 114
    OC\DB\Connection->setValues()
 8. /config/www/nextcloud/lib/private/Security/CredentialsManager.php line 72
    OC\DB\ConnectionAdapter->setValues()
 9. /config/www/nextcloud/apps/files_external/lib/Lib/Auth/Password/GlobalAuth.php line 69
    OC\Security\CredentialsManager->store()
10. /config/www/nextcloud/apps/files_external/lib/Controller/AjaxController.php line 114
    OCA\Files_External\Lib\Auth\Password\GlobalAuth->saveAuth()
11. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 230
    OCA\Files_External\Controller\AjaxController->saveGlobalCredentials()
12. /config/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php line 137
    OC\AppFramework\Http\Dispatcher->executeController()
13. /config/www/nextcloud/lib/private/AppFramework/App.php line 183
    OC\AppFramework\Http\Dispatcher->dispatch()
14. /config/www/nextcloud/lib/private/Route/Router.php line 315
    OC\AppFramework\App::main()
15. /config/www/nextcloud/lib/base.php line 1055
    OC\Route\Router->match()
16. /config/www/nextcloud/index.php line 36
    OC::handleRequest()

POST /apps/files_external/globalcredentials
from 71.193.39.35 by gdoshier at 2023-04-15T20:29:03+00:00

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

<?php
$CONFIG = array (
  'memcache.local' => '\\OC\\Memcache\\APCu',
  'datadirectory' => '/data',
  'default_phone_region' => 'US',
  'instanceid' => 'ocfs3hta0g2t',
  'passwordsalt' => '***',
  'secret' => '***',
  'trusted_domains' => 
  array (
    0 => '192.168.1.2:8443',
    1 => 'savestate.retroject.tech',
  ),
  'dbtype' => 'mysql',
  'version' => '26.0.0.11',
  'trusted_proxies' => 
  array (
    0 => 'swag',
  ),
  'overwrite.cli.url' => 'https://savestate.retroject.tech',
  'overwritehost' => 'savestate.retroject.tech',
  'overwriteprotocol' => 'https',
  'installed' => true,
  'maintenance' => false,
  'updater.release.channel' => 'stable',
  'theme' => '',
  'loglevel' => 2,
  'mail_smtpmode' => 'smtp',
  'mail_smtpsecure' => 'ssl',
  'mail_sendmailmode' => 'smtp',
  'mysql.utf8mb4' => true,
  'dbname' => 'nextcloud',
  'dbhost' => 'mysql',
  'dbuser' => '***',
  'dbpassword' => '***',
  'mail_from_address' => '***',
  'mail_domain' => '***',
  'mail_smtpauthtype' => 'LOGIN',
  'mail_smtpauth' => 1,
  'mail_smtphost' => 'smtp.gmail.com',
  'mail_smtpport' => '465',
  'mail_smtpname' => '***',
  'mail_smtppassword' => '***',
  'updater.secret' => '**',
);

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

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.

Last 32 lines of log file: Nextcloud log - Pastebin.com

Last 4 lines:

{"reqId":"HbySP3H5OdDaKqaSIbeS","level":3,"time":"2023-04-15T20:19:29+00:00","remoteAddr":"71.193.39.35","user":"vernoulli","app":"PHP","method":"PROPFIND","url":"/remote.php/dav/files/vernoulli/Music","message":"Undefined array key 1 at /config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php#46","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.0.11","data":{"app":"PHP"}}
{"reqId":"HbySP3H5OdDaKqaSIbeS","level":2,"time":"2023-04-15T20:19:29+00:00","remoteAddr":"71.193.39.35","user":"vernoulli","app":"no app in context","method":"PROPFIND","url":"/remote.php/dav/files/vernoulli/Music","message":"External storage not available: Invalid attribute response","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.0.11","exception":{"Exception":"Icewind\\SMB\\Exception\\Exception","Message":"Invalid attribute response","Code":0,"Trace":[{"file":"/config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","line":69,"function":"stat","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php","line":114,"function":"getSize","class":"Icewind\\SMB\\Native\\NativeFileInfo","type":"->"},{"file":"/config/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":191,"function":"stat","class":"Icewind\\SMB\\Native\\NativeShare","type":"->"},{"file":"/config/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":348,"function":"getFileInfo","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Common.php","line":462,"function":"stat","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/config/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php","line":729,"function":"test","class":"OC\\Files\\Storage\\Common","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":471,"function":"test","class":"OCA\\Files_External\\Lib\\Storage\\SMB","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":69,"function":"test","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":83,"function":"updateAvailability","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":92,"function":"isAvailable","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Availability.php","line":445,"function":"checkAvailability","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":596,"function":"getMetaData","class":"OC\\Files\\Storage\\Wrapper\\Availability","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Storage/Wrapper/Wrapper.php","line":596,"function":"getMetaData","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Cache/Scanner.php","line":116,"function":"getMetaData","class":"OC\\Files\\Storage\\Wrapper\\Wrapper","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Cache/Scanner.php","line":153,"function":"getData","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/Cache/Scanner.php","line":331,"function":"scanFile","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":1355,"function":"scan","class":"OC\\Files\\Cache\\Scanner","type":"->"},{"file":"/config/www/nextcloud/lib/private/Files/View.php","line":1394,"function":"getCacheEntry","class":"OC\\Files\\View","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","line":216,"function":"getFileInfo","class":"OC\\Files\\View","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/remote.php","line":171,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php","Line":55,"message":"External storage not available: Invalid attribute response","exception":{},"CustomMessage":"External storage not available: Invalid attribute response"}}
{"reqId":"HbySP3H5OdDaKqaSIbeS","level":3,"time":"2023-04-15T20:19:29+00:00","remoteAddr":"71.193.39.35","user":"vernoulli","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/vernoulli/Music","message":"","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.0.11","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"","Code":0,"Trace":[{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/remote.php","line":171,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":218,"message":"","exception":{},"CustomMessage":""}}
{"reqId":"4R92p9iFERmFEWZR1HgI","level":3,"time":"2023-04-15T20:24:59+00:00","remoteAddr":"71.193.39.35","user":"vernoulli","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/files/vernoulli/Music","message":"Storage with mount id 1 is not available","userAgent":"Mozilla/5.0 (Windows) mirall/3.8.0stable-Win64 (build 20230331) (Nextcloud, windows-10.0.19044 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.0.11","exception":{"Exception":"Sabre\\DAV\\Exception\\ServiceUnavailable","Message":"Storage with mount id 1 is not available","Code":0,"Trace":[{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Tree.php","line":78,"function":"getChild","class":"OCA\\DAV\\Connector\\Sabre\\Directory","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":971,"function":"getNodeForPath","class":"Sabre\\DAV\\Tree","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1662,"function":"getPropertiesIteratorForPath","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":1647,"function":"writeMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":346,"function":"generateMultiStatus","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpPropFind","class":"Sabre\\DAV\\CorePlugin","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":472,"function":"emit","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/lib/Server.php","line":366,"function":"exec","class":"Sabre\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->"},{"file":"/config/www/nextcloud/remote.php","line":171,"args":["/config/www/nextcloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/config/www/nextcloud/apps/dav/lib/Connector/Sabre/Directory.php","Line":218,"message":"Storage with mount id 1 is not available","exception":{},"CustomMessage":"Storage with mount id 1 is not available"}}

I’ve had the same issue today and was able to solve it.
It looks like there is a bug in how the global credentials get stored for users and for the admin.
What worked for me in NC 28 is:
I successfully saved the global credentials in user settings.
After that, I went into the database
table “oc_storage_credentials” and removed the value of the field “user” for the row with the identifier “password::global”. after that it was able to successfully use that user on a global level.

I do believe the bug here is that the user level global credentials are supposed to be saved with an identifier “password::global::user”

Hope that helps.

I too had the same problem with version NC 28.0.2. and this solution still works.
Thanks for finding this circumvention.
Just a note, the table name is “oc_storages_credentials”

Please report this if you believe there is a bug so it can be looked into. Thanks!