Setting up teamcity to run rails specs - ruby-on-rails

I'm trying to set up teamcity 5.0.2 to run my rails projects specs (just rake spec)
My setup is:
local git repo
rails app root in
side it (git_root/site_root)
my rake runner settings are:
path to rakefile: site_root/Rakefile
working directory: site_root
rake tasks: spec
attached reporters: rspec
everything else is default.
when I run the build i get the following output:
Checking for changes
Clearing temporary directory: /home/michaelbaldry/Downloads/TeamCity/buildAgent/temp/buildTmp
Checkout directory: /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41
Updating sources: server side checkout...
[Updating sources: server side checkout...] Building incremental patch for VCS root: local projects
[Updating sources: server side checkout...] Repository sources transferred
Starting build process in /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root
/usr/bin/ruby /home/michaelbaldry/Downloads/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rakerunner.rb --rakefile /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/Rakefile spec SPEC_OPTS=--require 'teamcity/spec/runner/formatter/teamcity/formatter' --format Spec::Runner::Formatter::TeamcityFormatter:matrix
(in /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root)
LoadError: no such file to load -- /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/config/../vendor/rails/railties/lib/initializer Stacktrace: /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/config/boot.rb:45:in `load_initializer' /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/config/boot.rb:38:in `run' /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/config/boot.rb:11:in `boot!' /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/config/boot.rb:109 /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require' /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require' /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/Rakefile:4 /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `load' /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile' /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile' /home/michaelbaldry/Downloads/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:621:in `standard_exception_handling' /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile' /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:2000:in `run' /home/michaelbaldry/Downloads/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:621:in `standard_exception_handling' /home/michaelbaldry/.gem/ruby/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run' /home/michaelbaldry/Downloads/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rake_ext.rb:357:in `run' /home/michaelbaldry/Downloads/TeamCity/buildAgent/plugins/rake-runner/lib/rb/runner/rakerunner.rb:79 Source: /home/michaelbaldry/Downloads/TeamCity/buildAgent/work/65c3a24ba4d13a41/site_root/Rakefile:4
Rake aborted!
Process exit code: 1
Build finished
any help is very much appreciated!

I had a similar problem. I clicked on the "Build Log" tab and was able to see more detail than the "Overview" tab.
I found a workaround:
gem uninstall test-unit
I can't say I like this solution but at least it worked. The Build Log lead me to google for uninitialized constant Test::Unit::TestResult::TestResultFailureSupport which lead me to another "uninitialized constant error" resource on stackoverflow.com which had the solution.

Related

Rails app stopped running locally after pushing it to Heroku master

I pushed a (very simple) Rails app up to Heroku, the build was successful and it works online (minus some route issues), but now I can't get it to run locally. It's actually a clone of the "getting started" app I thought I'd modify to avoid deployment issues. When I try to start a Rails server I get the following message:
$ rails s
Looks like your app's ./bin/rails is a stub that was generated by Bundler.
In Rails 4, your app's bin/ directory contains executables that are versioned
like any other source code, rather than stubs that are generated on demand.
Here's how to upgrade:
bundle config --delete bin # Turn off Bundler's stub generator
rake rails:update:bin # Use the new Rails 4 executables
git add bin # Add bin/ to source control
You may need to remove bin/ from your .gitignore as well.
When you install a gem whose executable you want to use in your app,
generate it and add it to source control:
bundle binstubs some-gem-name
git add bin/new-executable
Bundler::GemRequireError: There was an error while trying to load the gem 'uglifier'.
Gem Load Error is: Could not find a JavaScript runtime. See https://github.com/rails/execjs for a list of available runtimes.
Backtrace for gem load error is:
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/execjs-2.7.0/lib/execjs/runtimes.rb:58:in `autodetect'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/execjs-2.7.0/lib/execjs.rb:5:in `<module:ExecJS>'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/execjs-2.7.0/lib/execjs.rb:4:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `block in require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:240:in `load_dependency'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/activesupport-4.2.4/lib/active_support/dependencies.rb:274:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/uglifier-3.2.0/lib/uglifier.rb:1:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/uglifier-3.2.0/lib/uglifier.rb:5:in `block in (root)'
org/jruby/RubyArray.java:1734:in `each'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:1:in `block in (root)'
org/jruby/RubyArray.java:1734:in `each'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:82:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:77:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:66:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler.rb:108:in `block in require'
org/jruby/RubyKernel.java:1747:in `tap'
C:/blog/config/application.rb:7:in `(root)'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:1:in `(root)'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:78:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75:in `block in server'
org/jruby/RubyKernel.java:1298:in `loop'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands.rb:17:in `<main>'
org/jruby/RubyKernel.java:961:in `require'
C:/jruby-9.1.12.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54:in `require'
C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/app_rails_loader.rb:1:in `<main>'
org/jruby/RubyKernel.java:979:in `load'
C:/jruby-9.1.12.0/bin/rails:22:in `<main>'
Bundler Error Backtrace:
block in require at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:85
each at org/jruby/RubyArray.java:1734
block in require at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:77
each at org/jruby/RubyArray.java:1734
require at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler/runtime.rb:66
require at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/bundler-1.15.3/lib/bundler.rb:108
<main> at C:/blog/config/application.rb:7
require at org/jruby/RubyKernel.java:961
block in (root) at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:1
tap at org/jruby/RubyKernel.java:1747
server at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:78
server at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:75
<main> at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands/commands_tasks.rb:39
require at org/jruby/RubyKernel.java:961
block in (root) at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/commands.rb:17
loop at org/jruby/RubyKernel.java:1298
(root) at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/app_rails_loader.rb:1
<main> at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/app_rails_loader.rb:45
require at org/jruby/RubyKernel.java:961
require at C:/jruby-9.1.12.0/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:54
<main> at C:/jruby-9.1.12.0/lib/ruby/gems/shared/gems/railties-4.2.4/lib/rails/app_rails_loader.rb:34
load at org/jruby/RubyKernel.java:979
<main> at C:/jruby-9.1.12.0/bin/rails:22
Removing uglifier and coffee-rails gets the app up and running locally so, I tried that and followed the upgrade instructions, then used bundle install to add them again, with the same result. I also can't push a version of this app up to Heroku without those gems so I'm left scratching my head where to go from here.
Here is a copy of the app I pushed to Git (excuse the language on one of the commits I was quite frustrated) to help with trouble shooting
https://github.com/taswelldavis/blog
Thanks for the help,
Anna

How do I run specs for the activeadmin gem

I am trying to run the specs for a local clone of the activeadmin gems current master.
I am using ruby 2.2.2 and have bundled successfully.
When I try to run one of the specs like so:
bundle exec rspec spec/unit/filters/humanized_spec.rb
I am getting the following error:
The git source https://github.com/jruby/activerecord-jdbc-adapter is not yet checked out. Please run `bundle install` before trying to start your application
Coverage report generated for RSpec to /Users/aljoscha/gem/activeadmin/coverage. 0.0 / 0.0 LOC (100.0%) covered.
/Users/aljoscha/gem/activeadmin/spec/rails_helper.rb:13:in `require': cannot load such file -- active_record (LoadError)
from /Users/aljoscha/gem/activeadmin/spec/rails_helper.rb:13:in `<top (required)>'
from /Users/aljoscha/gem/activeadmin/spec/unit/filters/humanized_spec.rb:1:in `require'
from /Users/aljoscha/gem/activeadmin/spec/unit/filters/humanized_spec.rb:1:in `<top (required)>'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `load'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1435:in `block in load_spec_files'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `each'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/configuration.rb:1433:in `load_spec_files'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:100:in `setup'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:86:in `run'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:71:in `run'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/lib/rspec/core/runner.rb:45:in `invoke'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/gems/rspec-core-3.5.4/exe/rspec:4:in `<top (required)>'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/bin/rspec:22:in `load'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/bin/rspec:22:in `<main>'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `eval'
from /Users/aljoscha/.rvm/gems/ruby-2.2.2/bin/ruby_executable_hooks:15:in `<main>'
which I cannot make sense of.
Especially since activerecord-jdbc-adapter is not even in the Gemfile.
What am I missing?
Try prepending your command with bundle exec:
bundle exec rspec spec/unit/filters/humanized_spec.rb
It looks like you have a local version discrepancy causing issues.
If not, did you follow all of the steps listed on their contributing readme?
If you are still stuck, you may be experiencing an issue with bundler itself. First, try updating bundler then reinstalling gems and attempt to run rspec. If that doesn't work you may need to delete the bundle cache folder and start over.
I'm going to re-answer to emphasize how to test a gem using appraisal as mentioned in CONTIBUTING:
bundle exec appraisal install
bundle exec appraisal rails_50 rspec spec/unit/filters/humanized_spec.rb
Thank you for your interest in Active Admin.

