Have had no luck with HTTP same general error:
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing
request to {}->http://127.0.0.1:8080: Software caused connection abort:
recv failed
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: Retrying request to {}->http://127.0.0.1:8080
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: I/O exception (org.apache.http.NoHttpResponseException) caught when
processing request to {}->http://127.0.0.1:8080: The target server failed
to respond
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: Retrying request to {}->http://127.0.0.1:8080
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: I/O exception (java.net.SocketException) caught when processing
request to {}->http://127.0.0.1:8080: Connection reset
Jul 15, 2014 1:59:01 PM org.apache.http.impl.client.DefaultHttpClient
tryExecute
INFO: Retrying request to {}->http://127.0.0.1:8080
org.apache.http.NoHttpResponseException: 127.0.0.1:8080 failed to respond
Just tried adding the recommended flag with no improvement.
key and cert information is setup like so:
BasicAPIPreferences bap = new BasicAPIPreferences();
bap.setPrivateKeyPEM(new
File("C:\\Users\\test_user\\ssl_stuff\\private_keys\\server.pem"));
bap.setCertPEM(new
File("C:\\Users\\test_user\\ssl_stuff\\certs\\server.pem"));
bap.setCaCertPEM(new
File("C:\\Users\\test_user\\ssl_stuff\\ca\\ca.pem"));
bap.setServiceHostname("127.0.0.1");
bap.setAllowAllHosts(true);
bap.setServicePort(8081);
PuppetDBClient client = PuppetDBClientFactory.newClient(bap);
Should also mention that it is connecting to a puppet master inside of a
virtualbox VM for testing using vagrant. All required ports should be
forwarded.
On Tuesday, July 15, 2014 9:36:52 AM UTC-4, Thomas Hallgren wrote:
>
> The current version of puppetdb-javaclient is designed to work with
> puppetdb 1.5. A couple of questions:
>
> 1. Have you tried using http instead of https and port 8080? Being
> able to use plain http was one of the features that were added when we
> made
> it compatible with 1.5.
> 2. If you're using Java 1.7 or later, can you try starting the JVM
> with -Djsse.enableSNIExtension=false ? That might help you get passed
> problems with servers that aren't completely honest about their hostnames.
> 3. Since you're using https (and hence ssl) it will be required that
> certificates and private key has been configured correctly. Are you using
> the same credentials setup in some other configuration that works?
>
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/puppet-dev/e4beb49f-3e28-4f8d-a489-9f97777c97a8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.