Local Data Corrupt

Hello,

I downloaded a clean zip file containing png pictos yesterday. I extracted them on our Seafile Server via Seadrive.
That’s when Seadrive stopped syncing with Seafile.

I get the error "Local data is corrupt".

The Log gives me this:
[08/30/17 11:45:55] sync-mgr.c(561): Repo ‘BEE SECURE 4’ sync state transition from ‘synchronized’ to ‘uploading’.
[08/30/17 11:45:55] http-tx-mgr.c(3850): Upload with HTTP sync protocol version 1.
[08/30/17 11:45:55] http-tx-mgr.c(1117): Transfer repo ‘f71511b0’: (‘normal’, ‘init’) --> (‘normal’, ‘check’)
[08/30/17 11:45:55] http-tx-mgr.c(1117): Transfer repo ‘f71511b0’: (‘normal’, ‘check’) --> (‘normal’, ‘commit’)
[08/30/17 11:45:55] http-tx-mgr.c(1117): Transfer repo ‘f71511b0’: (‘normal’, ‘commit’) --> (‘normal’, ‘fs’)
[08/30/17 11:45:55] http-tx-mgr.c(1117): Transfer repo ‘f71511b0’: (‘normal’, ‘fs’) --> (‘normal’, ‘data’)
[08/30/17 11:45:55] fs-mgr.c(591): [fs mgr] Failed to read file ff3242fc6806d32317faf4a17f33317d4ebc6a48.
[08/30/17 11:45:55] http-tx-mgr.c(3586): Failed to get file ff3242fc6806d32317faf4a17f33317d4ebc6a48 in repo f71511b0.
[08/30/17 11:45:55] http-tx-mgr.c(1117): Transfer repo ‘f71511b0’: (‘normal’, ‘data’) --> (‘error’, ‘finished’)

Can someone help me with advise?

Thanks

Jeff

Looks like it failed to receive an object.

Can you have a look at seafile-data/fs/ff/3242fc6806d32317faf4a17f33317d4ebc6a4 (on the server - as long as you own it)

Is the file owned by the correct user, is it accessible?

I solved the problem.

I deinstalled SeaDrive Desktop Client.
I removed local copy of our Seafile Server.
I re-installed SeaDrive Desktop Client.
The Auto-Syncing of Seafile Server created a new local copy that didn’t have the local corrupted data issue.

Thank you anyways.

@daniel.pan I think this happens too often and there is an issue. The client does not reliably recovers automatically from such error cases.

There was a similar bug in some old version of SeaDrive. Are you using the latest version?

My seadrive clients fails every day with the same error (local data is corrupt), i found at least 1 file that is on om my local storage but not on my server repository, now i am not shure if there are more file which are going to be “lost” when i just delete en reinstall seadrive (i have the latest version installed).

Anybody any advise??

Kind Regards
Gerard

Your issue may not be related to this bug. What do you see in seadrive.log? An easy way to fix this problem is logout and login to the account. Any files that are not yet uploaded will be uploaded again. No data will be lost.

UPDATE: You should not choose to clear the cache. Otherwise files not uploaded will be removed.

I appreciate your advise and effort, but be aware i lost several document that where in the cache.

Kind Regars
Gerard

Do you have anti virus software running? It may remove “suspicious” seafile metadata files.

Well, I did this and lost all the data that was not uploaded. And now after logging in again it doesn’t want to sync My Library at all - in finder it just show the grey icon with dash in it.

after restarting the client a few times, it started syncing. some of the data was gone, but I could just copy it again…

Damn right, this happens many times on different computers (windows and mac).

Only solution I found is to logout/login with clearing the local cache, otherwise on logging back error remains.

When I do this I copy any unsynced data from the local cache (C:/Users/username/seadrive/data/file-cache on Windows) somewhere else in the drive and I log back in.

Reference to the related github issues below (if anyone cares about them…) :

We pay 500$ a year (10+ users) for Seafile Server Pro and clearly Seadrive despite the statements in not production ready (majority of the issues still unfixed).

  • Seadrive 1.0.3
  • Seafile Server Pro 6.3.12
  • Windows 1809
  • MacOS 10.12
3 Likes

Did you choose to clear the cache?

I believe these issue are likely caused by AV software or other environmental issues. If they’re real bus we’ll try to fix them.

Yes I cleared the cache and I can verify that the cache folder is correctly emptied in “C:/Users/username/seadrive/data/file-cache”

No antivirus software is installed and embedded windows security features such as Realtime protection and Windows defender are disabled.

I have updated to seadrive 1.0.4 and will let you know if issue remains.

I didn’t clear the cache, as far as I remember. It seems to work now however.

Well it didn’t take long… same issue on Windows computer Seadrive 1.0.4

[04/28/19 21:58:14] sync-mgr.c(572): Repo 'library' sync state transition from 'synchronized' to 'uploading'.
[04/28/19 21:58:14] http-tx-mgr.c(3921): Upload with HTTP sync protocol version 2.
[04/28/19 21:58:14] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'init') --> ('normal', 'check')
[04/28/19 21:58:14] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'check') --> ('normal', 'commit')
[04/28/19 21:58:14] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'commit') --> ('normal', 'fs')
[04/28/19 21:58:14] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'fs') --> ('normal', 'data')
[04/28/19 21:58:14] fs-mgr.c(591): [fs mgr] Failed to read file 34337d171376b73362632adf82601b14dd7dc13c.
[04/28/19 21:58:14] http-tx-mgr.c(3657): Failed to get file 34337d171376b73362632adf82601b14dd7dc13c in repo 788520a8.
[04/28/19 21:58:14] fs-mgr.c(591): [fs mgr] Failed to read file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6.
[04/28/19 21:58:14] http-tx-mgr.c(3657): Failed to get file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6 in repo 788520a8.
[04/28/19 21:58:14] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'data') --> ('error', 'finished')
[04/28/19 21:58:14] sync-mgr.c(606): Repo 'library' sync state transition from uploading to 'error': 'Error occured in upload.'.
[04/28/19 21:58:45] sync-mgr.c(572): Repo 'library' sync state transition from 'synchronized' to 'uploading'.
[04/28/19 21:58:45] http-tx-mgr.c(3921): Upload with HTTP sync protocol version 2.
[04/28/19 21:58:45] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'init') --> ('normal', 'check')
[04/28/19 21:58:45] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'check') --> ('normal', 'commit')
[04/28/19 21:58:45] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'commit') --> ('normal', 'fs')
[04/28/19 21:58:45] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'fs') --> ('normal', 'data')
[04/28/19 21:58:45] fs-mgr.c(591): [fs mgr] Failed to read file 34337d171376b73362632adf82601b14dd7dc13c.
[04/28/19 21:58:45] http-tx-mgr.c(3657): Failed to get file 34337d171376b73362632adf82601b14dd7dc13c in repo 788520a8.
[04/28/19 21:58:45] fs-mgr.c(591): [fs mgr] Failed to read file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6.
[04/28/19 21:58:45] http-tx-mgr.c(3657): Failed to get file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6 in repo 788520a8.
[04/28/19 21:58:45] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'data') --> ('error', 'finished')
[04/28/19 21:58:45] sync-mgr.c(606): Repo 'library' sync state transition from uploading to 'error': 'Error occured in upload.'.
[04/28/19 21:59:17] seadrive.c(684): Starting SeaDrive client 1.0.4
[04/28/19 21:59:17] seadrive.c(686): SeaDrive client source code version 8c46d3abbb61ecca14e466511501d002a3b0248f
[04/28/19 21:59:17] seadrive.c(709): rpc server started.
[04/28/19 21:59:17] seadrive.c(724): Limit access to current user session only.
[04/28/19 21:59:17] seadrive.c(729): Mount virtual drive as removable disk.
[04/28/19 21:59:21] repo-mgr.c(2539): switching account to https://server.exemple.com username@exemple.com.
[04/28/19 21:59:23] sync-mgr.c(572): Repo 'fontbase' sync state transition from 'synchronized' to 'committing'.
[04/28/19 21:59:23] sync-mgr.c(572): Repo 'typos' sync state transition from 'synchronized' to 'committing'.
[04/28/19 21:59:23] sync-mgr.c(2566): All operations of repo fontbase(528f7112) have been processed.
[04/28/19 21:59:23] sync-mgr.c(572): Repo 'fontbase' sync state transition from 'committing' to 'synchronized'.
[04/28/19 21:59:23] sync-mgr.c(2566): All operations of repo typos(30afb895) have been processed.
[04/28/19 21:59:23] sync-mgr.c(572): Repo 'typos' sync state transition from 'committing' to 'synchronized'.
[04/28/19 21:59:23] repo-mgr.c(653): Failed to apply op to repo tree of 788520a8-60e4-4b19-b496-5a858c764478: No such file or directory.
Op details: 1 FOLDER B/SUB_FOLDER/A9Reeexvm_1up3jv9_1o4.tmp (NULL) 0 0 0
[04/28/19 21:59:25] repo-mgr.c(1011): Updating cached file 788520a8-60e4-4b19-b496-5a858c764478/FOLDER/SUBFOLDER/FOLDER/file.aep in tree.
[04/28/19 21:59:25] repo-mgr.c(1017): Cached file: mtime 1556324832, size 1174211
Extended attrs: mtime: 1556324831, size 0
Repo tree: mtime: 1556314708, size 935635
[04/28/19 21:59:27] sync-mgr.c(1419): All repo fs trees are loaded.
[04/28/19 21:59:27] sync-mgr.c(572): Repo 'library' sync state transition from 'synchronized' to 'uploading'.
[04/28/19 21:59:27] http-tx-mgr.c(3921): Upload with HTTP sync protocol version 2.
[04/28/19 21:59:27] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'init') --> ('normal', 'check')
[04/28/19 21:59:27] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'check') --> ('normal', 'commit')
[04/28/19 21:59:27] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'commit') --> ('normal', 'fs')
[04/28/19 21:59:27] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'fs') --> ('normal', 'data')
[04/28/19 21:59:27] fs-mgr.c(591): [fs mgr] Failed to read file 34337d171376b73362632adf82601b14dd7dc13c.
[04/28/19 21:59:27] [04/28/19 21:59:27] fs-mgr.c(591): [fs mgr] Failed to read file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6.
http-tx-mgr.c(3657): Failed to get file 34337d171376b73362632adf82601b14dd7dc13c in repo 788520a8.
[04/28/19 21:59:27] http-tx-mgr.c(3657): Failed to get file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6 in repo 788520a8.
[04/28/19 21:59:27] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'data') --> ('error', 'finished')
[04/28/19 21:59:27] sync-mgr.c(606): Repo 'library' sync state transition from uploading to 'error': 'Error occured in upload.'.
[04/28/19 21:59:58] sync-mgr.c(572): Repo 'library' sync state transition from 'synchronized' to 'uploading'.
[04/28/19 21:59:58] http-tx-mgr.c(3921): Upload with HTTP sync protocol version 2.
[04/28/19 21:59:58] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'init') --> ('normal', 'check')
[04/28/19 21:59:58] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'check') --> ('normal', 'commit')
[04/28/19 21:59:58] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'commit') --> ('normal', 'fs')
[04/28/19 21:59:58] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'fs') --> ('normal', 'data')
[04/28/19 21:59:58] fs-mgr.c(591): [fs mgr] Failed to read file 34337d171376b73362632adf82601b14dd7dc13c.
[04/28/19 21:59:58] [04/28/19 21:59:58] fs-mgr.c(591): [fs mgr] Failed to read file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6.
http-tx-mgr.c(3657): Failed to get file 34337d171376b73362632adf82601b14dd7dc13c in repo 788520a8.
[04/28/19 21:59:58] http-tx-mgr.c(3657): Failed to get file abfc7a3df65ed6c5abf70d6c487feb22b9bb18a6 in repo 788520a8.
[04/28/19 21:59:58] http-tx-mgr.c(1188): Transfer repo '788520a8': ('normal', 'data') --> ('error', 'finished')
[04/28/19 21:59:58] sync-mgr.c(606): Repo 'library' sync state transition from uploading to 'error': 'Error occured in upload.'.

I updated the github issue https://github.com/haiwen/seadrive-gui/issues/117

@dri I’ve replied on the github thread. I think this should be a bug for SeaDrive to handle Adobe Illustrator + After Effect file linking.