cap deploy throws “Ruby version is 2.2.5, but your Gemfile specified 2.5.3”, except my Ruby version is...












0















Out of absolutely nowhere (not an exaggeration: I deployed two hours before this exception started happening), cap production deploy stopped working and is throwing this error:



Your Ruby version is 2.2.5, but your Gemfile specified 2.5.3
bundle stderr: Nothing written


Except I'm using 2.5.3, as specified in both gemfile and in .ruby-version.



This is what's in my gemfile:



source 'https://rubygems.org'

ruby '2.5.3'


I'm using rvm. ruby -v returns ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18], and ruby is set to global. I've tried running gem update bundler, gem install bundler followed by bundle install, bundle, and deleted gemfile.lock.



$ bundle env
Bundler 1.17.1
Platforms ruby, x86_64-darwin-18
Ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
Full Path /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
Config Dir /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
RubyGems 2.7.8
Gem Home /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
Gem Path /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-
b2b:/Users/mirai/.rvm/gems/ruby-2.5.3@global
User Path /Users/mirai/.gem/ruby/2.5.0
Bin Dir /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin

$ which -a bundle
/Users/mirai/.rvm/rubies/ruby-2.5.3/bin/bundle
/usr/local/bin/bundle


Edit: Output of $ gem env:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@mirai-b2b
- USER INSTALLATION DIRECTORY: /Users/mirai/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
- EXECUTABLE DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- SPEC CACHE DIRECTORY: /Users/mirai/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
- /Users/mirai/.rvm/gems/ruby-2.5.3@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/"]
- "update" => "--env-shebang"
- "benchmark" => false
- "install" => "--env-shebang"
- "gem" => "-n/usr/local/bin"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- SHELL PATH:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- /Users/mirai/.rvm/gems/ruby-2.5.3@global/bin
- /Users/mirai/.rvm/rubies/ruby-2.5.3/bin
- /Users/mirai/.rvm/bin
- /usr/local/opt/openssl/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/local/bin
- /opt/local/sbin
- /usr/local/MacGPG2/bin
- /opt/X11/bin


I'm using AWS. bundle exec cap production deploy throws the same error.










share|improve this question

























  • It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

    – thefolenangel
    Nov 14 '18 at 10:38











  • Can you add to your post the output of gem env and perhaps anything relevant in Capfile

    – lacostenycoder
    Nov 14 '18 at 11:13











  • Try bundle exec cap production deploy this will execute in the context of bundler

    – engineersmnky
    Nov 14 '18 at 15:23











  • @lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

    – lyrium
    Nov 15 '18 at 4:43











  • @engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

    – lyrium
    Nov 15 '18 at 4:44
















0















Out of absolutely nowhere (not an exaggeration: I deployed two hours before this exception started happening), cap production deploy stopped working and is throwing this error:



Your Ruby version is 2.2.5, but your Gemfile specified 2.5.3
bundle stderr: Nothing written


Except I'm using 2.5.3, as specified in both gemfile and in .ruby-version.



This is what's in my gemfile:



source 'https://rubygems.org'

ruby '2.5.3'


I'm using rvm. ruby -v returns ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18], and ruby is set to global. I've tried running gem update bundler, gem install bundler followed by bundle install, bundle, and deleted gemfile.lock.



$ bundle env
Bundler 1.17.1
Platforms ruby, x86_64-darwin-18
Ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
Full Path /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
Config Dir /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
RubyGems 2.7.8
Gem Home /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
Gem Path /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-
b2b:/Users/mirai/.rvm/gems/ruby-2.5.3@global
User Path /Users/mirai/.gem/ruby/2.5.0
Bin Dir /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin

$ which -a bundle
/Users/mirai/.rvm/rubies/ruby-2.5.3/bin/bundle
/usr/local/bin/bundle


Edit: Output of $ gem env:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@mirai-b2b
- USER INSTALLATION DIRECTORY: /Users/mirai/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
- EXECUTABLE DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- SPEC CACHE DIRECTORY: /Users/mirai/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
- /Users/mirai/.rvm/gems/ruby-2.5.3@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/"]
- "update" => "--env-shebang"
- "benchmark" => false
- "install" => "--env-shebang"
- "gem" => "-n/usr/local/bin"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- SHELL PATH:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- /Users/mirai/.rvm/gems/ruby-2.5.3@global/bin
- /Users/mirai/.rvm/rubies/ruby-2.5.3/bin
- /Users/mirai/.rvm/bin
- /usr/local/opt/openssl/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/local/bin
- /opt/local/sbin
- /usr/local/MacGPG2/bin
- /opt/X11/bin


