Unable To Push Gem Update - "Can't find 'rubygems-update' in any repo."

Chris Warren's Avatar

Chris Warren

04 Oct, 2013 11:32 AM

Running Rubygems 2.1.5, Ruby 2.0.0p247, RVM.

When I try to push an update to my gem I'm getting the following response:

HEAD https://rubygems.org/latest_specs.4.8.gz
302 Moved Temporarily
ERROR: While executing gem ... (RuntimeError)
    Can't find 'rubygems-update' in any repo. Check `gem source list`.

I saw the same error in the thread at http://help.rubygems.org/discussions/problems/9923-getting-405-error-when-trying-to-push-gem, but I'm not sure that they're related.

Thanks for your help.

  1. 2 Posted by Todd Hooper on 06 Oct, 2013 11:08 AM

    Todd Hooper's Avatar

    I'm having the same problem when trying to gem push.

    HEAD https://rubygems.org/latest_specs.4.8.gz
    302 Moved Temporarily
    ERROR: While executing gem ... (RuntimeError)
        Can't find 'rubygems-update' in any repo. Check `gem source list`.

  2. 3 Posted by Todd Hooper on 06 Oct, 2013 06:48 PM

    Todd Hooper's Avatar

    Here's a workaround:

    $ gem sources -a http://s3.amazonaws.com/production.s3.rubygems.org/

    Here's why it's a non-https s3 address:

    $ curl -i -X HEAD https://rubygems.org/latest_specs.4.8.gz
    HTTP/1.1 302 Moved Temporarily
    Server: nginx
    Date: Mon, 07 Oct 2013 01:41:30 GMT
    Content-Type: text/html
    Content-Length: 154
    Connection: keep-alive
    Location: https://s3.amazonaws.com/production.s3.rubygems.org/latest_specs.4.8.gz

    $ gem sources -a https://s3.amazonaws.com/production.s3.rubygems.org/
    Error fetching https://s3.amazonaws.com/production.s3.rubygems.org/:
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://s3.amazonaws.com/production.s3.rubygems.org/specs.4.8.gz)

    $ gem sources -a http://s3.amazonaws.com/production.s3.rubygems.org/
    http://s3.amazonaws.com/production.s3.rubygems.org/ added to sources

  3. 4 Posted by Chris Warren on 07 Oct, 2013 10:15 AM

    Chris Warren's Avatar

    Awesome, that got things working for now. Thanks Todd.

  4. Support Staff 5 Posted by David Radcliffe on 08 Oct, 2013 05:04 AM

    David Radcliffe's Avatar

    Using a non-https url is a security problem. This error means you need to update your local ssl certs. Here's a good overview: http://railsapps.github.io/openssl-certificate-verify-failed.html

  5. David Radcliffe closed this discussion on 08 Oct, 2013 05:04 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

29 Aug, 2014 06:23 PM
28 Aug, 2014 07:18 PM
27 Aug, 2014 12:03 PM
26 Aug, 2014 07:09 PM
26 Aug, 2014 07:07 PM