Dashboard not working (406 Not Acceptable)

697 views
Skip to first unread message

Galed Friedmann

unread,
Nov 13, 2011, 7:45:27 AM11/13/11
to puppet...@googlegroups.com
Hi all,
I've created a replication of my puppet environment in order to set it up in a new location.
I've created an exact replication of my master server which is running the puppet master, dashboard server, and mysql.

Everything is working fine except for the dashboard. The master is configured to send reports to dashboard and indeed is sending them, but looking at production.log in dashboard I see this:

Processing ReportsController#upload (for 127.0.0.1 at 2011-11-13 12:43:26) [POST]
  Parameters: {"action"=>"upload", "controller"=>"reports"}
Completed in 1ms (View: 0, DB: 0) | 406 Not Acceptable [http://localhost/reports/upload]

For every attempt of the master to send a report.
This is a working configuration so I guess I missed something when I changed the setting of the new server, any idea what might be wrong here?

puppet master configuration:
[master]
storeconfigs = true
dbadapter = mysql
dbuser = ...
dbpassword = ...
dbserver = localhost
dbsocket = /var/run/mysqld/mysqld.sock

reports = store, http

Thanks!

Galed Friedmann

unread,
Nov 21, 2011, 8:13:27 AM11/21/11
to puppet...@googlegroups.com
Anybody? Any ideas? 

Thanks again

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/mGPKjqlxWY0J.
To post to this group, send email to puppet...@googlegroups.com.
To unsubscribe from this group, send email to puppet-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.

Bernd Adamowicz

unread,
Nov 21, 2011, 8:51:59 AM11/21/11
to puppet...@googlegroups.com
Just an idea: Seems, Puppet is using the URL http://localhost/reports/upload though you have specified 'reporturl = http://localhost:3000/reports/upload'. Is it possible that there is some command line argument overriding your puppet.conf?

However I don't use the 'reporturl' argument at all. This is my configuration:

41 [master]
42 user = puppet
43 group = puppet
44 reports = puppet_dashboard
45 storeconfigs = true
46 dbadapter = mysql
47 dbuser = puppet
48 dbpassword = xxx
49 dbserver = localhost
50 dbsocket = /var/lib/mysql/mysql.sock
51
52 [agent]
53 server = my.derver.net
54 environment=loc_b_build
55 debug = true
56 verbose = true
57 runintervall = 600
58 report = true

Bernd

Will Turnage

unread,
Sep 17, 2013, 3:26:10 PM9/17/13
to puppet...@googlegroups.com
I ran into the same issue, and this resolved it. Thanks!

On Thursday, June 21, 2012 8:04:13 AM UTC-5, James Tan wrote:
Old thread, but I ran into the same problem so figured I'll post my solution here. In my case, I added more verbose logging which pointed me to the missing "spool" directory. Running the following commands fixed it:

  mkdir -p /usr/share/puppet-dashboard/spool
  chown puppet-dashboard:puppet-dashboard spool

Regards,
James T.

Chad Matsalla

unread,
Mar 11, 2014, 6:02:56 PM3/11/14
to puppet...@googlegroups.com, galed.f...@onavo.com
I have this directory and it's writable. I'm still getting a 406. Was there anything else I could try? I'm not even sure the relevant parts of configuration to show. Let's see:
- I got the same error whether I was using the rails built-in server and now when I'm using apache/passenger
- reports = puppet_dashboard, store, http (fail)
- reports = store, http (fail)

Anyone?

Michael Eatherly

unread,
Jun 10, 2014, 10:00:27 PM6/10/14
to puppet...@googlegroups.com, galed.f...@onavo.com
Chad any answers yet? I'm having this problem as well. . . :/
Reply all
Reply to author
Forward
0 new messages