Powershell download file for an MSI getting timed out only on AppVeyor

Hari Menon's Avatar

Hari Menon

25 Apr, 2014 08:36 PM

Hi,

Most of the builds are failing at the step where it tries to download an MSI installer with the reason of "The operation has timed out."

This is working fine from the dev environments and the installer URL seems to be working fine from the browser too.

Most intriguing thing is that one arbitrary build out of the last 20 or so managed to download this installer properly and completed successfully too.

Any directions in resolving this will be much appreciated.

Thanks

  1. Support Staff 1 Posted by Feodor Fitsner on 25 Apr, 2014 08:46 PM

    Feodor Fitsner's Avatar

    How big is that MSI?

    - Feodor

  2. 2 Posted by Hari Menon on 25 Apr, 2014 09:01 PM

    Hari Menon's Avatar

    24.5 MB

  3. 3 Posted by Hari Menon on 25 Apr, 2014 09:12 PM

    Hari Menon's Avatar

    Forgot to add the URL to the MSI in the question. Has added that in now - http://flickrdownloadr.com/installer/win/dependencies/gtk-sharp-2.1...

  4. 4 Posted by tony on 25 Apr, 2014 10:56 PM

    tony's Avatar

    I've also been noticing intermittent connectivity problems while downloading ~30 MB dependency files for the past few days, see

    http://ci.appveyor.com/project/tkelman/julia/build/1.0.393
    http://ci.appveyor.com/project/tkelman/julia/build/1.0.394
    http://ci.appveyor.com/project/tkelman/julia/build/1.0.396/job/2
    These are using curl rather than PowerShell to download files, which leads me to suspect it may have something to do with the internet access to the build worker VM's.

  5. Support Staff 5 Posted by Feodor Fitsner on 26 Apr, 2014 01:00 AM

    Feodor Fitsner's Avatar

    I've been able to notice rare networking lags on Azure.

    Apparently, it's not straightforward to set timeout for WebClient :)
    http://stackoverflow.com/questions/601861/set-timeout-for-webclient...
    http://stackoverflow.com/questions/17370957/downloading-file-from-u...

    I played with BITS cmdlets and they don't seem to be working in a custom PowerShell runspace.

    I'm going to deploy AppVeyor's own cmdlet with timeout support, something like Start-FileDownload, which will be available in the build session.

  6. Support Staff 6 Posted by Feodor Fitsner on 27 Apr, 2014 08:05 PM

    Feodor Fitsner's Avatar

    Start-FileDownload cmdlet is now available in build session: http://www.appveyor.com/docs/how-to/download-file

    Default timeout is 5 minutes.

  7. 7 Posted by Hari Menon on 27 Apr, 2014 08:48 PM

    Hari Menon's Avatar

    Thanks for this new and improved option for downloading files, Feodor.

    It looks like the original issue (whtever was its cause) is also now completely resolved.

  8. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:38 AM.

Comments are currently closed for this discussion. You can start a new one.

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

Recent Discussions

18 Jun, 2025 08:45 PM
18 Jun, 2025 04:23 PM
13 Jun, 2025 04:36 PM
13 Jun, 2025 04:27 PM
13 Jun, 2025 07:20 AM

 

10 Jun, 2025 01:56 AM
09 Jun, 2025 07:11 PM
04 Jun, 2025 04:08 PM
27 May, 2025 05:48 PM
27 May, 2025 06:37 AM
27 May, 2025 06:31 AM