Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save siddhantbhardwaj/dab7c435815e7729d0f70081449f21ff to your computer and use it in GitHub Desktop.
Save siddhantbhardwaj/dab7c435815e7729d0f70081449f21ff to your computer and use it in GitHub Desktop.
Heroku CI : error
-----> Auto detecting buildpacks...
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
-----> Setting up Test for Ruby/Rails
-----> Using Ruby version: ruby-2.4.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 --path vendor/bundle --binstubs vendor/bundle/bin -j4
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.1
Fetching concurrent-ruby 1.0.5
Fetching minitest 5.11.3
Installing rake 12.3.1
Installing minitest 5.11.3
Installing concurrent-ruby 1.0.5
Fetching thread_safe 0.3.6
Fetching builder 3.2.3
Installing thread_safe 0.3.6
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
Fetching rack 2.0.5
Installing mini_portile2 2.3.0
Installing crass 1.0.4
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 arel 8.0.0
Installing arel 8.0.0
Fetching public_suffix 3.0.2
Fetching execjs 2.7.0
Installing execjs 2.7.0
Installing public_suffix 3.0.2
Fetching bcrypt 3.1.12
Installing bcrypt 3.1.12 with native extensions
Fetching popper_js 1.12.9
Installing popper_js 1.12.9
Fetching rb-fsevent 0.10.3
Installing rb-fsevent 0.10.3
Fetching ffi 1.9.25
Installing ffi 1.9.25 with native extensions
Using bundler 1.15.2
Fetching byebug 10.0.2
Installing byebug 10.0.2 with native extensions
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 multi_json 1.13.1
Installing multi_json 1.13.1
Fetching mysql2 0.4.10
Installing mysql2 0.4.10 with native extensions
Fetching puma 3.11.4
Installing puma 3.11.4 with native extensions
Fetching rubyzip 1.2.1
Installing rubyzip 1.2.1
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.3
Installing nokogiri 1.8.3 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 sprockets 3.7.2
Installing sprockets 3.7.2
Fetching autoprefixer-rails 8.6.3
Installing autoprefixer-rails 8.6.3
Fetching uglifier 4.1.12
Installing uglifier 4.1.12
Fetching addressable 2.5.2
Installing addressable 2.5.2
Fetching coffee-script 2.4.1
Installing coffee-script 2.4.1
Fetching rb-inotify 0.9.10
Installing rb-inotify 0.9.10
Fetching childprocess 0.9.0
Installing childprocess 0.9.0
Fetching turbolinks 5.1.1
Installing turbolinks 5.1.1
Fetching activesupport 5.1.6
Installing activesupport 5.1.6
Fetching sass-listen 4.0.0
Installing sass-listen 4.0.0
Fetching selenium-webdriver 3.12.0
Installing selenium-webdriver 3.12.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 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 bootstrap 4.1.1
Installing bootstrap 4.1.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 xpath 3.1.0
Installing xpath 3.1.0
Fetching rails-html-sanitizer 1.0.4
Fetching capybara 2.18.0
Installing rails-html-sanitizer 1.0.4
Fetching actionview 5.1.6
Installing capybara 2.18.0
Installing actionview 5.1.6
Fetching actionpack 5.1.6
Installing actionpack 5.1.6
Fetching actioncable 5.1.6
Fetching actionmailer 5.1.6
Fetching railties 5.1.6
Installing actionmailer 5.1.6
Installing actioncable 5.1.6
Fetching sprockets-rails 3.2.1
Installing railties 5.1.6
Installing sprockets-rails 3.2.1
Fetching coffee-rails 4.2.2
Fetching jquery-rails 4.3.3
Fetching rails 5.1.6
Installing coffee-rails 4.2.2
Installing rails 5.1.6
Fetching sass-rails 5.0.7
Installing jquery-rails 4.3.3
Installing sass-rails 5.0.7
Bundle complete! 18 Gemfile dependencies, 69 gems now installed.
Gems in the group development were not installed.
Bundled gems are installed into ./vendor/bundle.
Bundle completed (45.21s)
Cleaning up the bundler cache.
-----> Installing node-v8.10.0-linux-x64
-----> Clearing db:test:purge db:create db:structure:dump rake tasks
-----> Detecting rake tasks
-----> Preparing test database
Running: rake db:schema:load_if_ruby
rake aborted!
Mysql2::Error: Can't connect to MySQL server on '127.0.0.1' (111)
/app/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in `connect'
/app/vendor/bundle/ruby/2.4.0/gems/mysql2-0.4.10/lib/mysql2/client.rb:89:in `initialize'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/mysql2_adapter.rb:21:in `new'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/mysql2_adapter.rb:21:in `mysql2_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:759:in `new_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:803:in `checkout_new_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:782:in `try_to_checkout_new_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:743:in `acquire_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:500:in `checkout'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:374:in `connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_adapters/abstract/connection_pool.rb:931:in `retrieve_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_handling.rb:116:in `retrieve_connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/connection_handling.rb:88:in `connection'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1038:in `current_version'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/migration.rb:1271:in `last_stored_environment'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/tasks/database_tasks.rb:56:in `check_protected_environments!'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:11:in `block (2 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.4.0/gems/activerecord-5.1.6/lib/active_record/railties/databases.rake:252:in `block (3 levels) in <top (required)>'
/app/vendor/bundle/ruby/2.4.0/gems/rake-12.3.1/exe/rake:27:in `<top (required)>'
Tasks: TOP => db:schema:load => db:check_protected_environments
(See full trace by running task with --trace)
!
! Could not prepare database for test
!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment