Open soonya opened 8 years ago
@soonya Could you put a small sample together? Also, can you list you Cassandra version, OS, Gemfile, etc. Thanks
` uname -a
ruby --version
cat os-release NAME="Ubuntu" VERSION="14.04.2 LTS, Trusty Tahr" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 14.04.2 LTS" VERSION_ID="14.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/"
source 'https://rubygems.org'
gem 'rails', '4.2.1'
gem 'mysql2'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'pluck_to_hash'
gem 'jquery-rails'
gem 'turbolinks'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'capistrano-rails', group: :development gem 'capistrano-passenger', group: :development gem 'capistrano-rvm', group: :development group :development, :test do
gem 'rspec-rails', '~> 3.0'
gem 'rspec_api_documentation'
gem 'factory_girl_rails'
gem 'database_cleaner' gem 'faker'
gem 'rspec-json_expectations'
gem 'byebug'
gem 'rails-erd'
gem 'web-console', '~> 2.0'
gem 'spring'
gem 'ruby-graphviz' gem 'railroady' gem 'redcarpet', '~> 3.1.2' end
gem 'devise'
gem 'omniauth' gem 'omniauth-facebook' gem 'omniauth-google-oauth2' gem 'omniauth-windowslive' gem 'omniauth-twitter' gem 'omniauth-linkedin-oauth2'
gem 'doorkeeper', '~> 2.1.4'
gem 'virtus'
gem 'redis-rails' gem 'redis-objects'
gem 'connection_pool'
gem 'state_machine', git: 'https://github.com/seuros/state_machine.git'
gem 'grape' gem "hashie-forbidden_attributes"
gem 'wine_bouncer', ('~> 0.5.0')
gem 'grape-jbuilder'
gem 'fog'
gem 'sidekiq'
gem 'hashids'
gem 'apitome' ----- end of Gemfile ----`
Facing an issue where the rails generation of the create table script does not work. Cassandra is running. The rails generation ruby process has an established connection and just stays there. Using the default datastax 3.4 cassandra config. Using the default cassandra.yml for cassandra_migrations.
Stack trace on interruption is: soonya@localhost:/var/www/myapp$ rails generate cassandra_migration create_sample_tbl ^C/home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/ione-1.2.3/lib/ione/future.rb:704:in'
pop': Interrupt from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/ione-1.2.3/lib/ione/future.rb:704:in
value' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cql-rb-2.0.0/lib/cql/client/client.rb:523:inblock in connect' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cql-rb-2.0.0/lib/cql/client.rb:60:in
synchronous_backtrace' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cql-rb-2.0.0/lib/cql/client/client.rb:523:inconnect' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cql-rb-2.0.0/lib/cql/client.rb:132:in
connect' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:71:inconnect_to_server' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:49:in
use' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:19:instart!' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie/initializer.rb:27:in
module:CassandraMigrations' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie/initializer.rb:12:in<top (required)>' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inblock in require' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in
load_dependency' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inrequire' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie.rb:6:in
block in class:Railtie' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/initializable.rb:30:ininstance_exec' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/initializable.rb:30:in
run' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/initializable.rb:55:inblock in run_initializers' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:226:in
block in tsort_each' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:348:inblock (2 levels) in each_strongly_connected_component' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:429:in
each_strongly_connected_component_from' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:347:inblock in each_strongly_connected_component' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in
each' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:incall' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:345:in
each_strongly_connected_component' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:224:intsort_each' from /home/soonya/.rvm/rubies/ruby-2.2.1/lib/ruby/2.2.0/tsort.rb:203:in
tsort_each' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/initializable.rb:54:inrun_initializers' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/application.rb:352:in
initialize!' from /var/www/myapp/config/environment.rb:5:in<top (required)>' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inblock in require' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in
load_dependency' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:inrequire' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/application.rb:328:in
require_environment!' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:142:inrequire_application_and_environment!' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:128:in
generate_or_destroy' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:50:ingenerate' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in
run_command!' from /home/soonya/.rvm/gems/ruby-2.2.1@rails-4.2/gems/railties-4.2.1/lib/rails/commands.rb:17:in<top (required)>' from bin/rails:4:in
require' from bin/rails:4:in `