My Oracle Support Banner

importError: bad magic number in exachk (Doc ID 2833749.1)

Last updated on NOVEMBER 16, 2022

Applies to:

Oracle Cloud Infrastructure - Exadata Cloud Service - Version N/A and later
Information in this document applies to any platform.


After successful installation of the AHF, customer was getting below error while running any ahf command from the directory other than /tmp

[root@node1 ~]# ahfctl version
Traceback (most recent call last):
  File "/u02/oracle.ahf/python/lib/python3.9/", line 197, in _run_module_as_main
  return _run_code(code, main_globals, None,
  File "/u02/oracle.ahf/python/lib/python3.9/", line 87, in _run_code
  exec(code, run_globals)
  File "/ade/aime_tfa_165523/oracle/tfa/src/ahf/ahfctl_py/", line 43, in
  File "", line 259, in load_module
  File "/ade/aime_tfa_165523/oracle/tfa/src/ahf/ahfctl_py/", line 28, in
  File "", line 259, in load_module
  File "/ade/aime_tfa_165523/oracle/tfa/src/ahf/ahfctl_py/", line 58, in
ImportError: bad magic number in 'exachk': b'3\r\r\n'


Same command working fine if run from /tmp
[root@node1 ~]#
[root@node1 ~]# cd /tmp
[root@node1 tmp]#
[root@node1 tmp]# ahfctl version <<
AHF version: 21.4.0


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.