0
當我嘗試耙資產:預編譯我收到以下錯誤:軌道3 MongoDB的資產預編譯錯誤:
rake assets:precompile
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/bin/ruby /Users/jeanosorio/.rvm/gems/[email protected]/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
execution expired
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `block in connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:45:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:40:in `initialize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `new'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `check_is_master'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:468:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:693:in `setup'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:155:in `initialize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `new'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `connection'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:203:in `from_uri'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:86:in `master'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:19:in `configure'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:290:in `configure_databases'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:111:in `from_hash'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:126:in `block in load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `tap'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid.rb:148:in `load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/railtie.rb:84:in `block in <class:Railtie>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/jeanosorio/repos/blabloo/config/environment.rb:5:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/[email protected]labloo/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
Tasks: TOP => environment
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p...]
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
這是使用結果「--trace」 commnad
rake assets:precompile --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/bin/ruby /Users/jeanosorio/.rvm/gems/[email protected]/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets --trace
** Invoke assets:precompile:all (first_time)
** Execute assets:precompile:all
** Invoke assets:precompile:primary (first_time)
** Invoke assets:environment (first_time)
** Execute assets:environment
** Invoke environment (first_time)
** Execute environment
rake aborted!
execution expired
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:46:in `block in connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:45:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/tcp_socket.rb:40:in `initialize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `new'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:582:in `check_is_master'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:468:in `connect'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:693:in `setup'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:155:in `initialize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `new'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/util/uri_parser.rb:172:in `connection'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongo-1.9.2/lib/mongo/mongo_client.rb:203:in `from_uri'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:86:in `master'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config/database.rb:19:in `configure'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:290:in `configure_databases'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:111:in `from_hash'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:126:in `block in load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `tap'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/config.rb:125:in `load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid.rb:148:in `load!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/mongoid-2.8.1/lib/mongoid/railtie.rb:84:in `block in <class:Railtie>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `instance_exec'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:30:in `run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:55:in `block in run_initializers'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/initializable.rb:54:in `run_initializers'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:136:in `initialize!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/railtie/configurable.rb:30:in `method_missing'
/Users/jeanosorio/repos/blabloo/config/environment.rb:5:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:103:in `require_environment!'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/railties-3.2.13/lib/rails/application.rb:297:in `block (2 levels) in initialize_tasks'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:93:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:197:in `block in invoke_prerequisites'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:195:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:195:in `invoke_prerequisites'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:174:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:60:in `block (3 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/rake:23:in `load'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/rake:23:in `<main>'
Tasks: TOP => environment
rake aborted!
Command failed with status (1): [/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p...]
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils.rb:55:in `block in create_shell_runner'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `call'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils.rb:45:in `sh'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `sh'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils.rb:82:in `ruby'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/file_utils_ext.rb:37:in `ruby'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:12:in `ruby_rake_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:21:in `invoke_or_reboot_rake_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/actionpack-3.2.13/lib/sprockets/assets.rake:29:in `block (2 levels) in <top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `call'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:236:in `block in execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:231:in `execute'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:175:in `block in invoke_with_call_chain'
/Users/jeanosorio/.rvm/rubies/ruby-1.9.3-p484/lib/ruby/1.9.1/monitor.rb:211:in `mon_synchronize'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:168:in `invoke_with_call_chain'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/task.rb:161:in `invoke'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:149:in `invoke_task'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `block (2 levels) in top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `each'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:106:in `block in top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:115:in `run_with_threads'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:100:in `top_level'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:78:in `block in run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:165:in `standard_exception_handling'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/lib/rake/application.rb:75:in `run'
/Users/jeanosorio/.rvm/gems/[email protected]/gems/rake-10.1.0/bin/rake:33:in `<top (required)>'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/rake:23:in `load'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/rake:23:in `<main>'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `eval'
/Users/jeanosorio/.rvm/gems/[email protected]/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => assets:precompile
我不明白這裏有什麼問題,因爲我在將我的文件上傳到服務器之前做了這個,現在我得到這個錯誤,但我沒有改變任何東西。
任何建議,將不勝感激。
感謝
試試這個命令'捆綁EXEC耙RAILS_ENV =生產RAILS_GROUPS =資產資產:precompile' – 2014-09-01 09:51:32
同樣的錯誤,我不明白髮生了什麼 – Jean 2014-09-01 10:03:25
貌似應用程序不能連接到mongoDB,你有沒有采取基本步驟來檢查mongoDB是否正在運行和訪問? – 2014-09-01 11:51:45