convert2rhel fails with python traceback error "OSError: [Errno 8] Exec format error".

Solution Verified - Updated -

Issue

  • convert2rhel fails with python traceback error.

    ERROR - (ERROR) REMOVE_SPECIAL_PACKAGES::UNEXPECTED_ERROR - Unhandled exception caught
    Description: Unhandled exception was caught: [Errno 8] Exec format error
    Please file a bug at https://issues.redhat.com/ to have this fixed or a specific error message added.
    Traceback: Traceback (most recent call last):
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/__init__.py", line 573, in run
     action.run()
      File "/usr/lib/python2.7/site-packages/convert2rhel/actions/pre_ponr_changes/handle_packages.py", line 127, in run
      backup_control.push(RestorablePackage(pkgs=pkghandler.get_pkg_nevras(all_pkgs), reposdir=backedup_reposdir))
      File "/usr/lib/python2.7/site-packages/convert2rhel/backup/__init__.py", line 80, in push
    restorable.enable()
      File "/usr/lib/python2.7/site-packages/convert2rhel/backup/packages.py", line 112, in enable
    reposdir=self.reposdir,
      File "/usr/lib/python2.7/site-packages/convert2rhel/utils/__init__.py", line 671, in download_pkg
    output, ret_code = run_cmd_in_pty(cmd, print_output=False)
      File "/usr/lib/python2.7/site-packages/convert2rhel/utils/__init__.py", line 415, in run_cmd_in_pty
    dimensions=(1, columns),
      File "/usr/lib/python2.7/site-packages/convert2rhel/utils/__init__.py", line 472, in __init__
    super(PexpectSpawnWithDimensions, self).__init__(*args, **kwargs)
      File "/usr/lib/python2.7/site-packages/pexpect/pty_spawn.py", line 198, in __init__
    self._spawn(command, args, preexec_fn, dimensions)
      File "/usr/lib/python2.7/site-packages/pexpect/pty_spawn.py", line 296, in _spawn
    cwd=self.cwd, **kwargs)
      File "/usr/lib/python2.7/site-packages/pexpect/pty_spawn.py", line 307, in _spawnpty
    return ptyprocess.PtyProcess.spawn(args, **kwargs)
      File "/usr/lib/python2.7/site-packages/ptyprocess/ptyprocess.py", line 323, in spawn
    raise exception
     OSError: [Errno 8] Exec format error
    

Environment

  • Red Hat Enterprise Linux 7
  • CentOS Linux 7
  • convert2rhel

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content