-
Notifications
You must be signed in to change notification settings - Fork 14
Cron not installing exec runner by hand throws errors #19
Comments
Eric, sudo gem install prawn-format That should do the trick.
|
Hey Dustin,
Successfully installed prawn-format-0.2.3 When running rake whenever --update-crontab snorby --set environment=production produces no output nor install any crons Running ./runner -e production "Event.run_daily_report" throws the following /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48: /var/lib/gems/1.8/gems/prawn-format-0.2.3/lib/prawn/format.rb:21:in I'll throw up a howto for Ubuntu 9.10 once this gets sorted =) Cheers, |
Hey Dustin, Sorry been busy for a bit, but I did a clean install and the crons are still not being added, and when I click on convert an event to pdf it throws a 500 error
I think this might be related to "prawn" again I'm very new to ruby. |
@HavocStyles This is a strange error much like Ticket: 18. What version of prawn do you currently have installed also what distro are you using. |
Hmmm I'll take a look at #18 here is the system info
|
Hmmmm found something I think. I did a bit of googling and found a thread which they were talking about prawn environment/initializers, so I went looking for a prawn.rb file in the snorby dir.
So I see the ./vendor/gems/prawn-0.5.0.1 version but as you see above when I do a gem list --local we see prawn (0.7.2, 0.7.1) but from my 500 error we can see snorby trying to use 7.2 version, could be conflicts maybe? Or environment/initializer issue? Hope this helps, let me know if you need anything else. Cheers, |
@HavocStyles check my workaround in http://github.com/mephux/Snorby/issuesearch?state=open&q=pdf#issue/18/comment/179396 |
Link is broken. |
Ubuntu 9.10 server. Everything works great except for reports. Reports not being generated because the crons have not been setup. To try and get the crons installed I did the following
$ gem sources -a http://gems.github.com
$ gem install javan-whenever
$ rake whenever --update-crontab snorby --set environment=production
which produces no output nor adding the crons.
exec $ ./runner -e production "Event.run_daily_report" throws the following errors.
/var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48: /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require': no such file to load -- prawn/format (MissingSourceFile) from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require' from /root/Snorby/lib/pdf_for_email.rb:3 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require'from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require' from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:158:in
require'from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:265:in
require_or_load' from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:425:in
load_missing_constant'from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:80:in
const_missing' from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:92:in
const_missing'from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:437:in
load_missing_constant' from /var/lib/gems/1.8/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:96:in
const_missing'from /root/Snorby/app/models/event.rb:54:in
run_daily_report' from (eval):1 from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
eval'from /var/lib/gems/1.8/gems/rails-2.3.5/lib/commands/runner.rb:48
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
gem_original_require' from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in
require'from ./runner:3
Did I miss a step? I'm pretty new to ruby stuff so any help would be great.
Cheers,
Eric
The text was updated successfully, but these errors were encountered: