Uploaded image for project: 'PUBLIC - Liferay Sync'
  1. PUBLIC - Liferay Sync
  2. SYNC-1740

Sync client may get stuck downloading a file

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: Desktop-3.4.2 GA3
    • Fix Version/s: Desktop-3.4.3 GA4
    • Component/s: General
    • Labels:
      None

      Description

      In rare scenarios, the Sync desktop client can get stuck downloading a file. The following error message will appear in the logs:

      08:20:49.642 DEBUG [pool-20-thread-1] [BaseHandler:80] Handling exception org.apache.http.TruncatedChunkException: Truncated chunk ( expected size: 8184; actual size: 3498)
      08:20:49.642 ERROR [pool-20-thread-1] [BaseHandler:150] Truncated chunk ( expected size: 8184; actual size: 3498)
      org.apache.http.TruncatedChunkException: Truncated chunk ( expected size: 8184; actual size: 3498)
      	at org.apache.http.impl.io.ChunkedInputStream.read(ChunkedInputStream.java:198)
      	at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:137)
      	at org.apache.http.conn.EofSensorInputStream.read(EofSensorInputStream.java:150)
      	at org.apache.commons.io.input.ProxyInputStream.read(ProxyInputStream.java:79)
      	at com.liferay.sync.engine.session.rate.limiter.RateLimitedInputStream.read(RateLimitedInputStream.java:52)
      	at java.nio.file.Files.copy(Files.java:2908)
      	at java.nio.file.Files.copy(Files.java:3027)
      	at com.liferay.sync.engine.document.library.handler.DownloadFileHandler.copyFile(DownloadFileHandler.java:216)
      	at com.liferay.sync.engine.document.library.handler.DownloadFileHandler.doHandleResponse(DownloadFileHandler.java:360)
      	at com.liferay.sync.engine.document.library.handler.BaseHandler.handleResponse(BaseHandler.java:193)
      	at com.liferay.sync.engine.document.library.handler.BaseHandler.handleResponse(BaseHandler.java:57)
      	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:222)
      	at com.liferay.sync.engine.session.Session.execute(Session.java:341)
      	at com.liferay.sync.engine.session.Session.execute(Session.java:331)
      	at com.liferay.sync.engine.session.Session$1.run(Session.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)
      

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Days since last comment:
                2 years, 17 weeks, 2 days ago

                Packages

                Version Package
                Desktop-3.4.3 GA4