Hi guys,
I have set up a new instance of NC running 20.0.1, I have set pretty much everything up identical to my old build but am having an issue when trying to add a CIFS/SMB external storage.
I have mirrored the setting from my old build which has no issues connecting but for some reason cannot get the external storage to mount, I can mount in the FS from a command line so it is likely something silly I am doing. SMBclient is installed and everything else is looking great, jsut this last hurdle to overcome
NC Version - 20.0.1
Ubuntu Server - 20.04.1
PHP Version - 7.4.3
Extract from Logging: (Sorry if its spammy)
Warning no app in context Icewind\SMB\Exception\Exception: Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for /
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Exception/Exception.php - line 35:Icewind\SMB\Exception\Exception::unknown()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Parser.php - line 88:Icewind\SMB\Exception\Exception::fromMap()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 441:Icewind\SMB\Wrapped\Parser->checkForError()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 189:Icewind\SMB\Wrapped\Share->parseOutput()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 188:Icewind\SMB\Wrapped\Share->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 113:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\GlobalStoragesController->create()
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest() 2020-11-17T12:37:48+0000
Warning no app in context External storage not available: Unknown error (NT_STATUS_OBJECT_NAME_INVALID) for / 2020-11-17T12:37:48+0000
Warning no app in context OCP\Files\StorageAuthException: Storage unauthorized. Connection not valid -
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 192:OCA\Files_External\Lib\Storage\SMB->throwUnavailable()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 180:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\GlobalStoragesController->update("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest()
Caused by Icewind\SMB\Exception\ConnectionException: Connection not valid
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 420:Icewind\SMB\Wrapped\Connection->read()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 181:Icewind\SMB\Wrapped\Share->execute()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 188:Icewind\SMB\Wrapped\Share->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 180:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\GlobalStoragesController->update("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest() 2020-11-17T12:21:24+0000
Warning no app in context External storage not available: Storage unauthorized. Connection not valid 2020-11-17T12:21:24+0000
Error no app in context Icewind\SMB\Exception\ConnectionException: Connection not valid -
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 420:Icewind\SMB\Wrapped\Connection->read()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 181:Icewind\SMB\Wrapped\Share->execute()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 188:Icewind\SMB\Wrapped\Share->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 180:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\GlobalStoragesController->update("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest() 2020-11-17T12:21:24+0000
Error PHP Error: fwrite(): write of 12 bytes failed with errno=32 Broken pipe at /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/RawConnection.php#103 -
<>OC\Log\ErrorHandler::onError()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/RawConnection.php - line 103:fwrite()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Connection.php - line 34:Icewind\SMB\Wrapped\RawConnection->write()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 419:Icewind\SMB\Wrapped\Connection->write()
-
/var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 181:Icewind\SMB\Wrapped\Share->execute()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 188:Icewind\SMB\Wrapped\Share->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/GlobalStoragesController.php - line 180:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\GlobalStoragesController->update("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest() 2020-11-17T12:21:24+0000
Error PHP Error: fwrite(): write of 1 bytes failed with errno=32 Broken pipe at /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/RawConnection.php#103 2020-11-17T12:21:24+0000
Warning no app in context OCP\Files\StorageAuthException: Storage unauthorized. Connection not valid -
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 192:OCA\Files_External\Lib\Storage\SMB->throwUnavailable()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
-
/var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
-
/var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
-
/var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
-
/var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 330:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\StoragesController->show()
-
/var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
-
/var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
-
/var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
-
/var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
-
/var/www/nextcloud/index.php - line 37:OC::handleRequest()
Caused by Icewind\SMB\Exception\ConnectionException: Connection not valid
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 420:Icewind\SMB\Wrapped\Connection->read()
- /var/www/nextcloud/apps/files_external/3rdparty/icewind/smb/src/Wrapped/Share.php - line 181:Icewind\SMB\Wrapped\Share->execute()
- /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 188:Icewind\SMB\Wrapped\Share->stat()
- /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 336:OCA\Files_External\Lib\Storage\SMB->getFileInfo()
- /var/www/nextcloud/lib/private/Files/Storage/Common.php - line 458:OCA\Files_External\Lib\Storage\SMB->stat()
- /var/www/nextcloud/apps/files_external/lib/Lib/Storage/SMB.php - line 703:OC\Files\Storage\Common->test()
- /var/www/nextcloud/apps/files_external/lib/MountConfig.php - line 264:OCA\Files_External\Lib\Storage\SMB->test()
- /var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 258:OCA\Files_External\MountConfig::getBackendStatus("*** sensiti … *")
- /var/www/nextcloud/apps/files_external/lib/Controller/StoragesController.php - line 330:OCA\Files_External\Controller\StoragesController->updateStorageStatus("*** sensiti … *")
- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 169:OCA\Files_External\Controller\StoragesController->show()
- /var/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 100:OC\AppFramework\Http\Dispatcher->executeController()
- /var/www/nextcloud/lib/private/AppFramework/App.php - line 152:OC\AppFramework\Http\Dispatcher->dispatch()
- /var/www/nextcloud/lib/private/Route/Router.php - line 308:OC\AppFramework\App::main()
- /var/www/nextcloud/lib/base.php - line 1009:OC\Route\Router->match()
- /var/www/nextcloud/index.php - line 37:OC::handleRequest()
Any advice would be much appreciated
Cheers
Rob