Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Old file version restored after file showing sync error
Hi guys,
I'm not sure what happened but let me tell what seemd to:
- I have a Liferay 7.0 ce ga7 with a shared folder for some users (using Windows Sync 3.4.5)
- One of the users complained that could not get the synch'd version of a file
- I went to look at the folder and only that file was displaying
error and a red badge with a white x on it
- On the log file, this seems related to this message:
- 19:16:46.916 TRACE [pool-12-thread-5] [BaseJSONHandler:362]
Handling response GetSyncDLObjectUpdateHandler
{"lastAccessTime":"1548184601986","resultsTotal":1,"settingsModifiedTimes":{},"syncDLObjects":[{"changeLog":"Uploaded
with Liferay Sync
3.4.5","checksum":"7AcKEuVaAlebEFEt0sVgiNFTpoo=","companyId":"20116","createTime":"1546624883372","description":"","event":"update","extension":"ods","extraSettings":"","lanTokenKey":"FOz2JqEc","lockExpirationDate":null,"lockUserId":"0","lockUserName":"","mimeType":"application/vnd.oasis.opendocument.spreadsheet","modifiedTime":"1548184601986","name":"M.......2019.ods","parentFolderId":"66518","repositoryId":"30810","size":"99381","syncDLObjectId":"231186","type":"file","typePK":"231181","typeUuid":"72bf3194-f73f-dfe6-6ddf-b9788626981a","userId":"36786","userName":"Jane
Doe","version":"1.118","versionId":"246125"}]}
19:16:46.917 DEBUG [pool-12-thread-5] [GetSyncDLObjectUpdateHandler:676] Skipping file D:\Users\M......2019.ods. File is in an error state.
- Right click on the file, showed an "Error" menu item on the Liferay Sync menu (nothing happened when clicked on it
- Used option "download from server" and seemed to work (log event at 20:17)
- But now users are complaining an old version has been synched to all (the one I also have on my PC now)
- No evident errors in the local log file (attached)
Is this plausible? Any ideas how to prevent this?
TIA
Fernando
Attachments:
Hi Fernando,
You've discovered a bug with the "Download From Server" menu item. I've created a bug report here: SYNC-1801.
It will be fixed in the next maintenance release.
Hi Dennis,
Thanks. Glad to have helped.
Anyway, the main question is "why did I have to use the 'Download from server' option?". Why was the file not automatically updated? How can we prevent the error status to occur? What was it's cause? Any ideas on how to further investigate this?
TIA
Fernando
I would need your previous logs to see what happened when the file first ended up in an error state. You can send your full logs to dennis.ju@liferay.com. (To quickly grab full logs: go to Liferay Sync dock icon -> Preferences -> General -> "save logs" on the bottom right)
And I agree, Sync's error handling/recovery capability could certainly use major improvement. It's been on the backlog for awhile now, and the team unfortunately hasn't had banwidth to focus on Sync. I'll see if there's some quick improvements we can incorporate to improve error recovery.
We'll be waiting eagerly for the next release.
Meanwhile the users decided to revert back to dropbox. :-(
Fernando
Any news on the new version of the Sync Client? I'd volunteer to help if the code was available somewhere... ;-)
I've tried to replace it with webdav, but the performance is much worse, because the server is on the cloud somewhere.
Would increasing the sync interval, on the server, reduce the chance of hitting those bugs? How about changing the Sync Client to avoid sync'ing files being modified?
TIA
Fernando
Powered by Liferay™