I want to report a strange scenario that happens today after I created a new user and sync files where the files/directories that was chosen not to be synced got deleted automatically
Here is what happened!
Admin creates an X user with admin privilege
The x User
Downloads the desktop software for windows 10.
Gives login data, and chooses to sync only particular directories/subdirectories (2.2 GB out of 17GB)
Pauses the sync process manually due to internet issues (some sync errors were shown in the activity list)
Resumes the process after ~10minutes
All those directories that has been chosen not to be synced were suddenly disappeared from all users.
Later, those directories/files were found on âdeleted filesâ (in the adminâs account) via nextcloud web interface, when they where restored from.
Any idea how this could have happened and why?
Version
Nextcloud 10.0 (stable)
Linux
Storage
Users: 5
Files: 35275
PHP
Version: 7.0.14
Memory Limit: 512.0 MB
Max Execution Time: 3600
Upload max size: 513.0 MB
Database
Type: mysql
Version: 5.5.53
Size: 86.4 MB
In point 5 you write that the files disappeared from all users. Is this a shared folder? External storage? The exact situation would be required to exactly reproduce the situation. Can you reproduce the same thing for a smaller folder structure (is it repeatable)? Logfiles would be helpful as well.
I donât know how, maybe the same scenario. But users had complained about lost directory and might be with new user got involved into the âprojectâ. It was shared directory and all of its contents are in trash at the moment.
I am currently on FreeBSD11, have the latest version 11.0.1 from ports on nginx. And I am not even unable to find out, how it got moved to trash or by whom. Until yesterday got it running over php56, but after user complained, tried to upgrade to PHP 7.1 dunno if it will fix the issue into the future.
sorry for late reply, I had too much work at the week.
Well I do not use encryption, it is the thing back from OwnCloud, where there people had problems with upgrades so I had not switched it yet. So all the data are unencrypted.
The log back then shows only messages like this:
{âreqIdâ:âdodQundWcjZIdQ2lPq0câ,âremoteAddrâ:â192.168..",âappâ:âPHPâ,âmessageâ:âModule âgdâ already loaded at Unknown#0â,âlevelâ:3,âtimeâ:â2017-02-21T19:59:55+00:00â,âmethodâ:âPROPFINDâ,âurlâ:"/remote.php/webdav/",âuserâ:âmatej.haaseâ,âversionâ:â11.0.1.2â}
This I had resolved later on with config files for PHP. But nothing about who deleted it. The files were at the trashbin of person who shared it to us. I guess, when I delete something shared to me, it goes to my trashbin, so it should have been deleted by the person who shared it?
I donât get complains yet, the new person got synchronized (after undelete) and noone complains yet, but as an IT guy I would like to find why the data had disappeared, so I can take precautions (of course I have rsync backups).
Thatâs right, it should go to the person who shared it and also into the trashbin of the person who deleted it.
If you check the webserver logfile, you can perhaps find the ip of the person who deleted the file. Now itâs hard to reproduce but you should keep an eye on it in case there is a problem.
Same thing might have happened to me. All of a sudden a ton of files disappeared. After reading that thread I found out that one other user who isnât the owner had half the database in his trash bin. I am very certain he didnât delete it.
This is really disturbing and makes me wonder if I can use the next cloud as a productive environment