Can't mirror rubygems repo. "incorrect header check"

João Duarte's Avatar

João Duarte

12 Oct, 2010 10:12 AM

cat .gemmirrorrc 
---
- from: http://gemcutter.org
  to: /srv/www/gems`

# http_proxy=http://localhost:8081 gem1.8 mirror 
fetching: http://gemcutter.org/Marshal.4.8.Z
ERROR:  While executing gem ... (Zlib::DataError)
    incorrect header check

Same with rubygems.org

  1. 1 Posted by Kent Cowgill on 12 Oct, 2010 04:19 PM

    Kent Cowgill's Avatar

    Same issue here:

    $ cat ~/.gemmirrorrc


    $ /site/apps/ruby/bin/gem --backtrace mirror --verbose fetching: http://gemcutter.org/Marshal.4.8.Z
    ERROR: While executing gem ... (Zlib::DataError)

    incorrect header check

    This is especially frustrating since Marshal.4.8.Z is supposed to be updated as of yesterday.

  2. Support Staff 2 Posted by Nick Quaranto on 12 Oct, 2010 04:36 PM

    Nick Quaranto's Avatar

    Argh...it updated, something must have gotten corrupted on the way there. I'll try running it again. The process takes 20-30 minutes and is realyl CPU intensive (needs to load all 80,000+ gemspecs into memory and then spit it back out). I'll keep this thread and the prior one updated on my progress.

  3. 3 Posted by Roland on 13 Oct, 2010 10:12 PM

    Roland's Avatar

    any news on this? It's still failing for me :(

  4. 4 Posted by Ken on 14 Oct, 2010 12:31 AM

    Ken's Avatar

    Same here still failing with the same error, against rubygems.org

  5. Support Staff 5 Posted by Nick Quaranto on 14 Oct, 2010 05:07 AM

    Nick Quaranto's Avatar

    Fixed, for real this time. Sorry about the delay here, folks.

  6. Nick Quaranto closed this discussion on 14 Oct, 2010 05:07 AM.

  7. João Duarte re-opened this discussion on 15 Oct, 2010 10:23 AM

  8. 6 Posted by João Duarte on 15 Oct, 2010 10:23 AM

    João Duarte's Avatar

    I get this doing the generate_index in a dir with all the gems from rubygems.org

    $ gem1.8 generate_index -V --update --no-legacy --modern .. stuff
    .. Complete
    Generated Marshal quick index gemspecs: 54.957s
    ERROR: While executing gem ... (RangeError)

    bignum too big to convert into `long'

    Am I the only one getting this?

  9. 7 Posted by Ken on 15 Oct, 2010 11:14 PM

    Ken's Avatar

    I am getting that too.

  10. 8 Posted by João Duarte on 21 Oct, 2010 09:21 AM

    João Duarte's Avatar

    Any news on this?

  11. Support Staff 9 Posted by Nick Quaranto on 30 Oct, 2010 12:24 AM

    Nick Quaranto's Avatar

    Hey folks, can you paste your gem env and ruby -v ? We're getting conflicting reports and some people are able to mirror successfully.

  12. 10 Posted by João Duarte on 02 Nov, 2010 11:21 AM

    João Duarte's Avatar

    Here is mine, plus .gemmirrorc

    admin1:~# gem env
    RubyGems Environment:

     - RUBYGEMS VERSION: 1.3.7
     - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
     - INSTALLATION DIRECTORY: /usr/lib/ruby/gems/1.8
     - RUBY EXECUTABLE: /usr/bin/ruby1.8
     - EXECUTABLE DIRECTORY: /usr/bin
     - RUBYGEMS PLATFORMS:
       - ruby
       - x86-linux
     - GEM PATHS:
        - /usr/lib/ruby/gems/1.8
        - /root/.gem/ruby/1.8
     - GEM CONFIGURATION:
        - :update_sources => true
        - :verbose => true
        - :benchmark => false
        - :backtrace => false
        - :bulk_threshold => 1000
        - :sources => ["http://gemcutter.org/"]
     - REMOTE SOURCES:
        - http://gemcutter.org/

    admin1:~# ruby -v

      ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]

    admin1:~# cat .gemmirrorrc


  13. 11 Posted by Jiří Kubíček on 02 Dec, 2010 11:34 PM

    Jiří Kubíček's Avatar
    # gem env
    
    RubyGems Environment:
      - RUBYGEMS VERSION: 1.3.7
      - RUBY VERSION: 1.8.7 (2009-04-08 patchlevel 160) [i386-freebsd8]
      - INSTALLATION DIRECTORY: /usr/local/lib/ruby/gems/1.8
      - RUBY EXECUTABLE: /usr/local/bin/ruby18
      - EXECUTABLE DIRECTORY: /usr/local/bin
      - RUBYGEMS PLATFORMS:
        - ruby
        - x86-freebsd-8
      - GEM PATHS:
         - /usr/local/lib/ruby/gems/1.8
         - /root/.gem/ruby/1.8
      - GEM CONFIGURATION:
         - :update_sources => true
         - :verbose => true
         - :benchmark => false
         - :backtrace => false
         - :bulk_threshold => 1000
      - REMOTE SOURCES:
         - http://gems.rubyforge.org
    
  14. 12 Posted by Navneet MAurya on 28 Oct, 2011 09:15 AM

    Navneet MAurya's Avatar

    Hi All,

    While installing ruby-debug-ide on my machine i am gettting following error message:
    Following gems were not installed:
    ruby-debug-ide (0.4.17.beta8): While executing gem ... (Zlib::DataError)

     incorrect header check
    
  15. 13 Posted by Navneet Maurya on 10 Nov, 2011 11:22 AM

    Navneet Maurya's Avatar

    Hi Guys,

    I am still facing Zlib error while installing any gem from http://rubygems.org.

    Any ideas, Whats??? going on....
    I suppose lots of people are facing the problem.
    I have installed and un-installed rubygems several times, even added new zlib but no success.

  16. 14 Posted by Elanor on 14 Nov, 2011 09:30 PM

    Elanor's Avatar

    I'm receiving the Incorrect Header check as well on Ubuntu 11.10
    ruby env outputs
    `RubyGems Environment: - RUBYGEMS VERSION: 1.3.7 - RUBY VERSION: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux] - INSTALLATION DIRECTORY: /var/lib/gems/1.9.1 - RUBY EXECUTABLE: /usr/bin/ruby1.9.1 - EXECUTABLE DIRECTORY: /usr/local/bin - RUBYGEMS PLATFORMS:

    - ruby
    - x86_64-linux
    
    • GEM PATHS:
      • /var/lib/gems/1.9.1
      • /home/ematheson/.gem/ruby/1.9.1
    • GEM CONFIGURATION:
      • :update_sources => true
      • :verbose => true
      • :benchmark => false
      • :backtrace => false
      • :bulk_threshold => 1000
    • REMOTE SOURCES:

    ruby -v outputs
    ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux]

  17. 15 Posted by Lightning Sky on 15 Nov, 2011 07:32 AM

    Lightning Sky's Avatar

    C:\Ruby193\bin>gem install watir --no-ri --no-rdoc
    ERROR: While executing gem ... (Zlib::DataError)

    incorrect header check
    

    Thanks,

    Regards,
    LightningSky

  18. Support Staff 16 Posted by Evan Phoenix on 21 Feb, 2012 03:19 AM

    Evan Phoenix's Avatar

    The mirror command has been deprecated and removed from rubygems, so I'm going to go ahead and close this. Please try https://github.com/rubygems/rubygems-mirror.

  19. Evan Phoenix closed this discussion on 21 Feb, 2012 03:19 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

30 Oct, 2014 04:34 PM
30 Oct, 2014 02:46 PM
28 Oct, 2014 09:51 AM
23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM