[Bug]: SMB external storage fails to connect with Active Directory LDAP users after initial sync
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
After setting up an SMB external storage for users authenticated via LDAP (Active Directory integration), I tested all three authentication methods provided by Nextcloud:
- Log-in credentials, save in session
- Log-in credentials, save in database
- Login and password
In all three cases, the mount works correctly for some time. However, after several hours (or after reconnecting the desktop client), the SMB storage becomes unavailable and file access fails. This affects only users authenticated via LDAP.
The desktop client throws errors like:
Error transferring https://file.atim.tech/remote.php/dav/files/1B5B546B-B94A-4AFE-8121-B9C454BC72C4/ATIM network drive/... - server replied: Not Found
Meanwhile, the server is reachable and available. For example:
nc -vz server1.atim.tech 636
# Connection to server1.atim.tech (10.200.200.21) 636 port [tcp/ldaps] succeeded!
Log entries show:
Sabre\DAV\Exception\NotFound: File with name //ATIM network drive could not be located
OC\Files\StorageNotAvailableException: Storage with mount id 11 is not available
I attached a recent extract from nextcloud.log showing this behavior. LDAP integration works fine for login and initial mount, but storage access fails after some time.
Actual behavior
After a period of time, the SMB mount becomes unavailable. Desktop clients show “Not Found” errors, and server logs indicate missing storage and files.
Notes
- Tested on Nextcloud 31.0.4 (manual install)
- Ubuntu Server 24.04
- SMB host: Windows Server 2022
- LDAP port: tested with 389 and 636
- Web interface also fails to open affected SMB folders
- Cyrillic folder names involved (e.g. “ATIM Network Drive") or Disk ATIM
Attachment
See attached log file with Sabre\DAV\Exception\NotFound and StorageNotAvailableException messages.
Steps to reproduce
- Configure LDAP integration with Active Directory.
- Add an external SMB share using any of the 3 authentication options listed above.
- Log in as a domain user (LDAP-authenticated).
- Wait a few hours
- Attempt to open a file from the SMB share.
Expected behavior
The external SMB storage remains mounted and accessible as long as credentials are valid.
Nextcloud Server version
31
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.3
Web server
Apache (supported)
Database engine version
MySQL
Is this bug present after an update or on a fresh install?
Fresh Nextcloud Server install
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
root@file:~# sudo -u www-data php /var/www/nextcloud/occ config:list system
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"file.atim.tech"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "31.0.4.1",
"overwrite.cli.url": "https:\/\/file.atim.tech",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"enable_external_storage": true,
"smb.logging.enable": true,
"smbclient.disable_cache": true,
"maintenance_window_start": 2,
"maintenance": false,
"memcache.local": "\\OC\\Memcache\\APCu",
"filelocking.enabled": true,
"memcache.locking": "\\OC\\Memcache\\APCu",
"default_phone_region": "RU",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "465",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "ssl",
"loglevel": 0,
"backgroundjobs_mode": "cron",
"session_lifetime": 86400,
"session_keepalive": true,
"enable_legacy_smb_protocols": true
}
}
List of activated Apps
root@file:~# sudo -u www-data php /var/www/nextcloud/occ app:list
Enabled:
- activity: 4.0.0
- app_api: 5.0.2
- bruteforcesettings: 4.0.0
- circles: 31.0.0
- cloud_federation_api: 1.14.0
- comments: 1.21.0
- contactsinteraction: 1.12.0
- dashboard: 7.11.0
- dav: 1.33.0
- federatedfilesharing: 1.21.0
- federation: 1.21.0
- files: 2.3.1
- files_downloadlimit: 4.0.0
- files_external: 1.23.0
- files_pdfviewer: 4.0.0
- files_reminders: 1.4.0
- files_sharing: 1.23.1
- files_trashbin: 1.21.0
- files_versions: 1.24.0
- firstrunwizard: 4.0.0
- logreader: 4.0.0
- lookup_server_connector: 1.19.0
- nextcloud_announcements: 3.0.0
- notifications: 4.0.0
- oauth2: 1.19.1
- password_policy: 3.0.0
- photos: 4.0.0-dev.1
- privacy: 3.0.0
- profile: 1.0.0
- provisioning_api: 1.21.0
- recommendations: 4.0.0
- related_resources: 2.0.0
- serverinfo: 3.0.0
- settings: 1.14.0
- sharebymail: 1.21.0
- support: 3.0.0
- survey_client: 3.0.0
- systemtags: 1.21.1
- text: 5.0.0
- theming: 2.6.1
- twofactor_backupcodes: 1.20.0
- updatenotification: 1.21.0
- user_ldap: 1.22.0
- user_status: 1.11.0
- viewer: 4.0.0
- weather_status: 1.11.0
- webhook_listeners: 1.2.0
- workflowengine: 2.13.0
Disabled:
- admin_audit: 1.21.0
- encryption: 2.19.0
- suspicious_login: 9.0.1
- twofactor_nextcloud_notification: 5.0.0
- twofactor_totp: 13.0.0-dev.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"hIU07dh5f5kcz5NZ6Kwv","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"updatenotification\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":172,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":109,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":50,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":113,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":104,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":479,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":248,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":82,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/ocs/v1.php","line":37,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/ocs/v2.php","line":7,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\""}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Calling LDAP function ldap_explode_dn with parameters [\"1B5B546B-B94A-4AFE-8121-B9C454BC72C4\",0]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"user_ldap"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"survey_client\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"firstrunwizard\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"9LqKXo4h3ntEfoyPrTOB","level":0,"time":"2025-05-30T12:08:35+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"app_api","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"ExApp \"updatenotification\" not found.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"app_api"}}
{"reqId":"Mhf6Kd9X1KlAAUiHIS5D","level":0,"time":"2025-05-30T12:08:37+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/index.php/apps/files/preview-service-worker.js","message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":172,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":109,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":50,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":113,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":104,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":479,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":248,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":82,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":997,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\""}}
{"reqId":"Mhf6Kd9X1KlAAUiHIS5D","level":0,"time":"2025-05-30T12:08:37+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/index.php/apps/files/preview-service-worker.js","message":"Calling LDAP function ldap_explode_dn with parameters [\"1B5B546B-B94A-4AFE-8121-B9C454BC72C4\",0]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"user_ldap"}}
{"reqId":"KyuKsiLNfctxzxjEtNr3","level":0,"time":"2025-05-30T12:08:42+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/index.php/settings/admin/log/download","message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":172,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":109,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":50,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":113,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":104,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":479,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":248,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":82,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":997,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\""}}
{"reqId":"KyuKsiLNfctxzxjEtNr3","level":0,"time":"2025-05-30T12:08:42+00:00","remoteAddr":"147.45.152.197","user":"1B5B546B-B94A-4AFE-8121-B9C454BC72C4","app":"user_ldap","method":"GET","url":"/index.php/settings/admin/log/download","message":"Calling LDAP function ldap_explode_dn with parameters [\"1B5B546B-B94A-4AFE-8121-B9C454BC72C4\",0]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"user_ldap"}}
{"reqId":"9cwjlFNxsKuTE5ErYqWd","level":0,"time":"2025-05-30T12:08:43+00:00","remoteAddr":"87.249.193.34","user":"8745CA26-4E0D-4884-BB3E-13285C495AE8","app":"user_ldap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":172,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":109,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":50,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":113,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":104,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":479,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":248,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":82,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/ocs/v1.php","line":37,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/ocs/v2.php","line":7,"args":["/var/www/nextcloud/ocs/v1.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\""}}
{"reqId":"9cwjlFNxsKuTE5ErYqWd","level":0,"time":"2025-05-30T12:08:43+00:00","remoteAddr":"87.249.193.34","user":"8745CA26-4E0D-4884-BB3E-13285C495AE8","app":"user_ldap","method":"GET","url":"/ocs/v2.php/apps/notifications/api/v2/notifications","message":"Calling LDAP function ldap_explode_dn with parameters [\"8745CA26-4E0D-4884-BB3E-13285C495AE8\",0]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"user_ldap"}}
{"reqId":"3qtnxrP4l59ThkUYPLBs","level":0,"time":"2025-05-30T12:08:43+00:00","remoteAddr":"87.249.193.34","user":"8745CA26-4E0D-4884-BB3E-13285C495AE8","app":"user_ldap","method":"POST","url":"/index.php/apps/text/session/140769/push","message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","exception":{"Exception":"RuntimeException","Message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":1193,"function":"loadConfig","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppConfig.php","line":106,"function":"loadConfigAll","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/lib/private/AllConfig.php","line":172,"function":"getKeys","class":"OC\\AppConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":109,"function":"getAppKeys","class":"OC\\AllConfig","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/Helper.php","line":50,"function":"getServersConfig","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":113,"function":"getServerConfigurationPrefixes","class":"OCA\\User_LDAP\\Helper","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/FunctionInjector.php","line":28,"function":"OCA\\User_LDAP\\AppInfo\\{closure}","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/BootContext.php","line":32,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\FunctionInjector","type":"->"},{"file":"/var/www/nextcloud/apps/user_ldap/lib/AppInfo/Application.php","line":104,"function":"injectFn","class":"OC\\AppFramework\\Bootstrap\\BootContext","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Bootstrap/Coordinator.php","line":157,"function":"boot","class":"OCA\\User_LDAP\\AppInfo\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":479,"function":"bootApp","class":"OC\\AppFramework\\Bootstrap\\Coordinator","type":"->"},{"file":"/var/www/nextcloud/lib/private/App/AppManager.php","line":248,"function":"loadApp","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/private/legacy/OC_App.php","line":82,"function":"loadApps","class":"OC\\App\\AppManager","type":"->"},{"file":"/var/www/nextcloud/lib/base.php","line":997,"function":"loadApps","class":"OC_App","type":"::"},{"file":"/var/www/nextcloud/index.php","line":24,"function":"handleRequest","class":"OC","type":"::"}],"File":"/var/www/nextcloud/lib/private/AppConfig.php","Line":1208,"message":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\"","exception":{},"CustomMessage":"The loading of lazy AppConfig values have been triggered by app \"user_ldap\""}}
{"reqId":"3qtnxrP4l59ThkUYPLBs","level":0,"time":"2025-05-30T12:08:43+00:00","remoteAddr":"87.249.193.34","user":"8745CA26-4E0D-4884-BB3E-13285C495AE8","app":"user_ldap","method":"POST","url":"/index.php/apps/text/session/140769/push","message":"Calling LDAP function ldap_explode_dn with parameters [\"8745CA26-4E0D-4884-BB3E-13285C495AE8\",0]","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 YaBrowser/25.4.0.0 Safari/537.36","version":"31.0.4.1","data":{"app":"user_ldap"}}
Additional info
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the delayed failure with the LDAP and SMB configuration described, then trace the reported exception through apps/user_ldap/lib/Helper.php, apps/user_ldap/lib/AppInfo/Application.php, and lib/private/AppConfig.php. Compare the LDAP-authenticated path with the initial successful mount and inspect the attached log for the transition to StorageNotAvailableException. Done means the SMB mount remains accessible after the waiting period and regression coverage demonstrates that behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 32/100