Ruby on Rails: rb_class_superclass not located in msvcrt-ruby191.dll (ruby-prof error?)

So, long story short, I had o format and reinstall my OS hence all my dev utilities.
git env sorted.
DevKit was fine.
Sphinx/mysql fine.
Bundle installed perfectly.
Everything is gravy until I go to rake db:create and build my database.
Environment:
OS: Win7 64-bit
Ruby192
gem -v 1.8.24
rails 3.1.3
Now the problem, when I rake anything I get a pop-up window
ruby.exe - Entry Point Not Found
The procedure entry point rb_class_superclass could not be located in the dynamic link library msvcrt-ruby191.dll
I've tried clean installing ruby, clearing the gems and reinstalling. Stuck on what to do next.
trace output:
rake aborted!
no such file to load -- ruby/prof
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:74:in `require'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:74:in `rescue in block in require'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:62:in `block in require'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `each'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler/runtime.rb:55:in `require'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/bundler-1.1.4/lib/bundler.rb:119:in `require'
E:/Documents/Websites/rails-app /trunk/config/application.rb:7:in `<top (required)>'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
C:/Ruby192/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
E:/Documents/Websites/rails-app/trunk/Rakefile:4:in `<top (required)>'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/rake_module.rb:25:in `load_rakefile'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `block in load_rakefile'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `block in run'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
C:/Ruby192/lib/ruby/gems/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in `<top (required)>'
C:/Ruby192/bin/rake:23:in `load'
C:/Ruby192/bin/rake:23:in `<main>'
I've seen similar issues raised but for different lines in the dll and relating to sqlite3. I'm not using sqlite3 at all though. I'm on mysql with the mysql2 connector.
Any help?
I think I figured this out.
In the gemfile I replaced:
gem "ruby-prof"
with:
gem "ruby-prof", "0.10.8"
and all of a sudden I was rolling onto the next issue, which was specifying my rake version. I think both issues are related to an incompatability between the gems and my rubygems verson (I'm guessing??). This is the only difference I could see between my laptop environment, my desktop environment and my production server.
Either way. Sorted!

What is causing private method `gsub` called for nil:NilClass during Rails migration?

I've never sent this one before. I'm configuring a new server with an existing application. Trying to run a migration and here's the output.
root#beta:/vol/opt/dev/capistrano/foo-alpha/releases/20120330233010# RAILS_ENV=production rake db:migrate --trace
rake aborted!
private method `gsub' called for nil:NilClass
/usr/local/rvm/gems/jruby-1.6.6#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:77:in `require'
org/jruby/RubyArray.java:1614:in `each'
/usr/local/rvm/gems/jruby-1.6.6#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
/usr/local/rvm/gems/jruby-1.6.6#global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
/vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/config/application.rb:7:in `(root)'
org/jruby/RubyKernel.java:1027:in `require'
/usr/local/rvm/rubies/jruby-1.6.6/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
/vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/config/application.rb:4:in `(root)'
org/jruby/RubyKernel.java:1052:in `load'
/vol/opt/dev/capistrano/foo-alpha/releases/20120330233010/Rakefile:25:in `load_rakefile'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:501:in `raw_load_rakefile'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:82:in `load_rakefile'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:81:in `load_rakefile'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:65:in `run'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/usr/local/rvm/gems/jruby-1.6.6#foo/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1052:in `load'
/usr/local/rvm/gems/jruby-1.6.6#foo/bin/rake:19:in `(root)'
Migrations on my local laptop and on an existing server are working fine. config/database.yml looks right. Database is up and running and I can connect to it. What is this?
I also just tested rails console and I'm also not able to get a console. Again a private method gsub called for nil:NilClass. It's somehow related to connecting to the database and I'm not sure how/why.
** UPDATE **
After adding some debug into runtime.rb, this is the exception that's being raised:
#<LoadError: no such file to load -- activerecord-jdbcmysql-adapter>
The messed up part is, it is installed:
# gem list |grep -i activerecord-jdbcmysql-adapter
activerecord-jdbcmysql-adapter (1.2.2)
Is this some kind of RVM or bundler bug?
** LAST UPDATE **
I installed Amazon Linux AMI (The other is running an Ubuntu) and cannot replicate this issue there.
This is a bug in bundler, it was reported for rvm-capistrano, please check your Gemfile and try removing / commenting some gems.
https://github.com/carlhuda/bundler/issues/1801

