【发布时间】:2014-07-20 14:41:02
【问题描述】:
我无法在本地调试以下错误。当我在生产中创建一个新帐户时,我收到以下错误:
2014-05-30T18:37:08.908868+00:00 app[web.1]: Started GET "/account_steps.organization_details" for 99.234.25.253 at 2014-05-30 18:37:08 +0000
2014-05-30T18:37:08.972705+00:00 app[web.1]: Redirected to http://limitless-tor-2926.herokuapp.com/account_steps/organization_details
2014-05-30T18:37:09.081125+00:00 app[web.1]: Started GET "/account_steps/organization_details" for 99.234.25.253 at 2014-05-30 18:37:09 +0000
2014-05-30T18:37:09.096189+00:00 app[web.1]: Parameters: {"id"=>"organization_details"}
2014-05-30T18:37:09.119222+00:00 app[web.1]: Rendered account_steps/organization_details.html.erb within layouts/application (11.1ms)
2014-05-30T18:37:09.138721+00:00 app[web.1]:
2014-05-30T18:37:09.138726+00:00 app[web.1]: ActionView::Template::Error (Mysql::Error: : SELECT `organizations`.* FROM `organizations` WHERE `organizations`.`account_id` = ? LIMIT 1):
2014-05-30T18:37:09.138728+00:00 app[web.1]: 19: </ul>
2014-05-30T18:37:09.138730+00:00 app[web.1]: 20: </div>
2014-05-30T18:37:09.138731+00:00 app[web.1]: 21: <% end %>
2014-05-30T18:37:09.138733+00:00 app[web.1]: 22: <%= f.fields_for :organization, @account.build_organization do |org| %>
2014-05-30T18:37:09.138735+00:00 app[web.1]: 23:
2014-05-30T18:37:09.138736+00:00 app[web.1]: 24: <div class="form-group">
2014-05-30T18:37:09.138738+00:00 app[web.1]: 25: <div class="row">
2014-05-30T18:37:09.138740+00:00 app[web.1]: app/views/account_steps/organization_details.html.erb:22:in `block in _app_views_account_steps_organization_details_html_erb__2844923124578816920_70159039034840'
2014-05-30T18:37:09.138742+00:00 app[web.1]: app/views/account_steps/organization_details.html.erb:11:in `_app_views_account_steps_organization_details_html_erb__2844923124578816920_70159039034840'
2014-05-30T18:37:09.138743+00:00 app[web.1]: app/controllers/account_steps_controller.rb:8:in `show'
2014-05-30T18:37:09.138745+00:00 app[web.1]:
2014-05-30T18:37:09.138746+00:00 app[web.1]:
2014-05-30T18:37:08.921225+00:00 app[web.1]: Processing by AccountStepsController#index as
2014-05-30T18:37:08.985227+00:00 app[web.1]: Completed 302 Found in 52ms (ActiveRecord: 10.7ms)
2014-05-30T18:37:09.095524+00:00 app[web.1]: Processing by AccountStepsController#show as HTML
2014-05-30T18:37:09.110362+00:00 app[web.1]: Mysql::Error: : SELECT `organizations`.* FROM `organizations` WHERE `organizations`.`account_id` = ? LIMIT 1
2014-05-30T18:37:09.135830+00:00 app[web.1]: Completed 500 Internal Server Error in 39ms
请注意,我已将 ClearDB 插件添加到应用程序中,因此我不确定为什么会收到这些 MYSQL 错误。我没有让它们在开发中,所以这绝对是一个heroku问题,我不可能在本地调试。
请尽快帮我解决这个问题!
【问题讨论】:
-
您是否在日志中看到任何其他带有特定 MySQL 错误的内容?您粘贴的日志转储并没有真正为任何人提供足够的信息来帮助您调试。
标签: mysql ruby-on-rails heroku ruby-on-rails-4