Galed Friedmann
2011-Nov-13 12:45 UTC
[Puppet Users] Dashboard not working (406 Not Acceptable)
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
reporturl = http://localhost:3000/reports/upload
Thanks!
--
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-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Galed Friedmann
2011-Nov-21 13:13 UTC
Re: [Puppet Users] Dashboard not working (406 Not Acceptable)
Anybody? Any ideas? Thanks again On Sun, Nov 13, 2011 at 2:45 PM, Galed Friedmann <galed.friedmann@onavo.com>wrote:> 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 > reporturl = http://localhost:3000/reports/upload > > Thanks! > > -- > 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-users@googlegroups.com. > To unsubscribe from this group, send email to > puppet-users+unsubscribe@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. >-- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Bernd Adamowicz
2011-Nov-21 13:51 UTC
AW: [Puppet Users] Dashboard not working (406 Not Acceptable)
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
Von: puppet-users@googlegroups.com [mailto:puppet-users@googlegroups.com] Im
Auftrag von Galed Friedmann
Gesendet: Montag, 21. November 2011 14:13
An: puppet-users@googlegroups.com
Betreff: Re: [Puppet Users] Dashboard not working (406 Not Acceptable)
Anybody? Any ideas?
Thanks again
On Sun, Nov 13, 2011 at 2:45 PM, Galed Friedmann
<galed.friedmann@onavo.com> wrote:
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
reporturl = http://localhost:3000/reports/upload
Thanks!
--
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-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
James Tan
2012-Jun-21 13:04 UTC
Re: [Puppet Users] Dashboard not working (406 Not Acceptable)
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. On Monday, November 21, 2011 2:13:27 PM UTC+1, Galed Friedmann wrote:> > Anybody? Any ideas? > > Thanks again > > On Sun, Nov 13, 2011 at 2:45 PM, Galed Friedmann < > galed.friedmann@onavo.com> wrote: > >> 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 >> reporturl = http://localhost:3000/reports/upload >> >> Thanks! >> >> -- >> 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-users@googlegroups.com. >> To unsubscribe from this group, send email to >> puppet-users+unsubscribe@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> > >-- 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/-/EG58eV8AwFEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Will Turnage
2013-Sep-17 19:26 UTC
Re: [Puppet Users] Dashboard not working (406 Not Acceptable)
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. > > On Monday, November 21, 2011 2:13:27 PM UTC+1, Galed Friedmann wrote: >> >> Anybody? Any ideas? >> >> Thanks again >> >> On Sun, Nov 13, 2011 at 2:45 PM, Galed Friedmann <galed.f...@onavo.com<javascript:> >> > wrote: >> >>> 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 >>> reporturl = http://localhost:3000/reports/upload >>> >>> Thanks! >>> >>> -- >>> 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<javascript:> >>> . >>> To unsubscribe from this group, send email to >>> puppet-users...@googlegroups.com <javascript:>. >>> For more options, visit this group at >>> http://groups.google.com/group/puppet-users?hl=en. >>> >> >>-- 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+unsubscribe@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users. For more options, visit https://groups.google.com/groups/opt_out.