应用程序一直很好用。
安装了heroku-sendgrid-stats插件并重新部署。
应用程序无法启动。
卸载插件,推送到Heroku ......“App Crashed”。
创建了一张支持票,但尚无回复。
我很难过,而且我的应用程序已经停机了12个多小时...非常感谢任何指导。
App正在通过Amazon RDS使用MySQL ......现在也正常运行。
这是回溯:
==> dyno-2162168.log <==
Stopping due to timeout...
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:118:in `call'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:118:in `extract_options'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:81:in `build'
(eval):2:in `validate'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/validations.rb:476:in `send'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/validations.rb:476:in `validates_each'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/validations.rb:876:in `validates_format_of'
/disk1/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/app/models/user.rb:14
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:158:in `require'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:265:in `require_or_load'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:425:in `load_missing_constant'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:80:in `const_missing'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/dependencies.rb:92:in `const_missing'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/inflector.rb:364:in `constantize'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `each'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/inflector.rb:363:in `constantize'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/core_ext/string/inflections.rb:162:in `constantize'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:157:in `observed_class'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:183:in `observed_classes'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:166:in `initialize'
/usr/ruby1.8.7/lib/ruby/1.8/singleton.rb:94:in `new'
/usr/ruby1.8.7/lib/ruby/1.8/singleton.rb:94:in `instance'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:38:in `instantiate_observers'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `each'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activerecord-2.3.8/lib/active_record/observer.rb:36:in `instantiate_observers'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:15:in `define_dispatcher_callbacks'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:182:in `call'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:182:in `evaluate_method'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:166:in `call'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `each'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `send'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:90:in `run'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/activesupport-2.3.8/lib/active_support/callbacks.rb:276:in `run_callbacks'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:51:in `send'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/actionpack-2.3.8/lib/action_controller/dispatcher.rb:51:in `run_prepare_callbacks'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rails-2.3.8/lib/initializer.rb:631:in `prepare_dispatcher'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rails-2.3.8/lib/initializer.rb:185:in `process'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `send'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rails-2.3.8/lib/initializer.rb:113:in `run'
/disk1/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/config/environment.rb:10
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:42:in `load_application'
/usr/ruby1.8.7/lib/ruby/gems/1.8/gems/thin-1.2.6/lib/rack/adapter/rails.rb:23:in `initialize'
/home/heroku_rack/heroku.ru:29:in `new'
/home/heroku_rack/heroku.ru:29
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:63:in `new'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:63:in `map'
/home/heroku_rack/heroku.ru:18
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
/home/heroku_rack/heroku.ru:11:in `new'
/home/heroku_rack/heroku.ru:11
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `instance_eval'
/home/slugs/285728_8c85b9e_aa4e-b59c2c36-e312-4236-af50-cb1c2a77af14/mnt/.gems/gems/rack-1.1.0/lib/rack/builder.rb:46:in `initialize'
/home/heroku_rack/heroku.ru:1:in `new'
/home/heroku_rack/heroku.ru:1
==> production.log <==
# Logfile created on Sat Oct 23 05:11:39 -0700 2010
==> exceptional.log <==
# Logfile created on Sat Oct 23 05:11:41 -0700 2010 by logger.rb
[INFO] (init.rb:21) Sat Oct 23 12:11:41 UTC 2010 - Loading Exceptional 2.0.26 for 2.3.8
答案 0 :(得分:1)
使用rails server
在本地运行您的应用并检查每个资源(因此请务必转到/ users,/ microposts,...)。
至少有一个这样的资源上的HTTP请求会产生错误 - 读取它并在编辑器中修复它。
上面是我如何修复自己的“App崩溃”Heroku消息作为开始程序员做railstutorial.org。
答案 1 :(得分:0)
看起来您的单身用户验证失败。你可以使用heroku控制台,看看它失败的原因。
答案 2 :(得分:0)
您还可以在此处发布您的用户型号代码吗?我们在第14行看到它失败了,但是如果没有看到代码我们就无法告诉你原因。 (关于“App崩溃”的其他帖子也是如此。)