Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Deploy to Heroku" button breaks because of unsupported ruby version #58

Open
2 tasks done
mshenfield opened this issue Sep 23, 2017 · 0 comments
Open
2 tasks done

Comments

@mshenfield
Copy link

mshenfield commented Sep 23, 2017

When I clicked the "Deploy to Heroku" and filled out the required information, I got the following console output at the "Build App" step.

-----> Ruby app detected
-----> Compiling Ruby
       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-16/ruby-2.1.2.tgz -s -o - | tar zxf - ' failed on attempt 1 of 3.
       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-16/ruby-2.1.2.tgz -s -o - | tar zxf - ' failed on attempt 2 of 3.
 !
 !     An error occurred while installing ruby-2.1.2
 !     
 !     Heroku recommends you use the latest supported Ruby version listed here:
 !     https://devcenter.heroku.com/articles/ruby-support#supported-runtimes
 !     
 !     For more information on syntax for declaring a Ruby version see:
 !     https://devcenter.heroku.com/articles/ruby-versions
 !     
 !     
 !     Debug InformationCommand: '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-16/ruby-2.1.2.tgz -s -o - | tar zxf - ' failed unexpectedly:
 !     
 !     gzip: stdin: unexpected end of file
 !     tar: Child returned status 1
 !     tar: Error is not recoverable: exiting now
 !
 !     Push rejected, failed to compile Ruby app.
 !     Push failed

For some reason the buildpack for Ruby 2.1.2 is not able to be downloaded correctly. It looks the ruby version is not in the list of ruby versions supported by Heroku, which may be the source of the issue. To update the ruby version, it needs to be bumped in the

  • the Gemfile
  • .travis.yaml

Additional changes may be required to update the project to a supported ruby version.

mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.4.2 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes). The current version is causing deploys of this app to Heroku to fail.

I wasn't able to test the changes locally because of a [known issue](ruby/json#286) building json 1.8.3, a dependency of the "twitter" gem. I'm using the build process on Heroku and Travis as a barometer of "this works".
mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.4.2 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes). The current version is causing deploys of this app to Heroku to fail.

I wasn't able to test the changes locally because of a [known issue](ruby/json#286) building json 1.8.3, a dependency of the "twitter" gem. I'm using the build process on Heroku and Travis as a barometer of "this works".
mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.3.5 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes) and `json` 1.8.1. The current version is causing deploys of this app to Heroku to fail.

I wasn't able to test the changes locally because of a [known issue](ruby/json#286) building json 1.8.3, a dependency of the "twitter" gem. I'm using the build process on Heroku and Travis as a barometer of "this works".
mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.2.8 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes) and `json` 1.8.1. The current version is causing deploys of this app to Heroku to fail.

I wasn't able to test the changes locally because of a [known issue](ruby/json#286) building json 1.8.3, a dependency of the "twitter" gem. I'm using the build process on Heroku and Travis as a barometer of "this works".
mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.4.2 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes). The current version is causing deploys of this app to Heroku to fail.

This also updates the `json` version in the lockfile [known issue](ruby/json#286) causing it to fail to build locally or on Heroku.
mshenfield pushed a commit to mshenfield/CutePets that referenced this issue Sep 23, 2017
Closes codeforamerica#58. 2.4.2 is the latest version of ruby [supported by Heroku](https://devcenter.heroku.com/articles/ruby-support#supported-runtimes). The current version is causing deploys of this app to Heroku to fail.

This also updates various dependencies in the lockfile using `bundle update #{name}` because of issues related to newer versions of ruby.

- `json` [⚠](ruby/json#286)
- `safe_yaml` [⚠](dtao/safe_yaml#67)
- `webmock` [⚠] (bblimke/webmock#683)

For folks that have this checked out locally, I also had to `brew install --force` to force an up to date build of `http_parse.rb`, which was throwing `Symbol not found: _rb_cFixnum`.

Finally, this updates petharbor cassette to include URL encoded quotes - this is probably just an internal change to `URI.encode_www_form`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant