RE: Old file version restored after file showing sync error

thumbnail
Fernando Fernandez, modified 6 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts

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:

thumbnail
Dennis Ju, modified 6 Years ago. Regular Member Posts: 228 Join Date: 9/30/10 Recent Posts

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.

thumbnail
Fernando Fernandez, modified 6 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts

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

thumbnail
Dennis Ju, modified 6 Years ago. Regular Member Posts: 228 Join Date: 9/30/10 Recent Posts

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.

thumbnail
Fernando Fernandez, modified 6 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Thanks Dennis,

We'll be waiting eagerly for the next release. 

Meanwhile the users decided to revert back to dropbox. :-(

​​​​​​​Fernando
thumbnail
Fernando Fernandez, modified 6 Years ago. Expert Posts: 401 Join Date: 8/22/07 Recent Posts
Hi guys,

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
Barbour Elizabeth, modified 5 Years ago. New Member Post: 1 Join Date: 5/26/20 Recent Posts
Yes sybc is failing in my system too. But not able to find the cause and the solution https://www.upsers.live/