【发布时间】:2014-02-21 10:07:04
【问题描述】:
我在亚马逊服务器上运行我的 ruby on rails 应用程序(rails 3.0.6,ruby 1.9.3),在用户注册时它显示错误 - 出了点问题
更新日志
于 2014 年 2 月 19 日开始为 122.169.118.210 发布“/job_seeker/sign_up” 15:12:30 +0000 RegistrationsController#create as HTML 处理 参数:{"utf8"=>"✓", "authenticity_token"=>"EJz60o29u5pXTOv7+gO/sVDXyGhVcHuM8Iezn5daKlI=", "user"=>{"first_name"=>"kumar", "last_name"=>"pathak", “电子邮件”=>“kumardevp@gmail.com”,“密码”=>“[过滤]”, "password_confirmation"=>"[FILTERED]"}, "commit"=>"Sign up"} 渲染 devise/mailer/confirmation_instructions.html.erb (0.5ms)
发送邮件到 kumardevp@gmail.com (141ms) 297ms 完成
Net::SMTPAuthenticationError (535-5.7.8 用户名和密码不 公认。了解更多信息):
app/controllers/registrations_controller.rb:16:in `create'于 2014 年 2 月 19 日开始为 122.169.118.210 获取“/users/password/new” 15:13:00 +0000 由 Devise::PasswordsController#new 处理为 HTML 渲染设计/共享/_links.html.erb (0.5ms) 渲染 layouts/application.html.erb (6.0ms) 渲染 在布局/内容中设计/密码/new.html.erb (10.7ms) 在 120 毫秒内完成 200 次 OK(查看次数:119.1 毫秒 | ActiveRecord:11.5 毫秒)
运行tail -f log/production.log显示
在 2014-02-19 15:13:08 +0000 开始为 122.169.118.210 获取“/”
由 MainController#index 处理为 HTML 呈现 布局/应用程序中的 main/index.html.erb (6.0ms) 完成 200 7 毫秒内确定(查看:6.5 毫秒 | ActiveRecord:0.2 毫秒)在 2014-02-19 15:48:16 +0000 开始为 122.169.118.210 获取“/”
由 MainController#index 处理为 HTML 呈现 布局/应用程序中的 main/index.html.erb (5.9ms) 完成 200 7 毫秒内确定(查看:6.2 毫秒 | ActiveRecord:0.2 毫秒)
这是我的index.html.erb 代码
<div id="banner">
<script language="javascript">
if (AC_FL_RunContent == 0) {
alert("This page requires AC_RunActiveContent.js.");
} else {
AC_FL_RunContent(
'codebase', '',
'width', '713',
'height', '279',
'src', 'slideshow',
'quality', 'high',
'pluginspage', 'http://www.macromedia.com/go/getflashplayer',
'align', 'middle',
'play', 'true',
'loop', 'true',
'scale', 'showall',
'wmode', 'window',
'devicefont', 'false',
'id', 'slideshow',
'bgcolor', '#ffffff',
'name', 'slideshow',
'menu', 'true',
'allowFullScreen', 'false',
'allowScriptAccess','sameDomain',
'movie', 'slideshow',
'salign', ''
); //end AC code
}
</script>
<noscript>
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="640" height="466" id="slideshow" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="allowFullScreen" value="false" />
<param name="movie" value="slideshow.swf" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" /> <embed src="slideshow.swf" quality="high" bgcolor="#ffffff" width="713" height="279" name="slideshow" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
</noscript>
</div>
<div id="modulelist">
<div class="moduletable">
<h3>Are You Seeking a Job?</h3>
<p>Job seekers can create an iTAG, post
their resume, and manage their content in a user-friendly environment.</p>
<%= link_to "Find a job", new_job_seeker_registration_path, :class => "readon" %>
</div>
<div class="moduletable last">
<h3>Are You Seeking Help?</h3>
<p>App offers employers and job seekers the perfect forum for identifying and connecting with successful matches.</p>
<%= link_to "Find a new job", new_talent_seeker_registration_path, :class => "readon" %>
</div>
</div>
我没有得到任何关于我可能做错了什么的指示,请帮助或欢迎任何建议。提前致谢。
【问题讨论】:
-
您发布的日志不是很有帮助,如果您在错误发生之前添加更多日志条目会更好。
-
等一下,会的
-
另外,当我在 chrome 中打开生产链接时,它显示 https 错误并要求我获取证书。他们有关系吗?
-
好吧,你知道了,SMTP 身份验证出了点问题。请检查您在
config/environments/production.rb中获得的用户名和/或密码。 -
还不确定证书的事情,但最好一次解决一件事。
标签: ruby-on-rails html ruby-on-rails-3 amazon-web-services ruby-on-rails-3.1