Problem with "git push heroku master"


#1

Hello, I am a beginner working on the my_first_rails_app part and keep getting errors when trying to do git push heroku master. This is the output I get.

Counting objects: 138, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (123/123), done.
Writing objects: 100% (138/138), 28.68 KiB | 2.39 MiB/s, done.
Total 138 (delta 20), reused 0 (delta 0)
remote: Compressing source files… done.
remote: Building source:
remote:
remote: ! Warning: Multiple default buildpacks reported the ability to handle this app. The first buildpack in the list below will be used.
remote: Detected buildpacks: Ruby,Node.js
remote: See https://devcenter.heroku.com/articles/buildpacks#buildpack-detect-order
remote: -----> Ruby app detected
remote: -----> Compiling Ruby/Rails
remote: -----> Using Ruby version: ruby-2.5.3
remote: -----> Installing dependencies using bundler 1.15.2
remote: Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running gem install bundler.
remote: Fetching gem metadata from https://rubygems.org/
remote: Fetching version metadata from https://rubygems.org/
remote: Fetching dependency metadata from https://rubygems.org/.
remote: Fetching rake 12.3.2
remote: Fetching concurrent-ruby 1.1.4
remote: Fetching minitest 5.11.3
remote: Installing minitest 5.11.3
remote: Installing rake 12.3.2
remote: Installing concurrent-ruby 1.1.4
remote: Fetching thread_safe 0.3.6
remote: Installing thread_safe 0.3.6
remote: Fetching builder 3.2.3
remote: Installing builder 3.2.3
remote: Fetching erubi 1.8.0
remote: Installing erubi 1.8.0
remote: Fetching mini_portile2 2.4.0
remote: Fetching crass 1.0.4
remote: Installing mini_portile2 2.4.0
remote: Installing crass 1.0.4
remote: Fetching rack 2.0.6
remote: Fetching nio4r 2.3.1
remote: Fetching websocket-extensions 0.1.3
remote: Installing websocket-extensions 0.1.3
remote: Installing nio4r 2.3.1 with native extensions
remote: Fetching mini_mime 1.0.1
remote: Installing rack 2.0.6
remote: Installing mini_mime 1.0.1
remote: Fetching arel 9.0.0
remote: Installing arel 9.0.0
remote: Fetching mimemagic 0.3.3
remote: Installing mimemagic 0.3.3
remote: Fetching msgpack 1.2.4
remote: Installing msgpack 1.2.4 with native extensions
remote: Using bundler 1.15.2
remote: Fetching execjs 2.7.0
remote: Installing execjs 2.7.0
remote: Fetching ffi 1.9.25
remote: Installing ffi 1.9.25 with native extensions
remote: Fetching multi_json 1.13.1
remote: Installing multi_json 1.13.1
remote: Fetching method_source 0.9.2
remote: Installing method_source 0.9.2
remote: Fetching pg 1.1.3
remote: Installing pg 1.1.3 with native extensions
remote: Fetching puma 3.12.0
remote: Installing puma 3.12.0 with native extensions
remote: Fetching thor 0.20.3
remote: Installing thor 0.20.3
remote: Fetching rb-fsevent 0.10.3
remote: Installing rb-fsevent 0.10.3
remote: Fetching tilt 2.0.9
remote: Installing tilt 2.0.9
remote: Fetching turbolinks-source 5.2.0
remote: Installing turbolinks-source 5.2.0
remote: Fetching tzinfo 1.2.5
remote: Installing tzinfo 1.2.5
remote: Fetching nokogiri 1.9.1
remote: Installing nokogiri 1.9.1 with native extensions
remote: Fetching i18n 1.4.0
remote: Installing i18n 1.4.0
remote: Fetching websocket-driver 0.7.0
remote: Installing websocket-driver 0.7.0 with native extensions
remote: Fetching mail 2.7.1
remote: Installing mail 2.7.1
remote: Fetching rack-test 1.1.0
remote: Installing rack-test 1.1.0
remote: Fetching sprockets 3.7.2
remote: Installing sprockets 3.7.2
remote: Fetching marcel 0.3.3
remote: Installing marcel 0.3.3
remote: Fetching uglifier 4.1.20
remote: Installing uglifier 4.1.20
remote: Fetching bootsnap 1.3.2
remote: Installing bootsnap 1.3.2 with native extensions
remote: Fetching rb-inotify 0.10.0
remote: Installing rb-inotify 0.10.0
remote: Fetching turbolinks 5.2.0
remote: Installing turbolinks 5.2.0
remote: Fetching activesupport 5.2.2
remote: Installing activesupport 5.2.2
remote: Fetching loofah 2.2.3
remote: Installing loofah 2.2.3
remote: Fetching sass-listen 4.0.0
remote: Installing sass-listen 4.0.0
remote: Fetching rails-html-sanitizer 1.0.4
remote: Installing rails-html-sanitizer 1.0.4
remote: Fetching rails-dom-testing 2.0.3
remote: Fetching globalid 0.4.1
remote: Installing rails-dom-testing 2.0.3
remote: Installing globalid 0.4.1
remote: Fetching activemodel 5.2.2
remote: Fetching jbuilder 2.8.0
remote: Installing jbuilder 2.8.0
remote: Installing activemodel 5.2.2
remote: Fetching sass 3.7.2
remote: Installing sass 3.7.2
remote: Fetching actionview 5.2.2
remote: Fetching activejob 5.2.2
remote: Installing activejob 5.2.2
remote: Installing actionview 5.2.2
remote: Fetching activerecord 5.2.2
remote: Installing activerecord 5.2.2
remote: Fetching actionpack 5.2.2
remote: Installing actionpack 5.2.2
remote: Fetching actioncable 5.2.2
remote: Fetching actionmailer 5.2.2
remote: Installing actioncable 5.2.2
remote: Installing actionmailer 5.2.2
remote: Fetching railties 5.2.2
remote: Installing railties 5.2.2
remote: Fetching sprockets-rails 3.2.1
remote: Installing sprockets-rails 3.2.1
remote: Fetching activestorage 5.2.2
remote: Installing activestorage 5.2.2
remote: Fetching rails 5.2.2
remote: Fetching sass-rails 5.0.7
remote: Installing rails 5.2.2
remote: Installing sass-rails 5.0.7
remote: Bundle complete! 18 Gemfile dependencies, 58 gems now installed.
remote: Gems in the groups development and test were not installed.
remote: Bundled gems are installed into ./vendor/bundle.
remote: Post-install message from i18n:
remote:
remote: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale.
remote: But that may break your application.
remote:
remote: Please check your Rails app for ‘config.i18n.fallbacks = true’.
remote: If you’re using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be
remote: ‘config.i18n.fallbacks = [I18n.default_locale]’.
remote: If not, fallbacks will be broken in your app by I18n 1.1.x.
remote:
remote: For more info see:
remote: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0
remote:
remote: Post-install message from sass:
remote:
remote: Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
remote:
remote: * If you use Sass as a command-line tool, we recommend using Dart Sass, the new
remote: primary implementation: https://sass-lang.com/install
remote:
remote: * If you use Sass as a plug-in for a Ruby web framework, we recommend using the
remote: sassc gem: https://github.com/sass/sassc-ruby#readme
remote:
remote: * For more details, please refer to the Sass blog:
remote: http://sass.logdown.com/posts/7081811
remote:
remote: Bundle completed (52.20s)
remote: Cleaning up the bundler cache.
remote: Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.17.3). We suggest you upgrade to the latest version of Bundler by running gem install bundler.
remote: The latest bundler is 2.0.0.pre.3, but you are currently running 1.15.2.
remote: To update, run gem install bundler --pre
remote: -----> Installing node-v8.10.0-linux-x64
remote: -----> Detecting rake tasks
remote: -----> Preparing app for Rails asset pipeline
remote: Running: rake assets:precompile
remote: Yarn executable was not detected in the system.
remote: Download Yarn at https://yarnpkg.com/en/docs/install
remote: rake aborted!
remote: LoadError: cannot load such file – coffee_script
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:32:in require' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inblock in require’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:in load_dependency' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:inrequire’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/autoload/coffee_script.rb:1:in <main>' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:inrequire’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:21:in block in require_with_bootsnap_lfi' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/loaded_features_index.rb:65:inregister’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:20:in require_with_bootsnap_lfi' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/bootsnap-1.3.2/lib/bootsnap/load_path_cache/core_ext/kernel_require.rb:29:inrequire’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in block in require' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:257:inload_dependency’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/activesupport-5.2.2/lib/active_support/dependencies.rb:291:in require' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/coffee_script_processor.rb:15:incache_key’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/coffee_script_processor.rb:20:in call' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:incall_processor’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in block in call_processors' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:inreverse_each’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in call_processors' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:inload_from_unloaded’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in block in load' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:infetch_asset_from_dependency_cache’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in load' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:inblock in initialize’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in load' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:inblock in call’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:in dfs' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:incall’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in call_processor' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:inblock in call_processors’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in reverse_each' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:incall_processors’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in load_from_unloaded' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:inblock in load’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in fetch_asset_from_dependency_cache' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:inload’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in block in initialize' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:inload’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in find_asset' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:infind_all_linked_assets’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in block in find' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:inblock (2 levels) in logical_paths’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in block in stat_tree' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:inblock in stat_directory’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in each' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:instat_directory’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in stat_tree' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:ineach’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in block in logical_paths' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:ineach’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in logical_paths' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:infind’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in compile' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:inblock (3 levels) in define’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in with_logger' remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:inblock (2 levels) in define’
remote: /tmp/build_93cad76cc26dccdfc08c57d837beb6f5/vendor/bundle/ruby/2.5.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>’
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote:
remote: !
remote: ! Precompiling assets failed.
remote: !
remote: ! Push rejected, failed to compile Ruby app.
remote:
remote: ! Push failed
remote: Verifying deploy…
remote:
remote: ! Push rejected to afternoon-garden-17083.
remote:
To https://git.heroku.com/afternoon-garden-17083.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to ‘https://git.heroku.com/afternoon-garden-17083.git

