Rake db actions get an EOF error in read_nonblock - ruby-on-rails

I'm setting up a local copy of an inherited Rails 4 app (Ruby 2.0.0p645) with a Postgres database. The database works fine on its own, and migrations go through without problems, but rake db:seed, db:load, db:dump, and db:purge all throw the same error.
~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/protocol.rb:153:in `read_nonblock': end of file reached (EOFError)
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/protocol.rb:153:in `rbuf_fill'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/protocol.rb:134:in `readuntil'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/protocol.rb:144:in `readline'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:307:in `read_chunked'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:276:in `block in read_body_0'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:269:in `inflater'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:274:in `read_body_0'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:201:in `read_body'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:226:in `body'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http/response.rb:163:in `reading_body'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1418:in `block in transport_request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1409:in `catch'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1409:in `transport_request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1382:in `request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1375:in `block in request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:852:in `start'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/2.0.0/net/http.rb:1373:in `request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/rest-client-1.6.7/lib/restclient/net_http_ext.rb:51:in `request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/httparty-0.12.0/lib/httparty/request.rb:93:in `perform'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/httparty-0.12.0/lib/httparty.rb:486:in `perform_request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/httparty-0.12.0/lib/httparty.rb:439:in `post'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/httparty-0.12.0/lib/httparty.rb:522:in `post'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/runtimeerror_notifier-0.0.18/lib/runtimeerror_notifier/notifier.rb:46:in `make_request'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/runtimeerror_notifier-0.0.18/lib/runtimeerror_notifier/notifier.rb:39:in `notification'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:189:in `process_action'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:18:in `block in process_action'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:373:in `_run__295926636__process_action__callbacks'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/activesupport-4.0.3/lib/active_support/callbacks.rb:80:in `run_callbacks'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionpack-4.0.3/lib/abstract_controller/callbacks.rb:17:in `process_action'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionpack-4.0.3/lib/abstract_controller/base.rb:136:in `process'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionpack-4.0.3/lib/abstract_controller/rendering.rb:44:in `process'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:503:in `process'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:497:in `initialize'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:480:in `new'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/actionmailer-4.0.3/lib/action_mailer/base.rb:480:in `method_missing'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/runtimeerror_notifier-0.0.18/lib/runtimeerror_notifier/rake_handler.rb:13:in `display_errors_with_runtimeerror'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:174:in `rescue in standard_exception_handling'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:165:in `standard_exception_handling'
from ~/.rbenv/versions/2.0.0-p645/lib/ruby/gems/2.0.0/gems/rake-10.1.1/lib/rake/application.rb:75:in `run'
from ~/Code/dbSeer/docufyi/bin/rake:4:in `<main>'
I find this quite confusing, especially since all mentions I can find of EOF errors involving read_nonblock involve HTTP requests, and I can't find any reason why these database tasks should be involving that at all.
Any idea why these HTTP gems might be getting involved?
My entire database.yml, which seems potentially relevant:
development:
adapter: postgresql
database: docufyi_development
username: postgres
host: 127.0.0.1
password:
encoding: utf8
pool: 5
(Suggestions for common gems that use httparty or rest-client also appreciated.)
Gemfile:
source 'https://rubygems.org'
ruby '2.0.0'
gem 'rails', '4.0.3'
gem 'aasm'
gem 'activeadmin', github: 'gregbell/active_admin'
gem 'acts-as-taggable-on'
gem 'awesome_print'
gem 'carrierwave', '~> 0.9.0'
gem 'cells'
gem 'cocoon'
gem 'coffee-rails', '~> 4.0.0'
gem 'country_select'
gem 'dalli'
gem 'devise'
gem 'devise_invitable', '~> 1.3.2'
gem 'email_validator'
gem 'entypo-rails'
gem 'faker', '~> 1.2.0'
gem 'figaro', '~> 0.7.0'
gem 'fog', '~> 1.18.0'
gem 'grim', '~> 0.3.0'
gem 'haml-rails'
gem 'high_voltage', '~> 2.0.0'
gem 'icalendar', '~> 1.4.4'
gem 'jbuilder', '~> 1.2'
gem 'jquery-rails'
gem 'jquery-ui-rails'
gem 'jquery-ui-themes'
gem 'jquery-turbolinks'
gem 'memcachier'
gem 'mobile-fu'
gem 'money-rails'
gem 'newrelic_rpm'
gem 'paper_trail', '~> 3.0.2'
gem 'pg'
gem 'polar-express', :git => 'https://github.com/danielboggs/polar-express.git'
gem 'pry-rails'
gem 'pundit', :git => 'https://github.com/elabs/pundit.git'
gem 'redcarpet'
gem 'runtimeerror_notifier'
gem 'bootstrap-sass', '~> 3.3.1'
gem 'sass-rails', '~> 4.0.0'
gem 'sidekiq', '~> 2.16.1'
gem 'simple_form', '~> 3.0.0'
gem 'simple-form-datepicker'
gem 'stripe', '~> 1.9.9'
gem 'stripe_event'
gem 'turbolinks'
gem 'uglifier', '>= 1.3.0'
gem 'mimemagic'
gem 'unf'
gem 'user_impersonate2', :require => 'user_impersonate'
gem 'webshims-rails'
gem 'whenever', :require => false
# use vPim for vCard Uploader
gem 'vpim', '~> 13.11.11'
# use font-awesome icons
gem "font-awesome-rails"
group :development do
gem 'byebug'
gem 'hirb'
gem 'quiet_assets'
gem 'thin'
# uses mailcatcher
end
group :production, :staging do
gem 'rails_12factor'
end
group :test do
gem 'cucumber-rails', :git => 'git://github.com/cucumber/cucumber-rails', :require => false
gem 'database_cleaner', '~> 1.1.1'
gem 'email_spec'
gem 'factory_girl_rails', '~> 4.2.1'
gem 'json_spec'
gem 'rspec-cells'
gem 'rspec-rails', '~> 2.0'
gem 'selenium-webdriver'
gem 'shoulda-matchers', '~> 2.4.0'
gem 'spreewald'
gem 'utensils'
gem 'webrat'
end

Can you check the initializers?, apparently the problem has to do with a the RestClient gem. Are you using it by any chance?.

Related

Undefined local variable or method `configuration' for #<ActiveRecord::ConnectionAdapters::PostGIS::PostGISDatabaseTasks:0x0000555b2c8f5ac0>

I've just upgraded my rails version from 5.2 to 6.1 and built my docker image.
when i run docker compose up I'm encountering an error message related to the PostGISDatabaseTasks class. Specifically, I'm seeing an error message that reads
'undefined local variable or method 'configuration' for #ActiveRecord::ConnectionAdapters::PostGIS::PostGISDatabaseTasks:0x0000555b2c8f5ac0. Did you mean? configuration_hash'.
GemFile:
source 'https://rubygems.org'
ruby '~> 2.7'
gem 'pg', '~> 1.2', '>= 1.2.3'
gem 'rails', '~> 6.1.7' , '>= 6.1.7.1'
gem 'responders', '~> 3.0', '>= 3.0.1'
gem 'actionpack-action_caching', '~> 1.2', '>= 1.2.1'
gem 'activerecord-postgis-adapter', '~> 6.0', '>= 6.0.1'
gem 'addressfinder'
gem 'aws-sdk-s3'
gem 'aws-sdk-dynamodb'
gem 'bugsnag'
gem 'cancan'
gem 'clearance', '~> 2.5.0'
gem 'coffee-rails'
gem 'dynamic_form'
gem 'easy_reference_data', '~> 1.1'
gem 'ejs', '~> 1.0.0'
gem 'friendly_id'
gem 'jquery-rails', '~> 4.4'
gem 'mapkit'
gem 'mime-types', require: 'mime/types'
gem 'newrelic_rpm'
gem 'nokogiri', '>= 1.13.2'
gem 'paperclip'
gem 'puma', '>= 5.6.2'
gem 'rails_12factor'
gem 'rgeo', '~> 2.2'
gem 'rgeo-geojson', '~> 2.1', '>= 2.1.1'
gem 'rinku', '~> 1.5.1', require: 'rails_rinku'
gem 'sass-rails'
gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
gem 'will_paginate'
gem "whenever", "~> 1.0"
gem "net-http"
gem 'uri', '0.12.0'
group :foreman do
gem 'foreman'
end
group :test do
gem 'database_cleaner', '~> 1.99.0'
gem 'factory_bot_rails'
gem 'guard-minitest'
gem 'guard-rspec', require: false
gem 'minitest'
gem 'mocha', require: false
gem 'shoulda'
end
group :development, :test do
gem 'bundler-audit'
gem 'byebug'
gem 'license_finder'
gem 'pry'
gem 'pry-nav'
gem 'pry-remote'
gem 'rails-controller-testing'
gem 'rspec-rails', '~> 3.8'
end
I'm not sure what is causing this error or how to resolve it.
Can anyone provide guidance on how to resolve this error ? Thank you for your help and i can provide more info if needed.
More Info:
wait-for-it.sh: postgresql:5432 is available after 0 seconds
undefined local variable or method `configuration' for #<ActiveRecord::ConnectionAdapters::PostGIS::PostGISDatabaseTasks:0x0000555b2c8f5ac0>
Did you mean? configuration_hash
Couldn't create 'app' database. Please check your configuration.
rake aborted!
NameError: undefined local variable or method `configuration' for #<ActiveRecord::ConnectionAdapters::PostGIS::PostGISDatabaseTasks:0x0000555b2c8f5ac0>
Did you mean? configuration_hash
/bundle/ruby/2.7.0/gems/activerecord-postgis-adapter-6.0.1/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:99:in `ensure_installation_configs'
/bundle/ruby/2.7.0/gems/activerecord-postgis-adapter-6.0.1/lib/active_record/connection_adapters/postgis/postgis_database_tasks.rb:9:in `initialize'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:487:in `new'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:487:in `database_adapter_for'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:133:in `create'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:193:in `block in create_current'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:506:in `block (2 levels) in each_current_configuration'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:503:in `each'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:503:in `block in each_current_configuration'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:502:in `each'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:502:in `each_current_configuration'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/tasks/database_tasks.rb:193:in `create_current'
/bundle/ruby/2.7.0/gems/activerecord-6.1.7.2/lib/active_record/railties/databases.rake:45:in `block (2 levels) in <top (required)>'
/bundle/ruby/2.7.0/gems/bugsnag-6.24.2/lib/bugsnag/integrations/rake.rb:20:in `execute'
/bundle/ruby/2.7.0/gems/rake-13.0.6/exe/rake:27:in `<top (required)>'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli/exec.rb:58:in `load'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli/exec.rb:58:in `kernel_load'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli/exec.rb:23:in `run'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli.rb:491:in `exec'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in `invoke_command'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/vendor/thor/lib/thor.rb:392:in `dispatch'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli.rb:34:in `dispatch'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/vendor/thor/lib/thor/base.rb:485:in `start'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/cli.rb:28:in `start'
/usr/local/bundle/gems/bundler-2.4.6/exe/bundle:45:in `block in <top (required)>'
/usr/local/bundle/gems/bundler-2.4.6/lib/bundler/friendly_errors.rb:117:in `with_friendly_errors'
/usr/local/bundle/gems/bundler-2.4.6/exe/bundle:33:in `<top (required)>'
/usr/local/bundle/bin/bundle:23:in `load'
/usr/local/bundle/bin/bundle:23:in `<main>'

