-
Notifications
You must be signed in to change notification settings - Fork 815
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client deleted my files #260
Comments
Considering the logs, you can look for help in the forums help.nextcloud.com. It does not look like a client problem. You should review your server settings/configuration. |
@Dennis1993 Have you solved your problem? A user has the same problem you describe: files and folders disappear whereas they are still present and valid on the server, and accessible with web GUI. My user have this config:
Client GUI does not shows any error. I asked for logs, I will have it soon. This concerns a shared folder owned by another nextcloud user, but from what I know, no one else is concerned by this problem. I also precise that this is not a new install, it works since more than a year, and this problem appears since 31 of may, so not so long after server upgrade to 13.0.1 (done in april the 3rd). If you have anything that could help...! |
Removing But I don't know what happened, so here is an extract concerning a folder which was incomplete due this problem
Any idea? Thanks for your help. |
Hey, I habe no idea why the files and folders are deleted. I have downloaded the files from the webinterface and copied it manually. Now it works but I don’t know how long. I have copied all my files in another folder too, to restore my files quickly when the problem appears. This is the second time and I don’t know why. I host my Nextcloud on All-Inkl.com since 2016 and the problem exists since 2018 with Nextcloud 13 and the latest desktop sync client on windows. |
@Dennis1993 did you try what @Esprit-Libre mentioned? Do you have any client logs? |
How I wrote. I copied the files manually back and now it works. But I don't know why. I have only the posted logs and screenshots from my first post. |
Today the same problem, All my files are deleted and syncing again from the Cloud to my Windows 10 notebook. I don't know why... |
We have the same issue. |
Today the nextcloud client (2.5.1) removed my external storage again on a Windows 10 (x64) notebook. |
Strange behavior, under Windows 7 (x64) desktop pc with nextcloud client 2.5.1 the folder will never be removed. |
Today the nextcloud client (2.5.1) removed my external storage again on a Windows 10 (x64) notebook after standby mode. |
Maybe I've found a workaround. Maybe someone else can confirm that? So the problem seems to be related to the authentication mechanism. |
Hey everyone, I got the same problem twice with the new client (2.5.1), on macOS Sierra and Nextcloud 15 on our server. First time, I thought it was some error or misconfiguration on the server, on which we were still working. But the second time, the server was fine and everything was set up and running nicely. But all of a sudden, bam! 60GB disappeared from my desktop!!! Fortunately, everything was kept on the server, but I still had to download again everything... Which is always a pain, even with a good connection! How I did on my end is:
I have to precise that I have a local backup with Time Machine, but I don't really know what would happen if I use a backed up version of my files. Wouldn't they have different timestamps and mess everything up? I'm not really sure of this one... but at the end I preferred to re-download everything to be sure everything was correctly synchronized. In the server logs, I couldn't find anything. And on the app, it looks like you have to actually open the log window to start recording? If that's the case, well... I can't see anything obviously. Anyway, does anyone know if this bug is going to be fixed in the next version? This is a serious bug in my humble opinion, and I know a couple of my clients who will freak out if this happens to them. Thanks for this great app, by the way, and keep up the good work! Let me know how I can help :-) |
Hey all, I am having the same issue on Windows 10 with client version 2.5.1final (build 20181204) and Nextcloud 16. The client log file shows entries like this: #=#=#=# Syncrun started 2019-06-26T15:20:41Z Etc. I noticed that this happened as the hard drive I was syncing to was nearing its space limit and that the folder deleted was the largest of all synced folders. Let me know if I can provide any other information to help. Thanks for all the work on this great software! Edit: actually, it just happened again, with another folder on another (external) drive with plenty of storage space left. The issue is starting to worry me - are there any ideas about the cause / a potential fix? |
Hey all, But, if I change my network-connection from LAN to our WLAN (which is also part of our Domain) and sometime later back to LAN, my NextCloud-Client is deleting a bigger part of my files and folders in the network-share. mrxsmb So this Windows-Event is deciding for the losing/synchronizing the data… Did anybody of you have a similar issue? Thanks a lot! |
Hi I experienced two times this problem. |
I have no external drives in my nextcloud. I only use the default "data"-folder. |
Same symptoms. New NextCloud installation as of last weekend. Today, my client blasted a few folders seemingly unprovoked, but they appear to still be on the server, according to the client and the web interfaces. |
Is this still happening with the latest client 2.6 rc1? or the 2.5.3? Thanks |
I'm on 2.5.3daily-Win64 (build 20190725), talking to server on 16. |
I can confirm this problem on Windows client 2.5.3. |
@FlexW There is no cleanup software on my system. I could not figure out on which base the files were deleted/kept: old files were still there, and some of the new ones were missing. New directories were emptied. Looking at the log with more attention I realize the deletions occured yesterday evening, when I was doing a system update (Manjaro=rolling release…). As this software update filled the disk, I do not know if the problem was a network issue (downloading the packages while synchronizing) or a disk capacity one. I cannot drop the log file to the instance you provided, as I cannot log in. So here is an extract: from last new file uploaded before the event to the first one new one this morning when I loggeg in: |
@ChagnonG I'm sorry I provided you the wrong link. I corrected it. |
@FlexW Thank you, I uploaded the whole log this time (besides, the structure of my nextcloud is not interresting for everyone ;-) ): you will perhaps find any clue about what happened in previous records… |
Out of curiosity, was it with 3.1 or master? There's been more strengthening and handling of db write failures introduced, this could explain. It'd be good news if that turns out to finally kill #260 and #1433 |
I had with both versions no deletion issues. |
Did you strip the logs? From what you sent me I can only tell that the client removed the files because it thought they were removed from the server. Now it's unclear to me why the client thought this if the files were still on the server. We would probably need detailed logs from the server and client from the time the removal occured. |
@FlexW No, I didn't strip the logs. I'm afraid I don't have access to the logs on the server (it's a shared hosting). I; will get in touch with the support team and if I can provide you with the logs, I will send them. But don't be too optimistic… |
I was already aware, that under some normal user behavior, the sync client removes the local files. But today, i recognized, that if I remove a subfolder from the syncjob, the sync client DELETED the whole local folder. Most data of the folder, where some .qcow2 images are stored, are ignored anyway, thus not laying on the server side. Yep, these VMs are gone now, because IMHO no one even think about how to implement a correct 2-way sync to avoid data loss at as many scenarios as possible. I know it's hard. But please, for everyone's peace of mind, ask the user what to do, or even warn the user, if a subfolder is removed, or even the sync job, that it will delete the local files on the client side. This issue is open since almost 3 years, and people reporting it multiple times. How much data must be lost, because of a really misbehaving piece of software, that you don't want to fix!? IMO this is a key feature. Instead new features are more important to create, than fixing existing things. Yes, this is kinda of a bug+improvement rant. But in the end, I would like to understand the design decisions behind it. Why was it implemented that way? Is there maybe a good reason for it? |
@shurik-io I'm sorry that this happened and can feel your anger. Your issue sounds a lot different from what the other people in this thread faced. I'm not the designer of the sync algorithm, and the people that have designed it are long gone. My best bet would be that no one has thought about that particular case so far. Your report sounds like a bug and needs fixing, and I have it on my list now. It would be great if you create a separate issue with a detailed description of how to reproduce the problem and try to reproduce it with the latest pre-release (at this moment, it is 3.2.0-rc2). That would speed up the development of a fix. This thread has become a bucket for all kind of different removal reports, and the original issue might even be solved. I tried to reproduce the issues people faced but were not able to do so. If I'm not able to reproduce it, then it is nearly impossible to deliver a fix. Just for your information, the upcoming update 3.2.0 contains a major overhaul of the sync engine that will likely fix a lot of issues. Please also note that there is config option that when enabled moves files to the trash instead of deleting them. With that option enabled you should be save in all situations. We discussed internally about enabling that option by default, but we're afraid that as soon as we enable that by default, people start to report bugs that their hard drive gets full. In most situation, the client behaves fine and does the correct thing. Introducing a dialog that would ask the user about every file that gets removed would annoy a lot of users, I guess. I know you could introduce another config option for that, but the goal should be to make the sync engine behave correct in all situations. After all, I use the client for a few years now and never had my files deleted. |
I just noticed that Gentoo still uses 2.6.5. I will try to update to the newest "unstable" version, which is 3.1.3 for now. Not feeling all too adventurous though, losing my files three times was more than enough. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
To better see what is going on when and if files are removed by the client. See also: #260, nextcloud#1433, nextcloud#2913 Signed-off-by: Felix Weilbach <felix.weilbach@nextcloud.com>
I think that I just had the same issue, but I'm not sure. Here's the quick story :
I guess that the Nextcloud Client did it, for I don't see what else could have had. Sadly, the log wasn't activated, so I have no way to see how and why it was done for sure. |
I think that you problem is unrelated to this bug that is about a bug when disc is almost full and internal state of the client gets corrupted until it sends delete order to the server. |
Thank you, @mgallien ! You're right; it looks like I wasn't in the right place. Since I'm unable to have any access to the logs, I'll try to see if I can replicate it before posting a report. |
This bug report did not receive an update in the last 4 weeks. Please take a look again and update the issue with new details, otherwise the issue will be automatically closed in 2 weeks. Thank you! |
This bug report is getting automatically closed due to no answer since the issue has been staled. Thank you! |
Do you know the config key string for the option to move things to trash, or have a link to the documentation? It is still an an issues, or at least as of 2021-11-12 when my nextcloud instance decided to erase all of my documents. |
This partially saved me. Partially, because there is some limit on folder size so that it did not work for all folders. |
Hey,
yesterday my nextcloud sync client on my windows Server 2016 deletes one folder with 8.2 GB files! I can't sync it back. On my local hard drive are all files removed. Online in nextcloud the files are there. Where I can find the log?
It is a bug?
What can I do to resync the files?
Which info are useful to find the bug?
EDIT: I can see the message in the log "Stat fehlgeschlagen" for the files... WHY?
My log file:
It works since January of 2018 but yesterday that... :(
EDIT2: I found more Information about this bug. Maybe it is a Server problem and not a client problem?!
I use the latest NC13.0.1 on ALL-INKL.COM with PHP 7.2 and MySQL 5.7
The text was updated successfully, but these errors were encountered: