Skip to main content
NetApp Knowledge Base

Gathering StorageGRID log takes long time due to NoMethodError

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

Applies to

StorageGRID 11.3

Issue

  • Gathering StorageGRID log takes long time.
  • Generated lumberjack.log shows 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>'

 

  • The large file mysql.err.*.gz exists under /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.