The Basics
-
Nextcloud Server version (e.g., 29.x.x):
- 29.0.10
-
Operating system and version (e.g., Ubuntu 24.04):
- Shared Hosting Netcup Linux 5.10.0-32-amd64 x86_64
-
Web server and version (e.g, Apache 2.4.25):
- Apache ???
- memory_limit 512M
- max_execution_time 180
- max_input_time 60 (Standard)
- post_max_size 128M
- upload_max_filesize 128M
- opcache.enable on (Standard)
-
PHP version (e.g, 8.3):
- 8.2.25
-
Is this the first time you’ve seen this error? (Yes / No):
- No
-
When did this problem seem to first start?
- a couple of months ago -
-
Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
- Webinstaller - https://github.com/nextcloud/web-installer / Nextcloud. -
-
Are you using CloudfIare, mod_security, or similar? (Yes / No)
- no
Summary of the issue you are facing:
I want to delete a file on the Nextcloud web-userinterface , but I can’t, it says >“Delete file” action failed<. I already run
files:scan --all
files:cleanup
files:repair-tree
I deleted the oc_file_locks table in my database like described here:
The file exists as physical file on the server when I acces my files via FTP but there it has a file size of 113Mb where as synced on my PC locally it only has 0kb. On the Webuser-Interface on Nextcloud it has 113Mb but I can’t access any info on it, it says >“Open details” action failed<.
When I delete the file locally it’s re-downloaded after a while. Like I mentioned I can’t delete the file on the Nextcloud webinterface.
Now, what should I do? Can I delete the file via FTP from the server? Or delete the entry from the database?
The Sync-Client-Log gives a “403 Forbidden” error, when trying to download that file.
2025-01-13 23:20:57:829 [ warning nextcloud.sync.propagator C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\libsync\owncloudpropagator.cpp:288 ]: Could not complete propagation of “Steinberg_Download_Assistant_1.35.0_Installer_win.exe” by OCC::PropagateDownloadFile(0x24258431930) with status OCC::SyncFileItem::BlacklistedError and error: “Server hat "403 Forbidden" auf "GET XXX/o/remote.php/dav/files/admin_owncloud_Ba3RMRVvL82di9r/Steinberg_Download_Assistant_1.35.0_Installer_win.exe" geantwortet”
2025-01-13 23:20:57:829 [ warning nextcloud.sync.credentials.webflow C:\Users\User\AppData\Local\Temp\windows-27802\client-building\desktop\src\gui\creds\webflowcredentials.cpp:208 ]: “Error transferring https://XXX/o/remote.php/dav/files/admin_owncloud_Ba3RMRVvL82di9r/Steinberg_Download_Assistant_1.35.0_Installer_win.exe - server replied: Forbidden”
Steps to replicate it (hint: details matter!):
I don’t know how this happened, I never played with the files in the Nextcloud data-directory via FTP. I guess there was an error uploading or syncing.
Nextcloud
The output of occ config:list system
or similar is best, but, if not possible, the contents of your config.php
file from /path/to/nextcloud
is fine (make sure to remove any identifiable information!):
{
“system”: {
“instanceid”: “REMOVED SENSITIVE VALUE”,
“passwordsalt”: “REMOVED SENSITIVE VALUE”,
“secret”: “REMOVED SENSITIVE VALUE”,
“trusted_domains”: [
“www.XXX.de”,
“cloud.XXX.de”
],
“datadirectory”: “REMOVED SENSITIVE VALUE”,
“dbtype”: “mysql”,
“version”: “29.0.10.1”,
“overwrite.cli.url”: “https://www.XXX.de/o”,
“dbname”: “REMOVED SENSITIVE VALUE”,
“dbhost”: “REMOVED SENSITIVE VALUE”,
“dbport”: “”,
“dbtableprefix”: “oc_”,
“mysql.utf8mb4”: true,
“dbuser”: “REMOVED SENSITIVE VALUE”,
“dbpassword”: “REMOVED SENSITIVE VALUE”,
“installed”: true,
“theme”: “”,
“loglevel”: 2,
“trashbin_retention_obligation”: “15, auto”,
“app_install_overwrite”: [
“occweb”
],
“encryption.legacy_format_support”: false,
“encryption.key_storage_migrated”: false,
“default_phone_region”: “DE”,
“mail_smtpmode”: “smtp”,
“mail_smtpsecure”: “tls”,
“mail_sendmailmode”: “smtp”,
“mail_from_address”: “REMOVED SENSITIVE VALUE”,
“mail_domain”: “REMOVED SENSITIVE VALUE”,
“mail_smtpauthtype”: “LOGIN”,
“mail_smtpauth”: 1,
“mail_smtphost”: “REMOVED SENSITIVE VALUE”,
“mail_smtpname”: “REMOVED SENSITIVE VALUE”,
“mail_smtppassword”: “REMOVED SENSITIVE VALUE”,
“maintenance_window_start”: 1,
“preview_max_x”: 1024,
“preview_max_y”: 1024,
“maintenance”: false,
“updater.release.channel”: “stable”
}
}