oink icon indicating copy to clipboard operation
oink copied to clipboard

invalid byte sequence

Open thepixelmonk opened this issue 13 years ago • 5 comments

[root@vps-626-1 thirsty]# bundle exec oink log ---- MEMORY THRESHOLD ---- THRESHOLD: 75 MB /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:20:in =~': invalid byte sequence in UTF-8 (ArgumentError) from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:20:inblock (2 levels) in print' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:16:in each_line' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:16:inblock in print' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:15:in each' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/reports/memory_usage_report.rb:15:inprint' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/lib/oink/cli.rb:68:in process' from /usr/lib/ruby/gems/1.9.1/gems/oink-0.9.3/bin/oink:4:in<top (required)>' from /usr/lib/ruby/gems/1.9.1/bin/oink:19:in load' from /usr/lib/ruby/gems/1.9.1/bin/oink:19:in

'

thepixelmonk avatar Oct 05 '11 22:10 thepixelmonk

I don't have a problem with ruby 1.9.3 but with 1.9.2 on ubuntu I can confirm this is a problem

mhenrixon avatar Jan 16 '12 20:01 mhenrixon

I'm guessing there's some characters in the log file that oink doesn't handle gracefully. Can you bisect the log file it's parsing to see if you can determine where it's choking?

noahd1 avatar Jan 20 '12 04:01 noahd1

The log file was completely hmm fudged up so I just emptied it and configured the logging according to recommendation and it's fine now.

mhenrixon avatar Jan 20 '12 19:01 mhenrixon

i have russian characters in the log file, oink breaks in the same place

pavelz avatar Jun 23 '15 14:06 pavelz

Experiencing the same problem using Ruby 2.2.1p85 and Ubuntu 14.04. Did someone found a workaround for this?

softmonkeyjapan avatar Oct 20 '15 00:10 softmonkeyjapan