[Bug]: $path is wrong, leading to "unable to rename, source directory is not writable"
โ ๏ธ This issue respects the following points: โ ๏ธ
- [X] This is a bug, not a question or a configuration/webserver/proxy issue.
- [X] This issue is not already reported on Github (I've searched it).
- [X] Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- [X] Nextcloud Server is running on 64bit capable CPU, PHP and OS.
- [X] I agree to follow Nextcloud's Code of Conduct.
Bug description
Something seem to be wrong, a Nextcloud does not construct the path correctly. One of my users is constantly having a 403 for one of it' uploads. After check Nextcloud log, i can see this line:
unable to rename, source directory is not writable : /var/www/data/_folder collab/MERTZ/New folder
/var/www/data is datadir
mertz is the user (in lowercase, not even present (!!))
MERTZ/_folder collab/New folder is the path (shared groupfolder)
As you can see, Nextcloud is messing up the path, as user is in the middle of the path...
Steps to reproduce
Can't really tell.
Expected behavior
Good path.
Installation method
Community Manual installation with Archive
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.1
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
- [X] Default user-backend (database)
- [ ] LDAP/ Active Directory
- [X] SSO - SAML
- [ ] Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "smtp",
"mail_smtpsecure": "tls",
"mail_smtpauthtype": "LOGIN",
"mail_sendmailmode": "smtp",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0
},
"memcache.local": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"tempdirectory": "\/tmp",
"appstoreenabled": true,
"activity_expire_days": 7,
"auth.bruteforce.protection.enabled": true,
"htaccess.RewriteBase": "\/",
"knowledgebaseenabled": false,
"logtimezone": "Europe\/Paris",
"updatechecker": false,
"upgrade.disable-web": true,
"overwriteprotocol": "https",
"quota_include_external_storage": false,
"trashbin_retention_obligation": "auto, 14",
"versions_retention_obligation": "auto, 60",
"updater.release.channel": "stable",
"default_language": "fr",
"default_locale": "fr_FR",
"skeletondirectory": "",
"default_phone_region": "fr",
"enabledPreviewProviders": [
"OC\\Preview\\PNG",
"OC\\Preview\\JPEG",
"OC\\Preview\\GIF",
"OC\\Preview\\BMP",
"OC\\Preview\\XBitmap"
],
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"***REMOVED SENSITIVE VALUE***"
],
"version": "24.0.8.2",
"overwrite.cli.url": "***REMOVED SENSITIVE VALUE***",
"overwritehost": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"maintenance": false,
"preview_max_memory": 256,
"preview_max_x": 1024,
"preview_max_y": 1024,
"preview_max_scale_factor": 1,
"allow_local_remote_servers": false,
"simpleSignUpLink.shown": false,
"filelocking.enabled": true,
"updatedirectory": "\/tmp",
"loglevel": 3,
"preview_concurrency_new": 4,
"maintenance_window_start": 1,
"bulkupload.enabled": false,
"ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory"
}
}
List of activated Apps
Enabled:
- accessibility: 1.10.0
- activity: 2.16.0
- circles: 24.0.1
- cloud_federation_api: 1.7.0
- comments: 1.14.0
- contacts: 4.2.3
- contactsinteraction: 1.5.0
- dashboard: 7.4.0
- dav: 1.22.0
- deck: 1.7.3
- drawio: 2.0.1
- external: 4.0.1
- federatedfilesharing: 1.14.0
- federation: 1.14.0
- files: 1.19.0
- files_mindmap: 0.0.27
- files_pdfviewer: 2.5.0
- files_rightclick: 1.3.0
- files_sharing: 1.16.2
- files_trashbin: 1.14.0
- files_versions: 1.17.0
- files_videoplayer: 1.13.0
- groupfolders: 12.0.2
- impersonate: 1.11.0
- logreader: 2.9.0
- lookup_server_connector: 1.12.0
- notifications: 2.12.1
- notify_push: 0.5.0
- oauth2: 1.12.0
- onlyoffice: 7.5.8
- openotp_auth: 1.4.5
- openotp_sign: 1.3.2
- password_policy: 1.14.0
- passwords: 2022.12.21
- privacy: 1.8.0
- provisioning_api: 1.14.0
- serverinfo: 1.14.0
- settings: 1.6.0
- sharebymail: 1.14.0
- spreed: 14.0.7
- systemtags: 1.14.0
- theming: 1.15.0
- twofactor_backupcodes: 1.13.0
- user_ldap: 1.14.1
- user_status: 1.4.0
- viewer: 1.8.0
- workflowengine: 2.6.0
Disabled:
- admin_audit
- encryption
- files_external
- firstrunwizard: 2.11.0
- nextcloud_announcements: 1.11.0
- photos: 1.4.0
- recommendations: 1.1.0
- support: 1.5.0
- survey_client: 1.10.0
- text: 3.3.0
- updatenotification: 1.12.0
- weather_status: 1.2.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
unable to rename, source directory is not writable : /var/www/data/_folder collab/MERTZ/New folder
Additional info
Webserver logs
MOVE "/remote.php/dav/files/mertz/MERTZ/New%20folder/ITIL4" code=403
MOVE "/remote.php/dav/files/mertz/MERTZ/New%20folder/eVAL" code=403
MOVE "/remote.php/dav/files/mertz/MERTZ/New%20folder/oziefhe0.pptx" code=403
Isn't this rather a groupfolders issue?
Well i'm not sure as there isn't any logs beside that single line... ๐ค
Hi, please update to 25.0.7 or better 26.0.2 and report back if it fixes the issue. Thank you!
My goal is to add a label like e.g. 26-feedback to this ticket of an up-to-date major Nextcloud version where the bug could be reproduced. However this is not going to work without your help. So thanks for all your effort!
If you don't manage to reproduce the issue in time and the issue gets closed but you can reproduce the issue afterwards, feel free to create a new bug report with up-to-date information by following this link: https://github.com/nextcloud/server/issues/new?assignees=&labels=bug%2C0.+Needs+triage&template=BUG_REPORT.yml&title=%5BBug%5D%3A+
Not fixed on 25.0.7 RC1
Related: #1097 & #2604
The bug is still there for server 31.0.7 and team folders (aka groupfolder) 19.1.3