2017-03-27 15 views
-1

同じPuppetマスターサーバーでpuppetDBを設定しようとしています。私は人形の文書化に続き、データベースをインストールし、人形をデータベースを使用するように設定しました。PuppetDBの設定が機能しない

puppet agent --testコマンドを実行すると、以下のエラーメッセージが表示されます。私はポート8081で実行中のすべてのプロセスを見ていない

、私はどのように私はこのエラーを解決することができますポートに8140.

を実行している人形のJavaプロセスを参照してください?

Warning: Unable to fetch my node definition, but the agent run will continue: 
Warning: Error 500 on SERVER: Server Error: Could not retrieve facts for webserver: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/webserver/facts' on at least 1 of the following 'server_urls': https://puppetdb:8081 
Info: Retrieving pluginfacts 
Info: Retrieving plugin 
Warning: Error connecting to puppetdb on 8081 at route /pdb/query/v4/nodes/webserver/facts, error message received was 'Connection refused - connect(2) for "puppetdb" port 8081'. Failing over to the next PuppetDB server_url in the 'server_urls' list 
Error: Cached facts for webserver failed: Failed to find facts from PuppetDB at puppet:8140: Failed to execute '/pdb/query/v4/nodes/webserver/facts' on at least 1 of the following 'server_urls': https://puppetdb:8081 
Info: Loading facts 
Info: Caching facts for webserver 
Warning: Error connecting to puppetdb on 8081 at route /pdb/cmd/v1?checksum=039e22c7bf98e9cbf2f08169047d288c9b451c73&version=5&certname=webserver&command=replace_facts, error message received was 'Connection refused - connect(2) for "puppetdb" port 8081'. Failing over to the next PuppetDB server_url in the 'server_urls' list 
Error: Failed to execute '/pdb/cmd/v1?checksum=039e22c7bf98e9cbf2f08169047d288c9b451c73&version=5&certname=webserver&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb:8081 
Error: Could not retrieve local facts: Failed to execute '/pdb/cmd/v1?checksum=039e22c7bf98e9cbf2f08169047d288c9b451c73&version=5&certname=webserver&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb:8081 
Error: Failed to apply catalog: Could not retrieve local facts: Failed to execute '/pdb/cmd/v1?checksum=039e22c7bf98e9cbf2f08169047d288c9b451c73&version=5&certname=webserver&command=replace_facts' on at least 1 of the following 'server_urls': https://puppetdb:8081 

答えて

0

7.あなたが/etc/puppetlabs/puppet/ssl/certs/<certnameof your puppetserver.FQDN>と一致している/etc/puppetlabs/puppetdb/sslに保存されているSSL証明書を確認ホープのCentOSでpuppetdbサービスの出力です。

これは

puppetdb ssl-setup 

PEM files in /etc/puppetlabs/puppetdb/ssl already exists, checking integrity. 
Setting ssl-host in /etc/puppetlabs/puppetdb/conf.d/jetty.ini already correct. 
Setting ssl-port in /etc/puppetlabs/puppetdb/conf.d/jetty.ini already correct. 
Setting ssl-key in /etc/puppetlabs/puppetdb/conf.d/jetty.ini already correct. 
Setting ssl-cert in /etc/puppetlabs/puppetdb/conf.d/jetty.ini already correct. 

puppetdb SSL-セットアップ

サンプルエントリによって検証することができますが、同じ問題を持っていたし、除去することにより、整流いる.Iさらに問題がある場合、私に教えてください/etc/puppetlabs/puppetdb/sslディレクトリに移動し、 "puppetdb ssl-setup"コマンドを再実行します。

0

何らかの理由puppetdbプロセスは、どのプロセスがポート8081上で動作していない理由ですダウンしたために私はその後、agent -testコマンドは、Webサーバへの接続に述べ、puppetdbプロセスを再起動しました。ここで

# systemctl status puppetdb 
● puppetdb.service - puppetdb Service 
    Loaded: loaded (/usr/lib/systemd/system/puppetdb.service; enabled; vendor preset: disabled) 
    Active: active (running) since Tue 2017-03-28 18:26:58 EDT; 1h 20min ago 
Main PID: 5503 (java) 
    CGroup: /system.slice/puppetdb.service 
      └─5503 /usr/bin/java -Xmx192m -Djava.security.egd=/dev/urandom -XX:OnOutOfMemoryError=kill -9 %p -cp /opt/puppetlabs/...