以下是当我尝试在Puppet Agent上运行命令puppet agent -t时得到的错误。当PuppetServer试图访问PuppetDb的V3而不是V4时,就会发生这种情况,尽管V3已经取消,理想情况下不应该调用它。不确定如何修复此问题。
所有配置都已就绪,定义如下:http://jurjenbokma.com/ApprenticesNotes/ar27s05.xhtml
Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Failed to submit 'replace facts' command for puppetmaster.test.org to PuppetDB at puppetmaster.test.org:8081: [404 ] <html><head><meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/><title>Error 404 </title></head><body><h2>HTTP ERROR: 404</h2><p>Problem accessing /v3/commands. Reason:<pre> Not Found</pre></p><hr /><i><small>Powered by Jetty://</small></i></body></html>
Warning: Not using cache on failed catalog
Error: Could not retrieve catalog; skipping run发布于 2017-06-08 20:31:07
我遵循了一个旧版本的教程,而对于最新版本(Puppet v4.x),我们需要有不同的模块。在PuppetMaster和PuppetDb之间有一个接口,它负责对PuppetDb进行API调用,在它要求安装的链接中
sudo puppet resource packagepuppetdb-terminusensure=latest,使用PuppetDb的/v3接口,最新版本需要安装
sudo puppet resource packagepuppetdb-terminiensure=latest使用PuppetDb的/v4接口...
问题就解决了!
https://stackoverflow.com/questions/44408656
复制相似问题