I got error xmlrpc-0.3.0 requires ruby version >= 2.3

102 views
Skip to first unread message

eben sinaga

unread,
Apr 30, 2017, 3:11:56 AM4/30/17
to Ruby on Rails: Talk
Hi

I got error xmlrpc-0.3.0 requires ruby version >= 2.3 when i deploy to heroku . what should I do ?

Thank you

Edsil Basadre

unread,
Apr 30, 2017, 4:23:46 AM4/30/17
to rubyonra...@googlegroups.com
What is your Ruby version? Based on that error you need to have the version that required for that Gem. So either you upgrade your ruby version or downgrade the gem that requiring the specific version of ruby.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-ta...@googlegroups.com.
To post to this group, send email to rubyonra...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/ae91d3a6-4bd9-41b9-8741-2322b52caf44%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

eben sinaga

unread,
May 1, 2017, 9:35:27 AM5/1/17
to Ruby on Rails: Talk
Thank you, I got finished about it. 

Edsil Basadre

unread,
May 1, 2017, 9:36:43 AM5/1/17
to rubyonra...@googlegroups.com
Great! So, how did you solved it?

Simon Fisher

unread,
May 1, 2017, 12:42:22 PM5/1/17
to Ruby on Rails: Talk
Hi Edsil, I have the same issue as Edsil and it is because of the Ruby version running on Heroku. Curious thing is that xmlrpc-0.3.0 is not a gem in my gemfile (pasted below) so I'm not sure how to downgrade the gem and I can't upgrade the version of Ruby on Heroku (to my knowledge). Any ideas?

--- GEM FILE ---


gem 'rails',                    '5.0.0.1'
gem 'puma',                     '3.4.0'
gem 'sass-rails',               '5.0.6'
gem 'uglifier',                 '3.0.0'
gem 'coffee-rails',             '4.2.1'
gem 'jquery-rails',             '4.1.1'
gem 'turbolinks',               '5.0.1'
gem 'jbuilder',                 '2.4.1'
gem 'bootstrap-sass',           '3.3.6'
gem 'carrierwave',              '0.11.2'
gem 'mini_magick',              '4.5.1'
gem 'fog',                      '1.38.0'
gem 'bcrypt',                   '3.1.11'
gem 'faker',                    '1.6.3'
gem 'will_paginate',            '3.1.0'
gem 'bootstrap-will_paginate',  '0.0.10'

group :development, :test do
  gem 'sqlite3', '1.3.11'
  gem 'byebug',  '9.0.0', platform: :mri
end

group :development do
  gem 'web-console',           '3.1.1'
  gem 'listen',                '3.0.8'
  gem 'spring',                '1.7.2'
  gem 'spring-watcher-listen', '2.0.0'
end

group :test do
  gem 'rails-controller-testing', '0.1.1'
  gem 'minitest-reporters',       '1.1.9'
  gem 'guard',                    '2.13.0'
  gem 'guard-minitest',           '2.4.4'
end

group :production do
  gem 'pg', '0.18.4'
end

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Frederick Cheung

unread,
May 1, 2017, 12:47:05 PM5/1/17
to Ruby on Rails: Talk
On Monday, May 1, 2017 at 5:42:22 PM UTC+1, Simon Fisher wrote:
> Hi Edsil, I have the same issue as Edsil and it is because of the Ruby version running on Heroku. Curious thing is that xmlrpc-0.3.0 is not a gem in my gemfile (pasted below) so I'm not sure how to downgrade the gem and I can't upgrade the version of Ruby on Heroku (to my knowledge). Any ideas?
>

It's probably a dependency of one of your dependencies (you can see these in your Gemfile.lock).

Heroku should pick the ruby version specified in either you Gemfile or your .ruby-version file. Amy relatively recent version of ruby should be absolutely fine (see https://devcenter.heroku.com/articles/ruby-support#ruby-versions for their supported version policy)

Fred

Edsil Basadre

unread,
May 1, 2017, 7:13:03 PM5/1/17
to rubyonra...@googlegroups.com
Frederick is correct, it is a dependency.

To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/d7a15994-d6ee-4272-9797-2381c705c031%40googlegroups.com.

Simon Fisher

unread,
May 1, 2017, 7:50:43 PM5/1/17
to Ruby on Rails: Talk
Thanks Edsil, Frederick. How did you solve it? Is it as simple as specifying a Ruby version >= 2.3 in your gemfile?

I noticed from the Heroku doco the default ruby version if none is specified in the gemfile is MRI 2.3.4

Edsil Basadre

unread,
May 1, 2017, 10:57:55 PM5/1/17
to rubyonra...@googlegroups.com
Hi Simon, have you tried specifying Ruby version on your Gemfile? 

e.g

source "https://rubygems.org"
ruby "2.4.1"

To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/fe071453-102d-4cd5-9ab8-d7a279c6845b%40googlegroups.com.

Simon Fisher

unread,
May 6, 2017, 12:38:03 AM5/6/17
to Ruby on Rails: Talk
Indeed, specifying the Ruby version in the gemfile worked. Thanks all for your help.

Edsil Basadre

unread,
May 6, 2017, 6:34:48 AM5/6/17
to rubyonra...@googlegroups.com
Great! 

To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe@googlegroups.com.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/rubyonrails-talk/40b8364f-2420-4f1b-9b47-f266b3db142e%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages