nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.37k stars 4.07k forks source link

Issues connecting external storage to SMB share on MacOS 10.6.8 Server #8974

Closed npbamch closed 6 years ago

npbamch commented 6 years ago

MY ISSUE:

External storage connects to any and all windows shares on the network no problem, BUT… When I attempt 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. We use DFS to access these MacServer shares all day / every day without issue on windows machines.

I CAN ping the ip, host & FQDM from terminal. I CAN connect to the share with “smbclient //x.x.x.x/sharename” from NC 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.

I believe the error point is shown in the Nextcloud log report at the bottom of this post.

Any help here will be much appreciated.

Steps to reproduce

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

Expected behaviour

External Storage shows green

Actual behaviour

External Storage shows red

Server configuration

Operating system: Ubuntu 16.04.4 LTS

Web server: Apache 2.4.18

Database:

PHP version: v7.0.28-0ubuntu0.16.04.1

Nextcloud version: (see Nextcloud admin page)** 13.0.1

Updated from an older Nextcloud/ownCloud or fresh install: fresh install with VM OVF

Where did you install Nextcloud from: https://www.techandme.se/nextcloud-vm/

Signing status: "no errors have been found"

List of activated apps: Can I update? 0.1.2
Deleted files 1.3.0 Official
External storage support 1.4.1 Official
First run wizard 2.2.1 Official
Full text search - Elasticsearch Platform (BETA) Full text search - Files (BETA) 0.6.0
Full text search (BETA) 0.6.1
Log Reader 2.0.0 Official
Monitoring 1.3.0 Official
Nextcloud announcements 1.2.0 Official
Notifications 2.1.2 Official
Password policy 1.3.0 Official
PDF viewer 1.2.1 Official
Preview Generator 1.0.9
Share by mail 1.3.0 Official
Theming 1.4.1 Official
Update notification 1.3.0 Official
Versions 1.6.0 Official

Nextcloud configuration:

"system": { "passwordsalt": "REMOVED SENSITIVE VALUE", "secret": "REMOVED SENSITIVE VALUE", "trusteddomains": [ "localhost", "x.x.x.x", (editing internal IP( "nextcloud", "nextcloud" ], "datadirectory": "REMOVED SENSITIVE VALUE", "overwrite.cli.url": "https:\/\/nextcloud\/", "dbtype": "mysql", "version": "13.0.1.1", "dbname": "REMOVED SENSITIVE VALUE", "dbhost": "REMOVED SENSITIVE VALUE", "dbport": "", "dbtableprefix": "oc", "mysql.utf8mb4": true, "dbuser": "REMOVED SENSITIVE VALUE", "dbpassword": "REMOVED SENSITIVE VALUE", "installed": true, "instanceid": "REMOVED SENSITIVE VALUE", "maintenance": false, "mail_smtpmode": "smtp", "log_rotate_size": "10485760", "memcache.local": "\OC\Memcache\Redis", "filelocking.enabled": true, "memcache.distributed": "\OC\Memcache\Redis", "memcache.locking": "\OC\Memcache\Redis", "redis": { "host": "REMOVED SENSITIVE VALUE", "port": 0, "timeout": 0, "dbindex": 0, "password": "REMOVED SENSITIVE VALUE" }, "htaccess.RewriteBase": "\/", "loglevel": "2", "log_type": "file", "logfile": "\/var\/ncdata\/nextcloud.log", "logtimezone": "US\/Eastern" } }

Are you using external storage, if yes which one: local/smb/sftp/... Yes. SMB

Are you using encryption: yes/no Not that I know of?

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/... No

LDAP configuration (delete this part if not used)

N/A

Client configuration

Tried in IE, Chrome, Firefox, Opera - Same results

Operating system: Windows 7/10 Pro

Logs

Web server error log

Fresh apache log before external storage add attempt shows 0 new entries

Nextcloud log (data/nextcloud.log)

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

/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 49:Icewind\SMB\Exception\Exception fromMap(Array, 22, ‘/’)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 61: Icewind\SMB\NativeState->handleError(’/’)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeState.php - line 170: Icewind\SMB\NativeState->testResult(false, ‘smb //macserver…’)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 107: Icewind\SMB\NativeState->stat(‘smb //macserver…’)
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/NativeShare.php - line 103: Icewind\SMB\NativeShare->getStat(’/’)
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 138: Icewind\SMB\NativeShare->stat(’/’)
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 212: OCA\Files_External\Lib\Storage\SMB->getFileInfo(’/’)
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 449: OCA\Files_External\Lib\Storage\SMB->stat(’’)
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 511: OC\Files\Storage\Common->test()
/var/www/nextcloud/apps/files_external/lib/config.php - line 234: OCA\Files_External\Lib\Storage\SMB->test(false, true)
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 256: OC_Mount_Config getBackendStatus(’\OCA\Files_Exte…’, Array, false, true)
/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)
[internal function] OCA\Files_External\Controller\GlobalStoragesController->update(7, ‘MacPublic’, ‘smb’, ‘password passw…’, Array, Array, Array, Array, 100, true)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 161: call_user_func_array(Array, Array)
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 91: OC\AppFramework\Http\Dispatcher->executeController(Object(OCA\Files_External\Controller\GlobalStoragesController), ‘update’)
/var/www/nextcloud/lib/private/AppFramework/App.php - line 115: OC\AppFramework\Http\Dispatcher->dispatch(Object(OCA\Files_External\Controller\GlobalStoragesController), ‘update’)
/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)
[internal function] OC\AppFramework\Routing\RouteActionHandler->__invoke(Array)
/var/www/nextcloud/lib/private/Route/Router.php - line 297:call_user_func(Object(OC\AppFramework\Routing\RouteActionHandler), Array)
/var/www/nextcloud/lib/base.php - line 998: OC\Route\Router->match(’/apps/files_ext…’)
/var/www/nextcloud/index.php - line 37: OC handleRequest()
{main}
MorrisJobke commented 6 years ago

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

This looks like #8978 - let's continue there. And also upgrade to 13.0.4 first and check if this resolves the issue.