Support intro
Sorry to hear you’re facing problems
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
Nextcloud version (eg, 20.0.5): 25.0.3
Operating system and version (eg, Ubuntu 20.04): Fedora 37
Apache or nginx version (eg, Apache 2.4.25): 2.4.55-1.fc37
PHP version (eg, 7.4): 8.1.15
The issue you are facing:
All SMB shares are marked with exclamation mark and cannot be mounted.
SMB shares cannot be mounted using Nextcloud GUI, removal and creating them anew does not solve issue. However, I can mount said shares directly from Linux console.
All shares were working fine in 25.0.2.
I found no logs in php-fmp, messages, httpd logs, etc. Logs in nextcloud.log paster below in formatted version.
Enabled or disabled SElinux does not solve the issue.
However, I was also doing maintenance Fedora update on the same day. First, NC was updated from 25.0.2 to 25.0.3, followed by Fedora update.
Entire system was updated, those two is just example of version update:
php from 8.1.13-1.fc37 to 8.1.15-1.fc37
httpd from 2.4.54-5.fc37 to 2.4.55-1.fc37
samba from 4.17.4-2.fc37 to 4.17.5-0.fc37
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
- Have configured SMB shares
- Update NC from 25.0.2 to 25.0.3
- Exclamation marked at every share without possibly to mount them correctly
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: Error: Undefined array key 1 at /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php#46 at <<closure>>
0. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php line 46
OC\Log\ErrorHandler::onError(2, "Undefined array key 1", "/datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php", 46)
1. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php line 69
Icewind\SMB\Native\NativeFileInfo->stat()
2. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php line 114
Icewind\SMB\Native\NativeFileInfo->getSize()
3. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 191
Icewind\SMB\Native\NativeShare->stat("/")
4. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 348
OCA\Files_External\Lib\Storage\SMB->getFileInfo("/")
5. /datashare/html/domain.local/nextcloud_nc21/lib/private/Files/Storage/Common.php line 462
OCA\Files_External\Lib\Storage\SMB->stat("")
6. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 729
OC\Files\Storage\Common->test()
7. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/MountConfig.php line 131
OCA\Files_External\Lib\Storage\SMB->test("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
8. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Controller/StoragesController.php line 288
OCA\Files_External\MountConfig::getBackendStatus("*** sensitive parameters replaced ***")
9. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Controller/UserGlobalStoragesController.php line 126
OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensitive parameters replaced ***")
10. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Files_External\Controller\UserGlobalStoragesController->show(8, "*** sensitive parameters replaced ***")
11. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "show")
12. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "show")
13. /datashare/html/domain.local/nextcloud_nc21/lib/private/Route/Router.php line 298
OC\AppFramework\App::main("OCA\\Files_Exte ... r", "show", OC\AppFramework\ ... {}, ["8","files_exte ... "])
14. /datashare/html/domain.local/nextcloud_nc21/lib/base.php line 1047
OC\Route\Router->match("/apps/files_ext ... 8")
15. /datashare/html/domain.local/nextcloud_nc21/index.php line 36
OC::handleRequest()
GET /index.php/apps/files_external/userglobalstorages/8?testOnly=false
from 10.3.1.99 by root at 2023-02-17T18:37:49+00:00
[no app in context] Warning: Icewind\SMB\Exception\Exception: Invalid attribute response at <<closure>>
0. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeFileInfo.php line 69
Icewind\SMB\Native\NativeFileInfo->stat()
1. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php line 114
Icewind\SMB\Native\NativeFileInfo->getSize()
2. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 191
Icewind\SMB\Native\NativeShare->stat("/")
3. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 348
OCA\Files_External\Lib\Storage\SMB->getFileInfo("/")
4. /datashare/html/domain.local/nextcloud_nc21/lib/private/Files/Storage/Common.php line 462
OCA\Files_External\Lib\Storage\SMB->stat("")
5. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Lib/Storage/SMB.php line 729
OC\Files\Storage\Common->test()
6. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/MountConfig.php line 131
OCA\Files_External\Lib\Storage\SMB->test("*** sensitive parameters replaced ***", "*** sensitive parameters replaced ***")
7. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Controller/StoragesController.php line 288
OCA\Files_External\MountConfig::getBackendStatus("*** sensitive parameters replaced ***")
8. /datashare/html/domain.local/nextcloud_nc21/apps/files_external/lib/Controller/GlobalStoragesController.php line 201
OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensitive parameters replaced ***")
9. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/Http/Dispatcher.php line 225
OCA\Files_External\Controller\GlobalStoragesController->update("*** sensitive parameters replaced ***")
10. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/Http/Dispatcher.php line 133
OC\AppFramework\Http\Dispatcher->executeController(OCA\Files_Extern ... {}, "update")
11. /datashare/html/domain.local/nextcloud_nc21/lib/private/AppFramework/App.php line 172
OC\AppFramework\Http\Dispatcher->dispatch(OCA\Files_Extern ... {}, "update")
12. /datashare/html/domain.local/nextcloud_nc21/lib/private/Route/Router.php line 298
OC\AppFramework\App::main("OCA\\Files_Exte ... r", "update", OC\AppFramework\ ... {}, ["8","files_exte ... "])
13. /datashare/html/domain.local/nextcloud_nc21/lib/base.php line 1047
OC\Route\Router->match("/apps/files_external/globalstorages/8")
14. /datashare/html/domain.local/nextcloud_nc21/index.php line 36
OC::handleRequest()
PUT /index.php/apps/files_external/globalstorages/8
from 10.3.1.99 by root at 2023-02-17T18:56:18+00:00
[webdav] Error: Sabre\DAV\Exception\ServiceUnavailable: Storage with mount id 7 is not available at <<closure>>
0. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Tree.php line 78
OCA\DAV\Connector\Sabre\Directory->getChild("SMB_czarny")
1. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 971
Sabre\DAV\Tree->getNodeForPath("files/root/SMB_czarny")
2. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 1662
Sabre\DAV\Server->getPropertiesIteratorForPath("files/root/SMB_czarny", ["{DAV:}getetag"], 0)
3. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 1647
Sabre\DAV\Server->writeMultiStatus(Sabre\Xml\Writer ... ]}, Generator {}, false)
4. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/CorePlugin.php line 346
Sabre\DAV\Server->generateMultiStatus(Generator {}, false)
5. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/event/lib/WildcardEmitterTrait.php line 89
Sabre\DAV\CorePlugin->httpPropFind(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
6. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 472
Sabre\DAV\Server->emit("method:PROPFIND", [Sabre\HTTP\Requ ... }])
7. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 253
Sabre\DAV\Server->invokeMethod(Sabre\HTTP\Request {}, Sabre\HTTP\Response {})
8. /datashare/html/domain.local/nextcloud_nc21/3rdparty/sabre/dav/lib/DAV/Server.php line 321
Sabre\DAV\Server->start()
9. /datashare/html/domain.local/nextcloud_nc21/apps/dav/lib/Server.php line 360
Sabre\DAV\Server->exec()
10. /datashare/html/domain.local/nextcloud_nc21/apps/dav/appinfo/v2/remote.php line 35
OCA\DAV\Server->exec()
11. /datashare/html/domain.local/nextcloud_nc21/remote.php line 171
require_once("/datashare/html ... p")
PROPFIND /remote.php/dav/files/root/SMB_czarny/
from 10.3.1.1 by root at 2023-02-17T18:50:55+00:00
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'some_instance_id',
'passwordsalt' => 'some_password_salt',
'secret' => 'some_secret',
'trusted_domains' =>
array (
0 => 'cloud.domain.local',
),
'datadirectory' => '/datashare/html/domain.local/nextcloud_nc21/data',
'dbtype' => 'mysql',
'version' => '25.0.3.2',
'overwrite.cli.url' => 'https://cloud.domain.local',
'dbname' => 'nextcloud',
'dbhost' => 'localhost:3306',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => 'some_db_user',
'dbpassword' => 'some_db_pass',
'installed' => true,
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'updater.release.channel' => 'stable',
'default_phone_region' => 'PL',
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'smtp',
'mail_smtpauth' => 1,
'mail_sendmailmode' => 'smtp',
'mail_smtpsecure' => 'ssl',
'mail_from_address' => 'some_mail_user',
'mail_domain' => 'some_mail_domain',
'mail_smtphost' => 'some_mail_domain',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpport' => '465',
'mail_smtpname' => 'some_mail_user',
'mail_smtppassword' => 'some_mail_pass',
'updater.secret' => 'some_updated_secret',
);