error loading application on Heroku - ruby-on-rails

When I run the git push heroku master command, I have an error: failed to push somerefs to 'https://git.heroku.com/cafeteria-jetruby.git'. In the local version on my computer, the program works without problems.
The problem appeared when I installed the carrierwave gem.
Please tell me what the problem is and where to look for an error ?
The settings in the carrierwave config are as follows
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_credentials = {
provider: 'AWS',
aws_access_key_id: ENV['S3_ACCESS_KEY'],
aws_secret_access_key: ENV['S3_SECRET_KEY']
}
config.fog_directory = ENV['S3_BUCKET_NAME']
end
end
application log
! 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
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.7
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.3.1
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Installing rake 12.3.1
Installing concurrent-ruby 1.0.5
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.7.1
Installing erubi 1.7.1
Fetching mini_portile2 2.3.0
Fetching crass 1.0.4
Installing mini_portile2 2.3.0
Fetching rack 2.0.5
Installing crass 1.0.4
Fetching nio4r 2.3.1
Installing rack 2.0.5
Installing nio4r 2.3.1 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Using bundler 1.15.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching excon 0.62.0
Installing excon 0.62.0
Fetching ffi 1.9.23
Installing ffi 1.9.23 with native extensions
Fetching formatador 0.2.5
Installing formatador 0.2.5
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching ipaddress 0.8.3
Installing ipaddress 0.8.3
Fetching mimemagic 0.3.2
Installing mimemagic 0.3.2
Fetching mini_magick 4.8.0
Installing mini_magick 4.8.0
Fetching pg 1.0.0
Installing pg 1.0.0 with native extensions
Fetching puma 3.11.4
Installing puma 3.11.4 with native extensions
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching turbolinks-source 5.1.0
Installing turbolinks-source 5.1.0
Fetching i18n 1.0.1
Installing i18n 1.0.1
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.8.2
Installing nokogiri 1.8.2 with native extensions
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching rack-test 1.0.0
Installing rack-test 1.0.0
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching cocaine 0.5.8
Installing cocaine 0.5.8
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching uglifier 4.1.10
Installing uglifier 4.1.10
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching turbolinks 5.1.1
Installing turbolinks 5.1.1
Fetching activesupport 5.1.6
Installing activesupport 5.1.6
Fetching fog-core 2.1.0
Installing fog-core 2.1.0
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activemodel 5.1.6
Installing activemodel 5.1.6
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching fog-json 1.1.0
Installing fog-json 1.1.0
Fetching sass 3.5.6
Installing sass 3.5.6
Fetching activejob 5.1.6
Installing activejob 5.1.6
Fetching activerecord 5.1.6
Installing activerecord 5.1.6
Fetching carrierwave 1.2.2
Installing carrierwave 1.2.2
Fetching paperclip 5.2.1
Installing paperclip 5.2.1
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.2.2
Installing rails-dom-testing 2.0.3
Installing loofah 2.2.2
Fetching fog-xml 0.1.3
Installing fog-xml 0.1.3
Fetching rails-html-sanitizer 1.0.4
Fetching fog-aws 3.0.0
Installing rails-html-sanitizer 1.0.4
Fetching actionview 5.1.6
Installing actionview 5.1.6
Installing fog-aws 3.0.0
Fetching actionpack 5.1.6
Installing actionpack 5.1.6
Fetching actioncable 5.1.6
Fetching actionmailer 5.1.6
Installing actioncable 5.1.6
Installing actionmailer 5.1.6
Fetching railties 5.1.6
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.1.6
Fetching simple_form 4.0.1
Installing simple_form 4.0.1
Fetching coffee-rails 4.2.2
Fetching responders 2.4.0
Installing coffee-rails 4.2.2
Installing responders 2.4.0
Fetching jquery-ui-rails 6.0.1
Fetching rails 5.1.6
Installing rails 5.1.6
Fetching sass-rails 5.0.7
Installing jquery-ui-rails 6.0.1
Installing sass-rails 5.0.7
Fetching devise 4.4.3
Installing devise 4.4.3
Bundle complete! 25 Gemfile dependencies, 78 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk >= 2.0.0.
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
Bundle completed (32.18s)
Cleaning up the bundler cache.
-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
LoadError: cannot load such file -- fog
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/initializers/carriervawe.rb:3:in `block in <top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave/uploader/configuration.rb:159:in `configure'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.2.2/lib/carrierwave.rb:14:in `configure'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/initializers/carriervawe.rb:2:in `<top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `block in load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:655:in `block in load_config_initializer'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/notifications.rb:168:in `instrument'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:654:in `load_config_initializer'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:611:in `each'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/engine.rb:611:in `block in <class:Engine>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:30:in `run'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:59:in `block in run_initializers'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in `each'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:48:in `tsort_each_child'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/initializable.rb:58:in `run_initializers'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:353:in `initialize!'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/config/environment.rb:5:in `<top (required)>'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.6/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:329:in `require_environment!'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/railties-5.1.6/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_bedb5e2c296a47ff2369b0d19d1fe3cf/vendor/bundle/ruby/2.3.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
and my gem file
source 'https://rubygems.org'
git_source(:github) do |repo_name|
repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/")
"https://github.com/#{repo_name}.git"
end
gem 'rails', '~> 5.1.6'
gem 'puma', '~> 3.7'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.2'
gem 'turbolinks', '~> 5'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.5'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem 'jquery-ui-rails'
gem 'devise', '~> 4.2'
gem 'carrierwave', '~> 1.2', '>= 1.2.2'
gem 'mini_magick', '~> 4.8'
gem 'simple_form'
gem 'fog-aws'
group :development, :test do
gem 'sqlite3'
gem 'byebug', platforms: [:mri, :mingw, :x64_mingw]
# Adds support for Capybara system testing and selenium driver
gem 'capybara', '~> 2.13'
gem 'selenium-webdriver'
gem 'rspec-rails', '~> 3.7', '>= 3.7.2'
end
group :development do
gem 'web-console', '>= 3.3.0'
gem 'listen', '>= 3.0.5', '< 3.2'
gem 'spring'
gem 'spring-watcher-listen', '~> 2.0.0'
end
group :production do
gem 'pg'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]

Related

Ruby on Rails 4.1.8 Gem::LoadError for mysql2 gem

