logicminds / rubyipmi

Command line wrapper for ipmitool and freeipmi
GNU Lesser General Public License v2.1
35 stars 32 forks source link

ArgumentError: invalid byte sequence in UTF-8 for IBM MMI x3650 M4 #38

Closed buddwm closed 7 years ago

buddwm commented 7 years ago

When I attempt to do a fru listing of an IBM x3650 M4, I get the following error:

irb(main):004:0> conn.fru.list
ArgumentError: invalid byte sequence in UTF-8
    from .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rubyipmi-0.10.0/lib/rubyipmi/freeipmi/commands/fru.rb:82:in `block in parse'
    from .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rubyipmi-0.10.0/lib/rubyipmi/freeipmi/commands/fru.rb:81:in `each'
    from .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rubyipmi-0.10.0/lib/rubyipmi/freeipmi/commands/fru.rb:81:in `parse'
    from .rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/rubyipmi-0.10.0/lib/rubyipmi/freeipmi/commands/fru.rb:53:in `list'

I'm using the following to connect to the system:

conn = Rubyipmi.connect("username", "password", "ip address", "freeipmi", {:driver => "lan20"} )

Oddly enough, if I run it again after the first attempt, it will return the expected values.

logicminds commented 7 years ago

what version of freeipmi are you using?

Thanks for reporting.

buddwm commented 7 years ago

Currently using 1.4.11 in Ubuntu 16.04.

buddwm commented 7 years ago

I just realized that Ubuntu's package is a much older version. If I manually install the latest version, 1.5.5, I don't see the issue. May cause some confusion for those that use Ubuntu though.