Hi all! After installing and configuring puppet-dashboard-1.2.1-0.1rc1.el6.noarch.rpm following the installation instruction given in the "Pro Puppet" book, everything seems fine. (No errors during installation and configuration.) However Dashboard only shows me that there are ''x pending tasks'' with ''x'' constantly increasing. However no reports are shown. After some googling I know there was a bug covering this issue for an older Dashboard version which seems to be resolved now. But it seems I''m having this problem again. The log shows entries like this one: 218 Processing ReportsController#upload (for 127.0.0.1 at 2011-09-12 17:40:21) [POST] 219 Parameters: {"report"=>"[FILTERED]", "action"=>"upload", "controller"=>"reports"} 220 Completed in 7ms (View: 0, DB: 2) | 200 OK [http://localhost/reports/upload] Seems OK to me. Am I missing something? Thanks Bernd -- 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.
On Sep 12, 2011, at 9:48 AM, Bernd Adamowicz wrote:> Hi all! > > After installing and configuring puppet-dashboard-1.2.1-0.1rc1.el6.noarch.rpm following the installation instruction given in the "Pro Puppet" book, everything seems fine. (No errors during installation and configuration.) However Dashboard only shows me that there are ''x pending tasks'' with ''x'' constantly increasing. However no reports are shown. > > After some googling I know there was a bug covering this issue for an older Dashboard version which seems to be resolved now. But it seems I''m having this problem again. > > The log shows entries like this one: > 218 Processing ReportsController#upload (for 127.0.0.1 at 2011-09-12 17:40:21) [POST] > 219 Parameters: {"report"=>"[FILTERED]", "action"=>"upload", "controller"=>"reports"} > 220 Completed in 7ms (View: 0, DB: 2) | 200 OK [http://localhost/reports/upload] > > Seems OK to me. > > Am I missing something? > > Thanks > Bernd---- I would presume that is because you didn''t start a ''worker'' to process the reports. cd /var/www/puppet-dashboard (or wherever your base dashboard installation is located) # rake --tasks | grep jobs rake jobs:clear # Clear the delayed_job queue. rake jobs:work # Start a delayed_job worker. I believe the instructions on the web site sufficiently explain this but about every hour, I run a chron that essentially does.. #!/bin/bash # # Starts the puppet-dashboard worker # cd /var/www/puppet-dashboard # if ps aux | grep -v grep | grep "jobs:work" then echo "Dashboard Worker already running" else /usr/local/bin/rake jobs:work RAILS_ENV="production" & fi /usr/local/bin/rake RAILS_ENV=production reports:prune upto=1 unit=mon YMMV Craig -- 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.
There is a puppet-dashboard-workers init script that will run a daemon for you in the background to do this. -- 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.
On Sep 12, 2011, at 11:42 AM, Michael Stahnke wrote:> There is a puppet-dashboard-workers init script that will run a daemon > for you in the background to do this.---- I presume you are referring to my script and yes, I am aware that there is a script to run the daemon. My cron script also executes the same init but my script makes sure every hour that it is still running and if not, start it. -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.white@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- 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.
Yes, I was simply missing the worker process. Thanks, Craig and Michael!> -----Ursprüngliche Nachricht----- > Von: puppet-users@googlegroups.com [mailto:puppet- > users@googlegroups.com] Im Auftrag von Craig White > Gesendet: Montag, 12. September 2011 22:00 > An: puppet-users@googlegroups.com > Betreff: Re: [Puppet Users] Dashboard - Pending Tasks > > > On Sep 12, 2011, at 11:42 AM, Michael Stahnke wrote: > > > There is a puppet-dashboard-workers init script that will run a > daemon > > for you in the background to do this. > ---- > I presume you are referring to my script and yes, I am aware that there > is a script to run the daemon. My cron script also executes the same > init but my script makes sure every hour that it is still running and > if not, start it. > > -- > Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > craig.white@ttiltd.com > 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > www.ttiassessments.com > > Need help communicating between generations at work to achieve your > desired success? Let us help! > > -- > 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.