Files are removed - no access to deleted files

The Basics

  • Nextcloud Server version: 30.0.7

  • Operating system and version (e.g., Ubuntu 24.04): Linux 5.15.0-126-generic x86_64 - Ubuntu 2404

  • PHP version (e.g, 8.3): 8.3.6

  • Is this the first time you’ve seen this error? (Yes / No): Yes

  • When did this problem seem to first start? After update last week

  • Are you using CloudfIare, mod_security, or similar? No

Summary of the issue you are facing:

Thousands of files got deleted after (i guess) a wrong sync after update last week.
Can’t access deleted files folder to restore them.

1 Like

I think that happened to my server also. There is an app called “Deleted files” which makes the restoration even possible, and in my instance the app was disabled after I upgraded. So I enabled it again, and I was able to access my deleted files again. Hope that fixes it for you.

Please post the specific log entry that shows when you load the Deleted Files page. And, when you do, include the full raw log entry (what you posted are just excerpts).

It would also be helpful if you posted the other bits of the support template, such as your config and apps (and possibly web browser output).

This is the log entry:

{“reqId":“XaWVFnz1nLN32r4I1JsT”,“level”:3,“time”:“2025-03-17T17:25:45+00:00”,“remoteAddr”:“78.21.243.109”,“user”:"kevinvanhoecke@pm.me”,“app”:“PHP”,“method”:“PROPFIND”,“url”:“/remote.php/dav/trashbin/kevinvanhoecke%40pm.me/trash/",“message”:"Allowed memory size of 536870912 bytes exhausted (tried to allocate 20480 bytes) at /var/www/html/3rdparty/doctrine/dbal/src/Driver/PDO/Result.php#119”,“userAgent”:“Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36”,“version”:“30.0.7.2”,“data”:{“app”:“PHP”},“id”:“67d85d967fed1”}

You also can try from the terminal to change directory into your user folder, and see if the files are still there. You can use a program like rsync to try and recover everything off the server [at least just the data directory] to your local machine if you have direct access to the server.