メインコンテンツまでスキップ

NoMethodError が原因で StorageGRID ログの収集に時間がかかります

Views:
11
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