【问题标题】:NewRelic::Agent::ForceRestartExceptionNewRelic::Agent::ForceRestartException
【发布时间】:2013-11-26 18:25:24
【问题描述】:

newrelic_agent.log 中的这些错误表示什么,我该如何解决?我最近对 ​​newrelic.yml 做了一些小改动并重新启动了服务器。还原更改没有帮助。

[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Starting the New Relic agent in "production" environment.
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : To prevent agent startup add a NEWRELIC_ENABLE=false environment variable or modify the "production" section of your newrelic.yml
.
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Reading configuration from config/newrelic.yml
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Enabling the Request Sampler.
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Enabling the Request Sampler.
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Environment: production
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Dispatcher: passenger
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Application: production
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Connecting workers after forking.
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing DelayedJob instrumentation [part 1/2]
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing deferred Rack instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing Net instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing ActiveRecord instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing Rails 3 Controller instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing Rails 3.1/3.2 view instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Installing Rails3 Error instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : Finished instrumentation
[11/26/13 10:08:17 -0800 prod-web02 (4558)] INFO : NewRelic::Agent::Samplers::DelayedJobSampler not available: No DJ worker present
[11/26/13 10:08:18 -0800 prod-web02 (4558)] INFO : Doing deferred dependency-detection before Rack startup
[11/26/13 10:08:20 -0800 prod-web02 (4581)] INFO : Reporting to: https://rpm.newrelic.com/accounts/XXX/applications/XXX
[11/26/13 10:08:20 -0800 prod-web02 (4591)] INFO : Reporting to: https://rpm.newrelic.com/accounts/XXX/applications/XXX
[11/26/13 10:08:20 -0800 prod-web02 (4602)] INFO : Reporting to: https://rpm.newrelic.com/accounts/XXX/applications/XXX
[11/26/13 10:08:20 -0800 prod-web02 (4614)] INFO : Reporting to: https://rpm.newrelic.com/accounts/XXX/applications/XXX
**[11/26/13 10:08:26 -0800 prod-web02 (7931)] INFO : Failed to send timeslice data, trying again later. Error:
[11/26/13 10:08:26 -0800 prod-web02 (7931)] INFO : NewRelic::Agent::ForceRestartException: ***Restart agent on stale config (account) method=metric_data launch=2013-11-20 02:07:17 config=2013-11-26 00:00:00
[11/26/13 10:08:57 -0800 prod-web02 (4661)] INFO : Reporting to: https://rpm.newrelic.com/accounts/XXX/applications/XXX
[11/26/13 10:09:26 -0800 prod-web02 (7931)] INFO : Failed to send timeslice data, trying again later. Error:
[11/26/13 10:09:26 -0800 prod-web02 (7931)] INFO : NewRelic::Agent::ForceRestartException: ***Restart agent on stale config (account) method=metric_data launch=2013-11-20 02:07:17 config=2013-11-26 00:00:00**

【问题讨论】:

    标签: ruby-on-rails newrelic


    【解决方案1】:

    当他们的进程仍在使用旧的配置设置时,用户将看到此消息 (NewRelic::Agent::ForceRestartException: **Restart agent on stale config (account))。如果您重新启动该过程,它应该能够找到更新的配置设置,并且该消息应该停止出现。如果您希望 New Relic 更深入地查看您的日志和情况,最好在 support.newrelic.com 提交支持请求。

    【讨论】:

    • 谢谢你,@lauradiane。我是否正确理解重新启动进程意味着重新启动 nginx+passenger(在我的情况下)?这似乎没有帮助。我想是时候获得支持票了。
    • 重启对我有用。我怀疑(猜测)我看到这个问题的触发因素是在一个应用程序中添加了“关键事务”,该应用程序的配置位于 newrelic.yml 中,而不是位于门户中。
    猜你喜欢
    • 1970-01-01
    • 2022-01-06
    • 2013-03-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多