I'm using AWS. bundle exec cap production deploy throws the same error.










share|improve this question

























  • It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

    – thefolenangel
    Nov 14 '18 at 10:38











  • Can you add to your post the output of gem env and perhaps anything relevant in Capfile

    – lacostenycoder
    Nov 14 '18 at 11:13











  • Try bundle exec cap production deploy this will execute in the context of bundler

    – engineersmnky
    Nov 14 '18 at 15:23











  • @lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

    – lyrium
    Nov 15 '18 at 4:43











  • @engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

    – lyrium
    Nov 15 '18 at 4:44














0












0








0








Out of absolutely nowhere (not an exaggeration: I deployed two hours before this exception started happening), cap production deploy stopped working and is throwing this error:



Your Ruby version is 2.2.5, but your Gemfile specified 2.5.3
bundle stderr: Nothing written


Except I'm using 2.5.3, as specified in both gemfile and in .ruby-version.



This is what's in my gemfile:



source 'https://rubygems.org'

ruby '2.5.3'


I'm using rvm. ruby -v returns ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18], and ruby is set to global. I've tried running gem update bundler, gem install bundler followed by bundle install, bundle, and deleted gemfile.lock.



$ bundle env
Bundler 1.17.1
Platforms ruby, x86_64-darwin-18
Ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
Full Path /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
Config Dir /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
RubyGems 2.7.8
Gem Home /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
Gem Path /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-
b2b:/Users/mirai/.rvm/gems/ruby-2.5.3@global
User Path /Users/mirai/.gem/ruby/2.5.0
Bin Dir /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin

$ which -a bundle
/Users/mirai/.rvm/rubies/ruby-2.5.3/bin/bundle
/usr/local/bin/bundle


Edit: Output of $ gem env:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@mirai-b2b
- USER INSTALLATION DIRECTORY: /Users/mirai/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
- EXECUTABLE DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- SPEC CACHE DIRECTORY: /Users/mirai/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
- /Users/mirai/.rvm/gems/ruby-2.5.3@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/"]
- "update" => "--env-shebang"
- "benchmark" => false
- "install" => "--env-shebang"
- "gem" => "-n/usr/local/bin"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- SHELL PATH:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- /Users/mirai/.rvm/gems/ruby-2.5.3@global/bin
- /Users/mirai/.rvm/rubies/ruby-2.5.3/bin
- /Users/mirai/.rvm/bin
- /usr/local/opt/openssl/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/local/bin
- /opt/local/sbin
- /usr/local/MacGPG2/bin
- /opt/X11/bin


I'm using AWS. bundle exec cap production deploy throws the same error.










share|improve this question
















Out of absolutely nowhere (not an exaggeration: I deployed two hours before this exception started happening), cap production deploy stopped working and is throwing this error:



Your Ruby version is 2.2.5, but your Gemfile specified 2.5.3
bundle stderr: Nothing written


Except I'm using 2.5.3, as specified in both gemfile and in .ruby-version.



This is what's in my gemfile:



source 'https://rubygems.org'

ruby '2.5.3'


I'm using rvm. ruby -v returns ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18], and ruby is set to global. I've tried running gem update bundler, gem install bundler followed by bundle install, bundle, and deleted gemfile.lock.



$ bundle env
Bundler 1.17.1
Platforms ruby, x86_64-darwin-18
Ruby 2.5.3p105 (2018-10-18 revision 65156) [x86_64-darwin18]
Full Path /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
Config Dir /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
RubyGems 2.7.8
Gem Home /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
Gem Path /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-
b2b:/Users/mirai/.rvm/gems/ruby-2.5.3@global
User Path /Users/mirai/.gem/ruby/2.5.0
Bin Dir /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin

$ which -a bundle
/Users/mirai/.rvm/rubies/ruby-2.5.3/bin/bundle
/usr/local/bin/bundle


Edit: Output of $ gem env:



