Files are unwantedly deleted from NAS

I switched from Windows to Linux (OpenSuse Tumbleweed) and mount the NAS using fstab with cifs. Shotyly after installing opensuse I noticed files disappearing. Those files were opened using Libreoffice and then closed normally. The log on the NAS shows temporary files being created and deleted and it also shows the file itself getting deleted zero to two minutes after the deletion of the last lock file. This problem did not occur on windows (windows 10).

I am using SMB-protocol and had it set to 2.0. When I moved that to 3.0 the problem seemed to disappear but recently it returned (since abt 2 weeks) up to the point that I now check all recycle boxes on the NAS for deleted files before I dare to close the computer.

Is this a known issue with either synology or opensuse? If so, can it be prevented/solved?

My head would be on a pike at work if there was a general issue like that with smb 2.0 / cifs mounts on tumbleweed.

Possibly something weird with save in libreoffice (granted, this is pretty old)?:

I had them originally saved in F:\epubs\folder-name\file-name

It moved them to: F:\bookcovers\file-name

in other words it saved them in the next folder (alphabetically) above the folder they were originally in. Not sure why it did that. But, try checking in the other folders that start with the same letter (C:\ etc) as where they were originally, and see if it did the same thing to your’s that it did to mine.

Files were not moved (well, they did get moved to #recycle but not to any other directory) Know pretty sure since I do synchronisation with a usb-stick so I would have noticed duplicates showing up in the list of modified files.

I did find similar problems in posts from around 2013 but those were about directories being deleted randomly, not files just after closing them. Those threads did not have answers in them and since the problem disappeared when I switched to smb3 I figured the problem was solved in smb3.

But since it has reappeared now: have there been changes in anything that might influence use of files on cifs-mounts in the past 2 weeks? (I do the daily updates).

My guess would be that libreoffice creates temporary files for recovery purposes which are deleted once the main file is saved or a new temporary file is created (at least: that is the behavior I’m seeing in the NAS-log). Somehow the main file gets deleted as well: can it be that it is marked as temporary by libreoffice, opensuse or the NAS when the file has been open for too long or something like that?

I notice the problem with libreoffice but that may be just because that is what I use all day. I do know that opensuse handles NAS-access in a different way than other distributions (something with K-native programs using a different way to access remote files). That is the reason I have to mount the NAS in fstab to be able to use it in libreoffice (accessing it using dolphin it will download the files and try to upload them to the NAS again).

Just happened again. I was editing a file, tried to save it and got an error that the file did not exist. It had been moved to #recycle while I was working in the file.
Saving the file “ignoring changes others may have made” did work but this is not something I want to have lingering over my head when I’m working. I did get used to Linux / Opensuse and started to like it so this is a bit of a disappointment.

I ran into this thread: where does LibreOffice put the backup files? - #7 by AlAdams12 - English - Ask LibreOffice
and looked at the settings of libreoffice in windows and in opensuse. It appears the windows default is that “Always create backup copy” is not checked whereas the opensuse default is that it is checked. Since previous mentions of this problems indicated that there might be issues with backup copies of files, I unchecked the option in opensuse to see whether that solves the problem.

And this did not solve the problem.

Came across this suggestion to add nobrl in fstab but that doesn´t help either.

Topic can be closed. Apparently nobody interested and I’m stopping here. I’m afraid Linux is still not usable in everyday office use. It looked promising but alas, back to windows it is.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.