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

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

Views:
10
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/がの下に存在します。

 

CUSTOMER EXCLUSIVE CONTENT

Registered NetApp customers get unlimited access to our dynamic Knowledge Base.

New authoritative content is published and updated each day by our team of experts.

Current Customer or Partner?

Sign In for unlimited access

New to NetApp?

Learn more about our award-winning Support