owncloud / core

:cloud: ownCloud web server core (Files, DAV, etc.)
https://owncloud.com
GNU Affero General Public License v3.0
8.35k stars 2.06k forks source link

Owncloud client deleted my files #41324

Open lmyslinski opened 2 hours ago

lmyslinski commented 2 hours ago

Steps to reproduce

Yesterday I've moved all of my files from gdrive to owncloud. The files were successfully uplodaded. Today I've rebooted the server on which owncloud is running, shortly after the reboot I got a notification from owncloud desktop client that the folder with all the data was deleted.

client sync log:

=#=#=#=# Propagation starts 2024-09-21T08:32:53Z (last step: 707 msec , total: 707 msec)

| personal/gdrive | CSyncEnums::CSYNC_INSTRUCTION_REMOVE | OCC::SyncFileItem::Down | | 1726870069 | 66edf24506e03 | 0 | 00053597ocea5qnecdjo | OCC::SyncFileItem::Success | | 0 | 0 | 1726870069 | |

=#=#=# Syncrun finished 2024-09-21T08:33:02Z (last step: 8850 msec , total: 9557 msec)

image

The server log does not have this operation. The last activity is reported 16 days ago.

image

The not synced tab is empty.

Expected behaviour

Tell us what should happen

Actual behaviour

Tell us what happens instead

Server configuration

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.

No errors have been found.

config_report_20240921.json

This is most likely a client issue so I've skipped most of the additional server details.

Client configuration

Browser: Brave

Operating system: W11

Logs

Web server error log

owncloud.log

ownCloud log (data/owncloud.log)

Insert your ownCloud log here
lmyslinski commented 2 hours ago

Thankfully, this was an outdated version of my files so I don't need to recover them - but the windows trash is empty and seems like nothing was ever present on the server, so this is very problematic data loss.

I've foolishly deleted all the data from the gdrive trash, having confidence that after all, I have all the data physically on my hard drive, only to have it wiped clean by Owncloud.

I really need to understand why this happened.

One potential reason might come from gdrive itself - I've moved the files via a move operation in the file explorer - there is a chance that gdrive itself malfunctioned and was still "managing" these files, as it detected the deletion on the server it proceeded with removing them locally, but it's a stretch