server icon indicating copy to clipboard operation
server copied to clipboard

Cannot restore deleted files saved on external storage

Open tomtomas99911 opened this issue 8 years ago • 3 comments

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

  1. Create file on defined external storage (local disk)
  2. Delete file
  3. 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

tomtomas99911 avatar Aug 06 '18 10:08 tomtomas99911

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?).

nextcloud-bot avatar Aug 06 '18 10:08 nextcloud-bot

The same problem on Nextcloud 14.

tomtomas99911 avatar Sep 12 '18 10:09 tomtomas99911

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

skjnldsv avatar Apr 10 '20 06:04 skjnldsv