Bug 1176632
Summary: | Unable to access rails console with rails 4 quickstart | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Timothy Williams <tiwillia> |
Component: | Templates | Assignee: | Jakub Hadvig <jhadvig> |
Status: | CLOSED DEFERRED | QA Contact: | libra bugs <libra-bugs> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.x | CC: | jdenemar, jokerman, lmeyer, mmccomas, tyron6397 |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-04-15 19:45:26 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Timothy Williams
2014-12-22 16:01:33 UTC
This seems to be complaining about ruby 1.8 failing to process ruby 1.9+ syntax. It doesn't matter if you "fix" the syntax to get further, as the problem is that you're running ruby 1.8 and Rails 4 doesn't support ruby 1.8. The question is why you're ending up with ruby 1.8. Under ruby-2.0 I would expect to see the ruby200 scl automatically used when you ssh in. ruby -v and "which gem" show the versions under the ruby200 SCL: > which ruby /opt/rh/ruby200/root/usr/bin/ruby > which gem /opt/rh/ruby200/root/usr/bin/gem But bundle isn't: > which bundle /usr/bin/bundle For that you're getting the system bundler from the system ruby which is 1.8, thus the error. Not sure if this would be considered a bug. There's just no bundler installed for ruby200. You can do so yourself: > gem install bundler Fetching: bundler-1.7.11.gem (100%) Successfully installed bundler-1.7.11 1 gem installed > which bundle /var/lib/openshift/54aadc1b57f5e1d00d000192/.gem/bin/bundle ... and then everything should work. Should the ruby-2.0 cartridge imply a dependency on ruby200-rubygem-bundler? Thanks for the investigation, looks like a workaround is as follows: 1) SSH to gear and run `gem install bundler` 2) Add the marker file .openshift/markers/force_clean_build and git push 3) Remove the marker file and do another git push 4) SSH to the gear and log into the console as usual. In my opinion, we should include a dependency on the ruby200 SCL bundler in the ruby-2.0 cartridge. The rails console functionality is pretty standard and often necessary. Play klondike solitaire online free,enjoy to play this game,such a great amazing simple skill based game https://solitaire-klondike.net this is most popular online card game. |