-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rails g cassandra_migrations create_sample_tbl hangs #79
Comments
@soonya Could you put a small sample together? Also, can you list you Cassandra version, OS, Gemfile, etc. Thanks |
` Linux localhost 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linuxruby --version ruby 2.2.1p85 (2015-02-26 revision 49769) [x86_64-linux]cat os-release BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/"Gemfilesource 'https://rubygems.org' Bundle edge Rails instead: gem 'rails', github: 'rails/rails'gem 'rails', '4.2.1' Use mysql as the database for Active Recordgem 'mysql2' Use SCSS for stylesheetsgem 'sass-rails', '~> 5.0' Use Uglifier as compressor for JavaScript assetsgem 'uglifier', '>= 1.3.0' Use CoffeeScript for .coffee assets and viewsgem 'coffee-rails', '~> 4.1.0' See https://github.com/rails/execjs#readme for more supported runtimesgem 'therubyracer', platforms: :rubygem 'pluck_to_hash' Use jquery as the JavaScript librarygem 'jquery-rails' Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinksgem 'turbolinks' Build JSON APIs with ease. Read more: https://github.com/rails/jbuildergem 'jbuilder', '~> 2.0'bundle exec rake doc:rails generates the API under doc/api.gem 'sdoc', '~> 0.4.0', group: :doc Use ActiveModel has_secure_passwordgem 'bcrypt', '~> 3.1.7'Use Unicorn as the app servergem 'unicorn'Use Capistrano for deploymentgem 'capistrano-rails', group: :development Use this gem for api documentaition as you write testsgem 'rspec_api_documentation' Use factory_girl instead of fixturesgem 'factory_girl_rails' Use database-cleaner to clean your suite on every test requestgem 'database_cleaner' Use rspec-json_expectations to test Json response body.gem 'rspec-json_expectations' Call 'byebug' anywhere in the code to stop execution and get a debugger consolegem 'byebug' Use rails-erd to generate entity relationship diagram from you active modelsgem 'rails-erd' Access an IRB console on exception pages or by using <%= console %> in viewsgem 'web-console', '~> 2.0' Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/springgem 'spring' Use this gem to generate statemachine graphs.gem 'ruby-graphviz' Use devise for registering and authenticating app users.gem 'devise' Use omniauth to sign up users from third party applications.gem 'omniauth' Use doorkeeper for OAuth 2.0 implementation in ruby.gem 'doorkeeper', '~> 2.1.4' Use virtus for Ruby PORO objects.gem 'virtus' Use redis-rails for using redis as your cache storegem 'redis-rails' Use the connection_pool for database connection pool size and timeoutgem 'connection_pool' Use state_machine gem for your workflows.gem 'state_machine', git: 'https://github.com/seuros/state_machine.git' Use Grape for your REST APIgem 'grape' Use wine_bouncer for integrating Doorkeeper with Grapegem 'wine_bouncer', ('~> 0.5.0') Use grape-cancan for permissions based authorization (Not required as OAuth2 does it by default)#gem 'cancancan' Use Grape-Jbuilder for easy rendering of Json views.gem 'grape-jbuilder' Use Fog for connecting to cloud providersgem 'fog' Use sidekiq for background processing jobsgem 'sidekiq' Use hashids for masking database idsgem 'hashids' Use apitome to generate api documentation in railsgem 'apitome' |
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/[email protected]/gems/ione-1.2.3/lib/ione/future.rb:704:in
pop': Interrupt from /home/soonya/.rvm/gems/[email protected]/gems/ione-1.2.3/lib/ione/future.rb:704:in
value'from /home/soonya/.rvm/gems/[email protected]/gems/cql-rb-2.0.0/lib/cql/client/client.rb:523:in
block in connect' from /home/soonya/.rvm/gems/[email protected]/gems/cql-rb-2.0.0/lib/cql/client.rb:60:in
synchronous_backtrace'from /home/soonya/.rvm/gems/[email protected]/gems/cql-rb-2.0.0/lib/cql/client/client.rb:523:in
connect' from /home/soonya/.rvm/gems/[email protected]/gems/cql-rb-2.0.0/lib/cql/client.rb:132:in
connect'from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:71:in
connect_to_server' from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:49:in
use'from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/cassandra.rb:19:in
start!' from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie/initializer.rb:27:in
module:CassandraMigrations'from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie/initializer.rb:12:in
<top (required)>' from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require'from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
block in require' from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in
load_dependency'from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' from /home/soonya/.rvm/gems/[email protected]/gems/cassandra_migrations-0.1.0/lib/cassandra_migrations/railtie.rb:6:in
block in class:Railtie'from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/initializable.rb:30:in
instance_exec' from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/initializable.rb:30:in
run'from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/initializable.rb:55:in
block 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:in
block (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:in
block 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:in
call' 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:in
tsort_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/[email protected]/gems/railties-4.2.1/lib/rails/initializable.rb:54:in
run_initializers' from /home/soonya/.rvm/gems/[email protected]/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/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require'from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
block in require' from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:240:in
load_dependency'from /home/soonya/.rvm/gems/[email protected]/gems/activesupport-4.2.1/lib/active_support/dependencies.rb:274:in
require' from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/application.rb:328:in
require_environment!'from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:142:in
require_application_and_environment!' from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:128:in
generate_or_destroy'from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:50:in
generate' from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/commands/commands_tasks.rb:39:in
run_command!'from /home/soonya/.rvm/gems/[email protected]/gems/railties-4.2.1/lib/rails/commands.rb:17:in
<top (required)>' from bin/rails:4:in
require'from bin/rails:4:in `
The text was updated successfully, but these errors were encountered: