Steps to reproduce
- Loged as admin, I can’t delete folders
- The error message is showed: “Error deleting files”
- Please, check the “ownCloud log” in the exact moment that the error heppens
Expected behaviour
Tell us what should happen
Juste delete folders
Actual behaviour
Tell us what happens instead
The folders still iin the same place
Server configuration
Operating system:
Debian 10
Web server:
Apache 2.4
Database:
mysql Ver 15.1 Distrib 10.3.27-MariaDB
PHP version:
7.3.19
ownCloud version: (see ownCloud admin page)
10.6.0
Updated from an older ownCloud or fresh install:
Fresh install
Where did you install ownCloud from:
Signing status (ownCloud 9.0 and above):
Login as admin user into your ownCloud and access
http://example.com/index.php/settings/integrity/failed
paste the results into https://gist.github.com/ and puth the link here.
{
“basic”: {
“license key”: “REMOVED SENSITIVE VALUE”,
“date”: “Thu, 31 Dec 2020 12:49:27 +0000”,
“ownCloud version”: “10.6.0.5”,
“ownCloud version string”: “10.6.0”,
“ownCloud edition”: “Community”,
“server OS”: “Linux”,
“server OS version”: “Linux ip-172-31-48-117 4.19.0-13-cloud-amd64 #1 SMP Debian 4.19.160-2 (2020-11-28) x86_64”,
“server SAPI”: “apache2handler”,
“webserver version”: “Apache/2.4.38 (Debian)”,
“hostname”: “3.236.113.32”,
“logged-in user”: “Admin-Owncloud”
},
“stats”: {
“users”: {
“Database”: {
“count”: 2,
“seen”: 2,
“logged in (30 days)”: 2
}
},
“groups”: {
“OC\Group\Database”: 2
}
},
“config”: {
“instanceid”: “oca2kxku88w5”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“3.236.113.32”
],
“datadirectory”: “/var/www/owncloud/data”,
“overwrite.cli.url”: “http://3.236.113.32”,
“dbtype”: “mysql”,
“version”: “10.6.0.5”,
“dbname”: “owncloud”,
“dbhost”: “localhost”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“logtimezone”: “UTC”,
“apps_paths”: [
{
“path”: “/var/www/owncloud/apps”,
“url”: “/apps”,
“writable”: false
},
{
“path”: “/var/www/owncloud/apps-external”,
“url”: “/apps-external”,
“writable”: true
}
],
“installed”: true,
“memcache.local”: “\OC\Memcache\APCu”,
“memcache.locking”: “\OC\Memcache\Redis”,
“redis”: {
“host”: “127.0.0.1”,
“port”: “6379”
},
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_smtpmode”: “smtp”,
“ldapIgnoreNamingRules”: false,
“singleuser”: false,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpsecure”: “ssl”,
“mail_smtpport”: “465”,
“mail_smtpauth”: 1,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“loglevel”: 0
},
“integritychecker”: {
“passing”: true,
“enabled”: true,
“result”: []
},
“core”: {
“backgroundjobs_mode”: “cron”,
“enable_external_storage”: “yes”,
“first_install_version”: “10.6.0.5”,
“grace_period”: “1609253915”,
“installedat”: “1609248931.805”,
“lastcron”: “1609418701”,
“lastupdateResult”: “[]”,
“lastupdatedat”: 1609418967,
“public_files”: “files_sharing/public.php”,
“public_webdav”: “dav/appinfo/v1/publicwebdav.php”,
“shareapi_allow_public_upload”: “no”,
“shareapi_allow_social_share”: “no”,
“shareapi_default_permissions”: “31”,
“shareapi_enabled”: “yes”,
“shareapi_enforce_links_password_read_write_delete”: “REMOVED SENSITIVE VALUE”,
“umgmt_set_password”: “REMOVED SENSITIVE VALUE”,
“umgmt_show_backend”: “false”,
“umgmt_show_email”: “true”,
“umgmt_show_is_enabled”: “true”,
“umgmt_show_last_login”: “true”,
“umgmt_show_password”: “REMOVED SENSITIVE VALUE”,
“umgmt_show_quota”: “true”,
“umgmt_show_storage_location”: “false”
},
“apps”: [
{
“id”: “notifications”,
“name”: “Notifications”,
“summary”: “Notification system for internal events”,
“description”: “This application adds an internal notification system to an ownCloud instance. Notifications are triggered by apps like the Announcement Center or Custom Groups and displayed via a bell indicator in the WebUI as well as via the ownCloud clients.”,
“category”: “tools”,
“screenshot”: “https://raw.githubusercontent.com/owncloud/promo/e1dd604d66b4c5f765579b4c160de3268169ea3c/ownCloud%20logo%20square.png”,
“licence”: “AGPL”,
“author”: “Joas Schilling, Thomas M\u00fcller”,
“version”: “0.5.2”,
“types”: [
“logging”
],
“default_enable”: “”,
“website”: “https://github.com/owncloud/notifications”,
“bugs”: “https://github.com/owncloud/notifications/issues”,
“repository”: {
“@attributes”: {
“type”: “git”
},
“@value”: “https://github.com/owncloud/notifications.git”
},
“commands”: {
“command”: “OCA\Notifications\Command\Generate”
},
“settings”: {
“personal”: “OCA\Notifications\Panels\Personal\NotificationsPanel”
},
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10.2”,
“max-version”: “11”
}
}
},
“use-migrations”: “true”,
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: false,
“removable”: true,
“preview”: “/apps/notifications/img/notifications.svg”,
“previewAsIcon”: true,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “0.5.2”,
“types”: “logging”
}
},
{
“id”: “user_external”,
“name”: “External user support”,
“description”: “Use external user authentication methods like IMAP, SMB and FTP”,
“licence”: “AGPL”,
“author”: “Robin Appelman”,
“documentation”: {
“admin”: “https://doc.owncloud.org/server/10.3/admin_manual/configuration/user/user_auth_ftp_smb_imap.html”
},
“website”: “https://github.com/owncloud/apps/tree/master/user_external”,
“bugs”: “https://github.com/owncloud/apps/issues”,
“repository”: {
“@attributes”: {
“type”: “git”
},
“@value”: “https://github.com/owncloud/user_external.git”
},
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10”,
“max-version”: “10”
}
}
},
“version”: “0.6.0”,
“types”: [
“authentication”,
“prelogin”
],
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“commands”: [],
“_cached”: true,
“groups”: null,
“active”: false,
“internal”: false,
“removable”: true,
“preview”: “/apps/user_external/img/app.svg”,
“previewAsIcon”: true
},
{
“id”: “systemtags”,
“name”: “Collaborative tags”,
“description”: “Collaborative tagging functionality which shares tags among users. Great for teams. (If you are a provider with a multi-tenancy installation, it is advised to deactivate this app as tags are shared.)”,
“licence”: “AGPL”,
“author”: “Vincent Petry”,
“default_enable”: “”,
“version”: “0.3.0”,
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10”,
“max-version”: “10”
}
}
},
“namespace”: “SystemTags”,
“types”: [
“logging”
],
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“commands”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: false,
“removable”: true,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “0.3.0”,
“types”: “logging”
}
},
{
“id”: “comments”,
“name”: “Comments”,
“description”: “Files app plugin to add comments to files”,
“licence”: “AGPL”,
“author”: “Arthur Schiwon, Vincent Petry”,
“default_enable”: “”,
“version”: “0.3.0”,
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10”,
“max-version”: “10”
}
}
},
“types”: [
“logging”,
“dav”
],
“sabre”: {
“plugins”: {
“plugin”: “OCA\Comments\Dav\CommentsPlugin”
},
“collections”: {
“collection”: “OCA\Comments\Dav\RootCollection”
}
},
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“commands”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: false,
“removable”: true,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “0.3.0”,
“types”: “logging,dav”
}
},
{
“id”: “files_trashbin”,
“name”: “Deleted files”,
“description”: “This application enables users to restore files that were deleted from the system. It displays a list of deleted files in the web interface, and has options to restore those deleted files back to their ownCloud file directories or remove them permanently from the system. Restoring a file also restores related file versions, if the versions application is enabled. When a file is deleted from a share, it can be restored in the same manner, though it is no longer shared. By default, these files remain in the trash bin for 30 days. To prevent a user from running out of disk space, the ownCloud Deleted files app will not utilize more than 50% of the currently available free quota for deleted files. If the deleted files exceed this limit, ownCloud deletes the oldest files until it gets below this limit. More information is available in the Deleted Files documentation.\n\n”,
“licence”: “AGPL”,
“author”: “Bjoern Schiessle”,
“default_enable”: “”,
“version”: “0.9.1”,
“types”: [
“filesystem”
],
“use-migrations”: “true”,
“namespace”: “Files_Trashbin”,
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10.0.2.4”,
“max-version”: “10”
}
}
},
“documentation”: {
“user”: “https://doc.owncloud.org/server/10.6/go.php?to=user-trashbin”
},
“background-jobs”: {
“job”: “OCA\Files_Trashbin\BackgroundJob\ExpireTrash”
},
“commands”: [
“OCA\Files_Trashbin\Command\CleanUp”,
“OCA\Files_Trashbin\Command\ExpireTrash”
],
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“two-factor-providers”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: true,
“level”: 200,
“removable”: false,
“preview”: “/apps/files_trashbin/img/app.svg”,
“previewAsIcon”: true,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “0.9.1”,
“types”: “filesystem”
}
},
{
“id”: “configreport”,
“name”: “Admin Config Report”,
“description”: “Generate a Config Report”,
“licence”: “AGPL”,
“author”: “owncloud.org”,
“version”: “0.2.0”,
“namespace”: “ConfigReport”,
“default_enable”: [
“”,
“”
],
“types”: [
“filesystem”
],
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10.2”,
“max-version”: “11”
}
}
},
“commands”: {
“command”: “OCA\ConfigReport\Command\ConfigReport”
},
“settings”: {
“admin”: “OCA\ConfigReport\AdminPanel”
},
“info”: [],
“remote”: [],
“public”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: true,
“level”: 200,
“removable”: false,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “0.2.0”,
“types”: “filesystem”
}
},
{
“id”: “files_mediaviewer”,
“name”: “Media Viewer”,
“summary”: “Explore, show and share your media collections”,
“description”: “A media viewer that adds image and video viewing capabilities to Files view and Public Links.\n\nFeatures\n\n- Support for a large selection of image and video formats (depending on server setup) - Fullscreen, zoomable slideshow view integrated with the Files view and Public Links - Image rotation - Sort images by name or date - Image and video download straight from the slideshow - Native SVG support - Mobile support”,
“licence”: “GPLv2”,
“author”: “Felix Heidecke”,
“version”: “1.0.3”,
“namespace”: “Mediaviewer”,
“documentation”: {
“developer”: “https://github.com/owncloud/files_mediaviewer/blob/master/README.md”
},
“screenshot”: “https://raw.githubusercontent.com/owncloud/screenshots/master/files_mediaviewer/ownCloud-app-mediaviewer.jpg”,
“category”: “multimedia”,
“website”: “https://github.com/owncloud/files_mediaviewer”,
“bugs”: “https://github.com/owncloud/files_mediaviewer/issues”,
“repository”: {
“@attributes”: {
“type”: “git”
},
“@value”: “https://github.com/owncloud/files_mediaviewer.git”
},
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10”,
“max-version”: “10”
}
}
},
“default_enable”: “”,
“info”: [],
“remote”: [],
“public”: [],
“types”: [],
“repair-steps”: {
“install”: [],
“pre-migration”: [],
“post-migration”: [],
“live-migration”: [],
“uninstall”: []
},
“background-jobs”: [],
“two-factor-providers”: [],
“commands”: [],
“_cached”: true,
“groups”: null,
“active”: true,
“internal”: false,
“removable”: true,
“appconfig”: {
“enabled”: “yes”,
“installed_version”: “1.0.3”,
“types”: “”
}
},
{
“id”: “files_sharing”,
“name”: “Share Files”,
“description”: “This application enables users to share files within ownCloud. If enabled, the admin can choose which groups can share files. The applicable users can then share files and folders with other users and groups within ownCloud. In addition, if the admin enables the share link feature, an external link can be used to share files with other users outside of ownCloud. Admins can also enforce passwords, expirations dates, and enable server to server sharing via share links, as well as sharing from mobile devices. Turning the feature off removes shared files and folders on the server for all share recipients, and also on the sync clients and mobile apps. More information is available in the ownCloud Documentation.\n\n”,
“licence”: “AGPL”,
“author”: “Michael Gapczynski, Bjoern Schiessle”,
“default_enable”: “”,
“version”: “0.14.0”,
“types”: [
“filesystem”
],
“use-migrations”: “true”,
“dependencies”: {
“owncloud”: {
“@attributes”: {
“min-version”: “10.0.2.4”,
“max-version”: “10”
Log in to the web-UI with an administrator account and click on
'admin' -> 'Generate Config Report' -> 'Download ownCloud config report'
This report includes the config.php settings, the list of activated apps
and other details in a well sanitized form.
or
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your ownCloud installation folder
*ATTENTION:* Do not post your config.php file in public as is. Please use one of the above
methods whenever possible. Both, the generated reports from the web-ui and from occ config:list
consistently remove sensitive data. You still may want to review the report before sending.
If done manually then it is critical for your own privacy to dilligently
remove *all* host names, passwords, usernames, salts and other credentials before posting.
You should assume that attackers find such information and will use them against your systems.
List of activated apps:
Enabled:
- activity: 2.6.0
- brute_force_protection: 1.1.0
- comments: 0.3.0
- configreport: 0.2.0
- dav: 0.6.0
- federatedfilesharing: 0.5.0
- federation: 0.1.0
- files: 1.5.2
- files_external: 0.7.1
- files_external_s3: 1.0.0
- files_mediaviewer: 1.0.3
- files_primary_s3: 1.1.2
- files_sharing: 0.14.0
- files_trashbin: 0.9.1
- files_versions: 1.3.0
- firstrunwizard: 1.2.0
- market: 0.6.0
- notifications: 0.5.2
- password_policy: 2.1.2
- provisioning_api: 0.5.0
- systemtags: 0.3.0
- updatenotification: 0.2.1
Disabled: - encryption
- external
- objectstore
- user_external
- user_ldap
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your ownCloud installation folder.
Are you using external storage, if yes which one: local/smb/sftp/…
S3
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/…
No
LDAP configuration (delete this part if not used)
N/A
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your ownCloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Client configuration
Browser:
Operating system:
Logs
Web server error log
Insert your webserver log here
[Thu Dec 31 06:13:43.195078 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.195169 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.195179 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.198359 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.198376 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.198446 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 06:13:43.198456 2020] [php7:notice] [pid 27028] [client 158.69.138.27:21545] PHP Notice: Undefined index: path in /var/www/owncloud/lib/private/AppFramework/Http/Request.php on line 620
[Thu Dec 31 08:22:49.633613 2020] [authz_core:error] [pid 30180] [client 177.37.172.114:43831] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Thu Dec 31 09:30:11.396137 2020] [authz_core:error] [pid 27808] [client 177.37.172.114:2788] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
[Thu Dec 31 09:40:48.835095 2020] [authz_core:error] [pid 27026] [client 177.37.172.114:42348] AH01630: client denied by server configuration: /var/www/owncloud/data/htaccesstest.txt
ownCloud log (data/owncloud.log)
Insert your ownCloud log here
{"reqId":"ULAbg5QQq6JNXmiystEj","level":0,"time":"2020-12-31T12:18:44+00:00","remoteAddr":"177.37.172.114","user":"admin","app":"OC\\User\\Session::validateToken","method":"DELETE","url":"\/remote.php\/dav\/files\/admin\/Owncloud-Server\/Teste3","message":"token 3b99f473b534fe06cfc5014de744899b762cf27207a2c3cf4a64613e2f7df90b83e38c56d93d5221f2340110840b403099c730622630f1bbcf7130e2c3f66ddb with token id 41 found, validating"}
{"reqId":"ULAbg5QQq6JNXmiystEj","level":0,"time":"2020-12-31T12:18:46+00:00","remoteAddr":"177.37.172.114","user":"admin","app":"webdav","method":"DELETE","url":"\/remote.php\/dav\/files\/admin\/Owncloud-Server\/Teste3","message":"Exception: HTTP\/1.1 403 Forbidden: {\"Exception\":\"Sabre\\\\DAV\\\\Exception\\\\Forbidden\",\"Message\":\"\",\"Code\":0,\"Trace\":\"#0 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Tree.php(179): OCA\\\\DAV\\\\Connector\\\\Sabre\\\\Directory->delete()\\n#1 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/CorePlugin.php(281): Sabre\\\\DAV\\\\Tree->delete('files\\\/admin\\\/Own...')\\n#2 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/event\\\/lib\\\/WildcardEmitterTrait.php(89): Sabre\\\\DAV\\\\CorePlugin->httpDelete(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#3 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(472): Sabre\\\\DAV\\\\Server->emit('method:DELETE', Array)\\n#4 \\\/var\\\/www\\\/owncloud\\\/lib\\\/composer\\\/sabre\\\/dav\\\/lib\\\/DAV\\\/Server.php(253): Sabre\\\\DAV\\\\Server->invokeMethod(Object(Sabre\\\\HTTP\\\\Request), Object(Sabre\\\\HTTP\\\\Response))\\n#5 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Server.php(330): Sabre\\\\DAV\\\\Server->start()\\n#6 \\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/appinfo\\\/v2\\\/remote.php(31): OCA\\\\DAV\\\\Server->exec()\\n#7 \\\/var\\\/www\\\/owncloud\\\/remote.php(165): require_once('\\\/var\\\/www\\\/ownclo...')\\n#8 {main}\",\"File\":\"\\\/var\\\/www\\\/owncloud\\\/apps\\\/dav\\\/lib\\\/Connector\\\/Sabre\\\/Directory.php\",\"Line\":345}"}```
#### Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
DELETE http://3.236.113.32/remote.php/dav/files/admin/Owncloud-Server/Leandro 403 (Forbidden)
b) The network log
c) …