File delete issue (automatic)

sukarechhe

Dabbler
Joined
Nov 16, 2021
Messages
35
And yes, I don't have raised a question on TRUENAS :) I love this OS. Just this issue has made some hustle and bustle in my working environment. :D
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Thank you for those answers.

What are examples of the file names that are being deleted automatically?
 

sukarechhe

Dabbler
Joined
Nov 16, 2021
Messages
35
Almost all, these are being supported by Adobe Photoshop, 99.99% work on Images Processing .. like PSD, Tiff, PNG, JPEG, JPG, BMP, GIF, PS etc
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
Something to try to aid in the troubleshooting effort:

I would recommend that your users copy the file to their local workstations and edit the file there, then once done, copy the file back to the server, and leave a copy of that file on the workstation until after you have verified the file was properly copied. Do not use Photoshop to save the file directly to the NAS.

If the files continue to disapear then you know for certain the problem is with TrueNAS. If the files remain then the problem was with the workstation/Photoshop. By the way, I found a lot of complaints about files disappearing with Photoshop. I don't know if that was human error or actually being deleted by the program.

This is the only troubleshooting step I can think on at this time and likely the only way you will figure out what is causing the problems.
 

Davvo

MVP
Joined
Jul 12, 2022
Messages
3,222

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
If 1 member has an open file on his/her computer and another member opens the same file on his/her computer then sometimes files get deleted.
And I finally read this line and I somehow overlooked it. What you want, I don't think you can have. I don't know if it's at all possible to edit one graphic file on more than one computer at a time unless using solution #2 listed below. There are databases which allows more than one user to edit a database file but they are designed to allow this to happen. I would also question if in the past the graphic editing was saved without any edited data loss.

Look at it this way and if I'm wrong, someone will most certainly reply to correct me:

1. User 1 opens the graphic file "Toads.tiff" for editing and starts to edit the left upper corner of the image.
2. User 2 opens the graphic file "Toads.tiff" for editing and starts to edit the lower right corner of the image.
3. After some editing User 1 saves the edits. This writes over the file on the NAS, now this is the new file.
4. For User 2, the graphic image only displays the original image and the editing they have done. Now they save the image. The NAS now has a graphic image that resembles "only" the version of the file that User 2 saved. Any changes User 1 made are gone.

Why does a file get deleted? I can't say but having two users editing the same file does not sound good unless the software was written to support it.

The solution:
1. Do not let your users edit the same file at the same time.
2. Use Collaborative Cloud Editing for Photoshop which requires a Creative Cloud subscription.

Maybe there is a similar way to do collaborative editing without the cloud, but this is going to be a Photoshop feature.
 
Last edited:

sukarechhe

Dabbler
Joined
Nov 16, 2021
Messages
35
Appreciated the wonderful input and suggestions this community has provided so far. Ok, I have a question whether in Ubuntu+SMB it never happened, Truenas itself used SMB. Am I lacking anything which is out of my knowledge?
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
I'm not sure if anyone here will be able to answer your question unfortunately. If you really feel this is an SMB problem, you can force TrueNAS to use an older SMB protocol. Read the User Guide for how to make this change in the GUI. I do not know why Ubuntu+SMB would work, I don't understand how you can collaborate editing an image by two people at the same time without the program being designed to support it. My recommendation still stands, I feel you should copy the file to the local workstation, edit and save the file to the NAS, then the next person can edit the file. You can edit the file while it's on the NAS but only one person at a time should be editing the file.

If you do feel you find a solution, I recommend you verify the results of a graphic file after two separate workstations edit the file at the same time.

While I hope you find a solution while using TrueNAS, ultimately you need to do what is best for your business. Maybe that is moving back to Ubuntu. It is a solid operating system.

Best of luck to you.
 

sukarechhe

Dabbler
Joined
Nov 16, 2021
Messages
35
Hello @joeschmuck , Thanks for the response. I didn't mean that two workstations opening a single file at the same moment. What is happening, In a single folder there are multiple files and they are working in separate files. But the folder is the same. And from the folder, any random file gets deleted. My observation says when people are working on that folder then it generates some .tmp files as you can see in my screenshot uploaded previously. I have double that it generates the same named .tmp and the image file is getting deleted. I hope I have clear things :)
 

joeschmuck

Old Man
Moderator
Joined
May 28, 2011
Messages
10,996
That makes a big difference. It has cleared things up a lot. Are you certain it generates the identical file name? I would not think that would be possible, but I do see it would generate another set of temporary (.tmp) files. Can't you configure Photoshop to tell it where to place the temporary files? Maybe set it to the workstation editing the file vice leaving it at the default. Maybe it is an SMB issue, use the TrueNAS GUI to change the version and test.
 
Top