Unable to use SMB External Storage

Hi, there

I’m having troubles when I am trying to access a SMB external storage folder on my onwcloud server. I was able to add it, as you can see bellow:

But, when I try to access it, owncloud keeps showing me the following error: Storage for “/” is temporarily not available

It seems that smbclient is working just fine. I was able to query my external storage shares from command line

Ex: smbclient -L <file_server_name> -U <full_domain_name>/<user_name>

Does anyone ever faced these kind of problems?

Operating system : Linux 4.18.0-372.9.1.el8.x86_64 Red Hat Enterprise Linux 8.6 (Ootpa)

**Web server:Apache 2.4.37-47

**Database: Maria DB 3:10.3.32-2

**PHP version:7.4

**ownCloud version: 10.11 fresh install

**Where did you install ownCloud from: https://download.owncloud.com/server/stable/owncloud-complete-latest.zip

Signing status (ownCloud 9.0 and above):
No errors have been found.

The content of config/config.php:
{
“system”: {
“instanceid”: “oc3jkl3tutyn”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“localhost”,
“s6022autfs00.petroaut.biz”,
“10.236.160.34”
],
“datadirectory”: “/var/www/html/owncloud/data”,
“overwrite.cli.url”: “https://s6022autfs00.petroaut.biz/owncloud”,
“dbtype”: “mysql”,
“version”: “10.11.0.6”,
“dbname”: “owncloud”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“allow_user_to_change_mail_address”: “”,
“logtimezone”: “UTC”,
“apps_paths”: [
{
“path”: “/var/www/html/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/html/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“loglevel”: 0,
“smb.logging.enable”: true,
“memcache.local”: “\OC\Memcache\APCu”,
“ldapIgnoreNamingRules”: false
}
}

List of activated apps:
Enabled:

  • activity:
    • Version: 2.7.1
    • Path: /var/www/html/owncloud/apps/activity
  • comments:
    • Version: 0.3.0
    • Path: /var/www/html/owncloud/apps/comments
  • configreport:
    • Version: 0.2.1
    • Path: /var/www/html/owncloud/apps/configreport
  • dav:
    • Version: 0.7.0
    • Path: /var/www/html/owncloud/apps/dav
  • federatedfilesharing:
    • Version: 0.5.0
    • Path: /var/www/html/owncloud/apps/federatedfilesharing
  • federation:
    • Version: 0.1.0
    • Path: /var/www/html/owncloud/apps/federation
  • files:
    • Version: 1.5.2
    • Path: /var/www/html/owncloud/apps/files
  • files_external:
    • Version: 0.9.0
    • Path: /var/www/html/owncloud/apps/files_external
  • files_mediaviewer:
    • Version: 1.0.5
    • Path: /var/www/html/owncloud/apps/files_mediaviewer
  • files_pdfviewer:
    • Version: 1.0.1
    • Path: /var/www/html/owncloud/apps/files_pdfviewer
  • files_sharing:
    • Version: 0.14.0
    • Path: /var/www/html/owncloud/apps/files_sharing
  • files_texteditor:
    • Version: 2.4.1
    • Path: /var/www/html/owncloud/apps/files_texteditor
  • files_trashbin:
    • Version: 0.9.1
    • Path: /var/www/html/owncloud/apps/files_trashbin
  • files_versions:
    • Version: 1.3.0
    • Path: /var/www/html/owncloud/apps/files_versions
  • firstrunwizard:
    • Version: 1.2.0
    • Path: /var/www/html/owncloud/apps/firstrunwizard
  • market:
    • Version: 0.7.0
    • Path: /var/www/html/owncloud/apps/market
  • notifications:
    • Version: 0.5.4
    • Path: /var/www/html/owncloud/apps/notifications
  • provisioning_api:
    • Version: 0.5.0
    • Path: /var/www/html/owncloud/apps/provisioning_api
  • systemtags:
    • Version: 0.3.0
    • Path: /var/www/html/owncloud/apps/systemtags
  • templateeditor:
    • Version: 0.4.0
    • Path: /var/www/html/owncloud/apps/templateeditor
  • updatenotification:
    • Version: 0.2.1
    • Path: /var/www/html/owncloud/apps/updatenotification
  • user_ldap:
    • Version: 0.16.0
    • Path: /var/www/html/owncloud/apps/user_ldap

Are you using external storage, if yes which one: smb

Are you using an external user-backend, if yes which one: ActiveDirectory

Client configuration

**Browser :Firefox 76 (64bits)

**Operating system:Windows 2019 Server

Logs

ownCloud log (data/owncloud.log)

"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usXBqovyWEPP@vxp-NZgAAAE8","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usXBqovyWEPP@vxp-NZgAAAE8","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJAAAAIE","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJAAAAIE","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJAAAAIE","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJAAAAIE","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJAAAAIE","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: test()"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: stat()"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: getFileInfo()"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: buildPath()"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: buildPath, return '\/AreaTransf'"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"stat fetching '\/AreaTransf'"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":0,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: getFileInfo, throw OCP\\Files\\StorageNotAvailableException - code: 0 message:  trace: #0 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(364): OCA\\Files_External\\Lib\\Storage\\SMB->getFileInfo()\n#1 \/var\/www\/html\/owncloud\/lib\/private\/Files\/Storage\/Common.php(452): OCA\\Files_External\\Lib\\Storage\\SMB->stat()\n#2 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(741): OC\\Files\\Storage\\Common->test()\n#3 \/var\/www\/html\/owncloud\/lib\/private\/Files\/External\/LegacyUtil.php(207): OCA\\Files_External\\Lib\\Storage\\SMB->test()\n#4 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/StoragesController.php(254): OC\\Files\\External\\LegacyUtil::getBackendStatus()\n#5 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/UserGlobalStoragesController.php(124): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus()\n#6 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(170): OCA\\Files_External\\Controller\\UserGlobalStoragesController->show()\n#7 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController()\n#8 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch()\n#9 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main()\n#10 \/var\/www\/html\/owncloud\/lib\/private\/Route\/Router.php(344): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke()\n#11 \/var\/www\/html\/owncloud\/lib\/base.php(914): OC\\Route\\Router->match()\n#12 \/var\/www\/html\/owncloud\/index.php(54): OC::handleRequest()\n#13 {main}"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":3,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"Exception: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(364): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(452): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->stat()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(741): OC\\\\Files\\\\Storage\\\\Common->test()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->test()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/UserGlobalStoragesController.php(124): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController->show()\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(914): OC\\\\Route\\\\Router->match()\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#13 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php\",\"Line\":193}"}
{"reqId":"Y2usXK5tFL3WP8Du6dmiJQAAAIY","level":3,"time":"2022-11-09T13:34:20+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"files_external","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"Caused by: {\"Exception\":\"Icewind\\\\SMB\\\\Exception\\\\ConnectionRefusedException\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Share.php(114): Icewind\\\\SMB\\\\Wrapped\\\\Connection->clearTillPrompt()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Share.php(128): Icewind\\\\SMB\\\\Wrapped\\\\Share->getConnection()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Share.php(457): Icewind\\\\SMB\\\\Wrapped\\\\Share->connect()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Share.php(176): Icewind\\\\SMB\\\\Wrapped\\\\Share->execute()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Share.php(197): Icewind\\\\SMB\\\\Wrapped\\\\Share->dir()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(151): Icewind\\\\SMB\\\\Wrapped\\\\Share->stat()\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(364): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->getFileInfo()\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Common.php(452): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->stat()\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Lib\\\/Storage\\\/SMB.php(741): OC\\\\Files\\\\Storage\\\\Common->test()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/External\\\/LegacyUtil.php(207): OCA\\\\Files_External\\\\Lib\\\\Storage\\\\SMB->test()\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/StoragesController.php(254): OC\\\\Files\\\\External\\\\LegacyUtil::getBackendStatus()\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/lib\\\/Controller\\\/UserGlobalStoragesController.php(124): OCA\\\\Files_External\\\\Controller\\\\StoragesController->updateStorageStatus()\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(170): OCA\\\\Files_External\\\\Controller\\\\UserGlobalStoragesController->show()\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Http\\\/Dispatcher.php(89): OC\\\\AppFramework\\\\Http\\\\Dispatcher->executeController()\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/App.php(100): OC\\\\AppFramework\\\\Http\\\\Dispatcher->dispatch()\\n#15 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/AppFramework\\\/Routing\\\/RouteActionHandler.php(47): OC\\\\AppFramework\\\\App::main()\\n#16 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Route\\\/Router.php(344): OC\\\\AppFramework\\\\Routing\\\\RouteActionHandler->__invoke()\\n#17 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/base.php(914): OC\\\\Route\\\\Router->match()\\n#18 \\\/var\\\/www\\\/html\\\/owncloud\\\/index.php(54): OC::handleRequest()\\n#19 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/files_external\\\/3rdparty\\\/icewind\\\/smb\\\/src\\\/Wrapped\\\/Connection.php\",\"Line\":57}"}
{"reqId":"Y2usXq5tFL3WP8Du6dmiJgAAAJc","level":0,"time":"2022-11-09T13:34:22+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXq5tFL3WP8Du6dmiJgAAAJc","level":0,"time":"2022-11-09T13:34:22+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usXq5tFL3WP8Du6dmiJgAAAJc","level":0,"time":"2022-11-09T13:34:22+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usXq5tFL3WP8Du6dmiJgAAAJc","level":0,"time":"2022-11-09T13:34:22+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usXq5tFL3WP8Du6dmiJgAAAJc","level":0,"time":"2022-11-09T13:34:22+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"OC\\User\\Session::validateToken","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"token 0011a323b1e76a54f2125be419b51832c3f7b91866b524c380c8ad6040be98a3e4a31f6c1784c74bf902375599ae51b0b8a7ccf70a738580d82cbf098bdbc574 with token id 13 found, validating"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"using Icewind\\SMB\\Wrapped\\Share for the connection"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"smb","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"no app in context","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"Lock files\/d3520b2c5e90e3d7c6b01450fe067888\/1 already exists"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"no app in context","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"Lock files\/76f6275cc15ee0aa8990295bd974b9aa\/-1 already exists"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"webdav","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"Exception: HTTP\/1.1 503 Storage is temporarily not available: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\ServiceUnavailable\",\"Message\":\"Storage is temporarily not available\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Tree.php(70): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/FilesPlugin.php(183): OCA\\\\DAV\\\\Tree->getNodeForPath()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\FilesPlugin->checkPropFind()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(349): Sabre\\\\DAV\\\\Server->start()\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php\",\"Line\":181}"}
{"reqId":"Y2usYRqovyWEPP@vxp-NaQAAAEA","level":0,"time":"2022-11-09T13:34:25+00:00","remoteAddr":"10.30.177.94","user":"ocadmin","app":"webdav","method":"PROPFIND","url":"\/remote.php\/dav\/files\/ocadmin\/Area%20Transferencia","message":"Caused by: {\"Exception\":\"OCP\\\\Files\\\\StorageNotAvailableException\",\"Message\":\"\",\"Code\":1,\"Trace\":\"#0 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Availability.php(457): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->checkAvailability()\\n#1 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Encryption.php(177): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Availability->getMetaData()\\n#2 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Checksum.php(207): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Encryption->getMetaData()\\n#3 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Wrapper.php(587): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Checksum->getMetaData()\\n#4 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(115): OC\\\\Files\\\\Storage\\\\Wrapper\\\\Wrapper->getMetaData()\\n#5 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(152): OC\\\\Files\\\\Cache\\\\Scanner->getData()\\n#6 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Cache\\\/Scanner.php(329): OC\\\\Files\\\\Cache\\\\Scanner->scanFile()\\n#7 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1410): OC\\\\Files\\\\Cache\\\\Scanner->scan()\\n#8 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/View.php(1453): OC\\\\Files\\\\View->getCacheEntry()\\n#9 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/ObjectTree.php(179): OC\\\\Files\\\\View->getFileInfo()\\n#10 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Tree.php(70): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\ObjectTree->getNodeForPath()\\n#11 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/FilesPlugin.php(183): OCA\\\\DAV\\\\Tree->getNodeForPath()\\n#12 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\FilesPlugin->checkPropFind()\\n#13 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit()\\n#14 \\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod()\\n#15 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(349): Sabre\\\\DAV\\\\Server->start()\\n#16 \\\/var\\\/www\\\/html\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#17 \\\/var\\\/www\\\/html\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/html\\\/o...')\\n#18 {main}\",\"File\":\"\\\/var\\\/www\\\/html\\\/owncloud\\\/lib\\\/private\\\/Files\\\/Storage\\\/Wrapper\\\/Availability.php\",\"Line\":75}"}

Install the libsmbclient-php library (and check that the server is using it) and retry.

Hi @jvillafanez,

I was not using it, thanks fo the tip. I mannaged to install the libsmbclient-php-1.0.6, and now I am getting a red square that indicates that I was not abble to mount my smb share. The owncloud.log points to a “throw Icewind\SMB\Exception\ForbiddenException - code: 13 message: Invalid request for /AreaTransf (ForbiddenException)”, as you can see bellow

{"reqId":"Y24vLAhH7WrnjVSeA4uXBgAAAIY","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBgAAAIY","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"using Icewind\\SMB\\Native\\NativeShare for the connection"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBgAAAIY","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=%2F","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBwAAAIc","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 404bb07c39a50791a1713bd3d9f02eab9122047a02990d5c6a7a7fdbedf00512880638f9adcea2b3d114d8b91e8d84eedd1077a0dcff15f1bae8be9c7ee3230e with token id 25 found, validating"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBwAAAIc","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"token 404bb07c39a50791a1713bd3d9f02eab9122047a02990d5c6a7a7fdbedf00512880638f9adcea2b3d114d8b91e8d84eedd1077a0dcff15f1bae8be9c7ee3230e with token id 25 found, validating"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBwAAAIc","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBwAAAIc","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"using Icewind\\SMB\\Native\\NativeShare for the connection"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXBwAAAIc","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/ocs\/v1.php\/apps\/files_external\/api\/v1\/mounts?format=json","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 404bb07c39a50791a1713bd3d9f02eab9122047a02990d5c6a7a7fdbedf00512880638f9adcea2b3d114d8b91e8d84eedd1077a0dcff15f1bae8be9c7ee3230e with token id 25 found, validating"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 404bb07c39a50791a1713bd3d9f02eab9122047a02990d5c6a7a7fdbedf00512880638f9adcea2b3d114d8b91e8d84eedd1077a0dcff15f1bae8be9c7ee3230e with token id 25 found, validating"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"OC\\User\\Session::validateToken","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"token 404bb07c39a50791a1713bd3d9f02eab9122047a02990d5c6a7a7fdbedf00512880638f9adcea2b3d114d8b91e8d84eedd1077a0dcff15f1bae8be9c7ee3230e with token id 25 found, validating"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"using Icewind\\SMB\\Native\\NativeShare for the connection"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: __construct({\"host\":\"ssprcpvfs10114.petroaut.biz\",\"share\":\"PRD_AREATRANSF_001$\",\"root\":\"AreaTransf\",\"domain\":\"petroaut\",\"user\":\"petroaut\\\\sargnoc\",\"password\":\"***removed***\"})"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"using Icewind\\SMB\\Native\\NativeShare for the connection"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: __construct, getId:smb::petroaut\\sargnoc@ssprcpvfs10114.petroaut.biz\/\/PRD_AREATRANSF_001$\/\/AreaTransf\/"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: test()"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: stat()"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: getFileInfo()"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: buildPath()"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: buildPath, return '\/AreaTransf'"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"stat fetching '\/AreaTransf'"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"enter: remoteIsShare"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: remoteIsShare, return false"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"leave: getFileInfo, throw Icewind\\SMB\\Exception\\ForbiddenException - code: 13 message: Invalid request for \/AreaTransf (ForbiddenException) trace: #0 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(75): Icewind\\SMB\\Exception\\Exception::fromMap()\n#1 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(92): Icewind\\SMB\\Native\\NativeState->handleError()\n#2 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(351): Icewind\\SMB\\Native\\NativeState->testResult()\n#3 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php(305): Icewind\\SMB\\Native\\NativeState->getxattr()\n#4 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeFileInfo.php(43): Icewind\\SMB\\Native\\NativeShare->getAttribute()\n#5 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeFileInfo.php(69): Icewind\\SMB\\Native\\NativeFileInfo->stat()\n#6 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php(114): Icewind\\SMB\\Native\\NativeFileInfo->getSize()\n#7 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(151): Icewind\\SMB\\Native\\NativeShare->stat()\n#8 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(364): OCA\\Files_External\\Lib\\Storage\\SMB->getFileInfo()\n#9 \/var\/www\/html\/owncloud\/lib\/private\/Files\/Storage\/Common.php(452): OCA\\Files_External\\Lib\\Storage\\SMB->stat()\n#10 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(741): OC\\Files\\Storage\\Common->test()\n#11 \/var\/www\/html\/owncloud\/lib\/private\/Files\/External\/LegacyUtil.php(207): OCA\\Files_External\\Lib\\Storage\\SMB->test()\n#12 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/StoragesController.php(254): OC\\Files\\External\\LegacyUtil::getBackendStatus()\n#13 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/UserGlobalStoragesController.php(124): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus()\n#14 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(170): OCA\\Files_External\\Controller\\UserGlobalStoragesController->show()\n#15 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController()\n#16 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch()\n#17 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main()\n#18 \/var\/www\/html\/owncloud\/lib\/private\/Route\/Router.php(344): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke()\n#19 \/var\/www\/html\/owncloud\/lib\/base.php(914): OC\\Route\\Router->match()\n#20 \/var\/www\/html\/owncloud\/index.php(54): OC::handleRequest()\n#21 {main}"}
{"reqId":"Y24vLAhH7WrnjVSeA4uXCAAAAIk","level":0,"time":"2022-11-11T11:17:00+00:00","remoteAddr":"10.30.177.94","user":"aaczn1","app":"smb","method":"GET","url":"\/index.php\/apps\/files_external\/userglobalstorages\/1?testOnly=false","message":"stat swallowing Icewind\\SMB\\Exception\\ForbiddenException - code: 13 message: Invalid request for \/AreaTransf (ForbiddenException) trace: #0 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(75): Icewind\\SMB\\Exception\\Exception::fromMap()\n#1 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(92): Icewind\\SMB\\Native\\NativeState->handleError()\n#2 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeState.php(351): Icewind\\SMB\\Native\\NativeState->testResult()\n#3 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php(305): Icewind\\SMB\\Native\\NativeState->getxattr()\n#4 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeFileInfo.php(43): Icewind\\SMB\\Native\\NativeShare->getAttribute()\n#5 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeFileInfo.php(69): Icewind\\SMB\\Native\\NativeFileInfo->stat()\n#6 \/var\/www\/html\/owncloud\/apps\/files_external\/3rdparty\/icewind\/smb\/src\/Native\/NativeShare.php(114): Icewind\\SMB\\Native\\NativeFileInfo->getSize()\n#7 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(151): Icewind\\SMB\\Native\\NativeShare->stat()\n#8 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(364): OCA\\Files_External\\Lib\\Storage\\SMB->getFileInfo()\n#9 \/var\/www\/html\/owncloud\/lib\/private\/Files\/Storage\/Common.php(452): OCA\\Files_External\\Lib\\Storage\\SMB->stat()\n#10 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Lib\/Storage\/SMB.php(741): OC\\Files\\Storage\\Common->test()\n#11 \/var\/www\/html\/owncloud\/lib\/private\/Files\/External\/LegacyUtil.php(207): OCA\\Files_External\\Lib\\Storage\\SMB->test()\n#12 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/StoragesController.php(254): OC\\Files\\External\\LegacyUtil::getBackendStatus()\n#13 \/var\/www\/html\/owncloud\/apps\/files_external\/lib\/Controller\/UserGlobalStoragesController.php(124): OCA\\Files_External\\Controller\\StoragesController->updateStorageStatus()\n#14 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(170): OCA\\Files_External\\Controller\\UserGlobalStoragesController->show()\n#15 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Http\/Dispatcher.php(89): OC\\AppFramework\\Http\\Dispatcher->executeController()\n#16 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/App.php(100): OC\\AppFramework\\Http\\Dispatcher->dispatch()\n#17 \/var\/www\/html\/owncloud\/lib\/private\/AppFramework\/Routing\/RouteActionHandler.php(47): OC\\AppFramework\\App::main()\n#18 \/var\/www\/html\/owncloud\/lib\/private\/Route\/Router.php(344): OC\\AppFramework\\Routing\\RouteActionHandler->__invoke()\n#19 \/var\/www\/html\/owncloud\/lib\/base.php(914): OC\\Route\\Router->match()\n#20 \/var\/www\/html\/owncloud\/index.php(54): OC::handleRequest()\n#21 {main}"}

Here some info about libsmbclient-php-1.0.6 install

=====================================================================
PHP         : /usr/bin/php
PHP_SAPI    : cli
PHP_VERSION : 7.4.19
ZEND_VERSION: 3.4.0
PHP_OS      : Linux - Linux s6022autfs00.petroaut.biz 4.18.0-372.26.1.el8_6.x86_64 #1 SMP Sat Aug 27 02:44:20 EDT 2022 x86_64
INI actual  : /usr/lib/libsmbclient-php-1.0.6/tmp-php.ini
More .INIs  :
CWD         : /usr/lib/libsmbclient-php-1.0.6
Extra dirs  :
VALGRIND    : Not used
=====================================================================
TIME START 2022-11-10 18:22:42
=====================================================================

Any ideas ?

Thanks

code 13 is usually caused by wrong credentials, so make sure you’ve entered the right ones and that the account can access to the share without problems (you can double-check with another program)

If you password has really weird chars, maybe one of them could be causing issues. You can try with another easier password to ensure it works.
Another thing you can try is to check with wireshark or any other similar tool, that the credentials sent to the server are the right ones.

I doubled checked my credentials … They are fine

To ensure there are no credentials issues, I mounted the same SMB share through cmd line

[root@s6022autfs00 data]# mount -t cifs -o username=sargnoc,domain=petroaut //ssprcpvfs10114.petroaut.biz/PRD_AREATRANSF_001$ /mnt/SMB

[root@s6022autfs00 data]# df -h

Sist. Arq. Tam. Usado Disp. Uso% Montado em

devtmpfs 3,8G 0 3,8G 0% /dev

tmpfs 3,8G 0 3,8G 0% /dev/shm

tmpfs 3,8G 241M 3,6G 7% /run

tmpfs 3,8G 0 3,8G 0% /sys/fs/cgroup

/dev/mapper/rhel-root 35G 11G 24G 32% /

/dev/sdb1 79G 57M 75G 1% /DB

/dev/sda2 1014M 275M 740M 28% /boot

/dev/sda1 599M 5,8M 594M 1% /boot/efi

tmpfs 768M 0 768M 0% /run/user/0

//ssprcpvfs10114.petroaut.biz/PRD_AREATRANSF_001$ 20G 1,0K 20G 1% /mnt/SMB

I will try another credential with an easier Psswrd and also try to check it with wireshark

Thanks !

Hi, everyone. Well, it turns out that SELinux was preventing OwnCloud to connect with external storage. To solve the problem, I disabled it.

1 Like

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.