简体   繁体   English

运行 puppet agent -t 时出现以下错误?

[英]Getting this below error while running puppet agent -t?

I am getting this error every time I ran puppet agent -t on the agent.每次我在代理上运行 puppet agent -t 时都会收到此错误。

Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/ipaddresses.rb: cannot load such file -- facter/util/ip

Can anyone help me in resolving this error?谁能帮我解决这个错误?

I have tried various solutions but nothing seems to be working.我尝试了各种解决方案,但似乎没有任何效果。 Like installing gems package etc. Puppet version I am ones 5.5.2像安装 gems 包等。木偶版本我是 5.5.2

Are you calling/storing the file from the correct directory?您是否从正确的目录调用/存储文件?

Error: Facter: error while resolving custom facts in /opt/puppetlabs/puppet/cache/lib/facter/ipaddresses.rb:错误:Facter:解析/opt/puppetlabs/puppet/cache/lib/facter/ipaddresses.rb 中的自定义事实时出错:

The file ipaddresses.rb seems to be in folder 'facter', however, in the error you have a path facter/util/ip.文件 ipaddresses.rb 似乎位于文件夹“facter”中,但是,在错误中,您有一个路径 facter/util/ip。

'Util' folder is within the 'Facter' folder, so you might have an incorrect path hence why the agent run is failing. “Util”文件夹位于“Facter”文件夹中,因此您的路径可能不正确,因此代理运行失败。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM