I have a rails project, which uses resque workers, with a Gemfile like this:
source 'https://rubygems.org'
gem 'rails', '3.2.5'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem 'sqlite3'
gem 'rest-open-uri'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'therubyracer' # If using Ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'less-rails-bootstrap'
gem 'devise'
gem 'net-http-digest_auth', '1.2.1'
gem "resque", :require => "resque/server"
gem 'carrierwave'
gem 'kaminari'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
After I do a bundle install and try to start some resque workers with the command rake resque:work QUEUE=checker_queue or bundle exec rake resque:work QUEUE=checker_queue my machine stops responding (to anything). When I observe the system with htop I see that rake creates new processes until both memory and swap space of the machine is full (at which point machine becomes unresponsive).
Any ideas regardind the cause of this strange behaviour?
Redis version:
# redis-server -v
Redis server version 2.2.12 (00000000:0)
Ruby version:
# ruby -v
ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.15)
actionpack (= 3.2.15)
mail (~> 2.5.4)
actionpack (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.5)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activemodel (3.2.15)
activesupport (= 3.2.15)
builder (~> 3.0.0)
activerecord (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.15)
activemodel (= 3.2.15)
activesupport (= 3.2.15)
activesupport (3.2.15)
i18n (~> 0.6, >= 0.6.4)
multi_json (~> 1.0)
arel (3.0.2)
atomic (1.1.14)
bcrypt-ruby (3.1.2)
builder (3.0.4)
carrierwave (0.9.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
json (>= 1.7)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
commonjs (0.2.7)
devise (3.1.1)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
thread_safe (~> 0.1)
warden (~> 1.2.3)
erubis (2.7.0)
execjs (2.0.2)
hike (1.2.3)
i18n (0.6.5)
journey (1.0.4)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
kaminari (0.14.1)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
less (2.4.0)
commonjs (~> 0.2.7)
less-rails (2.4.2)
actionpack (>= 3.1)
less (~> 2.4.0)
less-rails-bootstrap (3.0.4)
less-rails (~> 2.4.2)
libv8 (3.16.14.3)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25)
mono_logger (1.1.0)
multi_json (1.8.2)
net-http-digest_auth (1.2.1)
orm_adapter (0.4.0)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-protection (1.5.1)
rack
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.15)
actionmailer (= 3.2.15)
actionpack (= 3.2.15)
activerecord (= 3.2.15)
activeresource (= 3.2.15)
activesupport (= 3.2.15)
bundler (~> 1.0)
railties (= 3.2.15)
railties (3.2.15)
actionpack (= 3.2.15)
activesupport (= 3.2.15)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
redis (3.0.5)
redis-namespace (1.3.2)
redis (~> 3.0.4)
ref (1.0.5)
resque (1.25.1)
mono_logger (~> 1.0)
multi_json (~> 1.0)
redis-namespace (~> 1.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
rest-open-uri (1.0.0)
sass (3.2.12)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sinatra (1.4.4)
rack (~> 1.4)
rack-protection (~> 1.4)
tilt (~> 1.3, >= 1.3.4)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.8)
therubyracer (0.12.0)
libv8 (~> 3.16.14.0)
ref
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.38)
uglifier (2.3.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
vegas (0.1.11)
rack (>= 1.0.0)
warden (1.2.3)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
carrierwave
coffee-rails (~> 3.2.1)
devise
jquery-rails
kaminari
less-rails-bootstrap
net-http-digest_auth (= 1.2.1)
rails (= 3.2.15)
resque
rest-open-uri
sass-rails (~> 3.2.3)
sqlite3
therubyracer
uglifier (>= 1.0.3)
Maybe there is a bug in app code that schedules resque jobs or maybe there are lots of jobs pending or maybe the problem lies in the task itself. In any case also try to inspect resque status:
Resque.info
Resque.size :medium
Maybe it will help identify the problem
Related
I have a very big project developed in certain test version, the project run well, but there are a problem with the rspec, the Gemfile and the Gemfile.lock, some of the developers have updated some gems but didn't remove the old Gemfile.lock, so we did not had any problem with the project because the Gemfile not crashed with the project.
TOO MANY commits after, I found the problem, I think is for the differences beetween gems.
When I copy and paste the last version of the Gemfile.lock all the specs run well, but if I remove the old Gemfile.lock and run again the bundle install the project will to present many problems with the specs I think is for the gems version, but I try to install the same version that I have in my old Gemfile.lock and I have the same problem, also there are some gems that cannot find the original version.
The project is so big, and I cannot update the Gemfile, I think that one of the possible solution is with a program convert the Gemfile.lock to Gemfile to not have any error with my specs
This is my old Gemfile.lock that makes run my rspec well:
GEM
remote: https://rubygems.org/
specs:
aasm (3.0.3)
activerecord
actionmailer (3.2.1)
actionpack (= 3.2.1)
mail (~> 2.4.0)
actionpack (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
active_median (0.0.1)
active_record_query_trace (1.5.4)
activemodel (3.2.1)
activesupport (= 3.2.1)
builder (~> 3.0.0)
activerecord (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
arel (~> 3.0.0)
tzinfo (~> 0.3.29)
activeresource (3.2.1)
activemodel (= 3.2.1)
activesupport (= 3.2.1)
activesupport (3.2.1)
i18n (~> 0.6)
multi_json (~> 1.0)
addressable (2.2.7)
akami (1.0.0)
gyoku (>= 0.4.0)
algorithms (0.5.0)
arel (3.0.2)
awesome_nested_set (2.1.6)
activerecord (>= 3.0.0)
bcrypt-ruby (3.0.1)
bluepill (0.0.66)
activesupport (>= 3.0.0, < 4.0.0)
daemons (~> 1.1.4)
i18n (>= 0.5.0)
state_machine (~> 1.1)
bourne (1.6.0)
mocha (~> 1.1)
builder (3.0.0)
cancan (1.6.7)
capistrano (2.11.2)
highline
net-scp (>= 1.0.0)
net-sftp (>= 2.0.0)
net-ssh (>= 2.0.14)
net-ssh-gateway (>= 1.1.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.2.0)
columnize (0.9.0)
daemons (1.1.9)
database_cleaner (0.7.2)
debugger (1.6.8)
columnize (>= 0.3.1)
debugger-linecache (~> 1.2.0)
debugger-ruby_core_source (~> 1.3.5)
debugger-linecache (1.2.0)
debugger-ruby_core_source (1.3.8)
devise (2.0.4)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
railties (~> 3.1)
warden (~> 1.1.1)
devise_lastseenable (0.0.6)
devise
rails (>= 3.0.4)
diff-lcs (1.1.3)
erubis (2.7.0)
exception_notification (2.6.1)
actionmailer (>= 3.0.4)
execjs (1.3.0)
multi_json (~> 1.0)
factory_girl (3.0.0)
activesupport (>= 3.0.0)
factory_girl_rails (3.0.0)
factory_girl (~> 3.0.0)
railties (>= 3.0.0)
faraday (0.7.6)
addressable (~> 2.2)
multipart-post (~> 1.1)
rack (~> 1.1)
geocoder (1.1.1)
groupdate (1.0.4)
activerecord (>= 3.0.0)
gyoku (0.4.4)
builder (>= 2.1.2)
highline (1.6.11)
hike (1.2.1)
holidays (3.3.0)
httpi (0.9.6)
rack
i18n (0.6.0)
i18n-inflector (2.6.6)
i18n (>= 0.4.1)
journey (1.0.3)
json (1.6.5)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.4)
mime-types (1.18)
mocha (1.2.1)
metaclass (~> 0.0.1)
multi_json (1.1.0)
multipart-post (1.1.5)
net-scp (1.0.4)
net-ssh (>= 1.99.1)
net-sftp (2.0.5)
net-ssh (>= 2.0.9)
net-ssh (2.9.2)
net-ssh-gateway (1.1.0)
net-ssh (>= 1.99.1)
newrelic_rpm (3.15.2.317)
nokogiri (1.5.2)
nori (1.1.0)
oauth (0.4.5)
oauth-plugin (0.4.0.rc2)
multi_json
oauth (~> 0.4.4)
oauth2
rack
oauth2 (0.5.2)
faraday (~> 0.7)
multi_json (~> 1.0)
orm_adapter (0.0.7)
passenger (5.0.28)
rack
rake (>= 0.8.1)
pg (0.18.4)
polyglot (0.3.3)
rabl (0.6.2)
activesupport (>= 2.3.14)
multi_json (~> 1.1.0)
rack (1.4.1)
rack-cache (1.2)
rack (>= 0.4)
rack-protection (1.2.0)
rack
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.2.1)
actionmailer (= 3.2.1)
actionpack (= 3.2.1)
activerecord (= 3.2.1)
activeresource (= 3.2.1)
activesupport (= 3.2.1)
bundler (~> 1.0)
railties (= 3.2.1)
railties (3.2.1)
actionpack (= 3.2.1)
activesupport (= 3.2.1)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (11.1.2)
rdoc (3.12)
json (~> 1.4)
redis (2.2.2)
redis-actionpack (3.2.1)
actionpack (= 3.2.1)
redis-rack (~> 1.4.0)
redis-store (~> 1.1.0)
redis-activesupport (3.2.1)
activesupport (= 3.2.1)
redis-store (~> 1.1.0)
redis-namespace (1.0.3)
redis (< 3.0.0)
redis-rack (1.4.1)
rack (= 1.4.1)
redis-store (~> 1.1.0)
redis-rails (3.2.1)
redis-actionpack (~> 3.2.1)
redis-activesupport (~> 3.2.1)
redis-store (~> 1.1.0)
redis-store (1.1.0)
redis (~> 2.2.0)
resque (1.20.0)
multi_json (~> 1.0)
redis-namespace (~> 1.0.2)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
resque-scheduler (2.0.0)
redis (>= 2.0.1)
resque (>= 1.20.0)
rufus-scheduler
resque_mailer (2.0.3)
actionmailer (>= 3.0.0)
resque (>= 1.2.3)
resque_spec (0.12.2)
resque (>= 1.19.0)
rspec (>= 2.5.0)
rspec (2.9.0)
rspec-core (~> 2.9.0)
rspec-expectations (~> 2.9.0)
rspec-mocks (~> 2.9.0)
rspec-core (2.9.0)
rspec-expectations (2.9.0)
diff-lcs (~> 1.1.3)
rspec-mocks (2.9.0)
rspec-rails (2.9.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec (~> 2.9.0)
rufus-scheduler (2.0.17)
tzinfo (>= 0.3.23)
rvm-capistrano (1.0.2)
capistrano (>= 2.0.0)
sass (3.1.15)
sass-rails (3.2.5)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
savon (0.9.9)
akami (~> 1.0)
builder (>= 2.1.2)
gyoku (>= 0.4.0)
httpi (~> 0.9)
nokogiri (>= 1.4.0)
nori (~> 1.1)
wasabi (~> 2.1)
shoulda-matchers (1.5.6)
activesupport (>= 3.0.0)
bourne (~> 1.3)
simplecov (0.6.1)
multi_json (~> 1.0)
simplecov-html (~> 0.5.3)
simplecov-html (0.5.3)
sinatra (1.3.2)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
slack-notifier (1.5.1)
sprockets (2.1.2)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.5)
state_machine (1.2.0)
strip_attributes (1.1.0)
activemodel (~> 3.0)
sugarcrm (0.9.18)
activesupport (>= 2.3.10)
i18n
json
thor (0.14.6)
tilt (1.3.3)
timecop (0.8.1)
timezone (0.99.2)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
typhoeus (0.3.3)
mime-types
tzinfo (0.3.49)
uglifier (1.2.3)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
vegas (0.1.11)
rack (>= 1.0.0)
warden (1.1.1)
rack (>= 1.0)
wasabi (2.1.0)
nokogiri (>= 1.4.0)
PLATFORMS
ruby
DEPENDENCIES
aasm
active_median
active_record_query_trace
algorithms
awesome_nested_set
bluepill
cancan
capistrano
coffee-rails (~> 3.2.1)
database_cleaner (~> 0.7.1)
debugger
devise
devise_lastseenable
exception_notification (~> 2.6.1)
factory_girl_rails
geocoder
groupdate
holidays
i18n-inflector
kaminari
net-ssh (= 2.9.2)
newrelic_rpm
nokogiri
oauth-plugin (>= 0.4.0.pre1)
passenger
pg
rabl (~> 0.6.0)
rails (= 3.2.1)
redis-rails
resque (~> 1.20.0)
resque-scheduler
resque_mailer (~> 2.0.3)
resque_spec
rspec-rails (~> 2.4)
rvm-capistrano
sass-rails (~> 3.2.3)
savon (~> 0.9.9)
shoulda-matchers (~> 1.5.0)
simplecov
slack-notifier (~> 1.5, >= 1.5.1)
sqlite3
strip_attributes (~> 1.0)
sugarcrm
timecop
timezone
typhoeus (~> 0.3.3)
tzinfo (~> 0.3.49)
uglifier (>= 1.0.3)
BUNDLED WITH
1.14.6
And here is my attemp to copy the Gemfile.lock to the Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.1'
gem 'pg', '~> 0.18.4', group: [:development, :test, :production]
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
end
group :production do
gem 'passenger', '~> 5.0.8'
# gem 'passenger', '~> 5.1.4'
end
gem 'devise'
gem 'devise_lastseenable'
gem 'cancan'
gem 'oauth-plugin', ">= 0.4.0.pre1"
group :test, :development, :vcr do
gem 'rspec', '~> 1.1.3'
gem "rspec-rails", "~> 2.99"
gem 'factory_girl_rails'
gem 'timecop'
gem 'shoulda-matchers', '~> 2.8.0'#, git: 'git://github.com/thoughtbot/shoulda-matchers.git'
gem 'debugger'
gem 'sqlite3'
gem 'database_cleaner', '~> 0.7.1'
gem 'simplecov'
end
group :test do
gem 'resque_spec'
end
gem 'rabl', '~> 0.6.0'
gem 'aasm'
gem 'net-ssh', '=2.9.2'
gem 'holidays', '~> 3.1.2'#, git: 'https://github.com/sincola/holidays.git'
gem 'capistrano', require: false
gem 'rvm-capistrano', require: false
gem 'newrelic_rpm', '~> 3.18.1'
gem 'i18n-inflector'
gem 'savon', '~> 0.9.9'
gem "typhoeus", "~> 0.3.3"
gem "exception_notification", "~> 2.6.1"
gem "strip_attributes", "~> 1.0"
gem 'resque', "~> 1.20.0"
gem 'resque_mailer', "~> 2.0.3"
gem 'resque-scheduler', :require => 'resque_scheduler'
gem 'kaminari'
gem 'redis-rails'
gem 'algorithms'
gem 'geocoder'
gem 'timezone', '~> 1.0'
gem 'sugarcrm'
gem 'bluepill'
gem 'groupdate'
gem 'active_median'
gem 'awesome_nested_set'
gem 'tzinfo', '~> 0.3.49'
gem 'active_record_query_trace' # source: https://github.com/ruckus/active-record-query-trace
gem 'slack-notifier', '~> 1.5', '>= 1.5.1'
gem 'nokogiri', '~> 1.6.5'
What I think is: there are different gems that are repeated in my Gemfile.lock with different versions in old Gemfile.lock
Please read carefully my problem, and If you know how to help my, I would thank you infinitely.
Thanks and regards,
When you try to run bundle install, Some gem will give you error like Your bundle is locked to xyz gem (version), but that version could not be found in any of the sources listed in your Gemfile. To resolve such issue you have to update exact version = xxx in your Gemfile not with ~> xxx.
Also you might need to update locked gems also in Gemfile.lock, due to dependency of other gems.
The Gemfile is less strict than the Gemfile.lock. So, all the Gems that have no restriction or a soft restriction (for example, ~> 4 or > 4.0) would be updated to a new version, which may not be the one that was used when the code was originally developed, that's why some of the gems may fail.
I hadn't time to do a complete review of your attempt to copy the Gemfile.lock to a Gemfile yet, but I have seen you used some gems without specifying an exact version in your Gemfile and I think that may be your problem. The Gemfile.lock always specify the exact version, so if you want to copy your Gemfile.lock you should be doing the same. For example, for slack-notifier gem you are using version 1.5.1 but your Gemfile has gem 'slack-notifier', '~> 1.5', '>= 1.5.1' when it should be gem 'slack-notifier', '1.5.1'
Rails 4.1.5, capistrano 3 trying to deploy to ubuntu.
Get the following errors on deploy:
Gem::LoadError: mysql2 is not part of the bundle. Add it to Gemfile.
Gem::LoadError: Specified 'mysql2' for database adapter, but the gem is not loaded. Add `gem 'mysql2'` to your Gemfile
But mysql2 is in the Gemfile. I've tried delete the shared/bundle directory to force redo of gem installs, but doesn't fix.
What's going on here? Why doesn't it see the mysql2 in the Gemfile?
Gemfile:
source 'http://rubygems.org'
gem 'rails', '4.1.5'
gem 'mysql2'
gem 'dynamic_form'
gem 'coffeebeans'
gem 'friendly_id', '5.0.3'
gem 'dumper'
gem 'sass-rails', " ~> 4.0.2"
gem 'coffee-rails', "~> 4.0.0"
gem 'uglifier', '>= 1.3.0'
gem 'jquery-ui-rails'
gem 'jquery-rails'
gem 'jquery-validation-rails'
gem 'bcrypt-ruby', '~> 3.1.2'
gem 'paperclip', '4.1.1'
gem 'slim'
gem 'slim-rails'
gem 'prawn'
gem 'prawn-table', '0.1.0'
gem 'axlsx_rails'
gem 'dalli'
gem 'simple_form', '~> 3.0.2'
gem 'redcarpet'
gem 'i18n-active_record',
:git => 'git://github.com/svenfuchs/i18n-active_record.git',
:require => 'i18n/active_record'
group :test, :development do
gem 'launchy'
gem 'capybara-webkit'
gem 'rspec-rails'
gem 'factory_girl_rails', '~> 4.0'
gem 'thin'
end
group :development do
gem 'rack-mini-profiler'
gem 'powder'
gem 'letter_opener'
gem 'hirb'
gem 'capistrano-rails', '~> 1.1', require: false
gem 'capistrano-bundler', '~> 1.1', require: false
gem 'capistrano-rbenv'
gem 'spring'
gem 'spring-commands-rspec'
gem 'spring-commands-testunit'
end
group :test do
gem 'minitest'
gem 'minitest-reporters'
gem 'capybara'
gem 'poltergeist'
gem 'database_cleaner', '1.2'
gem 'mocha'
gem 'faker'
end
Gemfile.lock:
GIT
remote: git://github.com/svenfuchs/i18n-active_record.git
revision: 2d9a22b6a4e5d809782cdbfa65b14d9e47aa27fc
specs:
i18n-active_record (0.0.2)
i18n (>= 0.5.0)
GEM
remote: http://rubygems.org/
specs:
actionmailer (4.1.5)
actionpack (= 4.1.5)
actionview (= 4.1.5)
mail (~> 2.5.4)
actionpack (4.1.5)
actionview (= 4.1.5)
activesupport (= 4.1.5)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.5)
activesupport (= 4.1.5)
builder (~> 3.1)
erubis (~> 2.7.0)
activemodel (4.1.5)
activesupport (= 4.1.5)
builder (~> 3.1)
activerecord (4.1.5)
activemodel (= 4.1.5)
activesupport (= 4.1.5)
arel (~> 5.0.0)
activesupport (4.1.5)
i18n (~> 0.6, >= 0.6.9)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 1.1)
addressable (2.3.6)
ansi (1.4.3)
arel (5.0.1.20140414130214)
axlsx (2.0.1)
htmlentities (~> 4.3.1)
nokogiri (>= 1.4.1)
rubyzip (~> 1.0.0)
axlsx_rails (0.2.1)
axlsx (>= 2.0.1)
rails (>= 3.1)
bcrypt (3.1.7)
bcrypt-ruby (3.1.5)
bcrypt (>= 3.1.3)
builder (3.2.2)
capistrano (3.2.1)
i18n
rake (>= 10.0.0)
sshkit (~> 1.3)
capistrano-bundler (1.1.3)
capistrano (~> 3.1)
sshkit (~> 1.2)
capistrano-rails (1.1.2)
capistrano (~> 3.1)
capistrano-bundler (~> 1.1)
capistrano-rbenv (2.0.2)
capistrano (~> 3.1)
sshkit (~> 1.3)
capybara (2.4.1)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
capybara-webkit (1.3.0)
capybara (>= 2.0.2, < 2.5.0)
json
climate_control (0.0.3)
activesupport (>= 3.0)
cliver (0.3.2)
cocaine (0.5.4)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.3.0)
coffee-script-source
execjs
coffee-script-source (1.8.0)
coffeebeans (1.0.1)
actionpack (>= 3.0.0)
coffee-script
colorize (0.7.3)
daemons (1.1.9)
dalli (2.7.2)
database_cleaner (1.2.0)
diff-lcs (1.2.5)
dumper (1.6.0)
multi_json (>= 1.0)
multipart-post (>= 1.1.5)
posix-spawn (>= 0.3.6)
dynamic_form (1.1.4)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (2.2.1)
factory_girl (4.4.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.4.1)
factory_girl (~> 4.4.0)
railties (>= 3.0.0)
faker (1.4.3)
i18n (~> 0.5)
friendly_id (5.0.3)
activerecord (>= 4.0.0)
hike (1.2.3)
hirb (0.7.2)
htmlentities (4.3.2)
i18n (0.6.11)
jquery-rails (3.1.2)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (5.0.0)
railties (>= 3.2.16)
jquery-validation-rails (1.12.0)
railties (>= 3.2, < 5.0)
thor (~> 0.14)
json (1.8.1)
launchy (2.4.2)
addressable (~> 2.3)
letter_opener (1.2.0)
launchy (~> 2.2)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
metaclass (0.0.4)
mime-types (1.25.1)
mini_portile (0.6.0)
minitest (5.4.1)
minitest-reporters (1.0.5)
ansi
builder
minitest (>= 5.0)
ruby-progressbar
mocha (1.1.0)
metaclass (~> 0.0.1)
multi_json (1.10.1)
multipart-post (2.0.0)
mysql2 (0.3.16)
net-scp (1.2.1)
net-ssh (>= 2.6.5)
net-ssh (2.9.1)
nokogiri (1.6.3.1)
mini_portile (= 0.6.0)
paperclip (4.1.1)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
pdf-core (0.2.5)
poltergeist (1.5.1)
capybara (~> 2.1)
cliver (~> 0.3.1)
multi_json (~> 1.0)
websocket-driver (>= 0.2.0)
polyglot (0.3.5)
posix-spawn (0.3.9)
powder (0.2.1)
thor (>= 0.11.5)
prawn (1.2.1)
pdf-core (~> 0.2.5)
ttfunk (~> 1.2.0)
prawn-table (0.1.0)
rack (1.5.2)
rack-mini-profiler (0.9.2)
rack (>= 1.1.3)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.1.5)
actionmailer (= 4.1.5)
actionpack (= 4.1.5)
actionview (= 4.1.5)
activemodel (= 4.1.5)
activerecord (= 4.1.5)
activesupport (= 4.1.5)
bundler (>= 1.3.0, < 2.0)
railties (= 4.1.5)
sprockets-rails (~> 2.0)
railties (4.1.5)
actionpack (= 4.1.5)
activesupport (= 4.1.5)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.3.2)
redcarpet (3.1.2)
rspec-core (3.1.2)
rspec-support (~> 3.1.0)
rspec-expectations (3.1.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.1.0)
rspec-mocks (3.1.0)
rspec-support (~> 3.1.0)
rspec-rails (3.1.0)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 3.1.0)
rspec-expectations (~> 3.1.0)
rspec-mocks (~> 3.1.0)
rspec-support (~> 3.1.0)
rspec-support (3.1.0)
ruby-progressbar (1.5.1)
rubyzip (1.0.0)
sass (3.2.19)
sass-rails (4.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.2.0)
sprockets (~> 2.8, <= 2.11.0)
sprockets-rails (~> 2.0)
simple_form (3.0.2)
actionpack (~> 4.0)
activemodel (~> 4.0)
slim (2.0.3)
temple (~> 0.6.6)
tilt (>= 1.3.3, < 2.1)
slim-rails (2.1.5)
actionpack (>= 3.0, < 4.2)
activesupport (>= 3.0, < 4.2)
railties (>= 3.0, < 4.2)
slim (~> 2.0)
spring (1.1.3)
spring-commands-rspec (1.0.2)
spring (>= 0.9.1)
spring-commands-testunit (1.0.1)
spring (>= 0.9.1)
sprockets (2.11.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.1.4)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sshkit (1.5.1)
colorize
net-scp (>= 1.1.2)
net-ssh (>= 2.8.0)
temple (0.6.8)
thin (1.6.2)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
rack (>= 1.0.0)
thor (0.19.1)
thread_safe (0.3.4)
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
ttfunk (1.2.2)
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.5.3)
execjs (>= 0.3.0)
json (>= 1.8.0)
websocket-driver (0.3.4)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
axlsx_rails
bcrypt-ruby (~> 3.1.2)
capistrano-bundler (~> 1.1)
capistrano-rails (~> 1.1)
capistrano-rbenv
capybara
capybara-webkit
coffee-rails (~> 4.0.0)
coffeebeans
dalli
database_cleaner (= 1.2)
dumper
dynamic_form
factory_girl_rails (~> 4.0)
faker
friendly_id (= 5.0.3)
hirb
i18n-active_record!
jquery-rails
jquery-ui-rails
jquery-validation-rails
launchy
letter_opener
minitest
minitest-reporters
mocha
mysql2
paperclip (= 4.1.1)
poltergeist
powder
prawn
prawn-table (= 0.1.0)
rack-mini-profiler
rails (= 4.1.5)
redcarpet
rspec-rails
sass-rails (~> 4.0.2)
simple_form (~> 3.0.2)
slim
slim-rails
spring
spring-commands-rspec
spring-commands-testunit
thin
uglifier (>= 1.3.0)
Trying to update the project to RoR-v4.0.0.rc2 in prep for new release next week, and I am a bit confused about how to fix the dependency issue. If I use bundle update, I get the following error:
Resolving dependencies...
Bundler could not find compatible versions for gem "railties":
In Gemfile:
requirejs-rails (>= 0) ruby depends on
railties (~> 3.1.1) ruby
rails (= 4.0.0.rc2) ruby depends on
railties (4.0.0.rc2)
Bundler could not find compatible versions for gem "rails":
In Gemfile:
requirejs-rails (>= 0) ruby depends on
rails (~> 3.1.1) ruby
rails (4.0.0.rc2)
But if I use just bundle, I get the following :
Resolving dependencies...
Bundler could not find compatible versions for gem "activesupport":
In snapshot (Gemfile.lock):
activesupport (3.2.2)
In Gemfile:
rails (= 4.0.0.rc2) ruby depends on
activesupport (= 4.0.0.rc2) ruby
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
Supposedly, requirejs-rail has been updated for Rails 4 Beta here. Still unsure of what dependency is causing the issue, and which version to force the gem to.
Gemfile:
source 'https://rubygems.org'
gem 'rails', '4.0.0.rc2'
group :development, :test do
gem 'railroady'
gem 'sqlite3'
# For linux support
gem 'therubyracer'
end
group :production do
gem 'pg'
gem 'thin'
end
gem 'sass-rails', '~> 4.0.0.rc1'
gem 'coffee-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.0.3'
gem 'colorize'
gem 'jquery-ui-rails'
gem 'jquery-rails'
gem 'rails-backbone'
gem 'bootstrap-sass', '~> 2.3.0.0'
gem 'requirejs-rails'
gem 'ejs'
gem 'devise'
gem 'better_errors', '>= 0.2.0', :group => :development
gem 'binding_of_caller', '>= 0.6.8', :group => :development
gem 'd3_rails'
# for a better way of looking at the rake routes by calling rake color_routes in the console
gem 'color_routes'
# lets us know which user is logged in, and store in a gloabel variable gon{}
gem 'gon'
#browser detection
gem 'browser'
# FOR EASY TRANISTION TO Rails 4
gem 'protected_attributes'
gem 'rails-observers'
gem 'actionpack-page_caching'
gem 'actionpack-action_caching'
Gemfile.lock:
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.2)
actionpack (= 3.2.2)
mail (~> 2.4.0)
actionpack (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.1)
rack (~> 1.4.0)
rack-cache (~> 1.1)
rack-test (~> 0.6.1)
sprockets (~> 2.1.2)
activemodel (3.2.2)
activesupport (= 3.2.2)
builder (~> 3.0.0)
activerecord (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.2)
activemodel (= 3.2.2)
activesupport (= 3.2.2)
activesupport (3.2.2)
i18n (~> 0.6)
multi_json (~> 1.0)
arel (3.0.2)
bcrypt-ruby (3.0.1)
binding_of_caller (0.7.1)
debug_inspector (>= 0.0.1)
bootstrap-sass (2.3.0.1)
sass (~> 3.2)
browser (0.1.6)
builder (3.0.4)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.2)
color_routes (1.0.0)
colorize (0.5.8)
d3_rails (3.1.6)
railties (>= 3.1.0)
daemons (1.1.9)
debug_inspector (0.0.2)
devise (2.2.4)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)
warden (~> 1.2.1)
ejs (1.1.1)
erubis (2.7.0)
eventmachine (1.0.3)
execjs (1.4.0)
multi_json (~> 1.0)
gon (4.1.0)
actionpack (>= 2.3.0)
json
hike (1.2.2)
i18n (0.6.4)
journey (1.0.4)
jquery-rails (2.1.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
jquery-ui-rails (4.0.3)
jquery-rails
railties (>= 3.1.0)
json (1.8.0)
libv8 (3.11.8.17)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.23)
multi_json (1.7.3)
orm_adapter (0.4.0)
pg (0.15.1)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
railroady (1.1.0)
rails (3.2.2)
actionmailer (= 3.2.2)
actionpack (= 3.2.2)
activerecord (= 3.2.2)
activeresource (= 3.2.2)
activesupport (= 3.2.2)
bundler (~> 1.0)
railties (= 3.2.2)
rails-backbone (0.9.10)
coffee-script (~> 2.2.0)
ejs (~> 1.1.1)
jquery-rails (~> 2.1.3)
railties (>= 3.1.0)
railties (3.2.2)
actionpack (= 3.2.2)
activesupport (= 3.2.2)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (10.0.4)
rdoc (3.12.2)
json (~> 1.4)
ref (1.0.5)
requirejs-rails (0.9.1)
railties (>= 3.1.1, < 3.3)
sass (3.2.9)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sprockets (2.1.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sqlite3 (1.3.7)
therubyracer (0.11.4)
libv8 (~> 3.11.8.12)
ref
thin (1.5.1)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
thor (0.14.6)
tilt (1.4.1)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.37)
uglifier (2.1.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
warden (1.2.1)
rack (>= 1.0)
PLATFORMS
ruby
DEPENDENCIES
binding_of_caller (>= 0.6.8)
bootstrap-sass (~> 2.3.0.0)
browser
coffee-rails (~> 3.2.1)
color_routes
colorize
d3_rails
devise
ejs
gon
jquery-rails
jquery-ui-rails
pg
railroady
rails (= 3.2.2)
rails-backbone
requirejs-rails
sass-rails (~> 3.2.3)
sqlite3
therubyracer
thin
uglifier (>= 1.0.3)
The problem is with requirejs-rails gem. You probably should refer to master branch on github in your Gemfile
gem 'requirejs-rails', git: 'git://github.com/jwhitley/requirejs-rails.git'
#Michael Szyndel That branch is not completely rails 4 compatible.
The rake task will fail with an error about 'ruby_rake_task'. Also, the asset pre-compilation is broken. There are rails 4 patches out their but they have yet to be included into master.
This fork has included the rails 4 patches, try that one out.
https://github.com/scalient/requirejs-rails
I was just starting with a new project called a library management system. While running bundle install in Windows XP 32 bit.I have also installed Python 3.3 on my system. I am getting the following error.
D:\Projects\Library>bundle install
C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22/lib/bundler/
dsl.rb:7:in `instance_eval': D:/Projects/Library/Gemfile:27: syntax error, unexp
ected tDOT2, expecting $end (SyntaxError)
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/dsl.rb:7:in `evaluate'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/definition.rb:17:in `build'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler.rb:138:in `definition'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/cli.rb:219:in `install'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/vendor/thor/task.rb:22:in `run'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/vendor/thor.rb:263:in `dispatch'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/lib/bundler/vendor/thor/base.rb:386:in `start'
from C:/RailsInstaller/Ruby1.9.3/lib/ruby/gems/1.9.1/gems/bundler-1.0.22
/bin/bundle:13:in `<top (required)>'
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:19:in `load'
from C:/RailsInstaller/Ruby1.9.3/bin/bundle:19:in `<main>'
My Gemlock file is as follows:-
GEM
remote: https://rubygems.org/
specs:
actionmailer (3.2.11)
actionpack (= 3.2.11)
mail (~> 2.4.4)
actionpack (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
builder (~> 3.0.0)
erubis (~> 2.7.0)
journey (~> 1.0.4)
rack (~> 1.4.0)
rack-cache (~> 1.2)
rack-test (~> 0.6.1)
sprockets (~> 2.2.1)
activemodel (3.2.11)
activesupport (= 3.2.11)
builder (~> 3.0.0)
activerecord (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
arel (~> 3.0.2)
tzinfo (~> 0.3.29)
activeresource (3.2.11)
activemodel (= 3.2.11)
activesupport (= 3.2.11)
activesupport (3.2.11)
i18n (~> 0.6)
multi_json (~> 1.0)
api_taster (0.6.0)
bootstrap-sass (~> 2.1)
jquery-rails
rails (>= 3.1.0)
redcarpet
remotipart (~> 1.0)
sass-rails
arel (3.0.2)
bcrypt-ruby (3.0.1)
bcrypt-ruby (3.0.1-x86-mingw32)
bootstrap-sass (2.2.2.0)
sass (~> 3.2)
bootswatch-rails (0.4.0)
railties (>= 3.1)
builder (3.0.4)
carrierwave (0.8.0)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
coffee-rails (3.2.2)
coffee-script (>= 2.2.0)
railties (~> 3.2.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.5.0)
commonjs (0.2.6)
devise (2.2.1)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.1)
railties (~> 3.1)
warden (~> 1.2.1)
erubis (2.7.0)
execjs (1.4.0)
multi_json (~> 1.0)
hike (1.2.1)
i18n (0.6.4)
journey (1.0.4)
jquery-rails (2.2.1)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.7.7)
less (2.2.2)
commonjs (~> 0.2.6)
less-rails (2.2.6)
actionpack (>= 3.1)
less (~> 2.2.0)
less-rails-bootstrap (2.2.1)
less-rails (~> 2.2.0)
mail (2.4.4)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.21)
multi_json (1.6.1)
orm_adapter (0.4.0)
pg (0.14.1)
pg (0.14.1-x86-mingw32)
polyglot (0.3.3)
rack (1.4.5)
rack-cache (1.2)
rack (>= 0.4)
rack-protection (1.3.2)
rack
rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0)
rails (3.2.11)
actionmailer (= 3.2.11)
actionpack (= 3.2.11)
activerecord (= 3.2.11)
activeresource (= 3.2.11)
activesupport (= 3.2.11)
bundler (~> 1.0)
railties (= 3.2.11)
railties (3.2.11)
actionpack (= 3.2.11)
activesupport (= 3.2.11)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (>= 0.14.6, < 2.0)
rake (10.0.3)
rdoc (3.12.2)
json (~> 1.4)
redcarpet (2.2.2)
redis (3.0.2)
redis-namespace (1.2.1)
redis (~> 3.0.0)
remotipart (1.0.2)
resque (1.23.0)
multi_json (~> 1.0)
redis-namespace (~> 1.0)
sinatra (>= 0.9.2)
vegas (~> 0.1.2)
resque-scheduler (2.0.0)
redis (>= 2.0.1)
resque (>= 1.20.0)
rufus-scheduler
rufus-scheduler (2.0.17)
tzinfo (>= 0.3.23)
sass (3.2.6)
sass-rails (3.2.6)
railties (~> 3.2.0)
sass (>= 3.1.10)
tilt (~> 1.3)
sinatra (1.3.3)
rack (~> 1.3, >= 1.3.6)
rack-protection (~> 1.2)
tilt (~> 1.3, >= 1.3.3)
sprockets (2.2.2)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.17.0)
tilt (1.3.4)
treetop (1.4.12)
polyglot
polyglot (>= 0.3.1)
twitter-bootstrap-rails (2.2.4)
actionpack (>= 3.1)
execjs
railties (>= 3.1)
tzinfo (0.3.35)
uglifier (1.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
vegas (0.1.11)
rack (>= 1.0.0)
warden (1.2.1)
rack (>= 1.0)
PLATFORMS
ruby
x86-mingw32
DEPENDENCIES
api_taster
bootswatch-rails
carrierwave
coffee-rails (~> 3.2.1)
devise
execjs
jquery-rails
less-rails-bootstrap
pg
rails (= 3.2.11)
resque
resque-scheduler
sass-rails (~> 3.2.3)
twitter-bootstrap-rails
uglifier (>= 1.0.3)
My Gemfile:-
source 'https://rubygems.org'
gem 'rails', '3.2.11'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
#gem 'sqlite3'
gem 'pg'
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', :platforms => :ruby
gem 'uglifier', '>= 1.0.3'
end
gem 'jquery-rails'
gem 'carrierwave'
<-----Line 27
gem 'devise'
gem 'resque'
gem 'resque-scheduler', :require => 'resque_scheduler'
gem 'api_taster'
gem 'twitter-bootstrap-rails'
gem 'less-rails-bootstrap'
gem 'execjs'
# gem 'therubyracer'
gem 'bootswatch-rails'
# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'
# To use Jbuilder templates for JSON
# gem 'jbuilder'
# Use unicorn as the app server
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger
# gem 'debugger'
Can You please help me.
It seems that gem 'twitter-bootstrap-rails' and gem 'less-rails-bootstrap'give error.
I was getting the error during db:create.
C:\Sites\Library>rake db:create
[WARNING] Please install gem 'therubyracer' to use Less.
rake aborted!
cannot load such file -- v8
C:/Sites/Library/config/application.rb:7:in `<top (required)>'
C:/Sites/Library/Rakefile:5:in `<top (required)>'
(See full trace by running task with --trace)
So I removed both of them.Instead I went to 'bootstrap-sass' gem to implement bootstrap in rails and it seems to work fine for me.
Don't know if I am correct
Instead of doing all this, you can just start a project again from scratch.
Please update your gemfile accordingly.
OK now that you've spotted the issue I would recommend to install the 'bootstrap-sass' gem that I know works 100%.
I happened to answer a similar question so here's the link:
how to use that gem and why
I know that I can't have sqlite3 when I deploy to heroku (I have used it in development, but since then deleted it.
jeffrey#ubuntu5:~/Documents/Sites/burma_project$ bundle show sqlite3
Could not find gem 'sqlite3' in the current bundle.
Also in my gemfile, there's no sqlite3 there
gem 'rails', '3.1.1'
gem 'activeadmin'
gem 'builder'
gem 'delayed_job_active_record'
gem 'daemons'
gem 'twilio-ruby'
gem 'whenever', :require=> false
gem 'gravatar_image_tag', '1.0.0.pre2'
group :assets do
gem 'sass-rails', '~> 3.1.4'
gem 'coffee-rails', '~> 3.1.1'
gem 'uglifier', '>= 1.0.3'
end
group :development do
gem 'rspec-rails', '2.6.1'
gem 'annotate', '2.4.0'
# gem 'sqlite3', '1.3.4'
# gem 'localtunnel'
end
group :production do
#gem 'therubyracer-heroku', '0.8.1.pre3'
gem 'pg'
end
gem 'jquery-rails'
group :test do
# Pretty printed test output
gem 'turn', :require => false
gem 'rspec-rails', '2.6.1'
gem 'webrat', '0.7.1'
gem 'spork', '0.9.0.rc8'
gem 'factory_girl_rails', '1.0'
end
Also in my gemfile.lock, I did control+f and could not find any gem that depended on sqlite3
Here is my gemfile.lock
GEM
remote: http://rubygems.org/
specs:
actionmailer (3.1.1)
actionpack (= 3.1.1)
mail (~> 2.3.0)
actionpack (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
builder (~> 3.0.0)
erubis (~> 2.7.0)
i18n (~> 0.6)
rack (~> 1.3.2)
rack-cache (~> 1.1)
rack-mount (~> 0.8.2)
rack-test (~> 0.6.1)
sprockets (~> 2.0.2)
activeadmin (0.3.4)
devise (>= 1.1.2)
fastercsv
formtastic (< 2.0.0)
inherited_resources (< 1.3.0)
kaminari (>= 0.12.4)
meta_search (>= 0.9.2)
rails (>= 3.0.0)
sass (>= 3.1.0)
activemodel (3.1.1)
activesupport (= 3.1.1)
builder (~> 3.0.0)
i18n (~> 0.6)
activerecord (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
arel (~> 2.2.1)
tzinfo (~> 0.3.29)
activeresource (3.1.1)
activemodel (= 3.1.1)
activesupport (= 3.1.1)
activesupport (3.1.1)
multi_json (~> 1.0)
annotate (2.4.0)
ansi (1.4.1)
arel (2.2.1)
bcrypt-ruby (3.0.1)
bcrypt-ruby (3.0.1-x86-mingw32)
builder (3.0.0)
chronic (0.6.7)
coffee-rails (3.1.1)
coffee-script (>= 2.2.0)
railties (~> 3.1.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.2.0)
daemons (1.1.8)
delayed_job (3.0.1)
activesupport (~> 3.0)
delayed_job_active_record (0.3.2)
activerecord (> 2.1.0)
delayed_job (~> 3.0.0)
devise (1.5.3)
bcrypt-ruby (~> 3.0)
orm_adapter (~> 0.0.3)
warden (~> 1.1)
diff-lcs (1.1.3)
erubis (2.7.0)
execjs (1.2.13)
multi_json (~> 1.0)
factory_girl (1.3.3)
factory_girl_rails (1.0)
factory_girl (~> 1.3)
rails (>= 3.0.0.beta4)
fastercsv (1.5.4)
formtastic (1.2.4)
actionpack (>= 2.3.7)
activesupport (>= 2.3.7)
i18n (~> 0.4)
gravatar_image_tag (1.0.0.pre2)
has_scope (0.5.1)
hike (1.2.1)
i18n (0.6.0)
inherited_resources (1.2.2)
has_scope (~> 0.5.0)
responders (~> 0.6.0)
jquery-rails (1.0.19)
railties (~> 3.0)
thor (~> 0.14)
json (1.6.4)
jwt (0.1.4)
json (>= 1.2.4)
kaminari (0.13.0)
actionpack (>= 3.0.0)
activesupport (>= 3.0.0)
railties (>= 3.0.0)
mail (2.3.0)
i18n (>= 0.4.0)
mime-types (~> 1.16)
treetop (~> 1.4.8)
meta_search (1.1.1)
actionpack (~> 3.1.0)
activerecord (~> 3.1.0)
activesupport (~> 3.1.0)
polyamorous (~> 0.5.0)
mime-types (1.17.2)
multi_json (1.0.4)
nokogiri (1.5.0)
nokogiri (1.5.0-x86-mingw32)
orm_adapter (0.0.6)
pg (0.13.2)
polyamorous (0.5.0)
activerecord (~> 3.0)
polyglot (0.3.3)
rack (1.3.6)
rack-cache (1.1)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0)
rack-ssl (1.3.2)
rack
rack-test (0.6.1)
rack (>= 1.0)
rails (3.1.1)
actionmailer (= 3.1.1)
actionpack (= 3.1.1)
activerecord (= 3.1.1)
activeresource (= 3.1.1)
activesupport (= 3.1.1)
bundler (~> 1.0)
railties (= 3.1.1)
railties (3.1.1)
actionpack (= 3.1.1)
activesupport (= 3.1.1)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7)
rdoc (~> 3.4)
thor (~> 0.14.6)
rake (0.9.2.2)
rdoc (3.12)
json (~> 1.4)
responders (0.6.4)
rspec (2.6.0)
rspec-core (~> 2.6.0)
rspec-expectations (~> 2.6.0)
rspec-mocks (~> 2.6.0)
rspec-core (2.6.4)
rspec-expectations (2.6.0)
diff-lcs (~> 1.1.2)
rspec-mocks (2.6.0)
rspec-rails (2.6.1)
actionpack (~> 3.0)
activesupport (~> 3.0)
railties (~> 3.0)
rspec (~> 2.6.0)
sass (3.1.12)
sass-rails (3.1.5)
actionpack (~> 3.1.0)
railties (~> 3.1.0)
sass (~> 3.1.10)
tilt (~> 1.3.2)
spork (0.9.0.rc8)
spork (0.9.0.rc8-x86-mingw32)
win32-process
sprockets (2.0.3)
hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
polyglot
polyglot (>= 0.3.1)
turn (0.8.3)
ansi
twilio-ruby (3.5.1)
builder (>= 2.1.2)
jwt (>= 0.1.2)
multi_json (>= 1.0.3)
tzinfo (0.3.31)
uglifier (1.2.1)
execjs (>= 0.3.0)
multi_json (>= 1.0.2)
warden (1.1.0)
rack (>= 1.0)
webrat (0.7.1)
nokogiri (>= 1.2.0)
rack (>= 1.0)
rack-test (>= 0.5.3)
whenever (0.7.2)
activesupport (>= 2.3.4)
chronic (~> 0.6.3)
win32-api (1.4.8-x86-mingw32)
win32-process (0.6.5)
windows-pr (>= 1.1.2)
windows-api (0.4.0)
win32-api (>= 1.4.5)
windows-pr (1.2.1)
win32-api (>= 1.4.5)
windows-api (>= 0.3.0)
PLATFORMS
ruby
x86-mingw32
DEPENDENCIES
activeadmin
annotate (= 2.4.0)
builder
coffee-rails (~> 3.1.1)
daemons
delayed_job_active_record
factory_girl_rails (= 1.0)
gravatar_image_tag (= 1.0.0.pre2)
jquery-rails
pg
rails (= 3.1.1)
rspec-rails (= 2.6.1)
sass-rails (~> 3.1.4)
spork (= 0.9.0.rc8)
turn
twilio-ruby
uglifier (>= 1.0.3)
webrat (= 0.7.1)
whenever
Yet, when I do git push heroku master, I get
Installing sqlite3 (1.3.4) with native extensions Unfortunately, a fatal error has occurred. Please report this error to the Bundler issue tracker at https://github.com/carlhuda/bundler/issues so that we can fix it. Thanks!
And as you can see, disaster strikes.
Ok, that's it. If you can help me, I will be oh so happy.
Jeff
try the following:
Open database.yml & verify that adapter is NOT sqlite3 for development,test & production.
try running the following commands
$ bundle install #this would regenerate your gemfile.lock
$ rake db:create
$ rake db:scheme:load
$ rake db:migrate
3.now try deployment again, if it doesn't still work. run heroku logs & post back the results