Heroku not using the specified Ruby 1.9.3 - heroku

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.

Related

Heroku NameError: uninitialized constant Bundler, Could not detect rake tasks

I don't really what's going on. I keep getting the error...
/tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
ensure you can run `$ bundle exec rake -P` against your app
and using the production group of your Gemfile.
rake aborted!
NameError: uninitialized constant Bundler
...every time I try to deploy the app. I did reset my computer, reinstalled ruby, rails and almost everything.
The error also points to
# application.rb
require_relative 'boot'
require 'rails/all'
line 7: Bundler.require(*Rails.groups)
module Elaka
class Application < Rails::Application
config.load_defaults 6.0
config.exceptions_app = self.routes
end
end
Below find the whole log file
-----> Building on the Heroku-20 stack
! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
Detected buildpacks: Ruby,Node.js
See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
-----> Ruby app detected
-----> Installing bundler 2.2.11
-----> Removing BUNDLED WITH version in the Gemfile.lock
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.7.1
-----> Installing dependencies using bundler 2.2.11
Running: BUNDLE_WITHOUT='development:test' BUNDLE_PATH=vendor/bundle BUNDLE_BIN=vendor/bundle/bin BUNDLE_DEPLOYMENT=1 bundle install -j4
Fetching gem metadata from https://rubygems.org/..........
Fetching https://github.com/activerecord-hackery/ransack.git
Fetching rake 13.0.3
Installing rake 13.0.3
Fetching concurrent-ruby 1.1.8
Fetching minitest 5.14.4
Fetching zeitwerk 2.4.2
Fetching thread_safe 0.3.6
Installing minitest 5.14.4
Installing zeitwerk 2.4.2
Installing concurrent-ruby 1.1.8
Installing thread_safe 0.3.6
Fetching builder 3.2.4
Installing builder 3.2.4
Fetching erubi 1.10.0
Installing erubi 1.10.0
Fetching mini_portile2 2.5.0
Installing mini_portile2 2.5.0
Fetching racc 1.5.2
Fetching crass 1.0.6
Installing racc 1.5.2 with native extensions
Installing crass 1.0.6
Fetching rack 2.2.3
Fetching nio4r 2.5.5
Installing nio4r 2.5.5 with native extensions
Installing rack 2.2.3
Fetching websocket-extensions 0.1.5
Installing websocket-extensions 0.1.5
Fetching mimemagic 0.3.5
Installing mimemagic 0.3.5
Fetching mini_mime 1.0.2
Installing mini_mime 1.0.2
Fetching acts_as_votable 0.13.1
Installing acts_as_votable 0.13.1
Fetching bcrypt 3.1.16
Installing bcrypt 3.1.16 with native extensions
Using bundler 2.2.11
Fetching cancancan 3.2.1
Installing cancancan 3.2.1
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching method_source 1.0.0
Installing method_source 1.0.0
Fetching thor 1.1.0
Installing thor 1.1.0
Fetching ffi 1.14.2
Installing ffi 1.14.2 with native extensions
Fetching temple 0.8.2
Installing temple 0.8.2
Fetching tilt 2.0.10
Installing tilt 2.0.10
Fetching json 2.5.1
Installing json 2.5.1 with native extensions
Fetching kaminari-core 1.2.1
Installing kaminari-core 1.2.1
Fetching nested_form 0.3.2
Installing nested_form 0.3.2
Fetching paper_trail-association_tracking 2.1.1
Installing paper_trail-association_tracking 2.1.1
Fetching pg 1.2.3
Installing pg 1.2.3 with native extensions
Fetching remotipart 1.4.4
Installing remotipart 1.4.4
Fetching semantic_range 2.3.1
Installing semantic_range 2.3.1
Fetching tzinfo 1.2.9
Installing tzinfo 1.2.9
Fetching i18n 1.8.9
Installing i18n 1.8.9
Fetching websocket-driver 0.7.3
Installing websocket-driver 0.7.3 with native extensions
Fetching rack-test 1.1.0
Installing rack-test 1.1.0
Fetching warden 1.2.9
Installing warden 1.2.9
Fetching request_store 1.5.0
Installing request_store 1.5.0
Fetching rack-proxy 0.6.5
Installing rack-proxy 0.6.5
Fetching sprockets 4.0.2
Installing sprockets 4.0.2
Fetching marcel 0.3.3
Installing marcel 0.3.3
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching puma 4.3.7
Installing puma 4.3.7 with native extensions
Fetching haml 5.2.1
Installing haml 5.2.1
Fetching nokogiri 1.11.1 (x86_64-linux)
Installing nokogiri 1.11.1 (x86_64-linux)
Fetching activesupport 6.0.3.5
Installing activesupport 6.0.3.5
Fetching sassc 2.4.0
Installing sassc 2.4.0 with native extensions
Fetching globalid 0.4.2
Installing globalid 0.4.2
Fetching activemodel 6.0.3.5
Installing activemodel 6.0.3.5
Fetching jbuilder 2.11.2
Installing jbuilder 2.11.2
Fetching rails-dom-testing 2.0.3
Installing rails-dom-testing 2.0.3
Fetching loofah 2.9.0
Installing loofah 2.9.0
Fetching rack-pjax 1.1.0
Installing rack-pjax 1.1.0
Fetching activejob 6.0.3.5
Installing activejob 6.0.3.5
Fetching activerecord 6.0.3.5
Installing activerecord 6.0.3.5
Fetching activemodel-serializers-xml 1.0.2
Installing activemodel-serializers-xml 1.0.2
Fetching rails-html-sanitizer 1.3.0
Installing rails-html-sanitizer 1.3.0
Fetching friendly_id 5.4.2
Installing friendly_id 5.4.2
Fetching kaminari-activerecord 1.2.1
Installing kaminari-activerecord 1.2.1
Fetching paper_trail 11.1.0
Installing paper_trail 11.1.0
Using ransack 2.4.2 from https://github.com/activerecord-hackery/ransack.git (at master#15b2dc6)
Fetching actionview 6.0.3.5
Installing actionview 6.0.3.5
Fetching actionpack 6.0.3.5
Installing actionpack 6.0.3.5
Fetching kaminari-actionview 1.2.1
Installing kaminari-actionview 1.2.1
Fetching actioncable 6.0.3.5
Installing actioncable 6.0.3.5
Fetching activestorage 6.0.3.5
Installing activestorage 6.0.3.5
Fetching actionmailer 6.0.3.5
Installing actionmailer 6.0.3.5
Fetching railties 6.0.3.5
Installing railties 6.0.3.5
Fetching sprockets-rails 3.2.2
Installing sprockets-rails 3.2.2
Fetching kaminari 1.2.1
Installing kaminari 1.2.1
Fetching actionmailbox 6.0.3.5
Installing actionmailbox 6.0.3.5
Fetching actiontext 6.0.3.5
Installing actiontext 6.0.3.5
Fetching responders 3.0.1
Installing responders 3.0.1
Fetching jquery-rails 4.4.0
Installing jquery-rails 4.4.0
Fetching jquery-ui-rails 6.0.1
Installing jquery-ui-rails 6.0.1
Fetching webpacker 5.2.1
Installing webpacker 5.2.1
Fetching rails 6.0.3.5
Installing rails 6.0.3.5
Fetching devise 4.7.3
Installing devise 4.7.3
Fetching sassc-rails 2.1.2
Installing sassc-rails 2.1.2
Fetching sass-rails 6.0.0
Fetching rails_admin 2.1.0
Installing sass-rails 6.0.0
Fetching recaptcha 5.7.0
Installing recaptcha 5.7.0
Installing rails_admin 2.1.0
Bundle complete! 25 Gemfile dependencies, 82 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into `./vendor/bundle`
Bundle completed (254.17s)
Cleaning up the bundler cache.
-----> Installing node-v12.16.2-linux-x64
-----> Installing yarn-v1.22.4
-----> Detecting rake tasks
!
! Could not detect rake tasks
! ensure you can run `$ bundle exec rake -P` against your app
! and using the production group of your Gemfile.
! rake aborted!
! NameError: uninitialized constant Bundler
! /tmp/build_bfb029d6/config/application.rb:7:in `<top (required)>'
! /tmp/build_bfb029d6/Rakefile:4:in `require_relative'
! /tmp/build_bfb029d6/Rakefile:4:in `<top (required)>'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load_rakefile'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:703:in `raw_load_rakefile'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:104:in `block in load_rakefile'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:103:in `load_rakefile'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:82:in `block in run'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
! /tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
! /tmp/build_bfb029d6/bin/rake:4:in `<main>'
!
/tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/helpers/rake_runner.rb:106:in `load_rake_tasks!': Could not detect rake tasks (LanguagePack::Helpers::RakeRunner::CannotLoadRakefileError)
ensure you can run `$ bundle exec rake -P` against your app
and using the production group of your Gemfile.
rake aborted!
NameError: uninitialized constant Bundler
/tmp/build_bfb029d6/config/application.rb:7:in `<top (required)>'
/tmp/build_bfb029d6/Rakefile:4:in `require_relative'
/tmp/build_bfb029d6/Rakefile:4:in `<top (required)>'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/rake_module.rb:29:in `load_rakefile'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:703:in `raw_load_rakefile'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:104:in `block in load_rakefile'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:103:in `load_rakefile'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:82:in `block in run'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:186:in `standard_exception_handling'
/tmp/build_bfb029d6/vendor/bundle/ruby/2.7.0/gems/rake-13.0.3/lib/rake/application.rb:80:in `run'
/tmp/build_bfb029d6/bin/rake:4:in `<main>'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1030:in `rake'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:78:in `block (2 levels) in run_assets_precompile_rake_task'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in `log'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:72:in `block in run_assets_precompile_rake_task'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:71:in `run_assets_precompile_rake_task'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:112:in `block (2 levels) in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:1051:in `allow_git'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:105:in `block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/ruby.rb:91:in `compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:62:in `block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails2.rb:60:in `compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:42:in `block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails3.rb:41:in `compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:35:in `block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails4.rb:34:in `compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:20:in `block in compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:50:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:46:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/rails6.rb:18:in `compile'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:20:in `block (2 levels) in <main>'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/base.rb:190:in `log'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:19:in `block in <main>'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in `block in trace'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:18:in `block (2 levels) in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:40:in `yield_with_block_depth'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:17:in `block in instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/vendor/ruby/heroku-20/lib/ruby/2.6.0/benchmark.rb:308:in `realtime'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:16:in `instrument'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/lib/language_pack/instrument.rb:35:in `trace'
from /tmp/codon/tmp/buildpacks/50d5eddf222a9b7326028041d4e6509f915ccf2c/bin/support/ruby_compile:15:in `<main>'
! Push rejected, failed to compile Ruby app.
! Push failed
Is bundler discontinued?
Try to do this comands:
#remove project-specific settings
rm -rf .bundle/
# remove project-specific cached gems and repos
rm -rf vendor/cache/
# remove the saved resolve of the Gemfile
rm -rf Gemfile.lock
and then rebundling with bundle install
This was probably some incompatibility issues. Created a new repository with latest Rails-6 and Ruby 3.0.0, and just slowly integrated my old designs into new site and everything works not

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$

Trouble pushing to 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.

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!

Error when bringing rails 2.3.5 app to 3.0

So I've been using a PDF guide to help bring my application from 2.3.2 to 3.0.7. I'm still relatively new at this ... but I've managed to use the rails_upgrade plugin to help convert my route files and other config files. But when it comes to running the server I get this error:
/home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:284:in `activate': Unable to activate railties-3.0.7, because activesupport-2.3.2 conflicts with activesupport (= 3.0.7), actionpack-2.3.2 conflicts with actionpack (= 3.0.7) (Gem::LoadError)
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:212:in `rescue in try_activate'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems.rb:209:in `try_activate'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:57:in `rescue in require'
from /home/***********/.rvm/rubies/ruby-1.9.2-p180/lib/ruby/site_ruby/1.9.1/rubygems/custom_require.rb:35:in `require'
from script/rails:6:in `<main>'
now I have tried clean installing rvm, and installing a few libraries mentioned in other posts to no avail. my gem list is as follows:
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.7)
actionpack (3.0.7, 2.3.2)
activemodel (3.0.7)
activerecord (3.0.7)
activeresource (3.0.7)
activesupport (3.0.7, 2.3.2)
arel (2.0.9)
builder (2.1.2)
bundler (1.0.13)
cgi_multipart_eof_fix (2.5.0)
daemons (1.1.3, 1.0.10)
erubis (2.6.6)
fastthread (1.0.7)
gem_plugin (0.2.3)
i18n (0.5.0)
mail (2.2.19)
mime-types (1.16)
mongrel (1.2.0.pre2)
mysql (2.8.1)
mysql2 (0.3.2)
polyglot (0.3.1)
rack (1.2.2)
rack-mount (0.6.14)
rack-test (0.5.7)
rails (3.0.7)
railties (3.0.7)
rake (0.8.7)
thor (0.14.6)
treetop (1.4.9)
tzinfo (0.3.27)
Does anyone have a clue what the solution to this would be? It occurs when I run rails s (or rails server).
I apologize if the answer to this question is blatantly obvious, but I've searched and searched and can't seem to find something specific enough for my situation.
thank you for your help.
n.b.
the *'s are just where I search and replaced my user name.
Try uninstalling the 2.3.2 versions of activesupport and actionpack. I think the syntax is...
gem uninstall activesupport actionpack -v 2.3.2
It looks like you need to upgrade rails because the error is stating a version conflict between the different gems rails uses.
It really depends on how you are managing gems gem update rails.

Resources