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

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

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

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.
Scan to view the article on your device