I picked up a 4 year old project written in Ruby 2.1.3 and Rails 4.1.8.
Very few of the gems were versioned but I've managed to get the project running locally by installing mysql2 0.3.20 as suggested in multiple other threads. Doing this required me to (on MacOS) downgrade openssl and mysql with brew install mysql#57 and brew install openssl#10.
I could then install mysql2 with by passing the correct libraries to it:
gem install mysql2 -v 0.3.20 -- --with-mysql-config=/usr/local/opt/mysql#5.7/bin/mysql_config --with-ldflags=-L/usr/local/opt/openssl#1.0/lib --with-cppflags=-I/usr/local/opt/openssl#1.0/include
Everything works locally, all good.
I'm trying to deploy this project with Dokku on a Debian instance. Here's the readout from the push to dokku master including the error thrown when starting the Rails server:
Dev#Jordans-MacBook-Pro ~/runritewinDB2020 (master) $ git push dokku master
Enumerating objects: 1608, done.
Counting objects: 100% (1608/1608), done.
Delta compression using up to 4 threads
Compressing objects: 100% (975/975), done.
Writing objects: 100% (1608/1608), 14.90 MiB | 1.19 MiB/s, done.
Total 1608 (delta 611), reused 1520 (delta 554)
remote: Resolving deltas: 100% (611/611), done.
-----> Cleaning up...
-----> Building runrite from dockerfile...
remote: build context to Docker daemon 51.88MB
Step 1/17 : FROM ruby:2.1.3
---> e1f10119c75a
Step 2/17 : RUN apt-get install -y libpq-dev
---> Using cache
---> 18e44db81b01
Step 3/17 : RUN apt-get install -y libxml2-dev libxslt1-dev
---> Using cache
---> b753197bec2f
Step 4/17 : ENV RAILS_ENV production
---> Using cache
---> fe632f7c4b4f
Step 5/17 : ENV RACK_ENV production
---> Using cache
---> ebeb94b2a120
Step 6/17 : ENV RACK production
---> Using cache
---> 98942a7c066f
Step 7/17 : ENV DB_URL mysql://mysql:f7a080fdf10779b0#dokku-mysql-runrite-production:3306/runrite_production
---> Using cache
---> 0feff73f3952
Step 8/17 : ENV APP_HOME /myapp
---> Using cache
---> 472864c3692a
Step 9/17 : RUN mkdir $APP_HOME
---> Using cache
---> 8cf938f4771b
Step 10/17 : WORKDIR $APP_HOME
---> Using cache
---> 83c835ef8ba6
Step 11/17 : ADD Gemfile* $APP_HOME/
---> 687cafb12ca9
Step 12/17 : RUN bundle install
---> Running in df7a7d1b74a3
Don't run Bundler as root. Bundler can ask for sudo if it is needed, and
installing your bundle as root will break this application for all non-root
users on this machine.
Fetching source index from https://rubygems.org/
Fetching git://github.com/activerecord-hackery/polyamorous.git
Fetching git://github.com/activeadmin/activeadmin.git
Fetching https://github.com/stripe/stripe-ruby
Installing rake 10.4.2
Installing CFPropertyList 2.2.8
Installing i18n 0.7.0
Installing json 1.8.3
Installing minitest 5.8.0
Installing thread_safe 0.3.5
Installing tzinfo 1.2.2
Installing activesupport 4.1.8
Installing builder 3.2.2
Installing erubis 2.7.0
Installing actionview 4.1.8
Installing rack 1.5.5
Installing rack-test 0.6.3
Installing actionpack 4.1.8
Installing mime-types 2.6.1
Installing mail 2.6.3
Installing actionmailer 4.1.8
Installing activemodel 4.1.8
Installing active_model_serializers 0.9.0
Installing arbre 1.0.3
Installing sass 3.2.19
Installing thor 0.19.1
Installing bourbon 3.2.4
Installing coffee-script-source 1.9.1.1
Installing execjs 2.6.0
Installing coffee-script 2.4.1
Installing railties 4.1.8
Installing coffee-rails 4.0.1
Installing formtastic 3.1.3
Installing formtastic_i18n 0.4.1
Installing has_scope 0.6.0
Installing responders 1.1.2
Installing inherited_resources 1.6.0
Installing jquery-rails 3.1.3
Installing jquery-ui-rails 5.0.5
Installing kaminari 0.16.3
Installing arel 5.0.1.20140414130214
Installing activerecord 4.1.8
Using bundler 1.7.4
Installing hike 1.2.3
Installing multi_json 1.11.2
Installing tilt 1.4.1
Installing sprockets 2.12.4
Installing sprockets-rails 2.3.2
Installing rails 4.1.8
Using polyamorous 1.3.3 from git://github.com/activerecord-hackery/polyamorous.git (at master)
Installing ransack 1.7.0
Installing sass-rails 4.0.5
Using activeadmin 1.0.0.pre1 from git://github.com/activeadmin/activeadmin.git (at master)
Installing addressable 2.3.6
Installing multipart-post 2.0.0
Installing avocado-docs 3.0.7
Installing mini_portile 0.6.0
Installing nokogiri 1.6.3.1
Installing aws-sdk-v1 1.56.0
Installing aws-sdk 1.56.0
Installing bcrypt 3.1.7
Installing coderay 1.1.0
Installing better_errors 2.0.0
Installing debug_inspector 0.0.2
Installing binding_of_caller 0.7.2
Installing columnize 0.8.9
Installing debugger-linecache 1.2.0
Installing slop 3.6.0
Installing byebug 3.5.1
Installing cancancan 1.9.2
Installing colorize 0.7.7
Installing net-ssh 2.9.2
Installing net-scp 1.2.1
Installing sshkit 1.7.1
Installing capistrano 3.4.0
Installing capistrano-bundler 1.1.3
Installing capistrano-rails 1.1.2
Installing capistrano-rbenv 2.0.2
Installing capistrano3-unicorn 0.2.1
Installing xpath 2.0.0
Installing capybara 2.4.4
Installing carrierwave 0.10.0
Installing streamio-ffmpeg 1.0.0
Installing carrierwave-video 0.5.6
Installing hitimes 1.2.2
Installing timers 4.0.1
Installing celluloid 0.16.0
Installing chartkick 1.3.2
Installing commonjs 0.2.7
Installing safe_yaml 1.0.4
Installing crack 0.4.2
Installing css_parser 1.3.7
Installing database_cleaner 1.3.0
Installing orm_adapter 0.5.0
Installing warden 1.2.3
Installing devise 3.4.0
Installing devise_invitable 1.4.1
Installing interception 0.5
Installing did_you_mean 0.9.6
Installing diff-lcs 1.2.5
Installing docile 1.1.5
Installing unf_ext 0.0.7.1
Installing unf 0.1.4
Installing domain_name 0.5.24
Installing launchy 2.4.2
Installing email_spec 1.6.0
Installing enumerize 0.9.0
Installing exception_notification 4.1.1
Installing excon 0.42.1
Installing fabrication 2.11.3
Installing faker 1.4.3
Installing faraday 0.9.0
Installing faraday_middleware 0.9.1
Installing ffi 1.9.6
Installing figaro 1.0.0
Installing fission 0.5.0
Installing formatador 0.2.5
Installing fog-core 1.27.2
Installing fog-xml 0.1.1
Installing fog-atmos 0.1.0
Installing fog-json 1.0.0
Installing inflecto 0.0.2
Installing fog-brightbox 0.7.1
Installing fog-ecloud 0.0.2
Installing fog-profitbricks 0.0.1
Installing fog-radosgw 0.0.3
Installing fog-sakuracloud 0.1.1
Installing fog-softlayer 0.3.25
Installing fog-storm_on_demand 0.1.0
Installing fog-terremark 0.0.3
Installing fog-vmfusion 0.0.1
Installing fog-voxel 0.0.2
Installing ipaddress 0.8.0
Installing fog 1.26.0
Installing font-awesome-rails 4.2.0.0
Installing rb-fsevent 0.9.4
Installing rb-inotify 0.9.5
Installing listen 2.7.11
Installing lumberjack 1.0.9
Installing method_source 0.8.2
Installing pry 0.10.1
Installing guard 2.6.1
Installing guard-bundler 2.0.0
Installing guard-rails 0.6.0
Installing rspec-support 3.1.2
Installing rspec-core 3.1.7
Installing rspec-expectations 3.1.2
Installing rspec-mocks 3.1.3
Installing rspec 3.1.0
Installing guard-rspec 4.3.1
Installing hashie 3.3.1
Installing htmlentities 4.3.4
Installing http-cookie 1.0.2
Installing multi_xml 0.5.5
Installing httparty 0.13.1
Installing jbuilder 2.2.3
Installing jwt 1.0.0
Installing kgio 2.9.2
Installing less 2.6.0
Installing less-rails 2.6.0
Installing libv8 3.16.14.7
Installing mysql2 0.3.20
Installing netrc 0.10.3
Installing oauth 0.4.7
Installing oauth2 1.0.0
Installing omniauth 1.2.2
Installing omniauth-oauth2 1.2.0
Installing omniauth-facebook 2.0.0
Installing omniauth-oauth 1.0.1
Installing omniauth-twitter 1.1.0
Installing owlcarousel-rails 1.1.3.3
Installing paper_trail 3.0.6
Installing premailer 1.8.6
Installing premailer-rails 1.8.2
Installing pry-byebug 2.0.0
Installing pry-rails 0.3.2
Installing puma 2.13.3
Installing pundit 0.3.0
Installing pushmeup 0.3.0
Installing rails-observers 0.1.2
Installing raindrops 0.13.0
Installing rb-fchange 0.0.6
Installing ref 1.0.5
Installing rest-client 1.8.0
Installing rmagick 2.15.0
Installing rspec-rails 3.1.0
Installing shoulda-context 1.2.1
Installing shoulda-matchers 2.7.0
Installing shoulda 3.5.0
Installing simple_form 3.1.0
Installing simplecov-html 0.8.0
Installing simplecov 0.9.1
Installing spring 1.1.3
Using stripe 1.26.0 from https://github.com/stripe/stripe-ruby (at master)
Installing therubyracer 0.12.1
Installing twitter-bootstrap-rails 3.2.0
Installing uglifier 2.5.3
Installing unicorn 4.8.3
Installing webmock 1.19.0
Installing yarjuf 2.0.0
Your bundle is complete!
It was installed into /usr/local/bundle
Post-install message from capistrano:
Capistrano 3.1 has some breaking changes. Please check the CHANGELOG: #Edited for shortened URL
If you're upgrading Capistrano from 2.x, we recommend to read the upgrade guide: # Remove shortened URL
The `deploy:restart` hook for passenger applications is now in a separate gem called capistrano-passenger. Just add it to your Gemfile and require it in your Capfile.
Post-install message from httparty:
When you HTTParty, you must party hard!
Post-install message from twitter-bootstrap-rails:
Important: You may need to add a javascript runtime to your Gemfile in order for bootstrap's LESS files to compile to CSS.
**********************************************
ExecJS supports these runtimes:
therubyracer - Google V8 embedded within Ruby
therubyrhino - Mozilla Rhino embedded within JRuby
Node.js
Apple JavaScriptCore - Included with Mac OS X
Microsoft Windows Script Host (JScript)
**********************************************
Removing intermediate container df7a7d1b74a3
---> cab4f5704fc6
Step 13/17 : ADD . $APP_HOME
---> ffda2dba11f3
Step 14/17 : RUN bundle exec rails server
---> Running in 3079acec1dac
=> Booting Puma
=> Rails 4.1.8 application starting in production on http://0.0.0.0:3000
=> Run `rails server -h` for more startup options
=> Notice: server is listening on all interfaces (0.0.0.0). Consider using 127.0.0.1 (--binding option)
=> Ctrl-C to shutdown server
Exiting
/usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec': Specified 'mysql' for database adapter, but the gem is not loaded. Add `gem 'mysql'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord). (Gem::LoadError)
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
remote: from /usr/local/bundle/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:226:in `block in tsort_each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:348:in `block (2 levels) in each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:427:in `each_strongly_connected_component_from'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:347:in `block in each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `call'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:345:in `each_strongly_connected_component'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:224:in `tsort_each'
remote: from /usr/local/lib/ruby/2.1.0/tsort.rb:205:in `tsort_each'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
remote: from /myapp/config/environment.rb:5:in `<top (required)>'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
remote: from /usr/local/bundle/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
remote: from /myapp/config.ru:3:in `block in <main>'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:55:in `instance_eval'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:55:in `initialize'
remote: from /myapp/config.ru:in `new'
remote: from /myapp/config.ru:in `<main>'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:49:in `eval'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:49:in `new_from_string'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/builder.rb:40:in `parse_file'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:277:in `build_app_and_options_from_config'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:199:in `app'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/server.rb:50:in `app'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:314:in `wrapped_app'
remote: from /usr/local/bundle/gems/rack-1.5.5/lib/rack/server.rb:250:in `start'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/server.rb:69:in `start'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:81:in `block in server'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `tap'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:76:in `server'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands/commands_tasks.rb:40:in `run_command!'
remote: from /usr/local/bundle/gems/railties-4.1.8/lib/rails/commands.rb:17:in `<top (required)>'
remote: from bin/rails:4:in `require'
remote: from bin/rails:4:in `<main>'
remote: The command '/bin/sh -c bundle exec rails server' returned a non-zero code: 1
Dockerfile:
FROM ruby:2.1.3
RUN apt-get install -y libpq-dev
RUN apt-get install -y libxml2-dev libxslt1-dev
ENV RAILS_ENV production
ENV RACK_ENV production
ENV RACK production
ENV DB_URL mysql://mysql:f7a080fdf10779b0#dokku-mysql-runrite-production:3306/runrite_production
# for a JS runtime
RUN apt-get install -y nodejs
ENV APP_HOME /myapp
RUN mkdir $APP_HOME
WORKDIR $APP_HOME
ADD Gemfile* $APP_HOME/
RUN bundle install
ADD . $APP_HOME
RUN bundle exec rails server
database.yml:
development:
adapter: mysql2
database: runrite-web_development
username: root
password:
host: localhost
socket: /tmp/mysql.sock
# 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:
adapter: mysql2
database: db/runrite-web_test.sql
username: root
password:
host: localhost
socket: /tmp/mysql.sock
timeout: 10000
production: &production
adapter: mysql2
encoding: utf8mb4
charset: utf8mb4
collation: utf8mb4_unicode_ci
port: 3306
database: runrite_production
url: <%= ENV['DB_URL'] %>
pool: 25
staging:
<<: *production
Gemfile:
source 'https://rubygems.org'
ruby '2.1.3'
# TODO: put versions on most of these gems
# Core
gem 'rails', '4.1.8'
gem 'mysql2', '0.3.20'
# gem 'mysql'
# Deployment
gem 'capistrano', '~> 3.4.0', require: false
gem 'capistrano-rbenv', '~> 2.0'
gem 'capistrano-rails', '~> 1.1', require: false
gem 'capistrano-bundler', '~> 1.1', require: false
gem 'capistrano3-unicorn', require: false
gem "active_model_serializers"
gem "activeadmin", github: 'activeadmin'
gem "avocado-docs"
gem "aws-sdk"
# gem 'aws-healthcheck'
gem "cancancan"
gem "carrierwave"
gem "carrierwave-video"
gem "devise"
gem "devise_invitable"
gem 'enumerize'
gem "faraday"
gem "faraday_middleware"
gem 'fog'
gem 'font-awesome-rails'
gem "has_scope"
gem 'rmagick'
# gem 'mini_magick'
# gem 'imagemagick-binaries'
gem "omniauth"
gem "omniauth-facebook"
gem "omniauth-twitter"
gem "paper_trail"
gem "polyamorous", github: "activerecord-hackery/polyamorous"
gem "pundit"
gem "pushmeup"
gem "rails-observers"
gem "responders"
gem "therubyracer"
gem "less-rails" #Sprockets (what Rails 3.1 uses for its asset pipeline) supports LESS
gem "twitter-bootstrap-rails"
gem 'coffee-rails', '~> 4.0.0'
gem 'figaro'
gem 'jbuilder', '~> 2.0'
gem 'jquery-rails'
gem 'sass-rails', '~> 4.0.3'
gem 'spring', group: :development
gem 'simple_form'
# gem 'turbolinks'
gem 'uglifier', '>= 1.3.0'
gem 'unicorn'
gem 'yarjuf'
gem 'owlcarousel-rails'
gem "chartkick"
gem 'premailer-rails'
gem 'nokogiri'
# E-Commerce
gem 'stripe', :git => 'https://github.com/stripe/stripe-ruby'
group :development, :test do
gem "rspec-rails"
gem 'pry-rails'
gem 'pry-byebug'
gem 'shoulda'
gem 'did_you_mean', '~> 0.9.4'
gem "guard"
gem "guard-rspec"
end
group :test do
gem "capybara"
gem "fabrication"
gem "database_cleaner"
gem "email_spec"
gem 'simplecov', require: false
gem 'webmock'
# gem 'capybara-webkit'
gem "faker"
end
group :development do
gem "puma", '~> 2.13.3'
gem "better_errors"
gem "binding_of_caller"
gem "guard-bundler"
gem "guard-rails"
gem "rb-fchange", require: false
gem "rb-fsevent", require: false
gem "rb-inotify", require: false
end
group :production do
# gem 'logglier', '~> 0.2.11' # sending logs to loggly.com
# gem 'lograge', '~> 0.3.4' # abbreviated rails logs
gem 'exception_notification', '~> 4.1.1' # notification of exceptions via email
end
# gem 'elbas', github: 'lserman/capistrano-elbas'
Debian instance info:
Static hostname: debian-1cpu-1gb-us-chi1
Icon name: computer-vm
Chassis: vm
Machine ID: 0072a07a9c1349898ba2e35eb78cd8d2
Boot ID: bfb5d8b9d8cf42d4b766b5089a926016
Virtualization: kvm
Operating System: Debian GNU/Linux 10 (buster)
Kernel: Linux 4.19.0-9-amd64
Architecture: x86-64
OpenSSL version:
OpenSSL 1.1.1d 10 Sep 2019
Dokku MYSQL plugin MYSQL version:
5.7.28
I'm thinking I need to figure out how to build the mysql2 gem with the correct version of openSSL on the debian instance but I'm at a bit of a loss on how I would do that. The mysql2 gem install blew up locally until I installed it with the optional arguments mentioned at the top. The mysql2 gem version installs fine on the debian instance. Any help would be appreciated.
I think I see what's going on. In your Dockerfile, change your DB_URL from: mysql:// to mysql2://
You are loading the mysql2 gem, but indicating to ActiveRecord that you want to use a connection via the mysql gem.

Heroku deploy failed on assets precompile

I have a "small issue".
Trying to learn Ruby On Rails, and now i want to deploy my project on heroku.
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.3
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.6). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/.............
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.3.2
Fetching concurrent-ruby 1.1.5
Fetching json 1.8.6
Installing rake 12.3.2
Installing json 1.8.6 with native extensions
Installing concurrent-ruby 1.1.5
Fetching minitest 5.11.3
Installing minitest 5.11.3
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubis 2.7.0
Installing erubis 2.7.0
Fetching mini_portile2 2.4.0
Installing mini_portile2 2.4.0
Fetching crass 1.0.4
Installing crass 1.0.4
Fetching rack 1.6.11
Installing rack 1.6.11
Fetching mini_mime 1.0.1
Installing mini_mime 1.0.1
Fetching arel 6.0.4
Using bundler 1.15.2
Fetching coffee-script-source 1.12.2
Installing arel 6.0.4
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching thor 0.20.3
Installing thor 0.20.3
Fetching ffi 1.10.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Installing ffi 1.10.0 with native extensions
Fetching pg 0.17.1
Installing pg 0.17.1 with native extensions
Fetching rails_serve_static_assets 0.0.5
Installing rails_serve_static_assets 0.0.5
Fetching rails_stdout_logging 0.0.5
Installing rails_stdout_logging 0.0.5
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching rdoc 4.3.0
Installing rdoc 4.3.0
Fetching tilt 1.4.1
Installing tilt 1.4.1
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching nokogiri 1.9.1
Installing nokogiri 1.9.1 with native extensions
Fetching rack-test 0.6.3
Installing rack-test 0.6.3
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching mail 2.7.1
Installing mail 2.7.1
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching rails_12factor 0.0.2
Installing rails_12factor 0.0.2
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching activesupport 4.2.0
Installing activesupport 4.2.0
Fetching sdoc 0.4.0
Installing sdoc 0.4.0
Fetching uglifier 2.5.3
Installing uglifier 2.5.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching rails-deprecated_sanitizer 1.0.3
Fetching globalid 0.4.2
Installing globalid 0.4.2
Installing rails-deprecated_sanitizer 1.0.3
Fetching activemodel 4.2.0
Fetching jbuilder 2.2.3
Installing activemodel 4.2.0
Installing jbuilder 2.2.3
Fetching sass 3.7.3
Fetching activejob 4.2.0
Installing activejob 4.2.0
Installing sass 3.7.3
Fetching activerecord 4.2.0
Installing activerecord 4.2.0
Fetching rails-dom-testing 1.0.9
Fetching loofah 2.2.3
Installing rails-dom-testing 1.0.9
Installing loofah 2.2.3
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching actionview 4.2.0
Installing actionview 4.2.0
Fetching actionpack 4.2.0
Installing actionpack 4.2.0
Fetching railties 4.2.0
Fetching actionmailer 4.2.0
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 4.2.0
Installing actionmailer 4.2.0
Fetching jquery-rails 4.0.3
Fetching rails 4.2.0
Fetching coffee-rails 4.1.0
Installing coffee-rails 4.1.0
Installing jquery-rails 4.0.3
Installing rails 4.2.0
Fetching sass-rails 5.0.3
Installing sass-rails 5.0.3
Fetching turbolinks 2.3.0
Installing turbolinks 2.3.0
Bundle complete! 17 Gemfile dependencies, 57 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from sass:
Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
http://sass.logdown.com/posts/7081811
Bundle completed (39.08s)
Cleaning up the bundler cache.
-----> Installing node-v10.14.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
/tmp/build_af4ee1266f205da440cd39f395d56ff3/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Fixnum is deprecated
/tmp/build_af4ee1266f205da440cd39f395d56ff3/vendor/bundle/ruby/2.5.0/gems/activesupport-4.2.0/lib/active_support/core_ext/numeric/conversions.rb:121: warning: constant ::Bignum is deprecated
rake aborted!
SystemStackError: stack level too deep
After this i have so much errors, and after them:
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
I tried to:
1.Add "config.assets.initialize_on_precompile = false" to my application.rb file.
2.Initialize RAILS_ENV=production bundle exec rake assets:precompile
3.Delete application.css (actually, this css file is blank)
But i still can't deploy.
Maybe this can help you:
Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'uglifier', '2.5.3'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '4.0.3'
gem 'turbolinks', '2.3.0'
gem 'jbuilder', '2.2.3'
gem 'sdoc', '0.4.0', group: :doc
group :development, :test do
gem 'sqlite3', '1.3.9'
gem 'byebug', '3.4.0'
gem 'web-console', '2.0.0.beta3'
gem 'spring', '1.1.3'
end
group :test do
gem 'minitest-reporters', '1.0.5'
gem 'mini_backtrace', '0.1.3'
gem 'guard-minitest', '2.3.1'
end
group :production do
gem 'pg', '0.17.1'
gem 'rails_12factor', '0.0.2'
end
Database.yml file (maybe problem is here, idk):
# PostgreSQL. Versions 8.2 and up are supported.
#
# Install the pg driver:
# gem install pg
# On Mac OS X with macports:
# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config
# On Windows:
# gem install pg
# Choose the win32 build.
# Install PostgreSQL and put its /bin directory on your path.
#
# Configure Using Gemfile
# gem 'pg'
#
development:
adapter: postgresql
encoding: unicode
database: sample_postgres_development
pool: 5
username: sample_postgres
password:
# Connect on a TCP socket. Omitted by default since the client uses a
# domain socket that doesn't need configuration. Windows does not have
# domain sockets, so uncomment these lines.
#host: localhost
#port: 5432
# Schema search path. The server defaults to $user,public
#schema_search_path: myapp,sharedapp,public
# Minimum log levels, in increasing order:
# debug5, debug4, debug3, debug2, debug1,
# log, notice, warning, error, fatal, and panic
# The server defaults to notice.
#min_messages: warning
# 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:
adapter: postgresql
encoding: unicode
database: sample_postgres_test
pool: 5
username: sample_postgres
password:
production:
adapter: postgresql
encoding: unicode
database: sample_postgres_production
pool: 5
username: sample_postgres
password:
Application.js file(actually blank):
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require turbolinks
//= require_tree .

Heroku for a new rails application only gemfile edited failed "Build failed -- check your build logs"

I'm creating a new rails app in order to use it for practicing adding a front-end theme to it and makes it work, so I created a new rails application (totally new app), after that I just edited the rails app gemfile to add all the gems I added for my older projects, after that I created a new heroku repo, and tried to push my new project to heroku, but It want work and it failed, here are my gemfile and my heroku logs knowing that I'm totally newbie
my gemfile
source 'https://rubygems.org'
ruby "2.5.1"
gem 'rails', '5.1.4'
gem 'devise', '~> 4.4', '>= 4.4.3'
gem 'activeadmin', '~> 1.3' #for admin dashboard
gem "paperclip", "~> 6.0.0" #for uploading photos
gem 'bootstrap-sass', '3.3.7'
gem 'country_select'
gem 'bcrypt', '3.1.12'
gem 'faker', '1.7.3'
gem 'puma', '3.9.1'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'jbuilder', '2.7.0'
gem 'carrierwave', '~> 0.11.2'
group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri #for checking and debugging the code
gem 'awesome_print' #for awesome printing the results in the rails console
end
group :development do
gem 'web-console', '3.5.1'
gem 'listen', '3.1.5'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end
group :test do
gem 'rails-controller-testing', '1.0.2'
gem 'minitest', '5.10.3'
gem 'minitest-reporters', '1.1.14'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
group :production do
gem 'pg', '0.18.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
my heroku logs
! 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
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.5.1
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Fetching rake 12.3.1
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.10.3
Installing rake 12.3.1
Installing minitest 5.10.3
Installing concurrent-ruby 1.0.5
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.7.1
Installing erubi 1.7.1
Fetching mini_portile2 2.3.0
Fetching crass 1.0.4
Installing mini_portile2 2.3.0
Installing crass 1.0.4
Fetching rack 2.0.5
Installing rack 2.0.5
Fetching nio4r 2.3.1
Installing nio4r 2.3.1 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Fetching formtastic_i18n 0.6.0
Installing formtastic_i18n 0.6.0
Installing thor 0.20.0
Fetching kaminari-core 1.1.1
Installing kaminari-core 1.1.1
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching ffi 1.9.25
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Installing ffi 1.9.25 with native extensions
Using bundler 1.15.2
Using json 2.1.0
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching mimemagic 0.3.2
Installing mimemagic 0.3.2
Fetching climate_control 0.2.0
Installing climate_control 0.2.0
Fetching i18n_data 0.8.0
Installing i18n_data 0.8.0
Fetching sixarm_ruby_unaccent 1.2.0
Installing sixarm_ruby_unaccent 1.2.0
Fetching unicode_utils 1.4.0
Installing unicode_utils 1.4.0
Fetching orm_adapter 0.5.0
Installing orm_adapter 0.5.0
Fetching multi_json 1.13.1
Installing multi_json 1.13.1
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching tzinfo 1.2.5
Installing tzinfo 1.2.5
Fetching i18n 0.9.5
Installing i18n 0.9.5
Fetching nokogiri 1.8.4
Installing nokogiri 1.8.4 with native extensions
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching autoprefixer-rails 9.0.0
Installing autoprefixer-rails 9.0.0
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching rack-test 1.0.0
Installing rack-test 1.0.0
Fetching sprockets 3.7.2
Installing sprockets 3.7.2
Fetching warden 1.2.7
Installing warden 1.2.7
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching terrapin 0.6.0
Installing terrapin 0.6.0
Fetching sort_alphabetical 1.1.0
Installing sort_alphabetical 1.1.0
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching activesupport 5.1.4
Installing activesupport 5.1.4
Fetching money 6.12.0
Installing money 6.12.0
Fetching faker 1.7.3
Installing faker 1.7.3
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching arbre 1.1.1
Installing arbre 1.1.1
Fetching activemodel 5.1.4
Installing activemodel 5.1.4
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching countries 2.1.4
Installing countries 2.1.4
Fetching sass 3.5.7
Installing sass 3.5.7
Fetching activejob 5.1.4
Installing activejob 5.1.4
Fetching activerecord 5.1.4
Installing activerecord 5.1.4
Fetching carrierwave 0.11.2
Installing carrierwave 0.11.2
Fetching paperclip 6.0.0
Installing paperclip 6.0.0
Fetching country_select 3.1.1
Installing country_select 3.1.1
Fetching bootstrap-sass 3.3.7
Installing bootstrap-sass 3.3.7
Fetching kaminari-activerecord 1.1.1
Installing kaminari-activerecord 1.1.1
Fetching polyamorous 1.3.3
Installing polyamorous 1.3.3
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.2.2
Installing rails-dom-testing 2.0.3
Installing loofah 2.2.2
Fetching rails-html-sanitizer 1.0.4
Installing rails-html-sanitizer 1.0.4
Fetching actionview 5.1.4
Installing actionview 5.1.4
Fetching actionpack 5.1.4
Fetching kaminari-actionview 1.1.1
Installing kaminari-actionview 1.1.1
Installing actionpack 5.1.4
Fetching kaminari 1.1.1
Installing kaminari 1.1.1
Fetching actionmailer 5.1.4
Fetching railties 5.1.4
Fetching actioncable 5.1.4
Installing actionmailer 5.1.4
Installing actioncable 5.1.4
Installing railties 5.1.4
Fetching formtastic 3.1.5
Installing formtastic 3.1.5
Fetching has_scope 0.7.2
Installing has_scope 0.7.2
Fetching ransack 1.8.8
Installing ransack 1.8.8
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Fetching responders 2.4.0
Fetching coffee-rails 4.2.2
Fetching jquery-rails 4.3.1
Installing coffee-rails 4.2.2
Installing responders 2.4.0
Fetching rails 5.1.4
Installing jquery-rails 4.3.1
Installing rails 5.1.4
Fetching sass-rails 5.0.6
Fetching inherited_resources 1.8.0
Installing sass-rails 5.0.6
Installing inherited_resources 1.8.0
Fetching devise 4.4.3
Installing devise 4.4.3
Fetching activeadmin 1.3.0
Installing activeadmin 1.3.0
Bundle complete! 29 Gemfile dependencies, 90 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Post-install message from sass:
Ruby Sass is deprecated and will be unmaintained as of 26 March 2019.
* If you use Sass as a command-line tool, we recommend using Dart Sass, the new
primary implementation: https://sass-lang.com/install
* If you use Sass as a plug-in for a Ruby web framework, we recommend using the
sassc gem: https://github.com/sass/sassc-ruby#readme
* For more details, please refer to the Sass blog:
http://sass.logdown.com/posts/7081811
Post-install message from paperclip:
##################################################
# NOTE FOR UPGRADING FROM 4.3.0 OR EARLIER #
##################################################
Paperclip is now compatible with aws-sdk >= 2.0.0.
If you are using S3 storage, aws-sdk >= 2.0.0 requires you to make a few small
changes:
* You must set the `s3_region`
* If you are explicitly setting permissions anywhere, such as in an initializer,
note that the format of the permissions changed from using an underscore to
using a hyphen. For example, `:public_read` needs to be changed to
`public-read`.
For a walkthrough of upgrading from 4 to 5 and aws-sdk >= 2.0 you can watch
http://rubythursday.com/episodes/ruby-snack-27-upgrade-paperclip-and-aws-sdk-in-prep-for-rails-5
Bundle completed (38.06s)
Cleaning up the bundler cache.
Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.2). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.
The latest bundler is 1.16.3, but you are currently running 1.15.2.
To update, run `gem install bundler`
-----> Installing node-v8.10.0-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
Yarn executable was not detected in the system.
Download Yarn at https://yarnpkg.com/en/docs/install
rake aborted!
Sprockets::FileNotFound: couldn't find file 'turbolinks' with type 'application/javascript'
Checked in these paths:
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/config
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/vendor/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/activeadmin-1.3.0/vendor/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/coffee-rails-4.2.2/lib/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/jquery-rails-4.3.1/vendor/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/formtastic-3.1.5/app/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/actioncable-5.1.4/lib/assets/compiled
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/actionview-5.1.4/lib/assets/compiled
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/node_modules
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/stylesheets
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/javascripts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/fonts
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/bootstrap-sass-3.3.7/assets/images
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/app/assets/javascripts/application.js:14
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/resolve.rb:65:in `resolve!'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:399:in `resolve'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:207:in `process_require_directive'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:180:in `block in process_directives'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:178:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:178:in `process_directives'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:83:in `_call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/directive_processor.rb:68:in `call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:23:in `block in call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/utils.rb:200:in `dfs'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/bundle.rb:24:in `call'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:75:in `call_processor'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:57:in `block in call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `reverse_each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/processor_utils.rb:56:in `call_processors'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:134:in `load_from_unloaded'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:60:in `block in load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:317:in `fetch_asset_from_dependency_cache'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/loader.rb:44:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:20:in `block in initialize'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/cached_environment.rb:47:in `load'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:66:in `find_asset'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/base.rb:73:in `find_all_linked_assets'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:142:in `block in find'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:114:in `block (2 levels) in logical_paths'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:228:in `block in stat_tree'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:212:in `block in stat_directory'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:209:in `stat_directory'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/path_utils.rb:227:in `stat_tree'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:105:in `block in logical_paths'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `each'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/legacy.rb:104:in `logical_paths'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:140:in `find'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/sprockets/manifest.rb:186:in `compile'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:68:in `block (3 levels) in define'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-3.7.2/lib/rake/sprocketstask.rb:147:in `with_logger'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:67:in `block (2 levels) in define'
/tmp/build_66540dbef9a5c6fa97bf6a74441a919d/vendor/bundle/ruby/2.5.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
As this lines says:
Sprockets::FileNotFound: couldn't find file 'turbolinks' with type 'application/javascript'.
turbolinks gem is missing in your gemfile, maybe including it in your gemfile solves the issue.

Carrierwave/fog/AWS issue when loading to Heroku "cannot load such file -- fog"

So im a total newbie and going through Michael Hartl's rails tutorial. Ive become totally stuck when trying to config picture uploads using carrierwave, fog-aws to S3 AWS. When pushing to heroku I get the following error:
LoadError: cannot load such file -- fog
As a side note i've tried using the exact same code in development mode, rails server works just fine and I am able to upload files to AWS successfully. So it's not a configuration setup problem with AWS. My problem comes when trying to push the app to Heroku.
Here is my setup:
gemfile
source 'https://rubygems.org'
gem 'rails', '5.1.4'
gem 'bcrypt', git: 'https://github.com/codahale/bcrypt-ruby.git', :require => 'bcrypt'
gem 'faker', '1.7.3'
gem 'carrierwave', '1.0.0'
gem 'fog-aws', '2.0.0'
gem 'mini_magick', '4.7.0'
gem 'nokogiri', '1.8.1'
gem 'will_paginate', '3.1.6'
gem 'bootstrap-will_paginate', '1.0.0'
gem 'bootstrap-sass', '3.3.7'
gem 'puma', '3.9.1'
gem 'sass-rails', '5.0.6'
gem 'uglifier', '3.2.0'
gem 'coffee-rails', '4.2.2'
gem 'jquery-rails', '4.3.1'
gem 'turbolinks', '5.0.1'
gem 'jbuilder', '2.7.0'
group :development, :test do
gem 'sqlite3', '1.3.13'
gem 'byebug', '9.0.6', platform: :mri
end
group :development do
gem 'web-console', '3.5.1'
gem 'listen', '3.0.8'
gem 'spring', '2.0.2'
gem 'spring-watcher-listen', '2.0.1'
end
group :test do
gem 'rails-controller-testing', '1.0.2'
gem 'minitest-reporters', '1.1.14'
gem 'guard', '2.13.0'
gem 'guard-minitest', '2.4.4'
end
group :production do
gem 'pg', '0.18.4'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
app/uploaders/picture_uploader.rb
class PictureUploader < CarrierWave::Uploader::Base
include CarrierWave::MiniMagick
process resize_to_limit: [400, 400]
if Rails.env.production?
storage :fog
else
storage :file
end
config/initializers/carrierwave.rb
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_provider = 'fog/aws'
config.fog_credentials = {
# Configuration for Amazon S3
:provider => 'AWS',
:aws_access_key_id => ENV['S3_ACCESS_KEY'],
:aws_secret_access_key => ENV['S3_SECRET_KEY'],
:region => ENV['S3_REGION'],
}
config.cache_dir = "#{Rails.root}/tmp/uploads" # For Heroku
config.fog_directory = ENV['S3_BUCKET']
config.fog_public = true
config.fog_attributes = { 'Cache-Control' => "max-age=#{365.day.to_i}" }
end
end
Heroku log with error:
! 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
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.3.4
###### WARNING:
Removing `Gemfile.lock` because it was generated on Windows.
Bundler will do a full resolve so native gems are handled properly.
This may result in unexpected gem versions being used in your app.
In rare occasions Bundler may not be able to resolve your dependencies at all.
https://devcenter.heroku.com/articles/bundler-windows-gemfile
-----> Installing dependencies using bundler 1.15.2
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4
Fetching https://github.com/codahale/bcrypt-ruby.git
The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run `bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java`.
Fetching gem metadata from https://rubygems.org/.........
Fetching version metadata from https://rubygems.org/..
Fetching dependency metadata from https://rubygems.org/.
Resolving dependencies...
Fetching rake 12.3.0
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.10.3
Installing minitest 5.10.3
Installing rake 12.3.0
Installing concurrent-ruby 1.0.5
Fetching thread_safe 0.3.6
Installing thread_safe 0.3.6
Fetching builder 3.2.3
Installing builder 3.2.3
Fetching erubi 1.7.0
Fetching mini_portile2 2.3.0
Installing erubi 1.7.0
Fetching crass 1.0.3
Installing mini_portile2 2.3.0
Fetching rack 2.0.3
Installing crass 1.0.3
Fetching nio4r 2.2.0
Installing rack 2.0.3
Installing nio4r 2.2.0 with native extensions
Fetching websocket-extensions 0.1.3
Installing websocket-extensions 0.1.3
Fetching mini_mime 1.0.0
Installing mini_mime 1.0.0
Fetching arel 8.0.0
Installing arel 8.0.0
Fetching execjs 2.7.0
Using bcrypt 3.1.11 from https://github.com/codahale/bcrypt-ruby.git (at master#f2db689)
Installing execjs 2.7.0
Fetching rb-fsevent 0.10.2
Installing rb-fsevent 0.10.2
Fetching ffi 1.9.18
Installing ffi 1.9.18 with native extensions
Fetching will_paginate 3.1.6
Installing will_paginate 3.1.6
Using bundler 1.15.2
Fetching mime-types-data 3.2016.0521
Installing mime-types-data 3.2016.0521
Fetching coffee-script-source 1.12.2
Installing coffee-script-source 1.12.2
Fetching method_source 0.9.0
Installing method_source 0.9.0
Fetching thor 0.20.0
Installing thor 0.20.0
Fetching excon 0.60.0
Installing excon 0.60.0
Fetching formatador 0.2.5
Installing formatador 0.2.5
Fetching multi_json 1.12.2
Installing multi_json 1.12.2
Fetching ipaddress 0.8.3
Installing ipaddress 0.8.3
Fetching mini_magick 4.7.0
Installing mini_magick 4.7.0
Fetching pg 0.18.4
Installing pg 0.18.4 with native extensions
Fetching puma 3.9.1
Installing puma 3.9.1 with native extensions
Fetching tilt 2.0.8
Installing tilt 2.0.8
Fetching turbolinks-source 5.0.3
Installing turbolinks-source 5.0.3
Fetching i18n 0.9.1
Installing i18n 0.9.1
Fetching tzinfo 1.2.4
Installing tzinfo 1.2.4
Fetching nokogiri 1.8.1
Installing nokogiri 1.8.1 with native extensions
Fetching websocket-driver 0.6.5
Installing websocket-driver 0.6.5 with native extensions
Fetching mail 2.7.0
Installing mail 2.7.0
Fetching rack-test 0.8.2
Installing rack-test 0.8.2
Fetching sprockets 3.7.1
Installing sprockets 3.7.1
Fetching autoprefixer-rails 7.2.3
Installing autoprefixer-rails 7.2.3
Fetching uglifier 3.2.0
Installing uglifier 3.2.0
Fetching bootstrap-will_paginate 1.0.0
Installing bootstrap-will_paginate 1.0.0
Fetching mime-types 3.1
Installing mime-types 3.1
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching fog-core 1.45.0
Installing fog-core 1.45.0
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching turbolinks 5.0.1
Installing turbolinks 5.0.1
Fetching faker 1.7.3
Installing faker 1.7.3
Fetching activesupport 5.1.4
Installing activesupport 5.1.4
Fetching fog-json 1.0.2
Installing fog-json 1.0.2
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching globalid 0.4.1
Installing globalid 0.4.1
Fetching activemodel 5.1.4
Installing activemodel 5.1.4
Fetching jbuilder 2.7.0
Installing jbuilder 2.7.0
Fetching sass 3.5.4
Installing sass 3.5.4
Fetching activejob 5.1.4
Installing activejob 5.1.4
Fetching activerecord 5.1.4
Installing activerecord 5.1.4
Fetching carrierwave 1.1.0
Installing carrierwave 1.1.0
Fetching bootstrap-sass 3.3.7
Installing bootstrap-sass 3.3.7
Fetching rails-dom-testing 2.0.3
Fetching loofah 2.1.1
Installing rails-dom-testing 2.0.3
Installing loofah 2.1.1
Fetching fog-xml 0.1.3
Installing fog-xml 0.1.3
Fetching rails-html-sanitizer 1.0.3
Installing rails-html-sanitizer 1.0.3
Fetching fog-aws 2.0.0
Fetching actionview 5.1.4
Installing actionview 5.1.4
Installing fog-aws 2.0.0
Fetching actionpack 5.1.4
Installing actionpack 5.1.4
Fetching actioncable 5.1.4
Fetching actionmailer 5.1.4
Installing actionmailer 5.1.4
Installing actioncable 5.1.4
Fetching railties 5.1.4
Fetching sprockets-rails 3.2.1
Installing sprockets-rails 3.2.1
Installing railties 5.1.4
Fetching coffee-rails 4.2.2
Fetching jquery-rails 4.3.1
Installing coffee-rails 4.2.2
Fetching rails 5.1.4
Installing rails 5.1.4
Fetching sass-rails 5.0.6
Installing sass-rails 5.0.6
Installing jquery-rails 4.3.1
Bundle complete! 29 Gemfile dependencies, 74 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (32.67s)
Cleaning up the bundler cache.
-----> Installing node-v6.11.1-linux-x64
-----> Detecting rake tasks
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
LoadError: cannot load such file -- fog
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `block in require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:292:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:122:in `eager_load_fog'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:137:in `fog_credentials='
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/initializers/carrier_wave.rb:3:in `block in <top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave/uploader/configuration.rb:159:in `configure'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/carrierwave-1.1.0/lib/carrierwave.rb:14:in `configure'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/initializers/carrier_wave.rb:2:in `<top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `block in load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:258:in `load_dependency'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/dependencies.rb:286:in `load'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:655:in `block in load_config_initializer'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/activesupport-5.1.4/lib/active_support/notifications.rb:168:in `instrument'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:654:in `load_config_initializer'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:612:in `block (2 levels) in <class:Engine>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `each'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/engine.rb:611:in `block in <class:Engine>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:30:in `run'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:59:in `block in run_initializers'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `each'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:48:in `tsort_each_child'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/initializable.rb:58:in `run_initializers'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:353:in `initialize!'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/config/environment.rb:5:in `<top (required)>'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329:in `require'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:329:in `require_environment!'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/railties-5.1.4/lib/rails/application.rb:445:in `block in run_tasks_blocks'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/sprockets-rails-3.2.1/lib/sprockets/rails/task.rb:62:in `block (2 levels) in define'
/tmp/build_09f91bebad38e0d893f4a5cd532d3b6b/vendor/bundle/ruby/2.3.0/gems/rake-12.3.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app.
! Push failed
Had the same issue. I resolved in this way:
Gemfile:
gem 'fog-aws', group: :production
Adding to config/initializers/carrierwave.rb:
config.fog_provider = 'fog/aws'
After you don't need upgrading carrierwave.
First, uninstall the gem then install the latest version which is 1.2.1
Try to add gem 'fog' directly to your Gemfile
Gemfile:
gem 'fog'
gem 'fog-aws'
if you define gem in Gemfile it will automatically require it (by default).
Minor update: I was able to reproduce the Heroku deployment production error in development mode.
LoadError: cannot load such file -- fog
Gemfile:
gem 'carrierwave', '1.1.0' #also tried 1.2.1 with same results
gem 'mini_magick', '4.7.0'
gem 'fog-aws', '2.0.0'
config/initiliazers/carrierwave.rb
if Rails.env.production?
CarrierWave.configure do |config|
config.fog_credentials = {
# Configuration for Amazon S3
:provider => 'AWS',
:aws_access_key_id => ENV['S3_ACCESS_KEY'],
:aws_secret_access_key => ENV['S3_SECRET_KEY']
}
config.fog_directory = ENV['S3_BUCKET']
end
To solve the issue in development mode either of the following steps worked for me:
1) Add the following to carrierwave.rb before the credentials (and with
only gem 'fog-aws' in the gemfile):
config.fog_provider = 'fog/aws'
2) add fog gem to the gemfile:
gem 'fog', '1.41'
With this carrierwave picture upload to Amazon S3 is now fully functional in development mode. Unfortunately this does not solve the problem deploying to Heroku. Could it be that Heroku is unable to establish the provider based on the above? The production log indicates the fog-aws is installed so I dont get it.
Finally resolved the problem and it was so simple. Embarrassingly so!
All I needed to do is reset the database at Heroku (before pushing)
heroku pg:reset DATABASE
Now deployment to Heroku works without crashing (including picture uploads to S3 AWS)
Well,I got same issue but different reason.
I coded wrong symbol "provide" in carrier_wave.rb configration
:provide => "AWS"
It caused a error at
require self.fog_provider
and retrieved heroku logs in
/var/lib/gems/2.5.0/gems/carrierwave-1.2.1/lib/carrierwave/uploader/configuration.rb :122:in `eager_load_fog'
self.fog_provider default is "fog",so is that.
Then I add gem "fog" in my gemfile ,it worked

rails server and console not loading

Using rbenv and Rails 4.2.6, when I run bundle exec rails s or bundle exec rails c, I see the following:
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
That's all, nothing else happens. If I then stop spring, and run bundle exec rails c, the following appears:
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
dyld: lazy symbol binding failed: Symbol not found: _rb_data_typed_object_alloc
Referenced from: /Users/nandersen/Projects/the-lunch/vendor/bundle/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle
Expected in: flat namespace
dyld: Symbol not found: _rb_data_typed_object_alloc
Referenced from: /Users/nandersen/Projects/the-lunch/vendor/bundle/gems/debug_inspector-0.0.2/lib/debug_inspector.bundle
Expected in: flat namespace
Any idea what's wrong here? Thanks!
Update: add content of gemfile and ouput of bundle install
Gemfile:
source 'https://rubygems.org'
ruby "2.3.1"
gem 'rails', '4.2.6'
gem 'pg'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'simple_form'
gem "puma"
gem 'dotenv-rails', :groups => [:development, :test]
gem 'quiet_assets', :group => :development
gem "rails_12factor"
gem 'slack-ruby-client'
gem 'rails-i18n', github: 'svenfuchs/rails-i18n', branch: 'rails-4-x'
gem 'bootstrap-sass', '~> 3.3.6'
group :development, :test do
gem 'byebug'
gem 'rspec-rails', '~> 3.4'
gem 'factory_girl_rails', '~> 4.0'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'guard'
gem 'guard-rspec', require: false
gem 'terminal-notifier-guard'
gem 'spring'
end
Output of bundle install:
Using rake 11.2.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.9.0
Using thread_safe 0.3.5
Using builder 3.2.2
Using erubis 2.7.0
Using mini_portile2 2.1.0
Using pkg-config 1.1.7
Using rack 1.6.4
Using mime-types-data 3.2016.0521
Using arel 6.0.3
Using execjs 2.7.0
Using debug_inspector 0.0.2
Using sass 3.4.22
Using byebug 9.0.5
Using coderay 1.1.1
Using coffee-script-source 1.10.0
Using thor 0.19.1
Using concurrent-ruby 1.0.2
Using diff-lcs 1.2.5
Using dotenv 2.1.1
Using multipart-post 2.0.0
Using ffi 1.9.10
Using formatador 0.2.5
Using gli 2.14.0
Using rb-fsevent 0.9.7
Using ruby_dep 1.3.1
Using lumberjack 1.0.10
Using nenv 0.3.0
Using shellany 0.0.1
Using method_source 0.8.2
Using slop 3.6.0
Using guard-compat 1.2.1
Using rspec-support 3.4.1
Using hashie 3.4.4
Using multi_json 1.12.1
Using pg 0.18.4
Using puma 3.4.0
Using bundler 1.12.5
Using rails_serve_static_assets 0.0.5
Using rails_stdout_logging 0.0.5
Using tilt 2.0.5
Using websocket-extensions 0.1.2
Using spring 1.7.1
Using terminal-notifier-guard 1.7.0
Using rdoc 4.2.2
Using tzinfo 1.2.2
Using nokogiri 1.6.8
Using rack-test 0.6.3
Using mime-types 3.1
Using autoprefixer-rails 6.3.6.2
Using uglifier 3.0.0
Using binding_of_caller 0.7.2
Using coffee-script 2.4.1
Using sprockets 3.6.1
Using faraday 0.9.2
Using rb-inotify 0.9.7
Using notiffany 0.1.0
Using pry 0.10.3
Using rspec-core 3.4.4
Using rspec-expectations 3.4.0
Using rspec-mocks 3.4.1
Using rails_12factor 0.0.3
Using websocket-driver 0.6.4
Using sdoc 0.4.1
Using activesupport 4.2.6
Using loofah 2.0.3
Using mail 2.6.4
Using bootstrap-sass 3.3.6
Using faraday_middleware 0.10.0
Using listen 3.1.5
Using rspec 3.4.0
Using rails-deprecated_sanitizer 1.0.3
Using globalid 0.3.6
Using activemodel 4.2.6
Using factory_girl 4.7.0
Using jbuilder 2.5.0
Using rails-html-sanitizer 1.0.3
Using slack-ruby-client 0.7.4
Using guard 2.14.0
Using rails-dom-testing 1.0.7
Using activejob 4.2.6
Using activerecord 4.2.6
Using guard-rspec 4.7.2
Using actionview 4.2.6
Using actionpack 4.2.6
Using actionmailer 4.2.6
Using railties 4.2.6
Using sprockets-rails 3.0.4
Using simple_form 3.2.1
Using coffee-rails 4.1.1
Using dotenv-rails 2.1.1
Using factory_girl_rails 4.7.0
Using jquery-rails 4.1.1
Using quiet_assets 1.1.0
Using rails-i18n 4.0.8 from git://github.com/svenfuchs/rails-i18n.git (at rails-4-x#129b9fb)
Using rspec-rails 3.4.2
Using rails 4.2.6
Using sass-rails 5.0.4
Using web-console 2.3.0
Using turbolinks 2.5.3
Bundle complete! 25 Gemfile dependencies, 102 gems now installed.
Bundled gems are installed into ./vendor/bundle.
Update 2 - added bundle exec gem pristine --all
bundle exec gem pristine --all
Restoring gems to pristine condition...
Restored rake-11.2.2
Restored i18n-0.7.0
Skipped json-1.8.3, it is a default gem
Restored minitest-5.9.0
Restored thread_safe-0.3.5
Restored tzinfo-1.2.2
Restored activesupport-4.2.6
Restored builder-3.2.2
Restored erubis-2.7.0
Restored mini_portile2-2.1.0
Restored pkg-config-1.1.7
Building native extensions. This could take a while...
ERROR: While executing gem ... (Gem::Ext::BuildError)
ERROR: Failed to build gem native extension.
current directory: /Users/nandersen/Projects/the-lunch/vendor/bundle/gems/nokogiri-1.6.8/ext/nokogiri
/Users/nandersen/.rbenv/versions/2.3.1/bin/ruby -r ./siteconf20160620-6035-1m3373p.rb extconf.rb
Ignoring sqlite3-1.3.11 because its extensions are not built. Try: gem pristine sqlite3 --version 1.3.11
/Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:95:in `block in materialize': Could not find nokogiri-1.6.8 in any of the sources (Bundler::GemNotFound)
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `map!'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/spec_set.rb:88:in `materialize'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:140:in `specs'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:185:in `specs_for'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/definition.rb:174:in `requested_specs'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/environment.rb:19:in `requested_specs'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/runtime.rb:14:in `setup'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler.rb:95:in `setup'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/bundler-1.12.5/lib/bundler/setup.rb:19:in `<top (required)>'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
from /Users/nandersen/.rbenv/versions/2.3.1/lib/ruby/2.3.0/rubygems/core_ext/kernel_require.rb:55:in `require'
extconf failed, exit code 1
Gem files will remain installed in /Users/nandersen/Projects/the-lunch/vendor/bundle/gems/nokogiri-1.6.8 for inspection.
Results logged to /Users/nandersen/Projects/the-lunch/vendor/bundle/extensions/x86_64-darwin-15/2.3.0-static/nokogiri-1.6.8/gem_make.out
The problem is debug_inspector gem, you could try to remove web-console gem in your Gemfile, bundle install, and run the server again.
UPDATE:
Or if you would like to keep the web-console gem, you could try to remove all the gems you have installed, and re-bundle install them again. According to this issue on rails/web-console.

Resources