簡體   English   中英

木偶:無法從遠程服務器檢索目錄

[英]Puppet: could not retrieve catalog from remote server

從主機上運行sudo puppet agent -t :host.internaltest.com

err: Could not retrieve catalog from remote server: Error 400 on SERVER: Another local or imported resource exists with the type and title Host[host.internaltest.com] on node host.internaltest.com

這台機器的ssl證書被弄亂了,所以我將其從主服務器上清除掉,然后使用自動簽名(我知道很糟糕!),我運行了sudo puppet agent -t ,它重新生成了ssl證書,但也拋出了此錯誤。 如果您需要更多信息,請告訴我,我並沒有過多地介紹人偶。

puppetmaster最有可能在內存中包含此證書。 您需要在客戶端和主服務器上清除證書

#On client machine do this assuming puppet libdir = /var/lib/puppet

rm -rf /var/lib/puppet/ssl/*/*.pem

#On the puppet-master

puppet cert clean host.internaltest.com

# Restart puppet-master

/sbin/service puppetmasterd restart

# If you are using puppet-master behind passenger, you may need to restart httpd

/sbin/service httpd restart

# then run puppet agent on the client to regenerate the cert

我發現出現此錯誤的另一個原因,這些答案無濟於事。 如果使用stunnel並全局設置了http_proxy,則將其重定向到錯誤的端點時將發生此錯誤。 對我來說這是一個狂野的追逐者。 並認為我應該傳播知識(這次不是selinux)!!

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM