Problem in PuppetDB

55 views
Skip to first unread message

Alexandre Monteiro

unread,
Jul 20, 2017, 11:58:29 AM7/20/17
to Puppet Users
Hi folks,

I'm installing PuppetDB on my desktop. All configuration of puppetserver, postgre is OK .. but occurring return 302 in my curl test. I read many forums and it still did not work ..
Here is the error:

* About to connect() to localhost port 8080 (#0)
*   Trying 127.0.0.1...
* Connected to localhost (127.0.0.1) port 8080 (#0)
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: localhost:8080
> Accept: */*
>
< HTTP/1.1 302 Found
< Date: Thu, 20 Jul 2017 15:27:18 GMT
< Location: /pdb/dashboard/index.html
< Content-Length: 0
< Server: Jetty(9.2.z-SNAPSHOT)
<
* Connection #0 to host localhost left intact

Has anyone seen this yet?

Tks!!

Wyatt Alt

unread,
Jul 20, 2017, 2:13:38 PM7/20/17
to puppet...@googlegroups.com, Alexandre Monteiro
That's the behavior I'd expect -- I believe the issue is you're just not
hitting an endpoint. If you're trying to verify that the service is up
and running, the way we typically do that is with

curl http://localhost:8080/pdb/meta/v1/version

which should return a blob with a version number.

Wyatt
> --
> You received this message because you are subscribed to the Google
> Groups "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to puppet-users...@googlegroups.com
> <mailto:puppet-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/809eaf77-52b8-4451-be17-5556b8416943%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/809eaf77-52b8-4451-be17-5556b8416943%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit https://groups.google.com/d/optout.

Alexandre Monteiro

unread,
Jul 20, 2017, 2:29:51 PM7/20/17
to Puppet Users, alexan...@gmail.com
Hi Wyatt,

Returned 200 with the version: 4.4.0

* About to connect() to master.dexter.com.br port 8080 (#0)
*   Trying 10.10.0.117...
* Connected to master.dexter.com.br (10.10.0.117) port 8080 (#0)
> GET /pdb/meta/v1/version HTTP/1.1
> User-Agent: curl/7.29.0
> Accept: */*
>
< HTTP/1.1 200 OK
< Date: Thu, 20 Jul 2017 18:21:07 GMT
< Content-Type: application/json; charset=utf-8
< Content-Length: 25
< Server: Jetty(9.2.z-SNAPSHOT)
<
{
  "version" : "4.4.0"
* Connection #0 to host master.dexter.com.br left intact


In the log /var/log/puppetlabs/puppetdb/puppetdb.log:

We are unable to create the recommended pg_trgm indexes due to
the extension not being installed correctly.  Run the command:

    CREATE EXTENSION pg_trgm;

as the database super user on the PuppetDB database to correct
this, then restart PuppetDB.

Can this impact the viewing of my PuppetDB?

Wyatt Alt

unread,
Jul 20, 2017, 2:41:30 PM7/20/17
to puppet...@googlegroups.com

On 07/20/2017 11:29 AM, Alexandre Monteiro wrote:


We are unable to create the recommended pg_trgm indexes due to
the extension not being installed correctly.  Run the command:

    CREATE EXTENSION pg_trgm;

as the database super user on the PuppetDB database to correct
this, then restart PuppetDB.

Can this impact the viewing of my PuppetDB?
Sure -- creating the extension and restarting PuppetDB will cause an index to be created that will make certain types of regular expression queries against facts more performant. I recommend creating it, but it isn't required for the service to operate.

Wyatt

To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/70798eb8-e204-483d-8f3d-ce24c6e4d082%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages