SeaDrive problem with AutoCAD

Hi everyone,

For a few weeks I am happy owner of a brilliant seafile system and am in the process of discovering its capabilities.

I regret to say that SeaDrive can not be used by AutoCAD users. After saving a DWG file to disk s: it is not possible to reopen it: “Drawing file is not valid.” Only Desktop Sync Client works fine. It’s a shame because I like idea of SeaDrive…

[details=seadrive.log] [10/11/17 11:13:29] file-cache-mgr.c(2096): Failed to stat C:/Users/Damian/seadrive/data\file-cache\b7d9bc81-4555-4d47-a695-e3b9b32bab19\Drawing2.dwl: No such file or directory.
[10/11/17 11:13:29] sync-mgr.c(2317): Failed to index file Drawing2.dwl in repo b7d9bc81-4555-4d47-a695-e3b9b32bab19, skip.
[10/11/17 11:13:29] file-cache-mgr.c(2096): Failed to stat C:/Users/Damian/seadrive/data\file-cache\b7d9bc81-4555-4d47-a695-e3b9b32bab19\Drawing2.dwl2: No such file or directory.
[10/11/17 11:13:29] sync-mgr.c(2317): Failed to index file Drawing2.dwl2 in repo b7d9bc81-4555-4d47-a695-e3b9b32bab19, skip.[/details]

When you start a DWG file on a physical disk, temporary, hidden files - filename.dwl and filename.dwl2 - are created. When you close the program, these files are deleted. SeaDrive does not delete these files. Maybe there is a problem?

Hi,

Can you reproduce the problem and send me the operation journal file for analysis? You can find the journal file under C:\users\username\seadrive\data\journals<library_id>.journal

Please upload the file to https://download.seafile.com/u/d/5cd866f6eb6741999afc/

Thanks

Hi @Damian_Kozuszek ,

I looked at the journal and find that the hidden files are deleted. Perhaps it’s just a display issue in Windows explorer. The “ghost” files will disappear after a refresh.

So I still don’t know why the file is invalid from the information of the journal. We tried with AutoCAD 2007 but the issue cannot be reproduced with that version. Which version of AutoCAD do you use?

I’m using AutoCAD 2010, x64. Today I install DraftSight, free CAD soft. No problem with this. Saving and reopening file is possible. Opening it by AutoCAD 2010 is olso possible but when I try to save modifications the file became corrupted and can’t be opened by any CAD program.
I attach corrupted file here.

Hi @Damian_Kozuszek Sorry for late reply. Can you set an environment variable in Windows? This will produce detailed operations in the seadrive.log file. Just set ‘SEADRIVE_DEBUG’ env variable to ‘fs’.

Thanks.

Hi @Damian_Kozuszek

We installed AutoCAD 2010 but still cannot reproduce your problem. Can you upload an example file that can reproduce this issue?

Hi @Jonathan,

I don’t understand. I have this problem on two PCs. Both on Windows 10 x64. AutoCAD 2010 also 64 bit version. Have You try to Save (Ctrl+S), not Save As… (Ctrl+Shift+S)?

Yes, You were right. The temporary files I mentioned before (.dwl, .dwl2) were delated after closing AutoCAD. They are created when use Save As… option. When You use Save option (Ctrl+S) also .bak file is created (no matter is it physical drive or seadrive).

I set environment variable as You wish but I can’t see any difference in .log file. Anyway here is new log:

[details=seadrive.log]
[11/07/17 11:14:02] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘synchronized’ to ‘committing’.
[11/07/17 11:14:02] sync-mgr.c(2635): All operations of repo Firmowe(282bc249) have been processed.
[11/07/17 11:14:02] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘committing’ to ‘uploading’.
[11/07/17 11:14:02] http-tx-mgr.c(3878): Upload with HTTP sync protocol version 1.
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[11/07/17 11:14:02] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[11/07/17 11:14:02] sync-mgr.c(2261): removing blocks for repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2
[11/07/17 11:14:02] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘uploading’ to ‘get sync info’.
[11/07/17 11:14:02] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘get sync info’ to ‘synchronized’.
[11/07/17 11:14:19] file-cache-mgr.c(1848): Failed to stat repo tree path savFD12.tmp in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/07/17 11:14:19] file-cache-mgr.c(454): Failed to stat repo tree path savFD12.tmp in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/07/17 11:14:22] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘synchronized’ to ‘committing’.
[11/07/17 11:14:22] file-cache-mgr.c(2083): Failed to stat C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing1.dwl: No such file or directory.
[11/07/17 11:14:22] sync-mgr.c(2317): Failed to index file Drawing1.dwl in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2, skip.
[11/07/17 11:14:22] file-cache-mgr.c(2083): Failed to stat C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing1.dwl2: No such file or directory.
[11/07/17 11:14:22] sync-mgr.c(2317): Failed to index file Drawing1.dwl2 in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2, skip.
[11/07/17 11:14:22] sync-mgr.c(2635): All operations of repo Firmowe(282bc249) have been processed.
[11/07/17 11:14:22] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘committing’ to ‘uploading’.
[11/07/17 11:14:22] http-tx-mgr.c(3878): Upload with HTTP sync protocol version 1.
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[11/07/17 11:14:22] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[11/07/17 11:14:22] sync-mgr.c(2261): removing blocks for repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2
[11/07/17 11:14:22] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘uploading’ to ‘get sync info’.
[11/07/17 11:14:22] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘get sync info’ to ‘synchronized’.
[11/07/17 11:14:24] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘synchronized’ to ‘committing’.
[11/07/17 11:14:24] sync-mgr.c(2635): All operations of repo Firmowe(282bc249) have been processed.
[11/07/17 11:14:24] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘committing’ to ‘uploading’.
[11/07/17 11:14:24] http-tx-mgr.c(3878): Upload with HTTP sync protocol version 1.
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[11/07/17 11:14:24] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[11/07/17 11:14:24] sync-mgr.c(2261): removing blocks for repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2
[11/07/17 11:14:24] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘uploading’ to ‘get sync info’.
[11/07/17 11:14:24] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘get sync info’ to ‘synchronized’.
[11/07/17 11:14:32] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘synchronized’ to ‘committing’.
[11/07/17 11:14:32] sync-mgr.c(2635): All operations of repo Firmowe(282bc249) have been processed.
[11/07/17 11:14:32] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘committing’ to ‘uploading’.
[11/07/17 11:14:32] http-tx-mgr.c(3878): Upload with HTTP sync protocol version 1.
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[11/07/17 11:14:32] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[11/07/17 11:14:32] sync-mgr.c(2261): removing blocks for repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2
[11/07/17 11:14:32] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘uploading’ to ‘get sync info’.
[11/07/17 11:14:32] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘get sync info’ to ‘synchronized’.
[11/07/17 11:14:32] file-cache-mgr.c(1848): Failed to stat repo tree path Drawing1.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/07/17 11:14:32] file-cache-mgr.c(454): Failed to stat repo tree path Drawing1.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/07/17 11:14:32] file-cache-mgr.c(1617): [cache] Failed to rename C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\sav2FE6.tmp to C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing1.dwg: Permission denied
[11/07/17 11:14:36] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘synchronized’ to ‘committing’.
[11/07/17 11:14:36] file-cache-mgr.c(2083): Failed to stat C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing1.dwl: No such file or directory.
[11/07/17 11:14:36] sync-mgr.c(2317): Failed to index file Drawing1.dwl in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2, skip.
[11/07/17 11:14:36] file-cache-mgr.c(2083): Failed to stat C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing1.dwl2: No such file or directory.
[11/07/17 11:14:36] sync-mgr.c(2317): Failed to index file Drawing1.dwl2 in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2, skip.
[11/07/17 11:14:36] sync-mgr.c(2635): All operations of repo Firmowe(282bc249) have been processed.
[11/07/17 11:14:36] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘committing’ to ‘uploading’.
[11/07/17 11:14:36] http-tx-mgr.c(3878): Upload with HTTP sync protocol version 1.
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘init’) → (‘normal’, ‘check’)
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘check’) → (‘normal’, ‘commit’)
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘commit’) → (‘normal’, ‘fs’)
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘fs’) → (‘normal’, ‘data’)
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘data’) → (‘normal’, ‘update-branch’)
[11/07/17 11:14:36] http-tx-mgr.c(1145): Transfer repo ‘282bc249’: (‘normal’, ‘update-branch’) → (‘finished’, ‘finished’)
[11/07/17 11:14:36] sync-mgr.c(2261): removing blocks for repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2
[11/07/17 11:14:36] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘uploading’ to ‘get sync info’.
[11/07/17 11:14:36] sync-mgr.c(561): Repo ‘Firmowe’ sync state transition from ‘get sync info’ to ‘synchronized’.[/details]

Drawing1.dwg and Drawing1.bak are saved on seadrive. They are broken
Drawing2.dwg and Drawing2.bak are saved on physical drive. They are healthy.
Moreover the Drawing1.dwg file size displayed on the seadrive is 56 KB. The real file size is 0 KB. (Polish language on screenshot)

Hi @Damian_Kozuszek I found some clue from you log and screenshot. Can you restart your SeaDrive after setting the environment variable? That should make more log messages available (quite verbose actually). I need the information to confirm my guess.

It should be related to these few lines.

Do you see these few lines appear a lot in your log file?

Hi @Jonathan,

