Error uploading artifact the storage

me's Avatar

me

01 Mar, 2021 05:54 PM

Collecting artifacts... Found artifact 'ygopro-1.035.2-9-win32-zh-CN.tar.gz' matching 'ygopro-1.035.2-9-win32-zh-CN.tar.gz' path
Uploading artifacts...
[1/1] ygopro-1.035.2-9-win32-zh-CN.tar.gz (897,688,638 bytes)...30% Error uploading artifact the storage: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse.

keep getting this error several times: https://ci.appveyor.com/project/mercury233/ygopro-a6lpm/history

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Mar, 2021 11:59 PM

    Feodor Fitsner's Avatar

    Could you please try defining the following environment variable on project settings UI or in appveyor.yml:

    APPVEYOR_UPLOAD_DOWNLOAD_BUFFER: 1024
    

    It will increase upload chunks to 1 MB. Before implementing retries we'd like to check if that makes uploads more stable.

  2. 2 Posted by me on 02 Mar, 2021 01:03 AM

    me's Avatar

    no it don't work

    https://ci.appveyor.com/project/mercury233/ygopro-a6lpm/build/job/7...

    Uploading artifacts... [1/1] ygopro-1.035.2-9-win32-zh-CN.tar.gz (897,689,941 bytes)...30% Error uploading artifact the storage: The underlying connection was closed: An unexpected error occurred on a receive.

    https://ci.appveyor.com/project/mercury233/ygopro-a6lpm/builds/3801...

    Uploading artifacts... [1/1] ygopro-1.035.2-9-win32-en-US.tar.gz (974,480,830 bytes)...60% Error uploading artifact the storage: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse.

  3. Support Staff 3 Posted by Feodor Fitsner on 02 Mar, 2021 03:50 AM

    Feodor Fitsner's Avatar

    Alright, we did some maintenance on the build servers - let me know if you are still getting this issue.

  4. 4 Posted by me on 02 Mar, 2021 04:40 AM

    me's Avatar
  5. 5 Posted by Norbert Kardos on 02 Mar, 2021 03:20 PM

    Norbert Kardos's Avatar

    We mostly getting this error now:
    Error uploading artifact the storage: You must write ContentLength bytes to the request stream before calling [Begin]GetResponse.

  6. Support Staff 6 Posted by Feodor Fitsner on 02 Mar, 2021 03:21 PM

    Feodor Fitsner's Avatar

    Is it with or without APPVEYOR_UPLOAD_DOWNLOAD_BUFFER applied?

  7. 7 Posted by Norbert Kardos on 02 Mar, 2021 03:23 PM

    Norbert Kardos's Avatar

    Without the buffer. The previous users wrote that it did not work, so haven't tried it.
    But I can test it now.

  8. Support Staff 8 Posted by Feodor Fitsner on 02 Mar, 2021 03:28 PM

    Feodor Fitsner's Avatar

    Could you drop a link to a build please?

  9. 9 Posted by Norbert Kardos on 02 Mar, 2021 03:34 PM

    Norbert Kardos's Avatar

    Hi,

    For example:
    https://ci.appveyor.com/project/PostForRent/p4rweb-website/builds/38023771/job/dr07g7fnxi2wklkq

    A new build is running now with the parameter set.

    *From:* Feodor Fitsner <[email blocked]>
    *Sent:* Tuesday, March 2, 2021 4:29 PM
    *To:* [email blocked]
    *Subject:* Re: Error uploading artifact the storage [Problems #28996]

  10. 10 Posted by Norbert Kardos on 02 Mar, 2021 04:04 PM

    Norbert Kardos's Avatar

    The parameter in appveyor.yml is not helping (not sure if it was placed
    correctly)

    environment:

      …

      APPVEYOR_UPLOAD_DOWNLOAD_BUFFER: 1024

    https://ci.appveyor.com/project/PostForRent/p4rweb-website/build/job/opxakgnligqqprsq

    [1/1] Website\Deployment\Package-Debug.zip (710,721,088 bytes)...40%

    Error uploading artifact the storage: You must write ContentLength bytes to
    the request stream before calling [Begin]GetResponse.

  11. 11 Posted by Matt on 02 Mar, 2021 04:46 PM

    Matt's Avatar

    I am having the same problem as well. And when adding the APPVEYOR_UPLOAD_DOWNLOAD_BUFFER: 1024 to the appveyor.yml file it gives me an error right off the bat. I've even reverted back to original code that worked fine and it's not that.

  12. Support Staff 12 Posted by Feodor Fitsner on 02 Mar, 2021 05:34 PM

    Feodor Fitsner's Avatar

    OK, we've just configured a different artifact storage. Is it better now?

  13. 13 Posted by Norbert Kardos on 02 Mar, 2021 06:06 PM

    Norbert Kardos's Avatar

    Build succeeded, fine.
    Thx!

  14. 14 Posted by Matt on 02 Mar, 2021 07:18 PM

    Matt's Avatar

    That fixed my problem as well. Thank you!

  15. 15 Posted by me on 02 Mar, 2021 11:14 PM

    me's Avatar

    thank you, the artifacts are uploaded successfully, but the build still fails for me because the cache procedure seems failed: https://ci.appveyor.com/project/mercury233/ygopro-a6lpm/build/job/o...

  16. Support Staff 16 Posted by Feodor Fitsner on 03 Mar, 2021 01:04 AM

    Feodor Fitsner's Avatar

    Don't push DXSDK to the cache but download it from Microsoft directly.

  17. 17 Posted by me on 03 Mar, 2021 01:05 AM

    me's Avatar

    I'll delete that after https://github.com/appveyor/ci/issues/3628 is fixed :D

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac