Search Unity

Bug Windows platform failed to download from CCD properly

Discussion in 'Unity Cloud Content Delivery' started by optimise, Apr 21, 2022.

  1. optimise

    optimise

    Joined:
    Jan 22, 2014
    Posts:
    2,129
    The same project that build as windows platform failed to download from CCD properly but Android platform dun have such issue. When start downloading at windows platform build, it just only like 2MB+ then the CPU usage goes to extremely high then download progress stuck there and barely increase after waiting for so long. Then it will start continue to download. I think maybe Android has similar issue but it didn't freeze the game like windows build.

    Excerpt from player.log

    Curl error 56: Receiving data failed with unitytls error code 1048578
    Curl error 56: Receiving data failed with unitytls error code 1048578
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Curl error 52: Empty reply from server
    Web request failed, retrying (0/10)...
    ConnectionError : Failed to receive data
    url : https://xxx
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    UnityEngine.Debug:LogFormat (string,object[])
    UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:591)
    UnityEngine.AsyncOperation:InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)
    (Filename: C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs Line: 591)
    Web request failed, retrying (0/10)...
    ConnectionError : Failed to receive data
    url : https://xxx
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    UnityEngine.Debug:LogFormat (string,object[])
    UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:591)
    UnityEngine.AsyncOperation:InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)
    (Filename: C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs Line: 591)
    Web request failed, retrying (0/10)...
    ConnectionError : Received no data in response
    url : https://xxx
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    UnityEngine.Debug:LogFormat (string,object[])
    UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:591)
    UnityEngine.AsyncOperation:InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)
    (Filename: C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs Line: 591)
    ......
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    Curl error 60: Cert verify failed: UNITYTLS_X509VERIFY_FLAG_USER_ERROR1
    RemoteProviderException : Unable to load asset bundle from : https://xxx
    UnityWebRequest result : ConnectionError : SSL CA certificate error
    url : https://xxx
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:Log (UnityEngine.LogType,object)
    UnityEngine.Debug:LogError (object)
    UnityEngine.AddressableAssets.AddressablesImpl:LogException (UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationHandle,System.Exception) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/AddressablesImpl.cs:257)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>:set_OperationException (System.Exception) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:304)
    UnityEngine.ResourceManagement.AsyncOperations.AsyncOperationBase`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>:Complete (UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource,bool,System.Exception,bool) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/AsyncOperations/AsyncOperationBase.cs:423)
    UnityEngine.ResourceManagement.AsyncOperations.ProviderOperation`1<UnityEngine.ResourceManagement.ResourceProviders.IAssetBundleResource>:providerCompleted<UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource> (UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource,bool,System.Exception) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/AsyncOperations/ProviderOperation.cs:179)
    UnityEngine.ResourceManagement.ResourceProviders.ProvideHandle:Complete<UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource> (UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource,bool,System.Exception) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/IResourceProvider.cs:132)
    UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:597)
    UnityEngine.AsyncOperation:InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)
    (Filename: C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/AddressablesImpl.cs Line: 257)
    ......
    Curl error 28: Failed to connect to cdp.cloud.unity3d.com port 443 after 41101 ms: Timed out
    Curl error 18: transfer closed with 1541171 bytes remaining to read
    Web request failed, retrying (0/10)...
    ConnectionError : Unknown Error
    ResponseCode : 200, Method : GET
    url : https://xxx
    UnityEngine.StackTraceUtility:ExtractStackTrace () (at C:/buildslave/unity/build/Runtime/Export/Scripting/StackTrace.cs:37)
    UnityEngine.DebugLogHandler:LogFormat (UnityEngine.LogType,UnityEngine.Object,string,object[])
    UnityEngine.Logger:LogFormat (UnityEngine.LogType,string,object[])
    UnityEngine.Debug:LogFormat (string,object[])
    UnityEngine.ResourceManagement.ResourceProviders.AssetBundleResource:WebRequestOperationCompleted (UnityEngine.AsyncOperation) (at C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs:591)
    UnityEngine.AsyncOperation:InvokeCompletionEvent () (at C:/buildslave/unity/build/Runtime/Export/Scripting/AsyncOperation.cs:21)
    (Filename: C:/xxx/Library/PackageCache/com.unity.addressables@1.19.19/Runtime/ResourceManager/ResourceProviders/AssetBundleProvider.cs Line: 591)
    ......
    Curl error 28: Failed to connect to cdp.cloud.unity3d.com port 443 after 21027 ms: Timed out
     
  2. SebT_Unity

    SebT_Unity

    Unity Technologies

    Joined:
    Jun 21, 2021
    Posts:
    282
    Hi Optimize,
    Thanks for posting on the forums!
    I have a few questions that may help us better understand the problem.

    Would you be able to share the region you are located in?
    Is your windows OS up to date with the latest patches?
    Is CCD working within the editor?

    What version of the Unity editor are you using? As well as the CCD management package.
    With the logs I can see you are using addressable 1.19.19

    Thanks look forward to your response.

    Best,
    Seb
     
  3. SplenShepard

    SplenShepard

    Joined:
    Aug 24, 2019
    Posts:
    20
    Hi Seb - I'd like to pick up where Optimize left off. I'm having the same Cert error (UNITYTLS_X509VERIFY_FLAG_USER_ERROR1) just from trying to call the CCD from the editor using the client side REST api.

    I will state that this is happening when I attempt to download many asset bundles at once. Some of them go through fine, but later in the pipeline it stalls horribly as described above (max CPU usage, etc), and the rest of them all fail with that error.

    Is there a concurrency limit per IP that I should be aware of? I don't recall seeing this in the documentation anywhere.

    Looking forward to your response, and I'd be happy to help in any way that I can.

    Edit: Doing some more research and this came up:

    https://forum.unity.com/threads/max...ts-setting-best-practices-for-mobile.1133422/

    Seems that concurrent downloads may indeed be an issue. If using addressables, probably a good idea to take that concurrent downloads slider and reduce it.

    Since I'm developing a custom CCD plugin, I'm going to have to implement something myself :).

    Will report back if this fixes the issue.
     
  4. SplenShepard

    SplenShepard

    Joined:
    Aug 24, 2019
    Posts:
    20
    Yep, indeed restricting max concurrent downloads to 20 fixed this issue.

    If there is a max amount of concurrent downloads to Unity CCD (or using UnityWebRequest in general), we should know about it @SebT_Unity instead of just doing guess work. Any way we can get that number? Thanks.