亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

ruby - 部署rails應(yīng)用的new relic,日誌顯示invalid license key,設(shè)定如何修改?
phpcn_u1582
phpcn_u1582 2017-05-17 10:01:55
0
1
1469

這臺(tái)伺服器曾經(jīng)部署過(guò)另一個(gè)new relic license key的應(yīng)用程式
部署新的應(yīng)用程式時(shí),debug log顯示正在使用另一個(gè)應(yīng)用程式的license
配置程式碼如下


common: &default_settings
  # Required license key associated with your New Relic account.
  license_key: '25905xxxxxxxxxxxxx04b6'

  # Your application name. Renaming here affects where data displays in New
  # Relic.  For more details, see https://docs.newrelic.com/docs/apm/new-relic-apm/maintenance/renaming-applications
  app_name: 'xxx sandbox'

  # To disable the agent regardless of other settings, uncomment the following:
  # agent_enabled: false

  # Logging level for log/newrelic_agent.log
  log_level: debug

# Environment-specific settings are in this section.
# RAILS_ENV or RACK_ENV (as appropriate) is used to determine the environment.
# If your application has other named environments, configure them here.
development:
  <<: *default_settings
  app_name: 'xxx (Development)'

test:
  <<: *default_settings
  # It doesn't make sense to report to New Relic from automated test runs.
  monitor_mode: false

staging:
  <<: *default_settings
  app_name: 'xxx (Staging)'

輸出log如下(有時(shí)使用配置中的license,有時(shí)使用另一個(gè)應(yīng)用的license)

[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : Sending request to collector-213.newrelic.com:443/agent_listener/14/7424fbxxxxxxxxxxxxx4bd/get_agent_commands?run_id=216855451632610815&marshal_format=json with POST
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : Received response, status: 200, encoding: ''
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : Received get_agent_commands = []
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : No thread profiles with data found to send.
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : EventLoop: Dispatching event 'report_event_data' with 1 callback(s).
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : Sending analytic_event_data to New Relic Service
[2017-04-27 22:24:55 -0700 sandbox.aviagames.com (1183)] DEBUG : EventLoop: Dispatching event 'reset_log_once_keys' with 1 callback(s).
[2017-04-27 22:25:20 -0700 sandbox.aviagames.com (1103)] DEBUG : EventLoop: Dispatching event 'report_data' with 1 callback(s).
[2017-04-27 22:25:20 -0700 sandbox.aviagames.com (1103)] DEBUG : Sending data to New Relic Service
[2017-04-27 22:25:20 -0700 sandbox.aviagames.com (1103)] DEBUG : Sending 31 items to metric_data
[2017-04-27 22:25:20 -0700 sandbox.aviagames.com (1103)] DEBUG : Sending request to collector-252.newrelic.com:443/agent_listener/14/25905dxxxxxxx04b6/metric_data?run_id=201836671014945180&marshal_format=json with POST
phpcn_u1582
phpcn_u1582

全部回覆(1)
洪濤

之前的工作人員在這臺(tái)機(jī)器上設(shè)定了環(huán)境變量,newrelic預(yù)設(shè)優(yōu)先使用環(huán)境變量中的license等值,修改了環(huán)境變量並重新啟動(dòng)系統(tǒng)後問(wèn)題就解決了

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板