Thank you for the help


#2

Hey @geffen_cooper

Looks like your app has some coffee script files somewhere but doesn’t have the gem to process them.

Add: gem 'coffee-rails', '~> 4.1.0' to your gemfile then you’ll need to run bundle install, and then git add and commit before pushing up to heroku.


#3

Thank you, that worked except I had to use 4.2.0. Also when I run “git push heroku master again” I get these warnings at the end (see below). When I type the url in the browser I get “We’re sorry, but something went wrong. If you are the application owner check the logs for more information.” Thank you for the help

Asset precompilation completed (3.54s)
remote: Cleaning assets
remote: Running: rake assets:clean
remote: -----> Detecting rails configuration
remote:
remote: ###### WARNING:
remote:
remote: Detecting rails configuration failed
remote: set HEROKU_DEBUG_RAILS_RUNNER=1 to debug
remote:
remote: ###### WARNING:
remote:
remote: We detected that some binary dependencies required to
remote: use all the preview features of Active Storage are not
remote: present on this system.
remote:
remote: For more information please see:
remote: https://devcenter.heroku.com/articles/active-storage-on-heroku
remote:
remote:
remote: ###### WARNING:
remote:
remote: No Procfile detected, using the default web server.
remote: We recommend explicitly declaring how to boot your server process via a Procfile.
remote: https://devcenter.heroku.com/articles/ruby-default-web-server
remote:
remote:
remote: -----> Discovering process types
remote: Procfile declares types -> (none)
remote: Default types for buildpack -> console, rake, web
remote:
remote: -----> Compressing…
remote: Done: 47.1M
remote: -----> Launching…
remote: Released v6
remote: https://afternoon-garden-17083.herokuapp.com/ deployed to Heroku
remote:
remote: Verifying deploy… done.
To https://git.heroku.com/afternoon-garden-17083.git

  • [new branch] master -> master

#4

Never mind I got it working, thank you for your help @CouchofTomato