Error when doing "Push heroku master"


#1

Hi,

I keep getting this error message: An error occurred while installing ruby-2.2.6
remote: !
remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version
remote: ! of Ruby on the Heroku-18 stack can found at:
remote: !
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes

I can’t get passed this problem, what am I supposed to do? Can anyone help please!

c:\Sites\railsbridge\test_app>git push heroku master
Enumerating objects: 259, done.
Counting objects: 100% (259/259), done.
Delta compression using up to 4 threads
Compressing objects: 100% (220/220), done.
Writing objects: 100% (259/259), 171.28 KiB | 1.48 MiB/s, done.
Total 259 (delta 17), reused 0 (delta 0)
remote: Compressing source files… done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.6.tgz -s -o - | tar zxf - ’ failed on attempt 1 of 3.
remote: Command: 'set -o pipefail; curl -L --fail --retry 5 --retry-delay 1 --connect-timeout 3 --max-time 30 https://s3-external-1.amazonaws.com/heroku-buildpack-ruby/heroku-18/ruby-2.2.6.tgz -s -o - | tar zxf - ’ failed on attempt 2 of 3.
remote:
remote: !
remote: ! An error occurred while installing ruby-2.2.6
remote: !
remote: ! This version of Ruby is not available on Heroku-18. The minimum supported version
remote: ! of Ruby on the Heroku-18 stack can found at:
remote: !
remote: ! https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to ancient-plains-62702.
remote:
To https://git.heroku.com/ancient-plains-62702.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/ancient-plains-62702.git

c:\Sites\railsbridge\test_app>ruby -v
ruby 2.2.6p396 (2016-11-15 revision 56800) [i386-mingw32]


#2

What OS are you using and what version of Ruby?


#4

I’m using windows 10 (unfortunately my only option).

I’m currently using ruby 2.2.6 - ruby 2.2.6p396 (2016-11-15 revision 56800) [i386-mingw32].

I got exactly the same error message when I tried using ruby 2.3.3 version.


#5

Why are you using old versions of Ruby. The current version is 2.5.3


#6

I am doing a command line crash course from the TOP “Web development 101” and that’s what came with “railinstaller”. Is there any way to update my ruby through command prompt with Ruby and Rails?

Thanks!


#7

Are you using plain win 10 or wsl?


#8

I’m using plain windows 10.


#9

I used this to install the latest version of ruby, but I am using linux. You should be able to use it with windows as well. https://rvm.io/rvm/install


#10

Tried it but now I’m getting another error message when trying do use \curl -sSL https://get.rvm.io | bash
: BASH 3.2.25 required (you have 3.1.17(1)-release).

I think I’m just going to skip this step and use cloud9. Been searching for this solution everywhere and nothing seems to work.

I have installed newer version of Ruby but is there any way to change directory in the command prompt with Ruby and Rails?


#11

Okay, so I ended up downloading and setting up Ubunutu for windows. After many hours I was actually set up everything and create my first app. Have to admit that was very difficult…

Thank you very much for your helo chronicat!


#12

What would the solution be for Mac OS? ruby-2.3.7
tried looking at https://devcenter.heroku.com/articles/ruby-support#supported-runtimes but got lost in all the different versions of ruby specified, so don’t know which one to update to


#13

The latest Ruby is 2.6.1