DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

dcd files and Synology NAS cloudstation

Started by Mercator, August 09, 2015, 10:21:20 PM

Previous topic - Next topic

0 Members and 0 Guests are viewing this topic.

Mercator

I have a Synology NAS and use Cloudstation to automaticly backup my working directories.
From time to time the dcd files are deleted on my pc.
The NAS says "admin deleted". Ofcourse i did not delete the file.
This only seems to happen with the dcd files. I still hve the bak (on PC) and autosavefiles (on the NAS)
Most of the time  i could get my work back from the NAS.
Anyone else has this problem?

Rob S

Never heard of one of those, til now.

So, without any info other than what I saw on a quick search, I would think you might have more success with posting this on a Synology forum, only thing I can think would be it must use or handle the .dcd file extension in some way that is unusual.


User since forever

Robert Willis

I have a Synology NAS but do not use the Cloudstation backup. I manually copy a ;larger number of DCD files on a regular basis to the NAS and have not had any random deletes. I have been doing this on my  original DS1511+ and new DS1815+

You might try copying the files to the NAS folder other than the ones managed by the Cloudstation application and see if you have the same issue.

What specific Synology NAS are you using and what are the versions of the NAS OS and Cloudstation application.

Mercator

Hi,

I have a DS415+ and use the latest DSM.
It just happened 5 minutes ago.
I lost the last things i did.
Strange. Anoying.
I have the bak file but it alse misses the last changes.
How does the bak file work? Does it get updated when i close dc?
Have there been problems closing dc without dc asking to save?

Thx, Stefan

Dr PR

#4
Stefan,

In the "Options/Options/General" tab there is an "Enable saving BAK files" option. This must be enabled to save backup (.BAK) files. I think it is enabled by default because I don't ever remember setting this option and I save backup files.

There is also an "Autosave timer" option that causes the program to save a backup file (if enabled) at the interval set in the "minutes" box. However, this option interrupts your work and may cause you to miss a point of fail to execute a command. If you are working with very large files this option will interrupt your drawing periodically for several seconds while the files are being written, and this can be very annoying if you are in the middle of setting up a complex command.

If the backup option is enabled DesignCAD saves a backup every time you save the file ("File/Save" or CTRL S) and when the program closes. If the program crashes the most recent changes (after the last file save) are lost.

I save the file every time I stop to think about the next drawing changes - it is a reflex action. For me this is much better than the autosave option.

Note: the backup file is often twice as large as the main file - it looks like the program saves all of working memory including temporary data. The temporary data is not saved in the main file. If you open a large backup file and then save the drawing the temporary data will be flushed from the main drawing file.

Phil



DesignCAD user since 1987

Mercator

Dr PR,

Thanks for the reply. I tried all these things. Bak is always on but not always seem to have the last changes?

Synology support told me :

"We have found information regarding the situation and it was related to the behavior of user's CAD program.
Upon closing the program, it actually delete the file, rebuild and add it back.
We could clearly see Cloud Station detected the change and tried to catch up the events:
aug 18 20:14:40 [INFO] event-list2.cpp(1892): [Push Event] = [Event<EV_REMOVE>:
  • /dossiers/114/11410221/11410221-francine.dcd (local,file)
    aug 18 20:14:40 [INFO] event-list2.cpp(1892): [Push Event] = [Event<EV_ADD>:
  • /dossiers/114/11410221/11410221-francine.dcd (local,file)
    aug 18 20:14:40 [INFO] event-list2.cpp(1892): [Push Event] = [Event<EV_MODIFY>:
  • /dossiers/114/11410221/11410221-francine.dcd (local,file)
    aug 18 20:14:40 [INFO] event-list2.cpp(1892): [Push Event] = [Event<EV_MODIFY>:
  • /dossiers/114/11410221/11410221-francine.dcd (local,file)
    All the events above happened altogether in a very short period of time, so it could be possible that Cloud Station detected first change and deleted the file. This is the moment user would see the following screen: the file got deleted already, but on the other hand, it is being prepared for upload again.
    Basically the user needs to wait till the file is successfully uploaded after being prepared.
    As long as the Cloud Station reports all the files are up to date, user's file should be saved properly."

    Meaning i should have some time between saving the file and closing dc.
    DC deletes the file and restores it within tenths of a second?

    I will let you know if this is the solution.

    Stefan

Rob S

Not sure if I understand correctly, but I always thought Windows program was supposed to save a temp file, and once successfully saved, it deletes the original and renames the temp file.

This way, there is always a valid saved file on the disk.   I'm not sure if this is windows api funtion or function built into program.

I also did not know that DC did not follow this convention
User since forever

DrollTroll

#7
It's an oddity of the compound file format that DesignCAD uses (Microsoft technology, not invented here) that when a file is saved it does have a lot of redundant information adding useless "bulk" to the file. This excess doesn't get removed until the file is re-opened. To avoid unnecessary disk usage, we save the file, re-open it, then save it again during the Save operation.

It was never a  problem when users always saved locally; however it's becoming one with the increased use of network and cloud storage solutions. I'll check with programming to see if there's a better way to do this that doesn't trigger such unintended consequences.

Also, if I recall correctly, the .bak file is the previous saved version of the file. So if you saved yesterday, then open the drawing and work on it for two hours today then save again, the bak is the version that you saved yesterday.
25 years with DesignCAD

Mercator

Thx,

I guess i will wait a while before closing dc.
I wonder, does it happen when i close dc and dc asks if i want to save?
I will test that and let you know.

Stefan.

Dr PR

Stefan,

I'm not sure I follow all of the details here, but you might try saving the file manually (CTRL S) before you close the file or shut down the program. I think this will make the backup file the same as the saved file, so if one is lost you will still have the other.

Another trick some people use is to occasionally save the file when you are working on it using sequential names, like "file1," "file2," "file 3," etc. Then occasionally you can just rename the last saved version "file" and delete the rest. Start over using sequential names the next time you edit it.

Phil
DesignCAD user since 1987

DrollTroll

Just a follow-up note on this.

We've looked into this problem, and made some modifications to how DesignCAD saves files. Now it saves the file first to a local temp directory, then tries to copy it to the final destination, renaming the original file in the destination to a .bak if present. If the copy is successful the temp file is deleted. If the copy is unsuccessful (due to slow network response times, temporary loss of the network connection, write permissions in the destination folder, or whatever), DesignCAD will let you know of the failure and tell you the location and name of the temp file so you can copy it manually or move it somewhere else convenient.

So far it seems to work well on my WD MyCloud drive and with DropBox.

Look for this improvement in the 25.1 update patch coming within a few weeks.
25 years with DesignCAD