Repository navigation
[Bug]: LDAP Users Missing Files and Folders after User login and go to Files page #44597
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
I have 96 LDAP users accounts, all users exept 2 users (who have this bug) have created a profile and all have the same set of files and folders that are created by the user at the first login to the cloud. Two users have no folders no files in their profile. The New button is inactive , the inside is empty . This 2 Users in group folder section on left side see group folders and can work in them. but the Personal Profiles Files page are empty.
Steps to reproduce
- Fresh install Nextcloud on Ubuntu Nginx MySql
- Add LDAP Users
- After User Login - Missing file and folders - just empty in Files page and NEW ( t make new files and folders ) button inactive
Expected behavior
Two ldap users have no folders no files in their profile. The New button is inactive , the inside is empty . This 2 Users in group folder section on left side see group folders and can work in them. but the Personal Profiles Files page are empty.
Installation method
Community Manual installation with Archive
Nextcloud Server version
28
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.2
Web server
Nginx
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
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"cloud.xxxxxx.xyz",
"xx.xxx.xx.xx"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "28.0.4.1",
"overwrite.cli.url": "https:\/\/cloud.xxxxx.xyz",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"default_phone_region": "RU",
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": "6379"
},
"mail_smtpmode": "smtp",
"mail_sendmailmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false,
"maintenance_window_start": 1,
"defaultapp": "",
"twofactor_enforced": "true",
"twofactor_enforced_groups": [],
"twofactor_enforced_excluded_groups": [],
"loglevel": 2
}
}List of activated Apps
Enabled:
- activity: 2.20.0
- admin_audit: 1.18.0
- bruteforcesettings: 2.8.0
- calendar: 4.6.7
- circles: 28.0.0
- cloud_federation_api: 1.11.0
- comments: 1.18.0
- contacts: 5.5.3
- contactsinteraction: 1.9.0
- dashboard: 7.8.0
- dav: 1.29.1
- drawio: 3.0.2
- federatedfilesharing: 1.18.0
- federation: 1.18.0
- files: 2.0.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- groupfolders: 16.0.5
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- nextcloud_announcements: 1.17.0
- notes: 4.9.4
- notifications: 2.16.0
- oauth2: 1.16.3
- onlyoffice: 9.0.0
- password_policy: 1.18.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- serverinfo: 1.18.0
- settings: 1.10.1
- sharebymail: 1.18.0
- side_menu: 3.11.8
- spreed: 18.0.5
- support: 1.11.1
- survey_client: 1.16.0
- systemtags: 1.18.0
- terms_of_service: 2.4.0
- text: 3.9.1
- theming: 2.3.0
- twofactor_admin: 4.5.0
- twofactor_backupcodes: 1.17.0
- twofactor_email: 2.7.4
- twofactor_totp: 10.0.0-beta.2
- updatenotification: 1.18.0
- user_ldap: 1.19.0
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- encryption: 2.16.0
- files_external: 1.20.0
- files_pdfviewer: 2.9.0 (installed 2.9.0)
- photos: 2.4.0 (installed 2.4.0)
- richdocuments: 8.3.3 (installed 8.3.3)
- suspicious_login: 6.0.0Nextcloud Signing status
No errors have been found.Nextcloud Logs
PHP error - file_get_contents(/var/www/nextcloud/data/A491B9ED-B9B4-4327-8794-85335AE4DDEA/files/Documents/Readme.md) : Stream could not be opened: there is no such file or directory in /var/www/nextcloud/lib/private/Files/Storage/Local file.php#331
more info
{“reqId”:“B0HdInjFamO6XO7Nw6X9”,“level”:3,“time”:“2024-03-31T15:19:21+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:“A491B9ED-B9B4-4327-8794-85335AE4DDEA”,“app”:“PHP”,“method”:“PROPFIND”,“url”:“/remote.php/dav/files/A491B9ED-B9B4-4327-8794-85335AE4DDEA/”,“message”:“file_get_contents(/var/www/nextcloud/data/A491B9ED-B9B4-4327-8794-85335AE4DDEA/files/Documents/Readme.md): Failed to open stream: No such file or directory at /var/www/nextcloud/lib/private/Files/Storage/Local.php#331”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”,“version”:“28.0.4.1”,“data”:{“app”:“PHP”},“id”:“6609bb64bc407”}
And WEBDAV error - GenericFileException
Exception thrown: OCP\Files\GenericFileException
Exception thrown: OCP\Files\GenericFileException
more info
{“reqId”:“B0HdInjFamO6XO7Nw6X9”,“level”:3,“time”:“2024-03-31T15:19:21+00:00”,“remoteAddr”:“xxx.xxx.xxx.xxx”,“user”:“A491B9ED-B9B4-4327-8794-85335AE4DDEA”,“app”:“webdav”,“method”:“PROPFIND”,“url”:“/remote.php/dav/files/A491B9ED-B9B4-4327-8794-85335AE4DDEA/”,“message”:“Exception thrown: OCP\Files\GenericFileException”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36 Edg/120.0.0.0”,“version”:“28.0.4.1”,“exception”:{“Exception”:“OCP\Files\GenericFileException”,“Message”:“”,“Code”:0,“Trace”:[{“file”:“/var/www/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php”,“line”:119,“function”:“getContent”,“class”:“OC\Files\Node\File”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/PropFind.php”,“line”:95,“function”:“OCA\Text\DAV\{closure}”,“class”:“OCA\Text\DAV\WorkspacePlugin”,“type”:“->”,“args”:[“*** sensitive parameters replaced ***”]},{“file”:“/var/www/nextcloud/apps/text/lib/DAV/WorkspacePlugin.php”,“line”:117,“function”:“handle”,“class”:“Sabre\DAV\PropFind”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“propFind”,“class”:“OCA\Text\DAV\WorkspacePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1052,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:984,“function”:“getPropertiesByNode”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1662,“function”:“getPropertiesIteratorForPath”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:1647,“function”:“writeMultiStatus”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/CorePlugin.php”,“line”:346,“function”:“generateMultiStatus”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php”,“line”:89,“function”:“httpPropFind”,“class”:“Sabre\DAV\CorePlugin”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:472,“function”:“emit”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:253,“function”:“invokeMethod”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/3rdparty/sabre/dav/lib/DAV/Server.php”,“line”:321,“function”:“start”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/lib/Server.php”,“line”:373,“function”:“exec”,“class”:“Sabre\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”,“line”:35,“function”:“exec”,“class”:“OCA\DAV\Server”,“type”:“->”},{“file”:“/var/www/nextcloud/remote.php”,“line”:172,“args”:[“/var/www/nextcloud/apps/dav/appinfo/v2/remote.php”],“function”:“require_once”}],“File”:“/var/www/nextcloud/lib/private/Files/Node/File.php”,“Line”:56,“message”:“”,“exception”:,“CustomMessage”:“Exception thrown: OCP\Files\GenericFileException”},“id”:“6609bb64bc3f7”}Additional info
Browser MS Edge
Activity
joshtrichards commentedon Apr 1, 2024
Does
/var/www/nextcloud/data/A491B9ED-B9B4-4327-8794-85335AE4DDEA/files/Documents/Readme.mdexist on-disk?TomasPopovas commentedon Apr 1, 2024
users who have this bug an empty directory in the files on the disk

1 User Have nothing in root firectory
1 user have files directory - but empty inside
TomasPopovas commentedon Apr 3, 2024
Any solution? Please
TomasPopovas commentedon Apr 7, 2024
Fix for this problem
Done
Shamri04 commentedon Nov 21, 2024
I am also facing the same issue , kindly provide fix !
joshtrichards commentedon Nov 21, 2024
@Shamri04 Update. :) This has already been fixed across all supported majors (v28-v30) with up-to-date maintenance releases.
It's a duplicate of #42663
Fixes in: