使用数据包对资源“newrelic_agent_infrastructure[Install]”执行操作“install”时出错

丹尼尔

我们正在尝试使用第三方说明书安装 New Relic 基础设施代理。但是我们有一个错误:在资源“newrelic_agent_infrastructure[Install]”上
执行操作install出错

我们的食谱:

#
# Cookbook:: third-party-newrelic
# Recipe:: infraestructure-agent
#
# Copyright:: 2018, The Authors, All Rights Reserved.

include_recipe 'base::databag'
include_recipe 'newrelic::infrastructure_agent'
# Default Variables
newrelic = decrypt_databag('newrelic')

node.normal['newrelic']['license'] = newrelic['license_key']

日志错误:

Recipe: newrelic::infrastructure_agent
  * newrelic_agent_infrastructure[Install] action install

    ================================================================================
    Error executing action `install` on resource 'newrelic_agent_infrastructure[Install]'
    ================================================================================

    RuntimeError
    ------------
    The NewRelic key is required.

    Cookbook Trace:
    ---------------
    /var/chef/cache/cookbooks/newrelic/libraries/helpers.rb:15:in `check_license'
    /var/chef/cache/cookbooks/newrelic/providers/agent_infrastructure.rb:18:in `block in class_from_file'

    Resource Declaration:
    ---------------------
    # In /var/chef/cache/cookbooks/newrelic/recipes/infrastructure_agent.rb

      8: newrelic_agent_infrastructure 'Install'

    Compiled Resource:
    ------------------
    # Declared in /var/chef/cache/cookbooks/newrelic/recipes/infrastructure_agent.rb:8:in `from_file'

    newrelic_agent_infrastructure("Install") do
      action [:install]
      default_guard_interpreter :default
      declared_type :newrelic_agent_infrastructure
      cookbook_name "newrelic"
      recipe_name "infrastructure_agent"
    end

    System Info:
    ------------
    chef_version=13.8.5
    platform=ubuntu
    platform_version=16.04
    ruby=ruby 2.4.3p205 (2017-12-14 revision 61247) [x86_64-linux]
    program_name=chef-client worker: ppid=101819;start=19:52:27;
    executable=/opt/chef/bin/chef-client


Running handlers:
[2018-05-10T19:52:34+00:00] ERROR: Running exception handlers
Running handlers complete
[2018-05-10T19:52:34+00:00] ERROR: Exception handlers complete
Chef Client failed. 0 resources updated in 07 seconds
[2018-05-10T19:52:34+00:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out
[2018-05-10T19:52:34+00:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2018-05-10T19:52:34+00:00] ERROR: newrelic_agent_infrastructure[Install] (newrelic::infrastructure_agent line 8) had an error: RuntimeError: The NewRelic key is required.
[2018-05-10T19:52:34+00:00] FATAL: Chef::Exceptions::ChildConvergeError: Chef run process exited unsuccessfully (exit code 1)

即使使用以下行而不是数据包:

node.default_unless['newrelic']['license'] = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

我们已经为这个命令尝试了很多替代方法,但它并不适用。

提前致谢。

代码护林员

相关代码是否应该有效,但您可以尝试:

node.override['newrelic']['application_monitoring']['license'] = 'asdf'

本文收集自互联网,转载请注明来源。

如有侵权,请联系 [email protected] 删除。

编辑于
0

我来说两句

0 条评论
登录 后参与评论

相关文章

在资源'yum_package [newrelic-repo]'上执行操作`install`时出错

Doctrine\DBAL\DBALException“使用参数 [...] 执行 '...' 时发生异常警告:发送 QUERY 数据包时出错。PID=

在“ SCAPY”中使用“ SNIFF”嗅探数据包时出错(Python)

XMPP MessageEventManager发送数据包时出错?

发送QUERY数据包时出错。PID = 9565

通过TCP / IP读取数据包时出错

在 LocalExecutor 上使用 MySql5.7 时 Airflow2 非常慢 - 读取通信数据包时出错

在资源包上执行操作安装时出错[nginx]

对资源“ yum_package [g ++]”执行操作“安装”时出错

尝试使用TLS'LDAP结果代码201“ ErrorNetwork”:无效的数据包格式“连接到LDAP时出错

使用大数据包时性能下降

无法使用 omnibus 安装 gitlab:在资源“bash[migrate gitlab-rails database]”上执行操作“run”时出错

MARIADB-发送QUERY数据包时出错(不是max_allowed_packet)

当大量数据包时,传入数据包下降

“执行此操作时出错”

使用C#执行SSIS包时出错

在资源“目录[C:/ topdir / subdir]”上执行操作“创建”时出错

如何使用Scapy PcapWriter对数据包强制执行错误的校验和?

与db的连接3中止:'default_schema'用户:'root'主机:'XXXX'(读取通信数据包时出错)

警告:mysql_select_db():读取 INIT_DB 的 OK 数据包时出错。PID=8808

使用C ++提取数据包信息

如何使用被scapy嗅到的数据包

使用Linux :: TunTap读取数据包

使用python监视传出数据包

使用 Scapy 过滤 HTTP 数据包

使用 Fluentd 转发数据包

使用NFQUEUE发送排队的数据包?

使用libpcap的无线数据包注入

使用Spark解析NiFi数据包