NewRelic 总是说我的应用程序已关闭
我在我的 Heroku 应用程序上安装了 NewRelic 插件,并且我正在尝试使用他们的“可用性”功能,但它总是说我的应用程序已关闭。另外,如果我尝试更改要 ping 的 URL,我总是会得到:
New Relic 已保存您的更改,但 http://skateparks.co/uptime 在 10 秒后超时。确保正确输入 URL,或编辑下面的 URL
如果我执行“ curl http://skateparks.co/uptime" 然后我会得到应用程序正常的响应。
I have the NewRelic addon installed on my Heroku application and I'm attempting to use their "Availability" feature but it aways says that my app is down. Also, if I try to change the URL that I want to ping I will always get:
New Relic saved your changes, but http://skateparks.co/uptime timed out after 10 seconds. Ensure that the URL was entered properly, or edit the URL below
If I do a "curl http://skateparks.co/uptime" Then I'll get a response that the application is fine.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
编辑 URL 时收到的错误消息仅供参考。当您修改 URL 时,我们会同步 ping URL 来进行完整性检查,以帮助您确保输入正确。有时,我们无法在输入 URL 时对站点执行 ping 操作,即使我们显示警告消息,我们仍会保留您的设置并开始对 URL 执行 ping 操作。我们至少有一位客户报告说,他们在编辑 URL 时总是遇到错误,尽管 pinger 本身在获取更新的设置后从未表明 URL 存在任何问题。
如果您的 URL 收到停机警报,但您认为该错误不正确,那么故障排除的一个很好的起点是使用以下命令来卷曲您的目标,该命令完全模仿了我们的 Pinger 的操作。
请注意,我们从 head 请求开始,如果您的服务器不支持它,则返回到 get 请求。要模拟 get 请求,只需使用上面的curl 命令,但删除--head。
The error message you get when you edit the URL is informative only. We do a sanity check by pinging the URL synchronously when you modify it to help you ensure that you entered it correctly. Sometimes we are unable to ping a site at the time the URL is entered, and even though we display the warning message, we still keep your settings and start pinging the URL. We had at least one customer report that they always got the error when editing their URL even though the pinger itself once it got the updated settings never indicated there was any problem with the URL.
If you get a downtime alert with your URL but you believe the error is incorrect, a good starting point for troubleshooting is to curl your target using the following command, which mimics exactly what our Pinger does.
Note that we start with a head request, and if your server doesn't support it fall back to a get request. To mimic the get request just use the curl command above but remove --head.
我在 New Relic 工作,我在我们的支持网站上为您创建了一张票证,我们可以在其中进一步解决此问题。您应该很快就会收到一封电子邮件,其中包含该票证的链接,但如果您有任何其他问题,请随时直接联系我。
干杯,
乙
I work at New Relic and I've created a ticket for you on our support site where we can troubleshoot this further. You should get an email soon with a link to that ticket, but feel free to ping me directly if you have any other questions.
cheers,
b