RubyGems Environment:
- RUBYGEMS VERSION: 2.7.8
- RUBY VERSION: 2.5.3 (2018-10-18 patchlevel 105) [x86_64-darwin18]
- INSTALLATION DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@mirai-b2b
- USER INSTALLATION DIRECTORY: /Users/mirai/.gem/ruby/2.5.0
- RUBY EXECUTABLE: /Users/mirai/.rvm/rubies/ruby-2.5.3/bin/ruby
- EXECUTABLE DIRECTORY: /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- SPEC CACHE DIRECTORY: /Users/mirai/.gem/specs
- SYSTEM CONFIGURATION DIRECTORY: /Users/mirai/.rvm/rubies/ruby-2.5.3/etc
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-18
- GEM PATHS:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b
- /Users/mirai/.rvm/gems/ruby-2.5.3@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- :sources => ["http://gems.rubyforge.org/"]
- "update" => "--env-shebang"
- "benchmark" => false
- "install" => "--env-shebang"
- "gem" => "-n/usr/local/bin"
- REMOTE SOURCES:
- http://gems.rubyforge.org/
- SHELL PATH:
- /Users/mirai/.rvm/gems/ruby-2.5.3@greentea-b2b/bin
- /Users/mirai/.rvm/gems/ruby-2.5.3@global/bin
- /Users/mirai/.rvm/rubies/ruby-2.5.3/bin
- /Users/mirai/.rvm/bin
- /usr/local/opt/openssl/bin
- /usr/local/bin
- /usr/bin
- /bin
- /usr/sbin
- /sbin
- /opt/local/bin
- /opt/local/sbin
- /usr/local/MacGPG2/bin
- /opt/X11/bin


I'm using AWS. bundle exec cap production deploy throws the same error.







ruby capistrano






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 15 '18 at 4:42







lyrium

















asked Nov 14 '18 at 10:30









lyriumlyrium

11




11













  • It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

    – thefolenangel
    Nov 14 '18 at 10:38











  • Can you add to your post the output of gem env and perhaps anything relevant in Capfile

    – lacostenycoder
    Nov 14 '18 at 11:13











  • Try bundle exec cap production deploy this will execute in the context of bundler

    – engineersmnky
    Nov 14 '18 at 15:23











  • @lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

    – lyrium
    Nov 15 '18 at 4:43











  • @engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

    – lyrium
    Nov 15 '18 at 4:44



















  • It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

    – thefolenangel
    Nov 14 '18 at 10:38











  • Can you add to your post the output of gem env and perhaps anything relevant in Capfile

    – lacostenycoder
    Nov 14 '18 at 11:13











  • Try bundle exec cap production deploy this will execute in the context of bundler

    – engineersmnky
    Nov 14 '18 at 15:23











  • @lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

    – lyrium
    Nov 15 '18 at 4:43











  • @engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

    – lyrium
    Nov 15 '18 at 4:44

















It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

– thefolenangel
Nov 14 '18 at 10:38





It would be beneficial if you provide information about the cloud provider, that you use for the deployment?

– thefolenangel
Nov 14 '18 at 10:38













Can you add to your post the output of gem env and perhaps anything relevant in Capfile

– lacostenycoder
Nov 14 '18 at 11:13





Can you add to your post the output of gem env and perhaps anything relevant in Capfile

– lacostenycoder
Nov 14 '18 at 11:13













Try bundle exec cap production deploy this will execute in the context of bundler

– engineersmnky
Nov 14 '18 at 15:23





Try bundle exec cap production deploy this will execute in the context of bundler

– engineersmnky
Nov 14 '18 at 15:23













@lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

– lyrium
Nov 15 '18 at 4:43





@lacostenycoder added to the post. There's nothing relevant in capfile except require "capistrano/rvm".

– lyrium
Nov 15 '18 at 4:43













@engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

– lyrium
Nov 15 '18 at 4:44





@engineersmnky Should've added it to the post, but bundle exec cap production deploy throws the same error.

– lyrium
Nov 15 '18 at 4:44












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298044%2fcap-deploy-throws-ruby-version-is-2-2-5-but-your-gemfile-specified-2-5-3-exc%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53298044%2fcap-deploy-throws-ruby-version-is-2-2-5-but-your-gemfile-specified-2-5-3-exc%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Danny Elfman

Retrieve a Users Dashboard in Tumblr with R and TumblR. Oauth Issues