Answer the question
In order to leave comments, you need to log in
After restarting the server, no reports are generated. Where to look for a problem?
Hello. There is a rail application on a production server. Reports are no longer generated after a reboot. The report is generated using the prawn gem. It gives an error in the logs:
Prawn::Errors::CannotFit (Prawn::Errors::CannotFit):
app/models/prawn/report_helper.rb:417:in `block (2 levels) in add_number_to_line'
app/models/prawn/report_helper.rb:35:in `with_fill'
app/models/prawn/report_helper.rb:416:in `block in add_number_to_line'
app/models/prawn/report_helper.rb:412:in `add_number_to_line'
app/models/prawn/report_helper.rb:383:in `block (4 levels) in profile_graph_360'
app/models/prawn/report_helper.rb:339:in `each'
app/models/prawn/report_helper.rb:339:in `each_with_index'
app/models/prawn/report_helper.rb:339:in `block (3 levels) in profile_graph_360'
app/models/prawn/report_helper.rb:306:in `block (2 levels) in profile_graph_360'
app/models/prawn/report_helper.rb:291:in `block in profile_graph_360'
app/models/prawn/report_helper.rb:271:in `profile_graph_360'
Answer the question
In order to leave comments, you need to log in
Well, that doesn't happen. Slulte everything to yourself and locally check. Redeploy to production. If it doesn't work, this is a great way to learn git bisect . If everything works, then on the server try
bundle update prawn
touch tmp/restart.txt
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question