Rake aborted error while setting up Discourse


(Liping Yin) #1

Command:

$ rake db:migrate

*Output:

yinlipingmatoMacBook-Pro:discourse yinliping$ rake db:migrate
rake aborted!
Timed out connecting to Redis on localhost:6379
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:276:in `rescue in establish_connection'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:273:in `establish_connection'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:69:in `connect'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:292:in `ensure_connected'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:179:in `block in process'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:258:in `logging'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:178:in `process'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis/client.rb:84:in `call'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis.rb:415:in `block in del'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis.rb:36:in `block in synchronize'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis.rb:36:in `synchronize'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-3.0.6/lib/redis.rb:414:in `del'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/redis-activesupport-4.0.0/lib/active_support/cache/redis_store.rb:183:in `delete_entry'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/cache.rb:372:in `block in delete'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/cache.rb:519:in `instrument'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/cache.rb:371:in `delete'
/Users/yinliping/workspace/discourse/lib/site_setting_extension.rb:138:in `block in refresh!'
/Users/yinliping/workspace/discourse/lib/site_setting_extension.rb:117:in `synchronize'
/Users/yinliping/workspace/discourse/lib/site_setting_extension.rb:117:in `refresh!'
/Users/yinliping/workspace/discourse/config/initializers/05-site_settings.rb:3:in `block in <top (required)>'
/Users/yinliping/workspace/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:45:in `block in each_connection'
/Users/yinliping/workspace/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:43:in `each'
/Users/yinliping/workspace/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:43:in `each_connection'
/Users/yinliping/workspace/discourse/config/initializers/05-site_settings.rb:1:in `<top (required)>'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `block in load'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:223:in `load'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/engine.rb:609:in `block (2 levels) in <class:Engine>'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/engine.rb:608:in `each'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/engine.rb:608:in `block in <class:Engine>'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `instance_exec'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:30:in `run'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `each'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:44:in `tsort_each_child'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/initializable.rb:54:in `run_initializers'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:215:in `initialize!'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/yinliping/workspace/discourse/config/environment.rb:5:in `<top (required)>'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `block in require'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:214:in `load_dependency'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/activesupport-4.0.2/lib/active_support/dependencies.rb:229:in `require'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:189:in `require_environment!'
/Users/yinliping/.rvm/gems/ruby-2.0.0-p353/gems/railties-4.0.2/lib/rails/application.rb:250:in `block in run_tasks_blocks'
Tasks: TOP => db:migrate => environment
(See full trace by running task with --trace)
yinlipingmatoMacBook-Pro:discourse yinliping$ 

thanks!


(Régis Hanol) #2

Is your redis running?


(Liping Yin) #5

i run $/usr/local/redis/bin/redis-server /usr/local/redis/conf/redis.confand and $ rake db:migrate

made the same mistake