I attach full seadrive.log file. Seadrive restarted at [11/08/17 13:41:03]. File path: Firmowe/Test/Drawing3.dwg

Hi @Damian_Kozuszek Can you try the new version 0.8.2?

Hi all,

You may take a look at this thread on the autodesk support

Autocad s not supported on DFS, which is a kind of a cache file system that may be similar to Seadrive architecture.

Regards

Gautier

SeaDrive should work and feel like accessing a native file system like NTFS.

It’s still doesn’t work. It seems that nothing changed after Your update @Jonathan.

@gauburtin:
Autocad s not supported on DFS…

Maybe this is the answer?..
If anyone wants to figure it out, I attach log file.

[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(2210): Cleanup \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(2267): Close \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(1101): CreateFile \Firmowe\Drawing4.dwg called. desired_access: 0x120089, share_access: 7, file_attributes: 0x0,create_disposition: 0x3, create_options: 0x60
[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] file-cache-mgr.c(732): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg:Permission denied.
[11/13/17 11:35:32] file-cache-mgr.c(835): Failed to start cache task for file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] file-cache-mgr.c(931): Failed to open handle to cached file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] dokan-ops.c(664): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg with flags 0
[11/13/17 11:35:32] dokan-ops.c(56): CreateFile \Firmowe\Drawing4.dwg: IO error
[11/13/17 11:35:32] dokan-ops.(1101): CreateFile \Firmowe\Drawing4.dwg called. desired_access: 0x120089, share_access: 7, file_attributes: 0x0,create_disposition: 0x3, create_options: 0x4060
[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] file-cache-mgr.c(732): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg:Permission denied.
[11/13/17 11:35:32] file-cache-mgr.c(835): Failed to start cache task for file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] file-cache-mgr.c(931): Failed to open handle to cached file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] dokan-ops.c(664): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg with flags 0
[11/13/17 11:35:32] dokan-ops.c(56): CreateFile \Firmowe\Drawing4.dwg: IO error
[11/13/17 11:35:32] dokan-ops.(1101): CreateFile \Firmowe\Drawing4.dwg called. desired_access: 0x12019f, share_access: 1, file_attributes: 0x80,create_disposition: 0x3, create_options: 0x60
[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] file-cache-mgr.c(732): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg:Permission denied.
[11/13/17 11:35:32] file-cache-mgr.c(835): Failed to start cache task for file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] file-cache-mgr.c(931): Failed to open handle to cached file Drawing4.dwg in repo 282bc249-c9ad-4b5a-b56c-35689a6a4fd2.
[11/13/17 11:35:32] dokan-ops.c(664): Failed to open file 282bc249-c9ad-4b5a-b56c-35689a6a4fd2/Drawing4.dwg with flags 2
[11/13/17 11:35:32] dokan-ops.c(56): CreateFile \Firmowe\Drawing4.dwg: IO error
[11/13/17 11:35:32] dokan-ops.(1101): CreateFile \Firmowe\Drawing4.dwg called. desired_access: 0x100080, share_access: 7, file_attributes: 0x0,create_disposition: 0x3, create_options: 0x200160
[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(2210): Cleanup \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] [11/13/17 11:35:32] dokan-ops.(2267): Close \Firmowe\Drawing4.dwg called.
dokan-ops.(1101): CreateFile \Firmowe\Drawing4.dwg called. desired_access: 0x80, share_access: 7, file_attributes: 0x0,create_disposition: 0x3, create_options: 0x200000
[11/13/17 11:35:32] dokan-ops.(633): Open file Drawing4.dwg in repo Firmowe(282bc249)
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(231): GetFileInformation \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(2210): Cleanup \Firmowe\Drawing4.dwg called.
[11/13/17 11:35:32] dokan-ops.(2267): Close \Firmowe\Drawing4.dwg called.

looks as it could be useful.

Hi @Damian_Kozuszek

The fix we build doesn’t make difference. In the log I can still see the messages below:

[11/13/17 11:54:05] file-cache-mgr.c(1646): [cache] Failed to rename C:/Users/Damian/seadrive/data\file-cache\282bc249-c9ad-4b5a-b56c-35689a6a4fd2\sav4098.tmp to C:/Users/Damian/seadrive/data\file-cache\
282bc249-c9ad-4b5a-b56c-35689a6a4fd2\Drawing11.dwg: Permission denied

AutoCAD saves the new version to a tmp file then rename it to dwg. Before this, it first renames to original dwg file to bak file. I don’t know why the file is locked and reports permission denied.

We’ll keep looking into the issue.

1 Like

I’m glad to inform that new version of seadrive (0.8.3) works good in the discussed aspect. None of the previous problems arise.
Thank You @Jonathan and whole crew for this fix. More such people in the world!

1 Like