Trouble pushing to Heroku - heroku

When pushing to Heroku, using command "git push heroku master" I'm getting these errors:
Precompiling assets failed.
Push rejected, failed to compile Ruby/Rails app.
I'm struggling to find a way to rectify this - any ideas?
$ git push heroku master
Counting objects: 284, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (261/261), done.
Writing objects: 100% (284/284), 62.35 KiB | 0 bytes/s, done.
Total 284 (delta 100), reused 0 (delta 0)
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Fetching git://github.com/thomas-mcdonald/bootstrap-sass.git
Using rake (10.1.0)
Using i18n (0.6.5)
Using minitest (4.7.5)
Installing multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Installing tzinfo (0.3.38)
Using activesupport (4.0.0)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.0)
Using mime-types (1.25)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.0)
Using activemodel (4.0.0)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.0)
Using activerecord (4.0.0)
Installing bcrypt-ruby (3.1.2)
Installing sass (3.2.12)
Using bootstrap-sass (3.0.0.0) from git://github.com/thomas-mcdonald/bootstrap-sass.git (at 3)
Using coffee-script-source (1.6.3)
Installing execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.0)
Installing coffee-rails (4.0.1)
Installing orm_adapter (0.4.0)
Installing warden (1.2.3)
Installing devise (3.1.1)
Using hike (1.2.3)
Installing jbuilder (1.5.2)
Using jquery-rails (3.0.4)
Installing json (1.8.1)
Using pg (0.17.0)
Using bundler (1.3.2)
Using tilt (1.4.1)
Using sprockets (2.10.0)
Installing sprockets-rails (2.0.1)
Using rails (4.0.0)
Using rails_serve_static_assets (0.0.1)
Installing rails_stdout_logging (0.0.3)
Using rails_12factor (0.0.2)
Using rdoc (3.12.2)
Installing sass-rails (4.0.1)
Using sdoc (0.3.20)
Using turbolinks (1.3.0)
Using uglifier (2.2.1)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (24.92s)
Cleaning up the bundler cache.
Removing sass-rails (3.2.6)
Removing puma (2.6.0)
Removing execjs (2.0.1)
Removing arel (3.0.2)
Removing rack-ssl (1.3.3)
Removing activemodel (3.2.14)
Removing coffee-rails (3.2.2)
Removing journey (1.0.4)
Removing rails (3.2.14)
Removing coffee-rails (4.0.0)
Removing sass (3.2.10)
Removing raindrops (0.12.0)
Removing pg (0.16.0)
Removing nokogiri (1.6.0)
Removing multi_json (1.8.0)
Removing mini_portile (0.5.1)
Removing rails_stdout_logging (0.0.2)
Removing json (1.8.0)
Removing unicorn (4.6.3)
Removing tzinfo (0.3.37)
Removing actionpack (3.2.14)
Removing activeresource (3.2.14)
Removing sprockets (2.2.2)
Removing sass-rails (4.0.0)
Removing builder (3.0.4)
Removing actionmailer (3.2.14)
Removing railties (3.2.14)
Removing rack-cache (1.2)
Removing bcrypt-ruby (3.0.1)
Removing kgio (2.8.1)
Removing jbuilder (1.5.1)
Removing sprockets-rails (2.0.0)
Removing activesupport (3.2.14)
Removing rack (1.4.5)
Removing activerecord (3.2.14)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
undefined local variable or method `config' for main:Object
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/config/environments/production.rb:83:in `<top (required)>'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:591:in `block (2 levels) in <class:Engine>'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:590:in `each'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/engine.rb:590:in `block in <class:Engine>'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:30:in `run'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `each'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:44:in `tsort_each_child'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:215:in `initialize!'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/railtie/configurable.rb:30:in `method_missing'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/config/environment.rb:5:in `<top (required)>'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `block in require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:213:in `load_dependency'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/activesupport-4.0.0/lib/active_support/dependencies.rb:228:in `require'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:189:in `require_environment!'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/railties-4.0.0/lib/rails/application.rb:249:in `block in run_tasks_blocks'
/tmp/build_5569ec14-f1a7-4b83-aad0-121447c4ec1c/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:54:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby/Rails app
To git#heroku.com:mappd.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:mappd.git'
Production.rb file (contents)
Mappd::Application.configure do
config.cache_classes = true
config.eager_load = true
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
config.serve_static_assets = false
config.assets.js_compressor = :uglifier
config.assets.compile = false
config.assets.digest = true
config.assets.version = '1.0'
config.log_level = :info
config.i18n.fallbacks = true
config.active_support.deprecation = :notify
config.log_formatter = ::Logger::Formatter.new
end
config.action_mailer.default_url_options = { :host => '#' }
Contents of development.rb
Mappd::Application.configure do
# Settings specified here will take precedence over those in config/application.rb.
# In the development environment your application's code is reloaded on
# every request. This slows down response time but is perfect for development
# since you don't have to restart the web server when you make code changes.
config.cache_classes = false
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching.
config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
# Raise an error on page load if there are pending migrations
config.active_record.migration_error = :page_load
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
#Required for Heroku
config.action_mailer.default_url_options = { :host => 'localhost:3000' }
end

The following line:
config.action_mailer.default_url_options = { :host => '#' }
is outside the configure block of your production.rb file
It must be inside:
Mappd::Application.configure do
# config exists only here
config.action_mailer.default_url_options = { :host => '#' }
end

In development.rb check for the existence of following block:
YourApplicationName::Application.configure do
config.active_support.deprecation = :log
config.cache_classes = false
end
where 'YourApplicationName' is the name of your rails application.

Related

rake aborted! LoadError: cannot load such file

I am completely newbie to this rails frame work and learning via online tutorials. I am in the process of developing a simple application with the help of rails(rails+Mysql).
Currently i am facing an issue with "rake" command.
When i tried to "rake db:schema:dump" the following errors are coming.Pls suggest me some thing.
Thanks in advance.
harsha#Trebuchet:~/simp_cms$ rake db:schema:dump --trace
rake aborted!
LoadError: cannot load such file -- bundler/setup
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/config/boot.rb:3:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/config/application.rb:1:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54:in `require'
/home/harsha/simp_cms/Rakefile:4:in `<top (required)>'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/rake_module.rb:28:in `load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:689:in `raw_load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:94:in `block in load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:93:in `load_rakefile'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:77:in `block in run'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:176:in `standard_exception_handling'
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rake/application.rb:75:in `run'
/home/harsha/.rbenv/versions/2.2.2/bin/rake:33:in `<main>'
harsha#Trebuchet:~/simp_cms$ bundle exec rake db:schema:dump --trace
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr in PATH, mode 040777
Could not find debugger-1.6.8 in any of the sources
Run `bundle install` to install missing gems.
harsha#Trebuchet:~/simp_cms$ gem install debugger -v 1.6.8
Building native extensions. This could take a while...
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr in PATH, mode 040777
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/home/harsha/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150628-11403-1nydzd5.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
My Ruby version, rails version and gem list
harsha#Trebuchet:~$ rails -v
Rails 4.2.2
harsha#Trebuchet:~$ rails -v
Rails 4.2.2
harsha#Trebuchet:~$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.2)
actionpack (4.2.2)
actionview (4.2.2)
activejob (4.2.2)
activemodel (4.2.2)
activerecord (4.2.2)
activesupport (4.2.2)
arel (6.0.0)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
erubis (2.7.0)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0, 5.4.3)
mysql2 (0.3.18)
nokogiri (1.6.6.2)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
rake (10.4.2)
rdoc (4.2.0)
spring (1.3.6)
test-unit (3.1.2, 3.0.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
Please find my database.yml file
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: simp_cms
password: secretpassword
socket: /tmp/mysql.sock
development:
<<: *default
database: simp_cms_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: simp_cms_test
please feel free to contact me for any more details...
Update 1:
installed bundler and ran "bundle install"
harsha#Trebuchet:~/simp_cms$ gem install bundler
Successfully installed bundler-1.10.5
Parsing documentation for bundler-1.10.5
Done installing documentation for bundler after 5 seconds
1 gem installed
harsha#Trebuchet:~/simp_cms$ gem list
*** LOCAL GEMS ***
actionmailer (4.2.2)
actionpack (4.2.2)
actionview (4.2.2)
activejob (4.2.2)
activemodel (4.2.2)
activerecord (4.2.2)
activesupport (4.2.2)
arel (6.0.0)
bigdecimal (1.2.7, 1.2.6)
binding_of_caller (0.7.2)
builder (3.2.2)
bundler (1.10.5)
columnize (0.9.0)
debug_inspector (0.0.2)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
erubis (2.7.0)
globalid (0.3.5)
i18n (0.7.0)
io-console (0.4.3)
json (1.8.3, 1.8.1)
loofah (2.0.2)
mail (2.6.3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0, 5.4.3)
mysql2 (0.3.18)
nokogiri (1.6.6.2)
power_assert (0.2.3, 0.2.2)
psych (2.0.13, 2.0.8)
rack (1.6.4)
rack-test (0.6.3)
rails-deprecated_sanitizer (1.0.3)
rails-dom-testing (1.0.6)
rails-html-sanitizer (1.0.2)
rake (10.4.2)
rdoc (4.2.0)
spring (1.3.6)
test-unit (3.1.2, 3.0.8)
thread_safe (0.3.5)
tzinfo (1.2.2)
harsha#Trebuchet:~/simp_cms$ bundle install
Using rake 10.4.2
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler.rb:315: warning: Insecure world writable dir /usr in PATH, mode 040777
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.7.0
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.2
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile 0.6.2
Using nokogiri 1.6.6.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.2
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.2
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.2
Using globalid 0.3.5
Using activejob 4.2.2
Using mime-types 2.6.1
Using mail 2.6.3
Using actionmailer 4.2.2
Using activemodel 4.2.2
Using arel 6.0.0
Using activerecord 4.2.2
Using debug_inspector 0.0.2
Using binding_of_caller 0.7.2
Using columnize 0.9.0
Using debugger-linecache 1.2.0
Using debugger-ruby_core_source 1.3.8
Using debugger 1.6.8
Using mysql2 0.3.18
Using bundler 1.10.5
Using thor 0.19.1
Using railties 4.2.2
Using sprockets 3.2.0
Using sprockets-rails 2.3.2
Using rails 4.2.2
Using rdoc 4.2.0
Using sdoc 0.4.1
Using spring 1.3.6
Using web-console 2.1.3
Bundle complete! 6 Gemfile dependencies, 44 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.
harsha#Trebuchet:~/simp_cms$
Now when i tried to use rake command.the below error is coming
harsha#Trebuchet:~/simp_cms$ bundle exec rake
/var/lib/gems/1.9.1/gems/bundler-1.10.5/lib/bundler/shared_helpers.rb:78: warning: Insecure world writable dir /usr in PATH, mode 040777
Could not find debugger-1.6.8 in any of the sources
Run `bundle install` to install missing gems.
harsha#Trebuchet:~/simp_cms$ gem install debugger -v 1.6.8
Building native extensions. This could take a while...
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/rubygems/ext/builder.rb:73: warning: Insecure world writable dir /usr in PATH, mode 040777
ERROR: Error installing debugger:
ERROR: Failed to build gem native extension.
/home/harsha/.rbenv/versions/2.2.2/bin/ruby -r ./siteconf20150628-3517-1lyt1uy.rb extconf.rb
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers. Check the mkmf.log file for more details. You may
need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=/home/harsha/.rbenv/versions/2.2.2/bin/$(RUBY_BASE_NAME)
/home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `initialize': No such file or directory # rb_sysopen - ./222/ruby_debug.h (Errno::ENOENT)
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `open'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1391:in `copy_file'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:485:in `copy_file'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:402:in `block in cp'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1570:in `block in fu_each_src_dest'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1584:in `fu_each_src_dest0'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:1568:in `fu_each_src_dest'
from /home/harsha/.rbenv/versions/2.2.2/lib/ruby/2.2.0/fileutils.rb:401:in `cp'
from extconf.rb:83:in `block in <main>'
from extconf.rb:82:in `each'
from extconf.rb:82:in `<main>'
extconf failed, exit code 1
Gem files will remain installed in /home/harsha/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/debugger-1.6.8 for inspection.
Results logged to /home/harsha/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/extensions/x86_64-linux/2.2.0-static/debugger-1.6.8/gem_make.out
harsha#Trebuchet:~/simp_cms$
it seems debugger gem is having some issues but not sure what they are
found the problem :: "debugger" gem is not compatible with ruby 2.x versions.
Hence commented debugger in gem file and ran "rbenv rehash" "bundle install" ...Thats all issue resolved.

push to Heroku failed / rake aborting! :: precompiling assets failed to compile Ruby app

I've upgraded the tool belt and setup an app in my Heroku account named tycoon but I'm getting an error trying to push to Heroku using git push Heroku master.
There were conflicts pushing to an existing app I deployed earlier so I deleted that app and created a new app called tycoon, but when I do a push i get the error I pasted down below.
It's difficult to make out what it was that tripped it up because it appears to be throwing the error (rake aborted!) in the middle or just after loading the logo image. Then after that, the first file it lists in the error reporting is a JS file (assets/javascript/application), but every line in that file is commented out so it's basically blank and I can't see how that could be causing this deployment error.
! Precompiling assets failed.
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$ git push heroku master
Initializing repository, done.
Counting objects: 1241, done.
Compressing objects: 100% (857/857), done.
Writing objects: 100% (1241/1241), 1.32 MiB | 262 KiB/s, done.
Total 1241 (delta 810), reused 610 (delta 343)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using Bundler version 1.3.2
New app detected loading default bundler cache
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin --deployment
Fetching gem metadata from https://rubygems.org/..........
Fetching gem metadata from https://rubygems.org/..
Fetching https://github.com/rails/rails.git
Fetching git://github.com/rails/coffee-rails.git
Fetching git://github.com/thoughtbot/paperclip.git
Fetching https://github.com/rails/sass-rails.git
Using rake (10.1.0)
Installing i18n (0.6.9)
Using minitest (4.7.5)
Using multi_json (1.8.2)
Using atomic (1.1.14)
Using thread_safe (0.1.3)
Using tzinfo (0.3.38)
Using activesupport (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using builder (3.1.4)
Using erubis (2.7.0)
Using rack (1.5.2)
Using rack-test (0.6.2)
Using actionpack (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Installing mime-types (1.25.1)
Using polyglot (0.3.3)
Using treetop (1.4.15)
Using mail (2.5.4)
Using actionmailer (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activemodel (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using activerecord-deprecated_finders (1.0.3)
Using arel (4.0.1)
Using activerecord (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using bcrypt-ruby (3.1.2)
Using sass (3.2.12)
Installing bootstrap-sass (3.0.2.0)
Installing climate_control (0.0.3)
Installing cocaine (0.5.3)
Using coffee-script-source (1.6.3)
Using execjs (2.0.2)
Using coffee-script (2.2.0)
Using thor (0.18.1)
Using railties (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using coffee-rails (4.0.1) from git://github.com/rails/coffee-rails.git (at master)
Installing faker (1.2.0)
Installing hash-deep-merge (0.1.1)
Using hike (1.2.3)
Installing jbuilder (1.0.2)
Using jquery-rails (3.0.4)
Using json (1.8.1)
Using bundler (1.3.2)
Installing lazy_high_charts (1.5.0)
Installing mortgage_calc (0.1.8)
Using paperclip (3.5.2) from git://github.com/thoughtbot/paperclip.git (at master)
Installing pg (0.15.1)
Using tilt (1.4.1)
Installing sprockets (2.10.1)
Using sprockets-rails (2.0.1)
Using rails (4.0.2) from https://github.com/rails/rails.git (at 4-0-stable)
Using rails_serve_static_assets (0.0.1)
Using rails_stdout_logging (0.0.3)
Using rails_12factor (0.0.2)
Using rdoc (3.12.2)
Using sass-rails (4.0.1) from https://github.com/rails/sass-rails.git (at master)
Using sdoc (0.3.20)
Installing turbolinks (1.1.1)
Installing uglifier (2.1.1)
Installing will_paginate (3.0.5)
Installing will_paginate-bootstrap (1.0.0)
Your bundle is complete! It was installed into ./vendor/bundle
Bundle completed (83.21s)
Cleaning up the bundler cache.
Removing coffee-rails (4.0.1)
Removing activeresource (3.2.14)
Removing actionpack (4.0.1)
Removing sass (3.2.10)
Removing activesupport (3.2.14)
Removing arel (3.0.2)
Removing builder (3.0.4)
Removing kgio (2.8.1)
Removing activemodel (4.0.1)
Removing jbuilder (1.5.2)
Removing sass-rails (4.0.1)
Removing coffee-rails (3.2.2)
Removing railties (4.0.1)
Removing tzinfo (0.3.37)
Removing puma (2.6.0)
Removing mini_portile (0.5.1)
Removing sprockets (2.2.2)
Removing execjs (2.0.1)
Removing sprockets (2.10.0)
Removing rails_stdout_logging (0.0.2)
Removing sass-rails (3.2.6)
Removing rack (1.4.5)
Removing jbuilder (1.5.1)
Removing activerecord (4.0.1)
Removing unicorn (4.6.3)
Removing bcrypt-ruby (3.0.1)
Removing journey (1.0.4)
Removing rack-ssl (1.3.3)
Removing activemodel (3.2.14)
Removing actionmailer (4.0.1)
Removing i18n (0.6.5)
Removing rack-cache (1.2)
Removing activerecord (3.2.14)
Removing activesupport (4.0.1)
Removing nokogiri (1.6.0)
Removing uglifier (2.3.1)
Removing pg (0.17.0)
Removing json (1.8.0)
Removing mime-types (1.25)
Removing raindrops (0.12.0)
Removing actionpack (3.2.14)
Removing multi_json (1.8.0)
Removing uglifier (2.2.1)
Removing actionmailer (3.2.14)
Removing rails (4.0.1)
Removing turbolinks (1.3.1)
Removing rails (3.2.14)
Removing railties (3.2.14)
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
I, [2013-12-12T07:21:34.932976 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/american_dream_home-37874daacff06fbb26eb8b84ee1f84a1.jpg
I, [2013-12-12T07:21:34.935188 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/cabin_style_dream_home-9987333105c1424b8fc9aaf7c1efbf07.jpg
I, [2013-12-12T07:21:34.937405 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/contemporary_dream_home-1e8e61d0591ec26a104029ab0e92906c.jpg
I, [2013-12-12T07:21:34.939250 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/csulb_logo-b94fb88ec35ebf0db98c07a4fa00e6ed.jpg
I, [2013-12-12T07:21:34.941295 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_corporate_building-c4adcb12e189ad0215568925af112601.png
I, [2013-12-12T07:21:34.943313 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_header_logo-66f7c71223c8377c2f56dd1261011a65.jpg
I, [2013-12-12T07:21:34.945011 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black-29edd8d4b49980a739dfdb52c2464007.png
I, [2013-12-12T07:21:34.946625 #1556] INFO -- : Writing /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/public/assets/tycoon_logo_black_2-d92244c141090ac417f460b7a9d2fbe2.png
rake aborted!
Unexpected token: name (side) (line: 10600, col: 22, pos: 329089)
Error
at new JS_Parse_Error (/tmp/execjs20131212-1556-dj66x9.js:2316:10736)
at js_error (/tmp/execjs20131212-1556-dj66x9.js:2316:10955)
at croak (/tmp/execjs20131212-1556-dj66x9.js:2316:18665)
at token_error (/tmp/execjs20131212-1556-dj66x9.js:2316:18802)
at unexpected (/tmp/execjs20131212-1556-dj66x9.js:2316:18890)
at semicolon (/tmp/execjs20131212-1556-dj66x9.js:2316:19363)
at simple_statement (/tmp/execjs20131212-1556-dj66x9.js:2316:21849)
at /tmp/execjs20131212-1556-dj66x9.js:2316:20090
at /tmp/execjs20131212-1556-dj66x9.js:2316:19536
at /tmp/execjs20131212-1556-dj66x9.js:2316:31209
(in /tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/app/assets/javascripts/application.js)/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:68:in `extract_result'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:28:in `block in exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:41:in `compile_to_tempfile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/execjs-2.0.2/lib/execjs/external_runtime.rb:27:in `exec'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:176:in `really_compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/uglifier-2.1.1/lib/uglifier.rb:100:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/uglifier_compressor.rb:25:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in `render'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:197:in `block in evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/context.rb:194:in `evaluate'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/bundled_asset.rb:25:in `initialize'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `new'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:377:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:94:in `block in build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/caching.rb:58:in `cache_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:93:in `build_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/base.rb:287:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/index.rb:61:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:211:in `block in find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:257:in `benchmark'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:210:in `find_asset'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:119:in `block in compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `each'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/sprockets/manifest.rb:118:in `compile'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:60:in `block (3 levels) in define'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.1/lib/rake/sprocketstask.rb:146:in `with_logger'
/tmp/build_1529804d-f800-4525-b124-7f75c73ebdf1/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.0.1/lib/sprockets/rails/task.rb:59:in `block (2 levels) in define'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:tycoon.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:tycoon.git'
cecs470#cecs470-VirtualBox:~/Tycoon3.git$

Heroku not using the specified Ruby 1.9.3

Upgrading to Mongoid 3 and Ruby 1.9.3. Trying to use Ruby 1.9.3 on Heroku Cedar Stack. I have added the below to the top of my Gemfile:
source 'http://rubygems.org'
ruby "1.9.3"
Pushing to Heroku, it seemed to be working
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.2.0.rc.2
However my app is breaking as it requires Ruby 1.9.3. The error is coming as:
TypeError: can't convert Array into String
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/node.rb:214:in getaddrinfo'
from /app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/node.rb:214:ininitialize'
My path has bin at the beginning as suggested here
PATH => bin:vendor/bundle/ruby/1.9.1/bin:/usr/local/bin:/usr/bin:/bin
Any idea what could be wrong?
UPDATE:
Mongoid.yml
development:
sessions:
default:
database: myapp_development
hosts:
- "localhost:27017"
max_retries_on_connection_failure: 3
production:
sessions:
default:
database: "<%= ENV['MONGOHQ_DATABASE'] %>"
hosts:
-
- "<%= ENV['MONGOHQ_URL1'] %>:<%= ENV['MONGOHQ_PORT'] %>"
-
- "<%= ENV['MONGOHQ_URL2'] %>:<%= ENV['MONGOHQ_PORT'] %>"
max_retries_on_connection_failure: 10
password: "<%= ENV['MONGOHQ_PASSWORD'] %>"
read: !ruby/symbol secondary
username: "<%= ENV['MONGOHQ_USERNAME'] %>"
Heroku Push Output:
-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Using Ruby version: ruby-1.9.3
-----> Installing dependencies using Bundler version 1.2.0.rc.2
Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
Fetching gem metadata from http://rubygems.org/......
Fetching gem metadata from http://rubygems.org/..
Fetching https://github.com/dementrock/sunspot_mongoid.git
Using rake (0.9.2.2)
Using log4r (1.1.10)
Using XMLCanonicalizer (1.0.1)
Using multi_json (1.0.4)
Using activesupport (3.1.3)
Using builder (3.0.0)
Using i18n (0.6.0)
Using activemodel (3.1.3)
Using erubis (2.7.0)
Using rack (1.3.5)
Using rack-cache (1.2)
Using rack-mount (0.8.3)
Using rack-test (0.6.1)
Using hike (1.2.1)
Using tilt (1.3.3)
Using sprockets (2.0.4)
Using actionpack (3.1.3)
Installing mime-types (1.19)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.3.3)
Using actionmailer (3.1.3)
Using arel (2.2.3)
Using tzinfo (0.3.33)
Using activerecord (3.1.3)
Using activeresource (3.1.3)
Using addressable (2.2.8)
Installing excon (0.15.5)
Using formatador (0.2.3)
Using net-ssh (2.5.2)
Using net-scp (1.0.4)
Installing nokogiri (1.5.5) with native extensions
Using ruby-hmac (0.4.0)
Installing fog (1.5.0)
Installing asset_sync (0.4.2)
Installing bson (1.6.4)
Installing bson_ext (1.6.4) with native extensions
Using carmen (0.2.7)
Using carrierwave (0.5.8)
Installing moped (1.2.0)
Installing origin (1.0.6)
Installing mongoid (3.0.4)
Installing carrierwave-mongoid (0.1.0)
Installing clockwork (0.4.1)
Using coffee-script-source (1.3.3)
Using execjs (1.4.0)
Using coffee-script (2.2.0)
Using rack-ssl (1.3.2)
Installing json (1.7.4) with native extensions
Using rdoc (3.12)
Using thor (0.14.6)
Using railties (3.1.3)
Using coffee-rails (3.1.1)
Installing daemons (1.1.9)
Using delayed_job (3.0.3)
Using delayed_job_active_record (0.3.2)
Using eventmachine (0.12.10)
Using exceptional (2.0.32)
Using multipart-post (1.1.5)
Using faraday (0.7.6)
Using fastercsv (1.5.5)
Using haml (3.1.6)
Using jquery-rails (1.0.19)
Using kaminari (0.13.0)
Installing systemu (2.5.2)
Installing macaddr (1.6.1)
Using net-http-digest_auth (1.2.1)
Using net-http-persistent (1.9)
Using webrobots (0.0.13)
Using mechanize (2.0.1)
Installing mongo (1.6.4)
Using mongoid_spacial (0.2.16)
Using multi_xml (0.4.4)
Using mysql2 (0.3.11)
Using net-ldap (0.2.2)
Installing newrelic_moped (0.0.3)
Installing newrelic_rpm (3.4.1)
Using oa-core (0.3.0)
Using rest-client (1.6.7)
Using oa-basic (0.3.0)
Using pyu-ruby-sasl (0.0.3.3)
Using rubyntlm (0.1.1)
Using uuid (2.3.5)
Using oa-enterprise (0.3.0)
Using oa-more (0.3.0)
Using oauth (0.4.6)
Using oauth2 (0.5.2)
Using oa-oauth (0.3.0)
Installing ruby-openid (2.2.0)
Using rack-openid (1.3.1)
Using ruby-openid-apps-discovery (1.2.0)
Using oa-openid (0.3.0)
Using omniauth (0.3.0)
Installing pg (0.14.0) with native extensions
Using pr_geohash (1.0.0)
Using bundler (1.2.0.rc.2)
Using rails (3.1.3)
Using recaptcha (0.3.4)
Using rmagick (2.13.1)
Using rpm_contrib (2.1.11)
Using rsolr (1.0.8)
Using ruby-prof (0.11.2)
Installing sass (3.2.0)
Using sass-rails (3.1.4)
Using sitemap_generator (2.1.8)
Installing sunspot (1.3.3)
Installing sunspot_rails (1.3.3)
Using sunspot_mongoid (0.4.1) from https://github.com/dementrock/sunspot_mongoid.git (at master)
Installing thin (1.4.1) with native extensions
Using typhoeus (0.3.3)
Using uglifier (1.2.4)
Using validatable (1.6.7)
Your bundle is complete! It was installed into ./vendor/bundle
Post-install message from newrelic_rpm:
PLEASE NOTE:
Developer Mode is now a Rack middleware.
Developer Mode is no longer available in Rails 2.1 and earlier.
However, starting in version 2.12 you can use Developer Mode in any
Rack based framework, in addition to Rails. To install developer mode
in a non-Rails application, just add NewRelic::Rack::DeveloperMode to
your middleware stack.
If you are using JRuby, we recommend using at least version 1.4 or
later because of issues with the implementation of the timeout library.
Refer to the README.md file for more information.
Please see http://github.com/newrelic/rpm/blob/master/CHANGELOG
for a complete description of the features and enhancements available
in version 3.4 of the Ruby Agent.
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Detected manifest.yml, assuming assets were compiled locally
-----> Rails plugin injection
Injecting rails_log_stdout
Injecting rails3_serve_static_assets
-----> Discovering process types
Procfile declares types -> clock, web, worker
Default types for Ruby/Rails -> console, rake
-----> Compiled slug size is 36.3MB
-----> Launching... done, v318
-----> Deploy hooks scheduled, check output in your logs
http://myapp.herokuapp.com deployed to Heroku
The server logs:
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/node.rb:214:in
getaddrinfo'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/node.rb:214:in
initialize'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/cluster.rb:53:in
new'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/cluster.rb:53:in
block in initialize'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/cluster.rb:53:in
map'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/cluster.rb:53:in
initialize'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/session.rb:183:in
new'
/app/vendor/bundle/ruby/1.9.1/gems/moped-1.2.0/lib/moped/session.rb:183:in
initialize'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions/factory.rb:64:in
new'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions/factory.rb:64:in
create_session'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions/factory.rb:43:in
default'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions.rb:109:in
default'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions.rb:378:in
__session__'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions.rb:213:in
mongo_session'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/sessions.rb:157:in
collection'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/contextual/mongo.rb:217:in
initialize'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/contextual.rb:47:in
new'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/contextual.rb:47:in
create_context'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/contextual.rb:30:in
context'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/contextual.rb:18:in
distinct' /app/app/controllers/my_controller.rb:14:in index'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/implicit_render.rb:4:in
send_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:167:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rendering.rb:10:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:18:in block in process_action'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:436:in
run_647889395514353966__process_action_2178726499830545563_callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in
__run_callback'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in
_run_process_action_callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in
run_callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/callbacks.rb:17:inprocess_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rescue.rb:29:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:30:in
block in process_action'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in
block in instrument'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications/instrumenter.rb:20:in
instrument'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/notifications.rb:123:in
instrument'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/instrumentation.rb:29:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/params_wrapper.rb:205:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/railties/controller_runtime.rb:18:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:34:in
block in process_action'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:262:in
block in perform_action_with_newrelic_trace'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/agent/method_tracer.rb:242:in
trace_execution_scoped'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/agent/instrumentation/controller_instrumentation.rb:257:in
perform_action_with_newrelic_trace'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/agent/instrumentation/rails3/action_controller.rb:33:in
process_action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/base.rb:121:in
process'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/abstract_controller/rendering.rb:45:in process'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal.rb:203:in
dispatch'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal/rack_delegation.rb:14:in
dispatch'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_controller/metal.rb:246:in
block in action'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:73:in
dispatch'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:36:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:68:in
block in call'
/app/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
each'
/app/vendor/bundle/ruby/1.9.1/gems/journey-1.0.4/lib/journey/router.rb:56:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/routing/route_set.rb:600:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/omniauth-1.0.3/lib/omniauth/strategy.rb:168:in
call!'
/app/vendor/bundle/ruby/1.9.1/gems/omniauth-1.0.3/lib/omniauth/strategy.rb:148:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/omniauth-1.0.3/lib/omniauth/builder.rb:42:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/rack/browser_monitoring.rb:12:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/exceptional-2.0.32/lib/exceptional/integration/rack_rails.rb:13:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/rack/mongoid/middleware/identity_map.rb:33:in
block in call'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/mongoid/unit_of_work.rb:39:in
unit_of_work'
/app/vendor/bundle/ruby/1.9.1/gems/mongoid-3.0.4/lib/rack/mongoid/middleware/identity_map.rb:33:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/best_standards_support.rb:17:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/etag.rb:23:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/conditionalget.rb:25:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/head.rb:14:in call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/params_parser.rb:21:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/flash.rb:242:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:205:in
context'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/session/abstract/id.rb:200:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/cookies.rb:338:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/query_cache.rb:64:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.3/lib/active_record/connection_adapters/abstract/connection_pool.rb:467:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:28:in
block in call'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in
run_2458689492548881573_call_1062142932397414625__callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:405:in
__run_callback'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:385:in
_run_call_callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/callbacks.rb:81:in
run_callbacks'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/callbacks.rb:27:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/sendfile.rb:102:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/remote_ip.rb:31:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/debug_exceptions.rb:16:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/show_exceptions.rb:56:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/logger.rb:26:in
call_app'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/logger.rb:16:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/request_id.rb:22:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/methodoverride.rb:21:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/runtime.rb:17:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.3/lib/active_support/cache/strategy/local_cache.rb:72:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/lock.rb:15:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/actionpack-3.2.3/lib/action_dispatch/middleware/static.rb:62:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:136:in
forward'
/app/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:245:in
fetch'
/app/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:185:in
lookup'
/app/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:66:in
call!'
/app/vendor/bundle/ruby/1.9.1/gems/rack-cache-1.2/lib/rack/cache/context.rb:51:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/engine.rb:479:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/application.rb:220:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/railtie/configurable.rb:30:in
method_missing'
/app/vendor/bundle/ruby/1.9.1/gems/newrelic_rpm-3.4.1/lib/new_relic/rack/developer_mode.rb:24:in call'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/content_length.rb:14:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/rack/log_tailer.rb:14:in
call'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:80:in
block in pre_process'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in
catch'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:78:in
pre_process'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:53:in
process'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/connection.rb:38:in
receive_data'
/app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
run_machine'
/app/vendor/bundle/ruby/1.9.1/gems/eventmachine-0.12.10/lib/eventmachine.rb:256:in
run'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/backends/base.rb:63:in
start'
/app/vendor/bundle/ruby/1.9.1/gems/thin-1.4.1/lib/thin/server.rb:159:in
start'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/handler/thin.rb:13:in
run'
/app/vendor/bundle/ruby/1.9.1/gems/rack-1.4.1/lib/rack/server.rb:265:in
start'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands/server.rb:70:in
start'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:55:in
block in '
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in
tap'
/app/vendor/bundle/ruby/1.9.1/gems/railties-3.2.3/lib/rails/commands.rb:50:in
' script/rails:6:in require' script/rails:6:in
'
Try pushing this to a new heroku app run:
heroku create
and then push. There is an issue when moving an app from one ruby version to another if you had a very specific set of gems installed. Let me know if that works or does not.

Bundler 1.0.21 & Ruby 1.9.3 -- "$ bundle config" |-> returns "invalid byte sequence in UTF-8 (ArgumentError)"

I'm quite new at all of this stuff, so I may have made some simple (and/or horribly disastrous) mistakes. In what follows, I describe the web of issues I'm confronting, but I get the impression that the "bundle config" error is at the root. Here's what I've been facing:
I've been trying to set up a personal wiki with Wagn's interesting arrangement. I've been trying to install version 1.8 according to the instructions, but I have been for more than a week on the 3rd step, "Configure", which instructs me to run this bundle command:
$ bundle exec rake wagn:install
I'm running OS X 10.6.8, MySQL Ver 14.14 Distrib 5.5.20, Ruby 1.9.3, Rails 2.3.11, Bundler 1.0.21, and Rake 0.9.2.2 (think that's everything relevant).
Initially, I was getting this error:
rake/rdoctask is deprecated. Use rdoc/task instead (in RDoc 2.4.2+)
which I (hopefully) overcame by making the repairs suggested by Matthew Mceachen.
I have now been stumped on the following error, which is returned when I try to run the above cited "bundle exec rake" command (user name replaced with 'ME'):
xxxxxxxxxxxxxxxx:wagn xxxxxxxxx$ bundle exec rake wagn:install
/Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:11:in `[]': undefined method `[]' for false:FalseClass (NoMethodError)
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:261:in `configure_gem_home_and_path'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:82:in `configure'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:136:in `definition'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:126:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler.rb:110:in `setup'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/cli.rb:340:in `exec'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `<main>'
I've tried to check this against the bundler configurations, but receive the following error when I use "$ bundle config":
XXXXXXXXXXXXX:wagn XXXXXXXXX$ bundle config
Settings are listed in order of priority. The top value will be used.
/Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `block in all': invalid byte sequence in UTF-8 (ArgumentError)
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `select'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/settings.rb:27:in `all'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/cli.rb:375:in `config'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/task.rb:22:in `run'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor.rb:263:in `dispatch'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/lib/bundler/vendor/thor/base.rb:386:in `start'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0#global/gems/bundler-1.0.21/bin/bundle:13:in `<top (required)>'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `load'
from /Users/ME/.rvm/gems/ruby-1.9.3-p0/bin/bundle:19:in `<main>'
Tho I've found several discussions dealing with erros citing "invalid byte sequences", none of them seem to apply to my situation in any clear way. The most common response seemed to be to check and the locale and make sure everything is assigned to UTF-8, which I did. $ locale now returns this:
LANG="en_US.UTF-8"
LC_COLLATE="en_US.UTF-8"
LC_CTYPE="en_US.UTF-8"
LC_MESSAGES="en_US.UTF-8"
LC_MONETARY="en_US.UTF-8"
LC_NUMERIC="en_US.UTF-8"
LC_TIME="en_US.UTF-8"
LC_ALL=
My gem list, for good measure:
actionmailer (3.2.1, 2.3.11)
actionpack (3.2.1, 2.3.11)
activemodel (3.2.1)
activerecord (3.2.1, 2.3.11)
activeresource (3.2.1, 2.3.11)
activesupport (3.2.1, 2.3.11)
arel (3.0.0)
aws-s3 (0.6.2)
builder (3.0.0)
bundler (1.0.21 ruby)
erubis (2.7.0)
hike (1.2.1)
hoptoad_notifier (2.4.11)
htmlentities (4.2.4)
i18n (0.6.0)
image_science (1.2.1)
journey (1.0.1)
json (1.6.5, 1.4.6)
macaddr (1.0.0)
mail (2.4.1)
mime-types (1.17.2, 1.16)
multi_json (1.0.4)
mysql (2.8.1)
newrelic_rpm (3.3.1, 3.1.0)
polyglot (0.3.3)
rack (1.4.1, 1.1.3, 1.1.2)
rack-cache (1.1)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.2.1, 2.3.11)
railties (3.2.1)
rake (0.9.2.2, 0.9.2)
rdoc (3.12)
ruby-mysql (2.9.4)
RubyInline (3.8.6)
spork (0.9.0)
sprockets (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.31)
uuid (2.2.0)
xml-simple (1.1.1, 1.1.0)
ZenTest (4.6.2, 4.5.0)
Any insight you might be able to provide would be very helpful. Even if I seem to be pointed in the completely wrong direction or whatever, a few words to point me aright would be gratefully received. Thanks in advance!

ruby rake with rails missing constant with production but works in development environment

I have a rake task that runs ok in the dev env, but not in prod.
task :sample_test_quote => :environment do
QuoterTester.test
end
QuoterTester is a model class with a class method test.
Running the task under dev works fine, like this:
rake sample_test_quote
Whereas under prod, I get this:
$ RAILS_ENV=production rake sample_test_quote --trace
** Invoke sample_test_quote (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sample_test_quote
rake aborted!
uninitialized constant QuoterTester
org/jruby/RubyModule.java:2590:in `const_missing'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/ext/module.rb:36:in `const_missing'
org/jruby/RubyMethod.java:133:in `call'
/Users/kimptoc/Documents/ruby/ecom/ecom1/lib/tasks/sample_test_quote.rake:3:in `(root)'
org/jruby/RubyProc.java:270:in `call'
org/jruby/RubyProc.java:220:in `call'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
org/jruby/RubyArray.java:1612:in `each'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/kimptoc/.rvm/rubies/jruby-1.6.5/lib/ruby/1.8/monitor.rb:191:in `mon_synchronize'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
org/jruby/RubyArray.java:1612:in `each'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#global/gems/rake-0.9.2.2/bin/rake:33:in `(root)'
org/jruby/RubyKernel.java:1063:in `load'
/Users/kimptoc/.rvm/gems/jruby-1.6.5#p-ecom1-rails311/bin/rake:19:in `(root)'
Tasks: TOP => sample_test_quote
I am using JRuby 1.6.5, with mysql - the prod and dev database.yml are pretty much the same settings. Also using a Gemfile - see below.
From this question, I am guessing its a problem with one of classes in the project.
So, any tips on how to track down which class?
Strangely, rails server/console both work in prod env - I'd have expected them to fail too.
TIA, Chris
Here is the Gemfile I am using
source 'http://rubygems.org'
gem 'rake'
gem 'rails', '3.1.1'
if defined?(JRUBY_VERSION)
#jruby gems
gem 'activerecord-jdbc-adapter'
#gem 'activerecord-jdbc-adapter', :git => "https://github.com/jruby/activerecord-jdbc-adapter.git"
#gem 'activerecord-jdbcmysql-adapter'
#gem 'activerecord-jdbcmysql-adapter', :path => '../../libs/activerecord-jdbc-adapter.kimptoc'
#gem 'activerecord-jdbcmysql-adapter',:git => "https://github.com/kimptoc/activerecord-jdbc-adapter.git"
gem 'activerecord-jdbcmysql-adapter',:git => "https://github.com/jruby/activerecord-jdbc-adapter.git"
gem "jruby-openssl"
else
#non jruby gems
gem 'mysql'
end
gem "letter_opener", :group => :development
gem "mechanize", "1.0.0"
gem "nokogiri","1.4.6"
gem "roo"
gem "rubyzip"
gem "parallel"
gem "savon", "=0.7.9"
group :development, :test do
gem "rcov"
gem "pry"
end
gem "fastercsv"
gem "xml-simple"
gem "rabl"
gem 'bcrypt-ruby', :require => 'bcrypt'
gem 'newrelic_rpm'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', " ~> 3.1.0"
gem 'coffee-rails', " ~> 3.1.0"
gem 'uglifier'
end
gem 'jquery-rails'
gem "acts_as_executor", :git => "https://github.com/philostler/acts_as_executor.git"
gem 'rufus-scheduler'
And here are the actual gems:
actionmailer (3.1.1)
actionpack (3.1.1)
activemodel (3.1.1)
activerecord (3.1.1)
activeresource (3.1.1)
activesupport (3.1.1)
addressable (2.2.6)
arel (2.2.1)
bcrypt-ruby (3.0.1 java)
bouncy-castle-java (1.5.0146.1)
builder (3.0.0)
bundler (1.0.21)
coderay (0.9.8)
coffee-rails (3.1.1)
coffee-script (2.2.0)
coffee-script-source (1.1.2)
crack (0.3.1)
erubis (2.7.0)
execjs (1.2.9)
fastercsv (1.5.4)
google-spreadsheet-ruby (0.1.5)
hike (1.2.1)
hoe (2.12.3)
i18n (0.6.0)
jquery-rails (1.0.16)
jruby-launcher (1.0.9 java)
jruby-openssl (0.7.4)
json (1.6.1 java)
launchy (2.0.5)
letter_opener (0.0.2)
mail (2.3.0)
mechanize (1.0.0)
method_source (0.6.6)
mime-types (1.17.1, 1.16)
multi_json (1.0.3)
newrelic_rpm (3.2.0)
nokogiri (1.4.6 java)
oauth (0.4.5)
parallel (0.5.9)
polyglot (0.3.2)
pry (0.9.6.2 java)
rabl (0.5.0, 0.3.0)
rack (1.3.5, 1.3.4)
rack-cache (1.1)
rack-mount (0.8.3)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (3.1.1)
railties (3.1.1)
rake (0.9.2.2, 0.9.2)
rcov (0.9.11 java)
rdoc (3.11, 3.10)
roo (1.9.5)
ruby-ole (1.2.11.2)
ruby_parser (2.0.6)
rubyzip (0.9.4)
rufus-scheduler (2.0.12)
sass (3.1.10)
sass-rails (3.1.4)
savon (0.7.9)
sexp_processor (3.0.7)
slop (2.1.0)
spoon (0.0.1)
spreadsheet (0.6.5.9)
sprockets (2.0.3, 2.0.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.30)
uglifier (1.0.4, 1.0.3)
weakling (0.0.4 java)
xml-simple (1.1.1)
This is a fairly common issue when Rake tasks are run in production mode if config.threadsafe! is enabled, which it should be for JRuby apps.
A possible fix is to edit your environment so that config.threadsafe! is disabled only when you are running a Rake task (You can make up your own environment variable for this purpose).

Resources