Cannot run rails server -- `require``main`

On mac, when running: rails server, the error below appears:
/Users/KimiebiAkah/Desktop/Rails_App/feastonline/config/application.rb:12:in `require': cannot load such file -- iconv (LoadError)
from /Users/KimiebiAkah/Desktop/Rails_App/feastonline/config/application.rb:12:in `<top (required)>'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `require'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:78:in `block in server'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `tap'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:75:in `server'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands/commands_tasks.rb:39:in `run_command!'
from /Users/KimiebiAkah/.rvm/gems/ruby-2.3.0/gems/railties-4.2.6/lib/rails/commands.rb:17:in `<top (required)>'
from bin/rails:4:in `require'
from bin/rails:4:in `<main>'
I do not know what is wrong with the app.
How can this be alleviated?
gemfile:
source 'http://rubygems.org'
ruby '2.3.0' # '1.9.3'
gem 'rails', '4.2.6'
gem 'mysql2', '0.4.4'
gem 'bootstrap-sass', '2.3.2.0'
gem 'bcrypt-ruby', '3.1.2'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'bootstrap-will_paginate', '0.0.9'
gem 'geocoder', '1.1.8'
gem 'nested_form', '0.3.2'
gem 'utf8-cleaner', '0.0.6'
gem 'sprockets', '2.11.0'
gem 'json', '1.8.3'
gem 'ffi'
gem 'chosen-rails', '1.0.1'
gem 'compass-rails', github: 'Compass/compass-rails'
# For image uploads
gem 'carrierwave', '0.9.0'
# For uploading CSV
gem 'roo', '1.13.2'
# DataTables
gem 'jquery-datatables-rails', '2.2.3' # git: 'git://github.com/rweng/jquery-datatables-rails.git'
gem 'jquery-ui-rails', '5.0.2'
# Editing in line:
gem 'best_in_place', '3.0.3'
# Passing data from controller to coffeescript
gem 'gon', '5.2.3'
gem 'progress_bar', '1.0.0'
# Calendar Date and Validation
gem 'bootstrap-datepicker-rails'
# For Google Maps overlays
gem 'gmaps4rails', '~> 2.1.2'
gem 'underscore-rails', '~> 1.7.0'
group :development, :test do
gem 'rspec-rails', '2.13.1'
gem 'guard-rspec', '2.5.0'
gem 'spork-rails', '4.0.0'
gem 'childprocess', '0.3.9'
gem 'guard-spork', '1.5.0'
end
group :test do
gem 'selenium-webdriver', '2.35.1'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', '4.2.1'
end
gem 'sass-rails', '4.0.1'
gem 'uglifier', '2.1.1'
gem 'coffee-rails', '4.1.0'
gem 'jquery-rails', '3.1.2'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'
group :doc do
gem 'sdoc', '0.3.20', require: false
end
gem 'rails_12factor', '0.0.3'
It shows that the iconv not exist. I guess that you are missing gem "iconv", "~> 1.0.3".
Add this gem "iconv", "~> 1.0.3" to your Gemfile and run bundle install

How to fix "uninitialized constant User"

I tried to make a new Devise model "User", but I can't. My server won't load either. I keep getting the error: "uninitialized constant User".
Here's what I tried:
bundle install, bundle update, and gem pristine --all
Adding require 'devise' into my application.rb
Restarting my server, which now won't launch
Running rails g devise:install in my terminal
Here's my gem file:
source 'https://rubygems.org'
gem 'rails', '4.2.6'
gem 'pg', '~> 0.15'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'bootstrap-sass', '~> 3.3.6'
gem 'rails_12factor'
gem "figaro"
gem 'devise'
gem 'paperclip', github: 'thoughtbot/paperclip'
group :development, :test do
gem 'byebug'
gem 'sqlite3'
end
group :development do
gem 'web-console', '~> 2.0'
gem 'spring'
end
Stack trace:
WARNING: Nokogiri was built against LibXML version 2.9.4, but has dynamically loaded 2.9.2
/Users/Sam/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:261:in `const_get': uninitialized constant User (NameError)
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:261:in `block in constantize'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `each'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `inject'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/activesupport-4.2.6/lib/active_support/inflector/methods.rb:259:in `constantize'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/devise-4.1.1/lib/devise.rb:289:in `get'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/devise-4.1.1/lib/devise/mapping.rb:81:in `to'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/devise-4.1.1/lib/devise/mapping.rb:76:in `modules'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/devise-4.1.1/lib/devise/mapping.rb:93:in `routes'
from /Users/Sam/.rvm/gems/ruby-2.2.1/gems/devise-4.1.1/lib/devise/mapping.rb:160:in `default_used_route'
I'm not sure what is happening.
Have you generated your model?
rails generate devise User

What's wrong with my Gemfile?

I tried to bundle install, but here is what I got:
/home/mywebsite/.rvm/rubies/ruby-1.9.3-p362/lib/ruby/site_ruby/1.9.1/rubygems/version.rb:187:in `initialize': Malformed version number string = 1.0.3 (ArgumentError)
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:104:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:104:in `parse_spec'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:71:in `parse_source'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:30:in `block in initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:24:in `each'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/lockfile_parser.rb:24:in `initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:44:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:44:in `initialize'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `new'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:148:in `to_definition'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/dsl.rb:8:in `evaluate'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/definition.rb:18:in `build'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler.rb:144:in `definition'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/cli.rb:228:in `install'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/task.rb:27:in `run'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/invocation.rb:120:in `invoke_task'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor.rb:275:in `dispatch'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/vendor/thor/base.rb:408:in `start'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/bin/bundle:14:in `block in <top (required)>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/lib/bundler/friendly_errors.rb:4:in `with_friendly_errors'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/gems/bundler-1.2.3/bin/bundle:14:in `<top (required)>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/bin/bundle:19:in `load'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#global/bin/bundle:19:in `<main>'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#mywebsiter/bin/ruby_noexec_wrapper:14:in `eval'
/home/mywebsite/.rvm/gems/ruby-1.9.3-p362#mywebsiter/bin/ruby_noexec_wrapper:14:in `<main>'
There was an error in your Gemfile, and Bundler cannot continue.
EDIT
Here is my Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.11'
gem 'rake' , '>= 10.0.1'
# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'
gem "rmagick", "~> 2.13.1"
gem "paperclip", "~> 3.0"
gem 'aws-sdk'
gem "fog"
gem 'bootstrap-wysihtml5-rails', :require => 'bootstrap-wysihtml5-rails',
:git => 'git://github.com/Nerian/bootstrap-wysihtml5-rails.git'
#gem "asset_sync"
#gem 'sendgrid'
gem "tweet-button"
#gem "fb-localizer"
#gem 'easy_roles'
gem 'pg'
gem 'google-analytics-rails'
gem 'jquery-rails-cdn'
gem 'spinjs-rails'
# 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', :platform => :ruby
gem 'less-rails-bootstrap'
gem 'uglifier', '>= 1.0.3'
end
gem 'devise'
gem 'omniauth', "1.1.1"
gem 'omniauth-facebook', '1.4.0' # HIGHER VERSIONS DO NOT WORK!
gem "koala", "~> 1.5.0"
gem 'oauth2'
gem 'cancan'
gem 'routing-filter'
gem 'thin'
gem "simple_form"
gem "cocoon"
gem "jquery-rails"
gem "validate_url"
gem 'haml'
gem "on_the_spot"
gem 'therubyracer' # important for less
gem 'twitter-bootstrap-rails', :git => 'git://github.com/seyhunak/twitter-bootstrap-rails.git'
#gem 'dragonfly'
gem 'refinerycms-i18n'#, '~> 2.1.0.dev', :git => 'git://github.com/refinery/refinerycms-i18n.git'
gem "refinerycms-videojs", "~> 0.5.5"
#Refinery
gem 'refinerycms-core' #You can leave this out if you like. It's a dependency of the other engines.
gem 'refinerycms-dashboard'
gem 'refinerycms-images'
gem 'refinerycms-pages'
gem 'refinerycms-resources'
group :production do
gem 'newrelic_rpm'
end
#gem "ckeditor"
#gem "carrierwave"
#gem "mini_magick"
group :test, :development do
gem "letter_opener"
gem 'meta_request', '0.2.0'
gem "rspec-rails", '2.9.0'
gem 'guard-rspec'
gem "spork"
gem 'guard-spork'
gem 'rb-inotify', '~> 0.8.8'
gem "factory_girl_rails"
gem "mocha"
gem 'capybara' #, :git => 'git://github.com/jnicklas/capybara.git'
gem 'launchy'
gem "capybara-webkit"
gem "nifty-generators"
gem 'sextant'
gem 'haml-rails'
gem 'hpricot'
gem 'ruby_parser'
end
#gem "paypal-recurring"
#gem "r2", "~> 0.0.3"
EDIT2
mywebsite#ubuntu:~/RubymineProjects/mywebsite$ bundle -v
Bundler version 1.2.3
mywebsite#ubuntu:~/RubymineProjects/mywebsite$ gem -v
1.8.24
mywebsite#ubuntu:~/RubymineProjects/mywebsite$
notice the error:
Malformed version number string = 1.0.3 (ArgumentError)
Try removing your Gemfile.lock and run bundle install again.
Try changing this:
'uglifier', '>= 1.0.3'
to:
gem 'uglifier'#, '>= 1.0.3'
...and see what happens?

