Uploaded image for project: 'RHEL Conversions'
  1. RHEL Conversions
  2. RHELC-1791

The non-ascii character is leading to convert2rhel failure.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Undefined Undefined
    • None
    • None
    • convert2rhel
    • None
    • Moderate
    • False
    • False
    • Hide

      None

      Show
      None
    • Testable
    • rhel-conversions
    • Red Hat Enterprise Linux

      What were you trying to do that didn't work?

      Convert2RHEL is failing with following error-

      2025-01-16T07:22:08+0000] DEBUG - Traceback (most recent call last): File "/usr/lib/python2.7/site-packages/convert2rhel/
      main.py
      ", line 135, in main_locked gather_system_info() File "/usr/lib/python2.7/site-packages/convert2rhel/
      main.py
      ", line 379, in gather_system_info systeminfo.system_info.resolve_system_info() File "/usr/lib/python2.7/site-packages/convert2rhel/
      systeminfo.py
      ", line 175, in resolve_system_info self.generate_rpm_va() File "/usr/lib/python2.7/site-packages/convert2rhel/
      systeminfo.py
      ", line 423, in generate_rpm_va utils.store_content_to_file(output_file, rpm_va) File "/usr/lib/python2.7/site-packages/convert2rhel/utils/__init__.py", line 321, in store_content_to_file handler.write(content) UnicodeEncodeError: 'ascii' codec can't encode characters in position 333057-333059: ordinal not in range(128)
      
      

      There there is a non-ascii character which was causing issue. Searching for characters in hexadecimal range 80-ff (which is 128 to 255 in decimal), we saw a bad filename

      Post removing the file or the package that provides the weird file the issue was resolved.

      What is the impact of this issue to you?

      The conversion from Cent OS to RHEL fails due to non ascii characters.

      Please provide the package NVR for which the bug is seen:

      convert2rhel-2.2.0-1.el7.noarch

      How reproducible is this bug?:

      Its possible to reproduce

      Steps to reproduce

      1.  Create a non-ascii file.
      2.  Try convert2rhel
      3.  See if you face the same error.

      Expected results

      Conversion from CentOS to RHEL should be possible even if non ascii characters are present.

      Actual results

      Conversion from CentOS to RHEL fails with non ascii characters are present.

              mbocek@redhat.com Michal Bocek
              rhn-support-shdeshmu Shrawani Deshmukh (Inactive)
              RHEL Conversions QE Team RHEL Conversions QE Team
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated: