Installing gem install aws-sdk takes too long

rene's Avatar

rene

Apr 15, 2016 @ 09:17 PM

Hi,

I'm having issues trying to do builds using appveyor.
in the yml file I'm running the line "gem install aws-sdk" and it's take more than I expect, the build works fine but that line takes like 10 minutes. some months ago, that line just take like 1 or 2 minutes.

Do you know why is taking too long?

  1. Support Staff 1 Posted by Feodor Fitsner on Apr 15, 2016 @ 09:20 PM

    Feodor Fitsner's Avatar

    Hi,

    What account/project is that?

  2. 2 Posted by rene on Apr 15, 2016 @ 10:08 PM

    rene's Avatar
  3. Support Staff 3 Posted by Feodor Fitsner on Apr 16, 2016 @ 04:35 AM

    Feodor Fitsner's Avatar

    There is some issue with Ruby gem install on build workers of Hyper-V Pro environment. At the moment we are re-building build workers image from scratch (ETA is next week) and hopefully Ruby gem will work OK after that. The cause of the issue is unknown, maybe something is interfering with Ruby. However, the issue is not reproducible on another environment based on Google Compute Cloud. The image there is more "fresh" and gem install works as expected. I can move your account over there, but there is one thing you should know - it takes around 3 minutes before build starts as this time required to provision a new VM for your build.

    Alternatively, there is a dirty workaround PowerShell script for fast aws-sdk gem installation:

    function InstallGem($fileName) {
        $gemPath = "$($env:USERPROFILE)\$fileName"
        (New-Object Net.WebClient).DownloadFile("https://rubygems.org/downloads/$fileName", $gemPath)
        cmd /c gem install --local $gemPath
    }
    
    InstallGem jmespath-1.1.3.gem
    InstallGem aws-sdk-core-2.2.18.gem
    InstallGem aws-sdk-resources-2.2.18.gem
    InstallGem aws-sdk-2.2.18.gem
    
  4. 4 Posted by rene on Apr 18, 2016 @ 05:07 PM

    rene's Avatar

    Hi Feodor.

    I tried the dirty way and that works for me.
    so, thank you very much :) you are awesome.

  5. rene closed this discussion on Apr 18, 2016 @ 10:44 PM.

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