Skip to content

Error during gem push using jruby #8935

@schneems

Description

@schneems

Expected Behavior

That I'm able to push a java gem built with jruby

Actual Behavior

$ git clone https://github.com/puma/puma
$ cd puma
$ rake java gem
$ gem push pkg/puma-6.6.1-java.gem
Pushing gem to https://rubygems.org...
ERROR:  While executing gem ... (Gem::RemoteFetcher::FetchError)
    too many connection resets (Gem::RemoteFetcher::FetchError)
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/request.rb:253:in 'perform_request'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/request.rb:160:in 'fetch'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/remote_fetcher.rb:317:in 'request'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/gemcutter_utilities.rb:252:in 'request_with_otp'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/gemcutter_utilities.rb:111:in 'rubygems_api_request'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/commands/push_command.rb:96:in 'send_push_request'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/commands/push_command.rb:87:in 'send_gem'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/commands/push_command.rb:72:in 'execute'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/command.rb:326:in 'invoke_with_build_args'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/command_manager.rb:253:in 'invoke_command'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/command_manager.rb:194:in 'process_args'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/command_manager.rb:152:in 'run'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/lib/ruby/stdlib/rubygems/gem_runner.rb:57:in 'run'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/bin/jgem:21:in '<main>'
        org/jruby/RubyKernel.java:1212:in 'load'
        /Users/rschneeman/.rubies/jruby-10.0.1.0/bin/gem:4:in '<main>'

I was able to push it, but I had to change to MRI to be able to do so.

Environment Information

Provide at least:

  • JRuby version (jruby -v) and command line (flags, JRUBY_OPTS, etc)
$ jruby -v
jruby 10.0.1.0 (3.4.2) 2025-07-17 0f10d1dfdf OpenJDK 64-Bit Server VM 21.0.5+11-LTS on 21.0.5+11-LTS +indy +jit [arm64-darwin]
  • Operating system and platform (e.g. uname -a)
Darwin ... 24.5.0 Darwin Kernel Version 24.5.0: Tue Apr 22 19:54:25 PDT 2025; root:xnu-11417.121.6~2/RELEASE_ARM64_T6020 arm64
$ gem -v
3.6.9

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions