haiwen / seafile-client

Seafile desktop client.
http://seafile.com
Apache License 2.0
471 stars 279 forks source link

Client 'forgets' synced folders #941

Closed cocowalla closed 7 years ago

cocowalla commented 7 years ago

Rather than syncing an entire library, I'm using 6.0.7 to sync specific folders. After choosing the folder to sync, it syncs OK, and I can see the folder displayed in the client.

After restarting the Seafile client, the synced folder is no longer visible, and files are no longer synced in the folder.

qdbgw3ihnjw commented 7 years ago

Would you like to check key words "synced subfolder" or "synced_sub_folder" in log file? Or check "SyncedSubfolder" table in accounts.db file.

cocowalla commented 7 years ago

No mention of synced subfolder or synced_sub_folder in applet.log, ccnet.log or seafile.log.

The SyncedSubfolder table in accounts.db is empty.

I did some more digging, and all the subfolders in seafile-data\storage are also empy - looks like all traces of them are gone!

qdbgw3ihnjw commented 7 years ago

Is it a similar problem? https://github.com/haiwen/seafile-client/issues/851#issuecomment-314094664

cocowalla commented 7 years ago

@haidian6672 I think so, yes. Has the root cause been found?

qdbgw3ihnjw commented 7 years ago

Due to on delete cascade has been setted in SyncedSubfolder table, replace sql statement into accounts table will delete synced sub folder in SyncedSubfolder table. [https://github.com/haiwen/seafile-client/blob/master/src/repo-service.cpp#L166]

cocowalla commented 7 years ago

@haidian6672 great, will a fix be in 6.0.8, and do you know when it's expected?

freeplant commented 7 years ago

It is fixed in version 6.1.0.