Nextcloud version: 16.0.0)
Operating system and version: Ubuntu 18.04
Apache version: Apache/2.4.29 (Ubuntu)
PHP version: 7.2
The issue you are facing:
Cannot get CIFS/SMB to connect.
Is this the first time you’ve seen this error?: N
Steps to replicate it:
This is a fresh VMware VM created to host NC16.
I have been using NC12 happily for a long time, but wanted to update to the newest version for some of the new functionality and security. I felt the safest way was to build a new system and then switch over.
I cannot get the SMB/CIFS connection to my freeNAS fileserver to work no matter what I try. I have been battling this for a couple of weeks now.
I have validated that the SMB username and logon has the authority to connect by creating a new share connection on the old NC12 install which connected perfectly - so it is not a username/password issue.
It must be a SMB connection issue
I have checked and rechecked that all of the following have been run
apt install libsmbclient
apt install smbclient
apt install php-smbclient
apt install -y cifs-utils
I have even tried
adding
client min protocol = SMB1
client max protocol = SMB3
/etc/samba/smb.conf adding the lines below [global]
without success.
I have checked line by line that the /etc/samba/smb.conf files in both the old and new NC installs are the same - which they are.
I have tried using SMB Test which reports …
Icewind\SMB\Exception\ConnectionRefusedException:
0. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 62:Icewind\SMB\Exception\Exception::fromMap({ 1: "Icewin ... "}, 111, null)
1. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 74:Icewind\SMB\Native\NativeState->handleError(null)
2. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeState.php - line 105:Icewind\SMB\Native\NativeState->testResult(false, "smb:///")
3. /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Native/NativeShare.php - line 92:Icewind\SMB\Native\NativeState->opendir("smb:///")
4. /var/www/nextcloud/apps/smb_test/lib/Controller/SmbController.php - line 95:Icewind\SMB\Native\NativeShare->dir(null)
5. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 166:OCA\SMBTest\Controller\SmbController->dir(null, null, null, null, Icewind\SMB\ ... {}, null)
6. /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 99:OC\AppFramework\Http\Dispatcher->executeController(OCA\SMBTest\ ... {}, "dir")
7. /var/www/nextcloud/lib/private/AppFramework/App.php - line 126:OC\AppFramework\Http\Dispatcher->dispatch(OCA\SMBTest\ ... {}, "dir")
8. /var/www/nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php - line 47:OC\AppFramework\App::main("OCA\\SMBTes ... r", "dir", OC\AppFramew ... {}, { _route: "smb_test.smb.dir"})
9. OC\AppFramework\Routing\RouteActionHandler->__invoke({ _route: "smb_test.smb.dir"})
10. /var/www/nextcloud/lib/private/Route/Router.php - line 297:call_user_func(OC\AppFramew ... {}, { _route: "smb_test.smb.dir"})
11. /var/www/nextcloud/lib/base.php - line 975:OC\Route\Router->match("/apps/smb_test/dir")
12. /var/www/nextcloud/index.php - line 42:OC::handleRequest()
I am at a loss for any further ideas and would be most grateful for any help in fixing this issue which is really causing me some grief.