bootstrap-sass gem breaking my rails 3.2.3 at step 5.1.2 in Hartl's rails tutorial

Everything up to this point has worked great, including upload to github and heroku, as well as using postgres for dev/test and prod/heroku.
As soon as I add
gem 'bootstrap-sass', '2.0.0'
to my Gemfile and run bundle install (or bundle install --without assets), spork, guard, and rails (and stand-alone passenger) all complain w/ the following:
/var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `require': cannot load such file -- bootstrap/sass (LoadError)
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:74:in `rescue in block in require'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:62:in `block in require'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `each'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler/runtime.rb:55:in `require'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194#global/gems/bundler-1.1.3/lib/bundler.rb:119:in `require'
from /var/lib/rails/sample_app/config/application.rb:13:in `<top (required)>'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:53:in `require'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:53:in `block in <top (required)>'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:50:in `tap'
from /var/lib/rails/.rvm/gems/ruby-1.9.3-p194/gems/railties-3.2.3/lib/rails/commands.rb:50:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
here's my Gemfile and the relevant part of Gemfile.lock:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'jquery-rails', '2.0.0'
gem 'bootstrap-sass', '2.0.0'
gem 'bcrypt-ruby', '3.0.1'
#gem 'faker', '1.0.1'
#gem 'will_paginate', '3.0.3'
#gem 'bootstrap-will_paginate', '0.0.5'
group :development, :test do
#gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.9.0'
gem 'guard-rspec', '0.5.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
group :test do
gem 'capybara', '1.1.2'
#gem 'factory_girl_rails', '1.4.0'
#gem 'cucumber-rails', '1.2.1', require: false
#gem 'database_cleaner', '0.7.0'
gem 'guard-spork', '0.3.2'
gem 'spork', '0.9.0'
# gem 'rb-fsevent', '0.4.3.1', require: false
# gem 'growl', '1.0.3'
end
#group :production do
gem 'pg', '0.12.2'
#end
$ egrep "bootstrap|sass" Gemfile.lock
bootstrap-sass (2.0.0)
sass (3.1.17)
sass-rails (3.2.4)
sass (>= 3.1.10)
bootstrap-sass (= 2.0.0)
sass-rails (= 3.2.4)
the platform is a Gentoo OpenVZ container, using a dedicated, non-privileged 'rails' account.
I've checked my work several times, removed gems and re-bundled, still no love.
try putting bootstrap-sass in the assets group of the Gemfile?
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
gem 'uglifier', '>= 1.0.3'
gem 'bootstrap-sass', '~> 2.0.2'
end

Resources