azure-sdk-for-python icon indicating copy to clipboard operation
azure-sdk-for-python copied to clipboard

Download stream interrupted

Open cheryl-catalog opened this issue 3 years ago • 5 comments

/unresolved I am seeing this error as well:

2022-05-27T21:51:42+0000 next():186 Unable to stream download: ("Connection broken: ConnectionResetError(104, 'Connection reset by peer')", ConnectionResetError(104, 'Connection reset by peer')) 2022-05-27T21:51:42+0000 wrapped():79 Download stream interrupted.

pip3 freeze | grep azure azure-common==1.1.28 azure-core==1.24.0 azure-storage-blob==12.12.0 azure-storage-common==2.1.0 azure-storage-file==2.1.0 azure-storage-file-share==12.8.0

I will try the suggested tweaks in (https://github.com/Azure/azure-sdk-for-python/issues/19753) and see how it goes. I just started seeing this error this week

Originally posted by @cheryl-catalog in https://github.com/Azure/azure-sdk-for-python/issues/19753#issuecomment-1140074230

cheryl-catalog avatar May 27 '22 22:05 cheryl-catalog

Thank you for your feedback. This has been routed to the support team for assistance.

ghost avatar May 31 '22 17:05 ghost

Thanks for reporting this @cheryl-catalog! We'll investigate asap.

catalinaperalta avatar May 31 '22 17:05 catalinaperalta

Same here.

azure-core==1.22.1 azure-identity==1.7.1 azure-storage-blob==12.9.0

jasonoberme avatar Jun 01 '22 15:06 jasonoberme

Hi @cheryl-catalog Cheryl / @jasonoberme, apologies for the delay in response.

Connection reset errors come from the Storage service and there is not much we can do on the client-side except retry. The client should be automatically retrying these errors and that usually will lead to a successful request, but we recently identified an issue with our retry logic, specifically when streaming large downloads and we have a fix coming in our next release, 12.14.0. (The preview should be released this month with the full release sometime in September). It is difficult to tell if this fix will help in your scenario but download streaming is the targeted feature.

If you are still experiencing the issue, could you include a full stack trace of the error if possible? That will help us identify if the upcoming fix will help.

Additionally, if you are seeing these pretty consistently, I would also recommend opening a support ticket so the service team can take a look. There can sometimes be issues on the backend that could cause these types of errors if they are happening consistently.

jalauzon-msft avatar Aug 09 '22 23:08 jalauzon-msft

Thank you Jacob. It was seen consistently in a test scenario that is not often run. I will try it out in your next release and let you know if it fixes the problem.

All the best, Cheryl

Sent from Mailhttps://go.microsoft.com/fwlink/?LinkId=550986 for Windows

From: Jacob @.> Sent: Tuesday, August 9, 2022 7:30 PM To: @.> Cc: Cheryl @.>; @.> Subject: Re: [Azure/azure-sdk-for-python] Download stream interrupted (Issue #24636)

Hi @cheryl-cataloghttps://github.com/cheryl-catalog Cheryl / @jasonobermehttps://github.com/jasonoberme, apologies for the delay in response.

Connection reset errors come from the Storage service and there is not much we can do on the client-side except retry. The client should be automatically retrying these errors and that usually will lead to a successful request, but we recently identified an issue with our retry logic, specifically when streaming large downloads and we have a fix coming in our next release, 12.14.0. (The preview should be released this month with the full release sometime in September). It is difficult to tell if this fix will help in your scenario but download streaming is the targeted feature.

If you are still experiencing the issue, could you include a full stack trace of the error if possible? That will help us identify if the upcoming fix will help.

Additionally, if you are seeing these pretty consistently, I would also recommend opening a support ticket so the service team can take a look. There can sometimes be issues on the backend that could cause these types of errors if they are happening consistently.

— Reply to this email directly, view it on GitHubhttps://github.com/Azure/azure-sdk-for-python/issues/24636#issuecomment-1209991120, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASR733YJTQS5VFTHC434ZNDVYLSTLANCNFSM5XFTLWSQ. You are receiving this because you were mentioned.Message ID: @.***>

cheryl-catalog avatar Aug 10 '22 13:08 cheryl-catalog

Hi @cheryl-catalog Cheryl, azure-storage-blob 12.14.0 was released last week which contains the fixes I was mentioning w.r.t. streaming download retry. Could you try your test scenario again to see if the updates helped with the connection resets at all? Thanks.

jalauzon-msft avatar Oct 17 '22 23:10 jalauzon-msft

Hi @cheryl-catalog. Thank you for opening this issue and giving us the opportunity to assist. We believe that this has been addressed. If you feel that further discussion is needed, please add a comment with the text “/unresolve” to remove the “issue-addressed” label and continue the conversation.

ghost avatar Oct 20 '22 21:10 ghost

Hi @cheryl-catalog, since you haven’t asked that we “/unresolve” the issue, we’ll close this out. If you believe further discussion is needed, please add a comment “/unresolve” to reopen the issue.

ghost avatar Oct 27 '22 22:10 ghost