Cannot restore deleted files saved on external storage
When I delete file from external storage (local disk) I cannot restore it from trash because Nextcloud is trying to get this file from my primary storage (S3)...
Error in log, trying to restore file from primary S3 storage which is bad: "....."php","message":"fopen(https://s3.[sensitive value].com/nextcloud/urn%3Aoid%3A2085870): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found\r\n at /var/www/nextcloud/lib/private/Files/Obj...."
Steps to reproduce
- Create file on defined external storage (local disk)
- Delete file
- Ty to restore file
Expected behaviour
File restored
Actual behaviour
Error: "Cannot restore file"
Server configuration
NX 13.0.0
Operating system: Debian
Web server: Apache 2.4.5.
Database: MariaDB
PHP version: PHP 7
GitMate.io thinks possibly related issues are https://github.com/nextcloud/server/issues/9699 (Can't set external storage), https://github.com/nextcloud/server/issues/6347 (Cannot enable External storage support), https://github.com/nextcloud/server/issues/6598 (Can't share files on CIFS external storage), https://github.com/nextcloud/server/issues/6106 (Unable to delete 6GB file from external SWIFT object storage), and https://github.com/nextcloud/server/issues/1354 (Failed to restore deleted folder Snafu, because of insufficient storage?).
The same problem on Nextcloud 14.
As the version of the software you've reported this for has reached end of life, I will close this ticket. If this is still happening after an upgrade to the latest version, feel free to reopen