跳转到主内容

由于 NoMethodError ,收集 StorageGRID 日志需要很长时间

Views:
6
Visibility:
Public
Votes:
0
Category:
storagegrid
Specialty:
sgrid
Last Updated:

适用于

StorageGRID 11.3

问题

  • 收集 StorageGRID 日志需要很长时间。
  • 生成 lumberjack.log 的显示 NoMethodError

 INFO -- : Processing #<struct CollectorParams::Files src="/var/local/log/mysql.err*", dest="mysql/", ..
 INFO -- : Made collector Lumberjack::Collectors::FileCollector
ERROR -- : Collector Lumberjack::Collectors::FileCollector encountered error while collecting parameters #<Lumberjack::Collectors::FileCollector:0x0055a5577370d8 @src="/var/local/log/mysql.err*", ..

NoMethodError
undefined method `>=' for nil:NilClass
/usr/local/lib/site_ruby/bycast/lumberjack/log_reader/log_reader.rb:806:in `yield_lines_in_range'
/usr/local/lib/site_ruby/bycast/lumberjack/log_reader/log_reader.rb:737:in `block in each_line_in_range'
/usr/local/lib/site_ruby/bycast/lumberjack/log_reader/log_reader.rb:735:in `open'
/usr/local/lib/site_ruby/bycast/lumberjack/log_reader/log_reader.rb:735:in `each_line_in_range'
/usr/local/lib/site_ruby/bycast/lumberjack/log_reader/log_reader.rb:710:in `copy_range'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:147:in `block (2 levels) in collect_range'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:146:in `open'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:146:in `block in collect_range'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:129:in `each'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:129:in `collect_range'
/usr/local/lib/site_ruby/bycast/lumberjack/collectors/file_collector.rb:70:in `collect'
/usr/local/lib/site_ruby/bycast/lumberjack/collection_logger.rb:29:in `do_collection'
/usr/local/sbin/lumberjack.rb:64:in `block in main'
/usr/local/sbin/lumberjack.rb:63:in `each'
/usr/local/sbin/lumberjack.rb:63:in `main'
/usr/local/sbin/lumberjack.rb:98:in `<main>'

 

  • 大文件 mysql.err.*.gz 位于 /var/local/log/下。

 

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

Scan to view the article on your device