开源IDS系列--snorby 2.6.2 undefined method `run_daily_report' for Event:Class (NoMethodError)
2015-11-10 14:59
477 查看
rails runner "Event.run_daily_report"测试邮件配置undefined method `run_daily_report' for Event:Class (NoMethodError)
原因是:snorby2.6.1开始移除了DailyCacheJob,因此需要更换测试方式
新的测试方式:rails r ReportMailer.daily_report.deliver
源自:https://github.com/Snorby/snorby/issues/73
错误及原因解释:
[root@IPS script]# rails runner "Event.run_daily_report"
Jammit Warning: Asset compression disabled -- Java unavailable.
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `eval': undefined method `run_daily_report' for Event:Class (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dm-core-1.2.0/lib/dm-core/model/relationship.rb:372:in `method_missing'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dm-core-1.2.0/lib/dm-core/model/property.rb:249:in `method_missing'
from (eval):1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands.rb:63:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands.rb:63:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Hey Doug,
The DailyCacheJob was remove in 2.6.1. Since we added the ability for user to change their timezone we had to remove the cache roll up that depended on day start/end (the daily cache job). The sensor cache job however is done every 10 mins so it;s easy to build a proper cache for the day based off of that data.
- Dustin
Dustin Willis Webber
来源: <https://groups.google.com/forum/#!topic/snorby/74UoEzER3hA>
原因是:snorby2.6.1开始移除了DailyCacheJob,因此需要更换测试方式
新的测试方式:rails r ReportMailer.daily_report.deliver
源自:https://github.com/Snorby/snorby/issues/73
错误及原因解释:
[root@IPS script]# rails runner "Event.run_daily_report"
Jammit Warning: Asset compression disabled -- Java unavailable.
/usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `eval': undefined method `run_daily_report' for Event:Class (NoMethodError)
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dm-core-1.2.0/lib/dm-core/model/relationship.rb:372:in `method_missing'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/dm-core-1.2.0/lib/dm-core/model/property.rb:249:in `method_missing'
from (eval):1:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `eval'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands/runner.rb:49:in `<top (required)>'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands.rb:63:in `require'
from /usr/local/rvm/gems/ruby-1.9.3-p551/gems/railties-3.1.12/lib/rails/commands.rb:63:in `<top (required)>'
from script/rails:6:in `require'
from script/rails:6:in `<main>'
Hey Doug,
The DailyCacheJob was remove in 2.6.1. Since we added the ability for user to change their timezone we had to remove the cache roll up that depended on day start/end (the daily cache job). The sensor cache job however is done every 10 mins so it;s easy to build a proper cache for the day based off of that data.
- Dustin
Dustin Willis Webber
来源: <https://groups.google.com/forum/#!topic/snorby/74UoEzER3hA>
相关文章推荐
- 关于 音频播放器 MediaRecorder(10402): start failed: -22的问题
- RAID 5
- LightOJ 1038 - Race to 1 Again(dp)
- 【HDU】2966 In case of failure【KD树】
- remount of system failed: Permission denied
- AIX5.3以后的版本可以动态缩小文件系统的空间
- Batch Processing Details
- AIX系统设置tffp server
- naive-bayesian-朴素贝叶斯
- 在ubuntu上编译toolchain时出错./stdio.h:477: error: 'gets' undeclared here (not in a function)
- 人工智能
- RAID详解[RAID0/RAID1/RAID10/RAID5]
- 有关custom container of view controllers
- ELK错误1_Kafka->Logstash->Elasticsearch过程,Elasticsearch报grokparsefailure错误
- svn 异常 failed–previous interrupted
- Android资源文件res的使用详解(strings,layout,drawable,arrays等)from http://www.jcodecraeer.com/a/anzhuokaifa/an
- usaco.section1.3.Barn Repair
- Last Daily Scrum (2015/11/9)
- LightOJ - 1417 Forwarding Emails(强连通+dfs)
- 如何写好 C main 函数