One day I got a lot of messages on puppet master (runs with 
apache+mod_passenger) I see a lot of error messages like this:

   Jul 19 19:35:26 foreman01 puppet-master[4095]: Report processor failed: 
Could not send report to Foreman at 
https://foreman01.example.com/reports/create?format=yml: execution expired

but I got almost no clue how to begin, after looking at httpd configs, I 
followed the rails convention (newbie to rails)

 1, view file /usr/share/foreman/config/routes.rb, and find the line like:
      ...
      post "reports/create"
      ...

2, view the file /usr/share/foreman/app/controllers/reports_controller.rb 
and find the function 'create':
      ...
      def create
         Taxonomy.no_taxonomy_scope do
             if Report.import params.delete("report") || request.body
               render :text => "Imported report", :status => 200 and return
             else
               render :text => "Failed to import report", :status => 500
             end
         end
         rescue => e
            render :text => e.to_s, :status => 500
      end
      ...

Then I got stuck here, it doesn't seem much fruitful, how can I figure it 
out that this function send out 
error message 'exectution expired'? 

Please shed a light and many thanks.

Thanks.

-- 
You received this message because you are subscribed to the Google Groups 
"Foreman users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/foreman-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to