When mina deploy runs an error occurs during migration that pg gem is not loaded.The problem is that the gem is loaded in my gem file but during the mina's bundle install pg gem doesn't get installed.
Any ideas how to fix this issue?
-----> Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
Gemfile
gem 'mail_form'
gem 'devise'
gem 'cancancan'
group :production do
gem 'pg'
gem 'therubyracer'
end
database.yml
production:
adapter: postgresql
encoding: unicode
database: tech
username: admin
password: PASSWORD
host: localhost
mina deploy --verbose
-----> Loading rbenv
$ export RBENV_ROOT="$HOME/.rbenv"
$ export PATH="$HOME/.rbenv/bin:$PATH"
$ eval "$(rbenv init -)"
-----> Creating a temporary build path
$ touch "deploy.lock"
$ mkdir -p "$build_path"
$ cd "$build_path"
-----> Fetching new git commits
$ (cd "/home/deployer/tech/scm" && git fetch "git#bitbucket.org:gns/tech.git" "master:m
$ (cd "/home/deployer/tech/scm" && git fetch "git#bitbucket.org:gns/tech.git" "master:master" --force)
-----> Using git branch 'master'
$ git clone "/home/deployer/tech/scm" . --recursive --branch "master"
Cloning into '.'...
done.
-----> Using this git commit
$ git --no-pager log --format='%aN (%h):%n> %s' -n 1
yiannis (4ef997e):
> Gemfile
$ rm -rf .git
-----> Symlinking shared paths
$ mkdir -p "./config"
$ mkdir -p "."
$ rm -rf "./config/database.yml"
$ ln -s "/home/deployer/tech/shared/config/database.yml" "./config/database.yml"
$ rm -rf "./log"
$ ln -s "/home/deployer/tech/shared/log" "./log"
$ rm -rf "./config/secrets.yml"
$ ln -s "/home/deployer/tech/shared/config/secrets.yml" "./config/secrets.yml"
-----> Installing gem dependencies using Bundler
$ mkdir -p "/home/deployer/tech/shared/bundle"
$ mkdir -p "./vendor"
$ ln -s "/home/deployer/tech/shared/bundle" "./vendor/bundle"
$ bundle install --without development:test --path "./vendor/bundle" --deployment
Fetching gem metadata from http://rubygems.org/........
Using rake 10.4.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.5.0
Using thread_safe 0.3.4
Using tzinfo 1.2.2
Using activesupport 4.1.8
Using builder 3.2.2
Using erubis 2.7.0
Using actionview 4.1.8
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.1.8
Using mime-types 2.4.3
Using mail 2.6.3
Using actionmailer 4.1.8
Using activemodel 4.1.8
Using arel 5.0.1.20140414130214
Using activerecord 4.1.8
Using bundler 1.8.0.pre
Using thor 0.19.1
Using railties 4.1.8
Using hike 1.2.3
Using multi_json 1.10.1
Using tilt 1.4.1
Using sprockets 2.12.3
Using sprockets-rails 2.2.2
Using rails 4.1.8
Using animate-rails 1.0.7
Using aws-sdk-v1 1.59.1
Using aws-sdk 1.59.1
Using cancancan 1.9.2
Using chronic 0.10.2
Using climate_control 0.0.3
Using cocaine 0.5.5
Using coffee-script-source 1.8.0
Using execjs 2.2.2
Using coffee-script 2.3.0
Using coffee-rails 4.0.1
Using orm_adapter 0.5.0
Using responders 1.1.2
Using warden 1.2.3
Using devise 3.4.1
Using figaro 1.0.0
Using font-awesome-rails 4.2.0.0
Using foundation-datetimepicker-rails 0.1.3
Using sass 3.2.19
Using foundation-rails 5.4.5.0
Using friendly_id 5.0.4
Using google-webfonts-rails 0.0.4
Using jbuilder 2.2.6
Using jquery-rails 3.1.2
Using kaminari 0.16.1
Using libv8 3.16.14.7
Using mail_form 1.5.0
Using newrelic_rpm 3.9.8.273
Using paperclip 4.2.1
Using pg_search 0.7.8
Using rdoc 4.2.0
Using ref 1.0.5
Using sass-rails 4.0.5
Using sdoc 0.4.1
Using therubyracer 0.12.1
Using uglifier 2.6.0
Using whenever 0.9.4
Bundle complete! 25 Gemfile dependencies, 65 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
-----> Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
Gem::LoadError: Specified 'postgresql' for database adapter, but the gem is not loaded. Add `gem 'pg'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/home/deployer/tech/tmp/build-142229948411279/config/environment.rb:5:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
Gem::LoadError: pg is not part of the bundle. Add it to Gemfile.
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/postgresql_adapter.rb:13:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_adapters/connection_specification.rb:188:in `spec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/connection_handling.rb:50:in `establish_connection'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `each'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.8/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `instance_exec'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:30:in `run'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:55:in `block in run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/initializable.rb:54:in `run_initializers'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:300:in `initialize!'
/home/deployer/tech/tmp/build-142229948411279/config/environment.rb:5:in `<top (required)>'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `block in require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:232:in `load_dependency'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.8/lib/active_support/dependencies.rb:247:in `require'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:276:in `require_environment!'
/home/deployer/tech/tmp/build-142229948411279/vendor/bundle/ruby/2.1.0/gems/railties-4.1.8/lib/rails/application.rb:389:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "$build_path"
Unlinking current
$ rm -f "deploy.lock"
OK
! Command failed.
Failed with status 19
I'm sure set :rails_env, 'production' sets environment for rake and rails commands only, so try bundle_prefix.
In worst case move gem 'pg' to common section of Gemfile.
Related
I'm trying to install the Redmine Agile plugin, and I can't get through step 4:
/var/www/html/redmine$ sudo bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
(in /usr/share/redmine)
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Caused by:
Gem::LoadError: mysql2 is not part of the bundle. Add it to your Gemfile.
/var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem'
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
I previously had been unable to sudo gem install mysql2, but got around that by following this answer.
I did try adding gem "mysql2", but that did not resolve the issue.
/var/www/html/redmine$ cat plugins/redmine_agile/Gemfile
gem "redmine_crm"
gem "mysql2"
I'm not sure what to make of and ensure its version is at the minimum required by ActiveRecord. I'm not sure how to check what that is. I know I can set versions of a gem in the Gemfile, but I don't know what it would be set to.
I'm on Ubuntu 16.04.4 LTS, MySQL 5.7.22. I'm serving Redmine using something similar to this answer.
UPDATE
When I tried to rake as www-data, the error I got changed to
www-data#host:/usr/share/redmine/public/plugins/redmine_agile$ bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
`/home/ubuntu` is not writable.
Bundler will use `/tmp/bundler/home/ubuntu' as your home directory temporarily.
Could not find gem 'redmine_crm' in any of the gem sources listed in your Gemfile.
Run `bundle install` to install missing gems.
(Trying to rake from /var/www/html/redmine kept getting me the mysql2 error.)
I then tried to install redmine_crm. I couldn't do this as www-data, so I did it as root:
/var/www/html/redmine/plugins/redmine_agile$ sudo gem install redmine_crm
I then tried bundle install but got
There was an error while trying to write to
`/usr/share/redmine/public/plugins/redmine_agile/Gemfile.lock`. It is likely that you need to grant
write permissions for that path.
So I ran that as root.
/var/www/html/redmine/plugins/redmine_agile$ sudo bundle install
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.
Resolving dependencies...
Using rake 12.3.2
Using i18n 0.7.0
Using json 1.8.3
Using minitest 5.11.3
Using thread_safe 0.3.6
Using tzinfo 1.2.5
Using activesupport 4.2.6
Using builder 3.2.3
Using erubis 2.7.0
Using nokogiri 1.6.7.2
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using crass 1.0.4
Using loofah 2.2.2
Using rails-html-sanitizer 1.0.4
Using actionview 4.2.6
Using rack 1.6.4
Using rack-test 0.6.3
Using actionpack 4.2.6
Using globalid 0.4.1
Using activejob 4.2.6
Using mini_mime 1.0.0
Using mail 2.7.0
Using actionmailer 4.2.6
Using activemodel 4.2.6
Using arel 6.0.3
Using activerecord 4.2.6
Using bundler 1.16.2
Using concurrent-ruby 1.0.5
Using liquid 2.6.3
Using mysql2 0.5.2
Using thor 0.20.0
Using railties 4.2.6
Using sprockets 3.7.2
Using sprockets-rails 3.2.1
Using rails 4.2.6
Using redmine_crm 0.0.42
Bundle complete! 2 Gemfile dependencies, 37 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
Trying rake then got me a different error.
ubuntu#host:/var/www/html/redmine/plugins/redmine_agile$ sudo bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
(in /usr/share/redmine)
rake aborted!
NameError: uninitialized constant ActionDispatch::XmlParamsParser
/usr/share/redmine/config/application.rb:55:in `<class:Application>'
/usr/share/redmine/config/application.rb:8:in `<module:RedmineApp>'
/usr/share/redmine/config/application.rb:7:in `<top (required)>'
/usr/share/redmine/Rakefile:4:in `require'
/usr/share/redmine/Rakefile:4:in `<top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
(See full trace by running task with --trace)
Trying that from the redmine per this answer directory failed with the mysql2 gem error.
ubuntu#host:/var/www/html/redmine/plugins/redmine_agile$ cd ../..
ubuntu#host:/var/www/html/redmine$ sudo bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
(in /usr/share/redmine)
rake aborted!
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Caused by:
Gem::LoadError: mysql2 is not part of the bundle. Add it to your Gemfile.
/var/lib/gems/2.3.0/gems/bundler-1.16.2/lib/bundler/rubygems_integration.rb:408:in `block (2 levels) in replace_gem'
/usr/share/redmine/lib/plugins/acts_as_activity_provider/init.rb:2:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `eval'
/usr/share/redmine/config/initializers/00-core_plugins.rb:12:in `block in <top (required)>'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `each'
/usr/share/redmine/config/initializers/00-core_plugins.rb:2:in `<top (required)>'
/usr/share/redmine/config/environment.rb:14:in `<top (required)>'
/usr/share/redmine/lib/tasks/redmine.rake:52:in `block (2 levels) in <top (required)>'
/var/lib/gems/2.3.0/gems/rake-12.3.2/exe/rake:27:in `<top (required)>'
Tasks: TOP => redmine:plugins:migrate => environment
(See full trace by running task with --trace)
Unnecessary use of sudo to run a command as root is a common cause of issues to find resolve some gems.
In almost all cases, you should thus not not use sudo to run your rake tasks. Instead, use the user which normally usually runs the app server, e.g. www-data.
# first change to the user that usually runs your app
sudo -u www-data /bin/bash -i
/var/www/html/redmine
# Now run your rake task (without prefixing it with sudo)
bundle exec rake redmine:plugins NAME=redmine_agile RAILS_ENV=production
This error is clearly saying that you have not installed Gem 'mysql2' have you ran command bundle install? can you try following
On your project root folder please run following command
gem list mysql2
It should show you local gems and also list mysql2 as installed
In case it is not installed, that means you either you can't install mysql2 or you have not run bundle install command. Maybe you can try the following
Add the following line in your Gemfile
gem "mysql2", "0.3.14"
now run following command
bundle install
Now check if mysql2 is really installed
gem list mysql2
If yes then all good, hope it works.
I'm using Mina to deploy a Rail application to a VPS (digital ocean).
When I use mina deploy I keep getting the same error:
rake aborted!
LoadError: cannot load such file -- nokogiri
C:\Sites\app>mina deploy --trace
** Invoke deploy (first_time)
** Invoke environment (first_time)
** Execute environment
** Invoke rvm:use (first_time)
** Execute rvm:use
** Execute deploy
** Invoke git:clone (first_time)
** Execute git:clone
** Invoke deploy:link_shared_paths (first_time)
** Execute deploy:link_shared_paths
** Invoke bundle:install (first_time)
** Execute bundle:install
** Invoke rails:db_migrate (first_time)
** Execute rails:db_migrate
** Invoke rails:assets_precompile (first_time)
** Execute rails:assets_precompile
** Invoke deploy:cleanup (first_time)
** Execute deploy:cleanup
user#45.45.45.45's password:
-----> Using RVM environment 'ruby-2.2.1#default'
$ rvm use "ruby-2.2.1#default" --create
Using /usr/local/rvm/gems/ruby-2.2.1
-----> Creating a temporary build path
$ touch "deploy.lock"
$ mkdir -p "./tmp/build-%s2267"
$ cd "./tmp/build-%s2267"
-----> Fetching new git commits
$ (cd "/home/user/app/scm" && git fetch "git#bitbucket.org:user/app.git" "master:master" --force)
Enter passphrase for key '/home/user/.ssh/id_rsa':
-----> Using git branch 'master'
$ git clone "/home/user/app/scm" . --recursive --branch "master"
Cloning into '.'...
done.
-----> Using this git commit
$ git --no-pager log --format='%%%%aN (%%%%h):%%%%n> %%%%s' -n 1 %aN (%h):%n> %s
$ rm -rf .git
-----> Symlinking shared paths
$ mkdir -p "./config"
$ mkdir -p "."
$ rm -rf "./config/database.yml"
$ ln -s "/home/user/app/shared/config/database.yml" "./config/database.yml"
$ rm -rf "./log"
$ ln -s "/home/user/app/shared/log" "./log"de
-----> Installing gem dependencies using Bundler
$ mkdir -p "/home/user/app/shared/bundle"
$ mkdir -p "./vendor"
$ ln -s "/home/user/app/shared/bundle" "./vendor/bundle"
$ bundle install --without development:test --path "./vendor/bundle" --deployment
Fetching gem metadata from https://rubygems.org/............
Fetching version metadata from https://rubygems.org/...
Fetching dependency metadata from https://rubygems.org/..
Using rake 10.4.2
Using i18n 0.7.0
Using json 1.8.2
Using minitest 5.6.1
Using thread_safe 0.3.5
Using tzinfo 1.2.2
Using activesupport 4.2.0
Using builder 3.2.2
Using erubis 2.7.0
Using rails-deprecated_sanitizer 1.0.3
Using rails-dom-testing 1.0.6
Using loofah 2.0.2
Using rails-html-sanitizer 1.0.2
Using actionview 4.2.0
Using rack 1.6.1
Using rack-test 0.6.3
Using actionpack 4.2.0
Using globalid 0.3.5
Using activejob 4.2.0
Using mime-types 2.5
Using mail 2.6.3
Using actionmailer 4.2.0
Using activemerchant 1.47.0
Using activemodel 4.2.0
Using arel 6.0.0
Using activerecord 4.2.0
Using acts_as_list 0.7.2
Using addressable 2.3.8
Using execjs 2.5.2
Using autoprefixer-rails 5.1.11
Using awesome_nested_set 3.0.2
Using sass 3.4.13
Using bootstrap-sass 3.3.4.1
Using camertron-eprun 1.1.0
Using cancancan 1.10.1
Using bundler 1.8.4
Using thor 0.19.1
Using railties 4.2.0
Using sprockets 3.0.3
Using sprockets-rails 2.3.0
Using rails 4.2.0
Using canonical-rails 0.0.9
Using carmen 1.0.2
Using cldr-plurals-runtime-rb 1.0.0
Using climate_control 0.0.3
Using cocaine 0.5.7
Using coffee-script-source 1.8.0
Using coffee-script 2.4.1
Using coffee-rails 4.1.0
Using colorize 0.7.7
Using css_parser 1.3.6
Using daemons 1.2.2
Using polyglot 0.3.5
Using deface 1.0.1
Using orm_adapter 0.5.0
Using responders 2.1.0
Using warden 1.2.3
Using devise 3.4.1
Using devise-encryptable 0.1.2
Using eventmachine 1.0.7
Using ffaker 1.32.1
Using font-awesome-rails 4.3.0.0
Using friendly_id 5.1.0
Using friendly_id-globalize 1.0.0.alpha1
Using globalize 5.0.1
Using highline 1.6.21
Using htmlentities 4.3.3
Using multi_xml 0.5.5
Using httparty 0.13.3
Using i18n_data 0.5.1
Using multi_json 1.11.0
Using jbuilder 2.2.13
Using jquery-rails 4.0.3
Using jquery-ui-rails 5.0.3
Using kaminari 0.16.3
Using kaminari-i18n 0.3.2
Using khipu 1.3.5
Using open4 1.3.4
Using mina 0.3.4
Using money 6.5.1
Using monetize 1.3.0
Using paperclip 4.2.1
Using paranoia 2.1.2
Using polyamorous 1.2.0
Using premailer 1.8.4
Using premailer-rails 1.8.1
Using rabl 0.9.4.pre1
Using rails-i18n 4.0.4
Using ransack 1.4.1
Using rdoc 4.2.0
Using tilt 1.4.1
Using sass-rails 5.0.3
Using sdoc 0.4.1
Using select2-rails 3.5.9.1
Using state_machines 0.2.2
Using state_machines-activemodel 0.1.2
Using state_machines-activerecord 0.2.0
Using stringex 2.5.2
Using truncate_html 0.9.2
Using twitter_cldr 3.1.2
Using spree_core 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-stable
)
Using versioncake 2.3.1
Using spree_api 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-stable)
Using spree_backend 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-sta
ble)
Using spree_cmd 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-stable)
Using spree_frontend 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-st
able)
Using spree_sample 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-stab
le)
Using spree 3.0.2.beta from git://github.com/spree/spree.git (at 3-0-stable)
Using spree_auth_devise 3.0.0 from git://github.com/spree/spree_auth_devise.git
(at 3-0-stable)
Using spree_gateway 3.0.0.beta from git://github.com/spree/spree_gateway.git (at
3-0-stable)
Using spree_i18n 3.0.0 from git://github.com/spree/spree_i18n.git (at 3-0-stable
)
Using spree_slider 1.2.0 from git://github.com/spree-contrib/spree_slider.git (a
t master)
Using spree_static_content 2.3.0 from git://github.com/spree-contrib/spree_stati
c_content.git (at 3-0-stable)
Using thin 1.6.3
Using turbolinks 2.5.3
Using uglifier 2.7.1
Bundle complete! 25 Gemfile dependencies, 116 gems now installed.
Gems in the groups development and test were not installed.
Bundled gems are installed into ./vendor/bundle.
-----> Migrating database
$ RAILS_ENV="production" bundle exec rake db:migrate
rake aborted!
LoadError: cannot load such file -- nokogiri
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/loofah-2.0.2/l
ib/loofah.rb:3:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/loofah-2.0.2/l
ib/loofah.rb:3:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/rails-html-san
itizer-1.0.2/lib/rails-html-sanitizer.rb:2:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/rails-html-san
itizer-1.0.2/lib/rails-html-sanitizer.rb:2:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/sanitize_helper.rb:3:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/sanitize_helper.rb:3:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/text_helper.rb:32:in `<module:TextHelper>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/text_helper.rb:29:in `<module:Helpers>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/text_helper.rb:6:in `<module:ActionView>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/text_helper.rb:4:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_tag_helper.rb:18:in `<module:FormTagHelper>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_tag_helper.rb:14:in `<module:Helpers>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_tag_helper.rb:8:in `<module:ActionView>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_tag_helper.rb:6:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_helper.rb:4:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers/form_helper.rb:4:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers.rb:50:in `<module:Helpers>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers.rb:4:in `<module:ActionView>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/actionview-4.2
.0/lib/action_view/helpers.rb:3:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/legacy_asset_tag_helper.rb:7:in `<module:LegacyAsset
TagHelper>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/legacy_asset_tag_helper.rb:6:in `<module:Rails>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/legacy_asset_tag_helper.rb:4:in `<module:Sprockets>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/legacy_asset_tag_helper.rb:3:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/helper.rb:54:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/helper.rb:54:in `<module:Helper>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/helper.rb:7:in `<module:Rails>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/helper.rb:6:in `<module:Sprockets>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/rails/helper.rb:5:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/railtie.rb:6:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sprockets-rail
s-2.3.0/lib/sprockets/railtie.rb:6:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass/rails/railtie.rb:3:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass/rails/railtie.rb:3:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass/rails.rb:11:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass/rails.rb:11:in `<top (required)>'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass-rails.rb:1:in `require'
/home/user/app/tmp/build-%s2267/vendor/bundle/ruby/2.2.0/gems/sass-rails-5.0
.3/lib/sass-rails.rb:1:in `<top (required)>'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
76:in `require'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
76:in `block (2 levels) in require'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
72:in `each'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
72:in `block in require'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
61:in `each'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler/runtime.rb:
61:in `require'
/usr/local/rvm/gems/ruby-2.2.1#global/gems/bundler-1.8.4/lib/bundler.rb:134:in `
require'
/home/user/app/tmp/build-%s2267/config/application.rb:7:in `<top (required)>
'
/home/user/app/tmp/build-%s2267/Rakefile:4:in `require'
/home/user/app/tmp/build-%s2267/Rakefile:4:in `<top (required)>'
(See full trace by running task with --trace)
! ERROR: Deploy failed.
-----> Cleaning up build
$ rm -rf "./tmp/build-%s2267"
Unlinking current
$ rm -f "deploy.lock"
OK
Connection to 45.45.45.45 closed.
It seems that all the necessary gems are being installed except for Nokogiri. I'm not sure how to fix this.
This is my Gemfile:
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'coffee-script-source', '1.8.0'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'khipu'
gem 'mina'
gem 'nokogiri', '1.6.1'
# gem 'unicorn'
gem 'spree_khipu', :path => '../spree_khipu'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'spree', github: 'spree/spree', branch: '3-0-stable'
gem 'spree_gateway', github: 'spree/spree_gateway', branch: '3-0-stable'
gem 'spree_auth_devise', github: 'spree/spree_auth_devise', branch: '3-0-stable'
gem 'spree_i18n', :github => 'spree/spree_i18n', branch: '3-0-stable'
gem 'spree_slider', github: 'spree-contrib/spree_slider'
gem 'spree_static_content', github: 'spree-contrib/spree_static_content', branch: '3-0-stable'
gem 'bootstrap-sass', '~> 3.3.4'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
gem 'thin'
group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem 'byebug'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
end
# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby]
group :production do
gem 'pg'
end
Finally a fix this by bundle install on a linux machine so the Gemfile.lock get updated, then I try again to mina deploy and everything works fine.
Couldn't figure out what was the exact problem with my previous version of the Gemfile.lock
So, I cam across a error when pushing to heroku that I have not seen before. I am actively trying learn what the error means so I can fix it.
I see there there is issues with my sqlite3 but still cannot figure out a fix. After screwing up my gem files and then hours to get it back working on my local, I am here to ask for some help.
Any input would be greatly appreciated!
Haydens-MacBook-Air:TicketFee_Calculator haydengoldman$ git push heroku master
Initializing repository, done.
Counting objects: 215, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (197/197), done.
Writing objects: 100% (215/215), 291.41 KiB | 244.00 KiB/s, done.
Total 215 (delta 66), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.1.3
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/..........
Using json 1.8.1
Installing minitest 5.4.2
Installing i18n 0.6.11
Installing rake 10.3.2
Installing builder 3.2.2
Installing erubis 2.7.0
Installing rack 1.5.2
Installing arel 5.0.1.20140414130214
Installing mime-types 2.4.1
Installing sass 3.2.19
Installing coffee-script-source 1.8.0
Installing thor 0.19.1
Installing hike 1.2.3
Installing multi_json 1.10.1
Using bundler 1.6.3
Installing tilt 1.4.1
Installing thread_safe 0.3.4
Installing rails_serve_static_assets 0.0.2
Installing rdoc 4.1.2
Installing rails_stdout_logging 0.0.3
Installing rack-test 0.6.2
Installing bootstrap-sass 3.1.1.0
Installing execjs 2.2.1
Installing mail 2.6.1
Installing tzinfo 1.2.2
Installing sprockets 2.11.0
Installing coffee-script 2.3.0
Installing rails_12factor 0.0.2
Installing sdoc 0.4.1
Installing uglifier 2.5.3
Installing activesupport 4.1.6
Installing activemodel 4.1.6
Installing jbuilder 2.2.2
Installing actionview 4.1.6
Installing actionpack 4.1.6
Installing railties 4.1.6
Installing actionmailer 4.1.6
Installing activerecord 4.1.6
Installing sprockets-rails 2.1.4
Installing coffee-rails 4.0.1
Installing jquery-rails 3.1.2
Installing sass-rails 4.0.3
Installing turbolinks 2.4.0
Installing rails 4.1.6
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Bundle completed (22.97s)
Cleaning up the bundler cache.
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: Paths in SQLite3 database URLs of the form `sqlite3:///path` will be treated as absolute in Rails 4.2. Please switch to `sqlite3:dbname`. (called from <top (required)> at /tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/Rakefile:6)
rake aborted!
Gem::LoadError: Specified 'sqlite3' for database adapter, but the gem is not loaded. Add `gem 'sqlite3'` to your Gemfile (and ensure its version is at the minimum required by ActiveRecord).
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/connection_specification.rb:190:in `rescue in spec'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/connection_specification.rb:187:in `spec'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_handling.rb:50:in `establish_connection'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:27:in `each'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/config/environment.rb:5:in `<top (required)>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:276:in `require_environment!'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:389:in `block in run_tasks_blocks'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.1.4/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Gem::LoadError: sqlite3 is not part of the bundle. Add it to Gemfile.
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:252:in `block in replace_gem'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/sqlite3_adapter.rb:5:in `<top (required)>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_adapters/connection_specification.rb:188:in `spec'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/connection_handling.rb:50:in `establish_connection'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/railtie.rb:129:in `block (2 levels) in <class:Railtie>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:38:in `instance_eval'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:38:in `execute_hook'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:28:in `block in on_load'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:27:in `each'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/lazy_load_hooks.rb:27:in `on_load'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activerecord-4.1.6/lib/active_record/railtie.rb:118:in `block in <class:Railtie>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:30:in `run'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:300:in `initialize!'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/config/environment.rb:5:in `<top (required)>'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/activesupport-4.1.6/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:276:in `require_environment!'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/railties-4.1.6/lib/rails/application.rb:389:in `block in run_tasks_blocks'
/tmp/build_4336c1c2-aef4-47f5-a267-de3bc5fa5690/vendor/bundle/ruby/2.1.0/gems/sprockets-rails-2.1.4/lib/sprockets/rails/task.rb:64:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:ancient-castle-6465.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:ancient-castle-6465.git'
Heroku uses postgresql database, so remove the sqlite3 from the gem file or move it to the development group and add the gem 'pg' to your gem file. Regarding database.yml setting follow this Heroku setup
Make sure you have removed the sqlite3 gem from your Gemfile and ran bundle install.
If you continue to receive this error, check your Gemfile.lock as some gems list sqlite3 as a dependency - you'll want to remove those gems as well.
When using git to push to heroku the rake fails on precompile.
I am using ruby 2.0.0
I am using gem 'pg'
I am using fem 'rails_12factor'
Here is the gitHub of the files: https://github.com/ioniz4tion/sample_app/tree/master
Here is the full reoprt :
$ git push heroku master
Fetching repository, done.
Counting objects: 13, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 697 bytes, done.
Total 8 (delta 6), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
###### 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 1.6.3
Running: bundle install --without development:test --path vendor/bundle -
-binstubs vendor/bundle/bin -j4
Fetching gem metadata from https://rubygems.org/..........
Resolving dependencies...
Using rake 10.3.2
Using i18n 0.6.11
Using json 1.8.1
Using minitest 5.4.0
Using thread_safe 0.3.4
Using builder 3.2.2
Using erubis 2.7.0
Using rack 1.5.2
Using mime-types 1.25.1
Using polyglot 0.3.5
Using arel 5.0.1.20140414130214
Using bundler 1.6.3
Using coffee-script-source 1.7.1
Using execjs 2.2.1
Using thor 0.19.1
Using hike 1.2.3
Using multi_json 1.10.1
Using pg 0.17.1
Using tilt 1.4.1
Using rails_serve_static_assets 0.0.2
Using rails_stdout_logging 0.0.3
Using sass 3.2.19
Using rdoc 4.1.1
Using tzinfo 1.2.2
Using treetop 1.4.15
Using rack-test 0.6.2
Using coffee-script 2.3.0
Using uglifier 2.5.3
Using sprockets 2.11.0
Using rails_12factor 0.0.2
Using sdoc 0.4.1
Using activesupport 4.1.5
Using mail 2.5.4
Using actionview 4.1.5
Using activemodel 4.1.5
Using jbuilder 2.1.3
Using actionpack 4.1.5
Using activerecord 4.1.5
Using actionmailer 4.1.5
Using railties 4.1.5
Using sprockets-rails 2.1.3
Using coffee-rails 4.0.1
Using jquery-rails 3.1.1
Using sass-rails 4.0.3
Using turbolinks 2.3.0
Using rails 4.1.5
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Bundle completed (4.71s)
Cleaning up the bundler cache.
Removing rspec-expectations (3.0.4)
Removing rspec-rails (3.0.2)
Removing rspec-mocks (3.0.4)
Removing diff-lcs (1.2.5)
Removing rspec-support (3.0.4)
Removing rspec-core (3.0.4)
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
NoMethodError: undefined method `group' for #<SampleApp::Application:0x007f530db1e7e0>
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/config/environments/production.rb:46:in `block in <top (required)>'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/railtie.rb:210:in `instance_eval'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/railtie.rb:210:in `configure'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/config/environments/production.rb:1:in `<top (required)>'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/engine.rb:594:in `block (2 levels) in <class:Engine>'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/engine.rb:593:in `each'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/engine.rb:593:in `block in <class:Engine>'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:30:in `run'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `each'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:44:in `tsort_each_child'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/application.rb:300:in `initialize!'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/config/environment.rb:5:in `<top (required)>'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `block in require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:232:in `load_dependency'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/activesupport-4.1.5/lib/active_support/dependencies.rb:247:in `require'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/application.rb:276:in `require_environment!'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/railties-4.1.5/lib/rails/application.rb:379:in `block in run_tasks_blocks'
/tmp/build_65e0ceb6-3d44-46ce-9a02-d5dd81ca5d69/vendor/bundle/ruby/2.0.0/gems/sprockets-rails-2.1.3/lib/sprockets/rails/task.rb:55:in `block (2 levels) in define'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:pure-sea-9201.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:pure-sea-9201.git'
The error is in your production.rb
group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
ruby '2.0.0'
This stuff belongs in the Gemfile, not production.rb
I want to unload on Heroku.com own application on RubyOnRails, but I face some problems. One of this problems is that: LoadError: Please install the sqlite3 adapter: gem install activerecord-sqlite3-adapter (sqlite3 is not part of the bundle. Add it to Gemfile.)
Another problem is error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$ git push heroku master
Initializing repository, done.
Counting objects: 101, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (89/89), done.
Writing objects: 100% (101/101), 125.08 KiB, done.
Total 101 (delta 4), reused 0 (delta 0)
-----> Ruby app detected
-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.6.3
Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
Fetching gem metadata from https://rubygems.org/........
Fetching additional metadata from https://rubygems.org/..
Installing multi_json 1.10.1
Installing i18n 0.6.9
Installing rake 10.3.2
Installing builder 3.0.4
Installing journey 1.0.4
Installing erubis 2.7.0
Installing rack 1.4.5
Installing hike 1.2.3
Installing tilt 1.4.1
Installing mime-types 1.25.1
Installing polyglot 0.3.5
Installing arel 3.0.3
Installing acts_as_indexed 0.8.3
Installing babosa 0.3.11
Installing tzinfo 0.3.39
Installing coffee-script-source 1.7.0
Installing execjs 2.2.0
Installing thor 0.19.1
Installing orm_adapter 0.5.0
Using bundler 1.6.3
Installing bcrypt 3.1.7
Installing sass 3.3.8
Installing truncate_html 0.9.2
Installing json 1.8.1
Installing will_paginate 3.0.5
Installing rails-i18n 0.7.4
Installing activesupport 3.2.18
Installing rack-cache 1.2
Installing rack-test 0.6.2
Installing rack-ssl 1.3.4
Installing warden 1.2.3
Installing sprockets 2.2.2
Installing treetop 1.4.15
Installing coffee-script 2.2.0
Installing bcrypt-ruby 3.1.5
Installing dragonfly 0.9.15
Installing rdoc 3.12.2
Installing uglifier 2.5.1
Installing activemodel 3.2.18
Installing mail 2.5.4
Installing activerecord 3.2.18
Installing activeresource 3.2.18
Installing actionpack 3.2.18
Installing awesome_nested_set 2.1.6
Installing friendly_id 4.0.10.1
Installing globalize 3.1.0
Installing actionmailer 3.2.18
Installing routing-filter 0.3.1
Installing refinerycms-i18n 2.1.0
Installing railties 3.2.18
Installing coffee-rails 3.2.2
Installing decorators 1.0.3
Installing devise 2.2.8
Installing rails 3.2.18
Installing jquery-rails 2.3.0
Installing seo_meta 1.4.0
Installing sass-rails 3.2.6
Installing refinerycms-core 2.1.2
Installing refinerycms-dashboard 2.1.2
Installing refinerycms-authentication 2.1.2
Installing refinerycms-images 2.1.2
Installing refinerycms-resources 2.1.2
Installing refinerycms-pages 2.1.2
Installing refinerycms-acts-as-indexed 1.0.0
Installing refinerycms 2.1.2
Your bundle is complete!
Gems in the groups development and test were not installed.
It was installed into ./vendor/bundle
Post-install message from bcrypt-ruby:
#######################################################
The bcrypt-ruby gem has changed its name to just bcrypt. Instead of
installing `bcrypt-ruby`, you should install `bcrypt`. Please update your
dependencies accordingly.
#######################################################
Post-install message from rdoc:
Depending on your version of ruby, you may need to install ruby rdoc/ri data:
<= 1.8.6 : unsupported
= 1.8.7 : gem install rdoc-data; rdoc-data --install
= 1.9.1 : gem install rdoc-data; rdoc-data --install
>= 1.9.2 : nothing to do! Yay!
Post-install message from friendly_id:
NOTE: FriendlyId 4.x breaks compatibility with 3.x. If you're upgrading
from 3.x, please see this document:
http://rubydoc.info/github/norman/friendly_id/master/file/WhatsNew.md
Post-install message from globalize:
Globalize has extracted versioning support to a separate gem named
globalize-versioning. If you are using versioning (with paper_trail
or any other versioning gem), please add the line
"gem 'globalize-versioning'" to your Gemfile and go to the github
page at globalize/globalize-versioning if you encounter any problems.
Note that the globalize-versioning gem does not delegate versions to
the translation table, so you will have to update your syntax to
the form: `post.translation.versions`. See the globalize-versioning
readme for details.
Bundle completed (17.42s)
Cleaning up the bundler cache.
-----> Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /tmp/build_5d23c95e-376b-4495-829f-69495105c73c/Rakefile:7)
rake aborted!
LoadError: Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.)
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/bundler-1.6.3/lib/bundler/rubygems_integration.rb:252:in `block in replace_gem'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/sqlite3_adapter.rb:3:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:50:in `resolve_hash_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:41:in `resolve_string_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:27:in `spec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/connection_adapters/abstract/connection_specification.rb:130:in `establish_connection'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:88:in `block (2 levels) in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `instance_eval'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:36:in `execute_hook'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:26:in `block in on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/lazy_load_hooks.rb:25:in `on_load'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activerecord-3.2.18/lib/active_record/railtie.rb:80:in `block in <class:Railtie>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `instance_exec'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:30:in `run'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:55:in `block in run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `each'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/initializable.rb:54:in `run_initializers'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:136:in `initialize!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/railtie/configurable.rb:30:in `method_missing'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/config/environment.rb:5:in `<top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `block in require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:236:in `load_dependency'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/activesupport-3.2.18/lib/active_support/dependencies.rb:251:in `require'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:103:in `require_environment!'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/railties-3.2.18/lib/rails/application.rb:305:in `block (2 levels) in initialize_tasks'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:23:in `invoke_or_reboot_rake_task'
/tmp/build_5d23c95e-376b-4495-829f-69495105c73c/vendor/bundle/ruby/2.0.0/gems/actionpack-3.2.18/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
!
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
To git#heroku.com:secure-anchorage-3129.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'git#heroku.com:secure-anchorage-3129.git'
ark#ark-Aspire-5750G:~/priroda$
Heroku doesn't do sqlite - it uses Postgres instead. See if you have sqlite gem in your Gemfile and if you do, try replacing it with something like this:
group :development do
gem 'sqlite3'
end
group :production do
gem 'pg'
end