Elmah 一段时间后停止发送电子邮件

发布于 2024-10-01 02:42:13 字数 595 浏览 1 评论 0原文

我们配置了 Elmah,以便在出现问题时向我们发送错误通知电子邮件。这一切在一段时间内运行良好,但我们注意到有时 Elmah 会停止发送错误通知,但仍将错误记录为 XML。

因此,为了验证,我们有一个测试页面,它会生成未捕获的 500 服务器错误。如果我们重置 IIS 并尝试该页面,Elmah 将正确记录并发送错误通知。然而过了一段时间(我们仍然不确定它停止工作多长时间或何时。)Elmah 只会记录文件而不发送电子邮件通知。

到目前为止,我们已经排除了 SMTP 服务器不发送 Elmah 通知的可能性,因为当我们在 Elmah 处于不良状态时触发 500 服务器错误时,SMTP 服务器日志中根本没有任何条目。

总而言之,症状如下:

  1. 当 Elmah 处于不良状态时,它将停止生成电子邮件通知,但继续在 XML 文件中记录错误。
  2. IIS Reset 后,一切恢复正常。 (虽然我们确实每天都安排了应用程序回收,但这似乎在这种情况下没有帮助。)
  3. 每当我们将现有二进制文件覆盖到较新版本而不重新启动 IIS 时,就会触发不良状态。然而,500 服务器错误测试表明 Elmah 有时会进入不良状态,有时不会。

有人观察到类似的症状吗?

We have an Elmah configured to send error notification emails to us whenever something is wrong. It all worked great for a while but we're noticing that sometimes Elmah would just stop sending error notifications, but still logs the error as XML.

So to verify, we have a test page which generates uncaught 500 server error. If we did an IIS reset and try the page, Elmah would correctly logs and send the notification error. However after a while (we're still unsure of how long or when it stopped working.) Elmah would only log the file without sending email notifications.

So far we have ruled out SMTP server not sending Elmah notifications because when we trigger the 500 server error while Elmah is in a bad state, there's no entry in SMTP server log at all.

In summary, the symptoms are as follows:

  1. When Elmah is in a bad state, it'll stop generating Email notification but continue logging error in XML file.
  2. After IIS Reset, everything goes back to normal. (Though we do have scheduled app recycle everyday, but that doesn't seem to help in this situation.)
  3. The bad state seems to be triggered by whenever we overridethe existing binary to a newer release without restarting IIS. However, the 500 server error test indicates that Elmah sometimes goes into bad state, sometimes don't.

Is anyone observing similar symptoms?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

黯淡〆 2024-10-08 02:42:14

你解决过这个问题吗?

http://groups.google.com/group/elmah/browse_thread/thread/51d24dd6c94e6dc2

似乎是一个类似的问题,并说:

明白了......这是 JScript 错误过滤器。 。如果我把过滤器去掉,它就可以工作了
美好的。

Did you ever get this fixed?

http://groups.google.com/group/elmah/browse_thread/thread/51d24dd6c94e6dc2

Seems to be a similar problem and says:

Got it.... it's the JScript error filter. . If I strip the filter out, it works just
fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文