SMB on Windows 11 & UniFi NAS throwing "Directory not found" errors

Steps to reproduce

  1. Create new External Storage:

    1. Folder name: myfolder
    2. External Storage: SMB shared
    3. Authentication: default
    4. Host: ip address of host
    5. Share: the name of the share in my case I enter: S (as in smb://ip/S)
    6. Remote subfolder: Blank, tried an existing folder as well (from a blank /)
    7. Domain: empty, also tried the name of the windows computer: mike
    8. Service Account/Pass: A local admin account
  2. Back in user side of gui, choose External storage and click either of my share’s

Expected behaviour

Show me the contents of the SMB folder

Actual behaviour

Error in little yellow box pops up “Directory “/Foldername” not found”

Server configuration

Operating system: Ubuntu (Docker)

Web server: owncloud/server:latest

Database: mariadb:latest

PHP version:

ownCloud version: 10.15.3

Updated from an older ownCloud or fresh install: fresh install

Where did you install ownCloud from: docker

Signing status (ownCloud 9.0 and above):

No errors have been found.

The content of config/config.php:

Would upload but it won't let me.

List of activated apps:

None beyond the defaults.

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

Are you using encryption: no idea

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

Client configuration

Browser: Edge/Chrome

Operating system: MacOS 26

Logs

Web server error log

This?

{"reqId":"MMFKRwWOlVIg2UN180qF","level":2,"time":"2025-09-16T01:54:06+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"GET","url":"\/","message":"Trusted domain error. \"172.25.0.1\" tried to access using \"domain.local\" as host."}
{"reqId":"xB6aXzoMlEKD86VntTQF","level":2,"time":"2025-09-16T01:54:07+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"GET","url":"\/core\/js\/oc.js?v=46b3dfefedc4f1c0bb401a7c6aaa1b5f","message":"Trusted domain error. \"172.25.0.1\" tried to access using \"domain.local\" as host."}
{"reqId":"uBAFc1kEg3eBQfcXCdPD","level":2,"time":"2025-09-16T01:59:16+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login","message":"Login failed: 'admin' (Remote IP: '172.25.0.1')"}
{"reqId":"Gxj0cLEvU5k9lwuKwWZ7","level":2,"time":"2025-09-16T01:59:33+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login?user=admin","message":"Login failed: 'admin' (Remote IP: '172.25.0.1')"}
{"reqId":"wNziICU0rCpY4UjYau5F","level":3,"time":"2025-09-16T03:09:44+00:00","remoteAddr":"172.25.0.1","user":"admin","app":"settings","method":"POST","url":"\/settings\/users\/users","message":"Can't send new user mail to username@gmail.com: Expected response code 220 but got an empty response"}
{"reqId":"5MT3FZrb8saVgEsc0NbX","level":2,"time":"2025-09-16T03:11:44+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login","message":"Login failed: 'username@gmail.com' (Remote IP: '172.25.0.1')"}
{"reqId":"iv97KEFyHgJz8EWX77Ni","level":2,"time":"2025-09-16T03:15:59+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login","message":"Login failed: 'username@gmail.com' (Remote IP: '172.25.0.1')"}
{"reqId":"O3ZFQpJk2W4U06SwdmId","level":2,"time":"2025-09-16T03:16:22+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login","message":"Login failed: 'username@gmail.com' (Remote IP: '172.25.0.1')"}
{"reqId":"ga1QgOEhjmQXReYHlpas","level":3,"time":"2025-09-16T03:17:37+00:00","remoteAddr":"172.25.0.1","user":"username","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Undefined index: changeLogUrl at \/var\/www\/owncloud\/apps\/updatenotification\/templates\/admin.php#16"}
{"reqId":"jQQBKeOjxtdXWklutWsN","level":2,"time":"2025-09-18T15:29:46+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login","message":"Login failed: 'username@gmail.com' (Remote IP: '172.25.0.1')"}
{"reqId":"qGLTjr5FnDBywzJtUX94","level":3,"time":"2025-09-18T15:30:48+00:00","remoteAddr":"172.25.0.1","user":"username","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Undefined index: changeLogUrl at \/var\/www\/owncloud\/apps\/updatenotification\/templates\/admin.php#16"}
{"reqId":"HCVffFMuLFli8GBfhhKq","level":3,"time":"2025-09-18T15:56:02+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Exception: {\"Exception\":\"Doctrine\\\\DBAL\\\\Exception\\\\TableNotFoundException\",\"Message\":\"An exception occurred while executing 'SELECT * FROM \\\"oc_appconfig\\\"':\\n\\nSQLSTATE[HY000]: General error: 1 no such table: oc_appconfig\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(182): Doctrine\\\\DBAL\\\\Driver\\\\AbstractSQLiteDriver->convertException()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/DBALException.php(159): Doctrine\\\\DBAL\\\\DBALException::wrapException()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(2226): Doctrine\\\\DBAL\\\\DBALException::driverExceptionDuringQuery()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(1313): Doctrine\\\\DBAL\\\\Connection->handleExceptionDuringQuery()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(191): Doctrine\\\\DBAL\\\\Connection->executeQuery()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(212): OC\\\\DB\\\\Connection->executeQuery()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(141): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(312): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(80): OC\\\\AppConfig->loadConfigValues()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(289): OC\\\\AppConfig->getApps()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(138): OC\\\\AppConfig->getValues()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(159): OC\\\\App\\\\AppManager->getInstalledAppsValues()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(352): OC\\\\App\\\\AppManager->getInstalledApps()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(108): OC_App::getEnabledApps()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(596): OC_App::loadApps()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(1076): OC::init()\\n#16 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(27): require_once('\\\/var\\\/www\\\/ownclo...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/console.php(52): require_once('\\\/var\\\/www\\\/ownclo...')\\n#18 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#19 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/AbstractSQLiteDriver.php\",\"Line\":59}"}
{"reqId":"HCVffFMuLFli8GBfhhKq","level":3,"time":"2025-09-18T15:56:02+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Caused by: {\"Exception\":\"Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception\",\"Message\":\"SQLSTATE[HY000]: General error: 1 no such table: oc_appconfig\",\"Code\":\"HY000\",\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDOConnection.php(143): Doctrine\\\\DBAL\\\\Driver\\\\PDO\\\\Exception::new()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDOQueryImplementation.php(38): Doctrine\\\\DBAL\\\\Driver\\\\PDOConnection->doQuery()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(1309): Doctrine\\\\DBAL\\\\Driver\\\\PDOConnection->query()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(191): Doctrine\\\\DBAL\\\\Connection->executeQuery()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(212): OC\\\\DB\\\\Connection->executeQuery()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(141): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(312): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(80): OC\\\\AppConfig->loadConfigValues()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(289): OC\\\\AppConfig->getApps()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(138): OC\\\\AppConfig->getValues()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(159): OC\\\\App\\\\AppManager->getInstalledAppsValues()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(352): OC\\\\App\\\\AppManager->getInstalledApps()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(108): OC_App::getEnabledApps()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(596): OC_App::loadApps()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(1076): OC::init()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(27): require_once('\\\/var\\\/www\\\/ownclo...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/console.php(52): require_once('\\\/var\\\/www\\\/ownclo...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#18 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDO\\\/Exception.php\",\"Line\":18}"}
{"reqId":"HCVffFMuLFli8GBfhhKq","level":3,"time":"2025-09-18T15:56:02+00:00","remoteAddr":"","user":"--","app":"index","method":"--","url":"--","message":"Caused by: {\"Exception\":\"PDOException\",\"Message\":\"SQLSTATE[HY000]: General error: 1 no such table: oc_appconfig\",\"Code\":\"HY000\",\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDOConnection.php(141): PDO->query()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDOQueryImplementation.php(38): Doctrine\\\\DBAL\\\\Driver\\\\PDOConnection->doQuery()\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Connection.php(1309): Doctrine\\\\DBAL\\\\Driver\\\\PDOConnection->query()\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/Connection.php(191): Doctrine\\\\DBAL\\\\Connection->executeQuery()\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Query\\\/QueryBuilder.php(212): OC\\\\DB\\\\Connection->executeQuery()\\n#5 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/DB\\\/QueryBuilder\\\/QueryBuilder.php(141): Doctrine\\\\DBAL\\\\Query\\\\QueryBuilder->execute()\\n#6 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(312): OC\\\\DB\\\\QueryBuilder\\\\QueryBuilder->execute()\\n#7 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(80): OC\\\\AppConfig->loadConfigValues()\\n#8 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/AppConfig.php(289): OC\\\\AppConfig->getApps()\\n#9 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(138): OC\\\\AppConfig->getValues()\\n#10 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/App\\\/AppManager.php(159): OC\\\\App\\\\AppManager->getInstalledAppsValues()\\n#11 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(352): OC\\\\App\\\\AppManager->getInstalledApps()\\n#12 \\\/var\\\/www\\\/owncloud\\\/lib\\\/private\\\/legacy\\\/app.php(108): OC_App::getEnabledApps()\\n#13 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(596): OC_App::loadApps()\\n#14 \\\/var\\\/www\\\/owncloud\\\/lib\\\/kernel.php(1076): OC::init()\\n#15 \\\/var\\\/www\\\/owncloud\\\/lib\\\/base.php(27): require_once('\\\/var\\\/www\\\/ownclo...')\\n#16 \\\/var\\\/www\\\/owncloud\\\/console.php(52): require_once('\\\/var\\\/www\\\/ownclo...')\\n#17 \\\/var\\\/www\\\/owncloud\\\/occ(11): require_once('\\\/var\\\/www\\\/ownclo...')\\n#18 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/doctrine\\\/dbal\\\/lib\\\/Doctrine\\\/DBAL\\\/Driver\\\/PDOConnection.php\",\"Line\":141}"}
{"reqId":"DnPHG0RKuCgnNMYxaxb3","level":3,"time":"2025-09-18T16:47:20+00:00","remoteAddr":"172.25.0.1","user":"username","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Undefined index: changeLogUrl at \/var\/www\/owncloud\/apps\/updatenotification\/templates\/admin.php#16"}
{"reqId":"ERkvV89YLhKkYqP7iUSX","level":3,"time":"2025-09-18T17:07:17+00:00","remoteAddr":"172.25.0.1","user":"username","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Undefined index: changeLogUrl at \/var\/www\/owncloud\/apps\/updatenotification\/templates\/admin.php#16"}
{"reqId":"iZwCrRSPPxQbbmqmyy9c","level":2,"time":"2025-09-18T22:06:38+00:00","remoteAddr":"172.25.0.1","user":"--","app":"core","method":"POST","url":"\/login?redirect_url=%252Fapps%252Ffiles%252F%253Fdir%253D%252F","message":"Login failed: 'username@gmail.com' (Remote IP: '172.25.0.1')"}
{"reqId":"QnmnFVsKkrUmnfVi6lZz","level":3,"time":"2025-09-18T22:15:51+00:00","remoteAddr":"172.25.0.1","user":"username","app":"PHP","method":"GET","url":"\/settings\/admin?sectionid=general","message":"Undefined index: changeLogUrl at \/var\/www\/owncloud\/apps\/updatenotification\/templates\/admin.php#16"}

ownCloud log (data/owncloud.log)

Above?

Browser log

Insert your browser log here, this could for example include:


:person_shrugging:

Installed a fresh copy into docker (using portainer) on Ubuntu 24.04.3. Tried to setup the smb shares, the gree light comes on next to each.

Browsing to either just throws the same error.

I’ve verified user/pass works on other network devices.

I’m at a loss after searching the web and even asking chatgpt.

Any help would be appreciated! Thanks!

It’s highly recommended to install GitHub - eduardok/libsmbclient-php: smbclient's extension for PHP in the container and ensure it’s available for ownCloud, in case it isn’t already.

In addition, you can install and check with the `smbclient` app (available in the ubuntu repositories) to ensure you have proper connectivity from the container.

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