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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.