deploying rails app to heroku migrations rake error on windows

I am attempting to deploy my app to heroku via a windows 7 machine.
I've made it as far as git push heroku master without running into any major issues but when I try to rake the migrations i get the following error
$ heroku rake db:migrate --trace
rake aborted!
No such file or directory - /disk1/tmp/13403_23723015091620/.bundle/gems/specifi
cations/activesupport-2.3.8.gemspec
/disk1/home/slugs/211056_9194ad5_13a9/mnt/.bundle/environment.rb:178:in `read'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/.bundle/environment.rb:178
/disk1/home/slugs/211056_9194ad5_13a9/mnt/.bundle/environment.rb:147:in `map'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/.bundle/environment.rb:147
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/config/../config/preinitializer.rb:3
/disk1/home/slugs/211056_9194ad5_13a9/mnt/config/boot.rb:28:in `load'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/config/boot.rb:28:in `preinitialize'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/config/boot.rb:10:in `boot!'
/disk1/home/slugs/211056_9194ad5_13a9/mnt/config/boot.rb:129
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require' /disk1/home/slugs/211056_9194ad5_13a9/mnt/Rakefile:4
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:238
3:in `raw_load_rakefile'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2017:in `load_rakefile'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2000:in `run'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/home/slugs/211056_9194ad5_13a9/mnt/.bundle/gems/gems/rake-0.8.7/bin/rake:31
/usr/local/bin/rake:19:in `load'
/usr/local/bin/rake:19
(in /disk1/home/slugs/211056_9194ad5_13a9/mnt)
I should mention, though it could be determined from the above code, that I am using bundler. Perhaps it is due to this.
I'm at a total loss as to what this could mean. I came across this SO thread, but all the fixes it presented I had already tried and they didn't work. I am beginning to appreciate why rails deployment is derided so. Any suggestions?
Did you already take a look on Heroku's documentation about Bundler at http://docs.heroku.com/bundler ?
Are you sure that your Gemfile and Gemfile.lock files are added to your git repository?
I'm able to duplicate this problem:
http://github.com/heroku/heroku/issues#issue/30
The same Rails app will deploy via OS X.

Resources