Issues connecting external storage to SMB share on MacOS 10.6.8 Server

Nextcloud version: 13.0.1
Operating system and version: Ubuntu 16.04.4 LTS
Apache or nginx version: Apache 2.4.18
PHP version: 7.0

The issue you are facing:

External storages connects to any and all windows shares on the network no problem, BUT…

When I try to add a share served from a MacOS Server 10.6.8 I get the “red box of death” next to the external storages entry. I’ve tried multiple combinations of host the host name (host name, IP, and FQDM) as well as “Domain” and “Username” combinations. Nothing works.

CAN ping the ip, host & FQDM from terminal.
CAN connect to the share with “smbclient //x.x.x.x/sharename” from terminal and browse contents

This is a fresh install of the NextCloud VM appliance. I’m a linux newbie but can find my way around.

Any help here will be much appreciated.

Is this the first time you’ve seen this error? (Y/N):

Y

Steps to replicate it:

  1. Enter Server, share & credentials in External Storages and click “check mark”

The output of your Nextcloud log in Admin > Logging:

Error: Class ‘\Icewind\SMB\Exception\InvalidArgumentException’ not found

  1. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 49:Icewind\SMB\Exception\Exception fromMap(Array, 22, ‘/’)
  2. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 61: Icewind\SMB\NativeState->handleError(’/’)
  3. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 170: Icewind\SMB\NativeState->testResult(false, ‘smb //macserver…’)
  4. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 107: Icewind\SMB\NativeState->stat(‘smb //macserver…’)
  5. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 103: Icewind\SMB\NativeShare->getStat(’/’)
  6. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 138: Icewind\SMB\NativeShare->stat(’/’)
  7. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 212: OCA\Files_External\Lib\Storage\SMB->getFileInfo(’/’)
  8. /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 449: OCA\Files_External\Lib\Storage\SMB->stat(’’)
  9. /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 511: OC\Files\Storage\Common->test()
  10. /var/www/nextcloud/apps/files_external/lib/config.php - line 234: OCA\Files_External\Lib\Storage\SMB->test(false, true)
  11. /var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 256: OC_Mount_Config getBackendStatus(’\OCA\Files_Exte…’, Array, false, true)
  12. /var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 179:OCA\Files_External\Controller\StoragesController->updateStorageStatus(Object(OCA\Files_External\Lib\StorageConfig), true)
  13. [internal function] OCA\Files_External\Controller\GlobalStoragesController->update(7, ‘MacPublic’, ‘smb’, ‘password passw…’, Array, Array, Array, Array, 100, true)
  14. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
  15. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController), ‘update’)
  16. /var/www/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController), ‘update’)
  17. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47: OC\AppFramework\App main(‘OCA\Files_Exter…’, ‘update’, Object(OC\AppFramework\DependencyInjection\DIContainer), Array)
  18. [internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
  19. /var/www/nextcloud/lib/private/Route/Router.php - line 297:call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
  20. /var/www/nextcloud/lib/base.php - line 998: OC\Route\Router->match(’/apps/files_ext…’)
  21. /var/www/nextcloud/index.php - line 37: OC handleRequest()
  22. {main}

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

no config.php file in nextcloud folder?

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

apache (seems like nothing pertinent):

[Fri Mar 23 20:06:53.042477 2018] [mpm_prefork:notice] [pid 48898] AH00169: caught SIGTERM, shutting down
[Fri Mar 23 20:07:25.314440 2018] [ssl:warn] [pid 1611] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 23 20:07:30.161186 2018] [ssl:warn] [pid 1634] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Fri Mar 23 20:07:30.251700 2018] [mpm_prefork:notice] [pid 1634] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Fri Mar 23 20:07:30.251898 2018] [core:notice] [pid 1634] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Mar 24 10:12:21.688457 2018] [mpm_prefork:notice] [pid 1634] AH00169: caught SIGTERM, shutting down
[Sat Mar 24 10:12:50.573279 2018] [ssl:warn] [pid 1599] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:12:55.718532 2018] [ssl:warn] [pid 1637] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:12:55.782438 2018] [mpm_prefork:notice] [pid 1637] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Sat Mar 24 10:12:55.782581 2018] [core:notice] [pid 1637] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Mar 24 10:14:28.904802 2018] [mpm_prefork:notice] [pid 1637] AH00169: caught SIGTERM, shutting down
[Sat Mar 24 10:46:06.782977 2018] [ssl:warn] [pid 1586] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:46:11.785051 2018] [ssl:warn] [pid 1649] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:46:11.855792 2018] [mpm_prefork:notice] [pid 1649] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Sat Mar 24 10:46:11.855933 2018] [core:notice] [pid 1649] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Mar 24 10:55:50.718436 2018] [mpm_prefork:notice] [pid 1649] AH00169: caught SIGTERM, shutting down
[Sat Mar 24 10:56:23.285629 2018] [ssl:warn] [pid 1603] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:56:27.990203 2018] [ssl:warn] [pid 1654] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Sat Mar 24 10:56:28.140395 2018] [mpm_prefork:notice] [pid 1654] AH00163: Apache/2.4.18 (Ubuntu) OpenSSL/1.0.2g configured – resuming normal operations
[Sat Mar 24 10:56:28.140603 2018] [core:notice] [pid 1654] AH00094: Command line: ‘/usr/sbin/apache2’
[Sat Mar 24 14:31:34.890571 2018] [evasive20:error] [pid 8267] [client 10.1.98.6:4804] client denied by server configuration: /var/www/nextcloud/index.php
[Sat Mar 24 16:10:42.210238 2018] [authz_core:error] [pid 5917] [client 10.1.98.6:12572] AH01630: client denied by server configuration: /usr/share/phpmyadmin, referer: http://10.1.44.100/
[Sat Mar 24 16:10:47.207807 2018] [authz_core:error] [pid 5917] [client 10.1.98.6:12572] AH01630: client denied by server configuration: /usr/share/phpmyadmin

nginx: n/a

syslog:

no entries after attempt to connect (seems like nothing hits this)

You already have very specific errors, unfortunately you probably need to ask the developer directly but as @icewind is not very active here, I suggest that you open a bug report on the bug tracker on https://github.com/nextcloud/server/issues