SUSE Support

Here When You Need Us

SUSEConnect registration failed when LANG=pt_BR.UTF-8

This document (7016241) is provided subject to the disclaimer at the end of this document.

Environment

SUSE Linux Enterprise Server 12

Situation

When registering a SLES 12 server installed in pt_BR language, you will receive an error similar to that:

# SUSEConnect -r <reg-code> -e <email> --debug SUSEConnect error: NoMethodError: undefined method `strip' for nil:NilClass /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:52:in `block in output' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:50:in `each' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:50:in `reduce' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:50:in `output' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:16:in `cpus' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/x86.rb:7:in `hwinfo' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/hwinfo/base.rb:12:in `info' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/system.rb:14:in `hwinfo' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/api.rb:57:in `update_system' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/client.rb:64:in `update_system' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/client.rb:121:in `announce_or_update' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/client.rb:38:in `register!' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/lib/suse/connect/cli.rb:42:in `execute!' /usr/lib64/ruby/gems/2.1.0/gems/suse-connect-0.2.14/bin/SUSEConnect:10:in `<top (required)>' /usr/sbin/SUSEConnect:23:in `load' /usr/sbin/SUSEConnect:23:in `<main>'

Resolution

As a temporary solution servers affected can use the LC_ALL variable set to en_US.UTF-8:

# export LC_ALL=en_US.UTF-8

That will switch locale to en_US.UTF-8 for that specific command only and registration will be possible.

Then register your server again using:

#
SUSEConnect -r <reg-code> -e <email>

Cause


Additional Information


Disclaimer

This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.

  • Document ID:7016241
  • Creation Date: 26-Feb-2015
  • Modified Date:03-Mar-2020
    • SUSE Linux Enterprise Server

< Back to Support Search

For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com

tick icon

SUSE Support Forums

Get your questions answered by experienced Sys Ops or interact with other SUSE community experts.

tick icon

Support Resources

Learn how to get the most from the technical support you receive with your SUSE Subscription, Premium Support, Academic Program, or Partner Program.

tick icon

Open an Incident

Open an incident with SUSE Technical Support, manage your subscriptions, download patches, or manage user access.