事象
以下のように、TFA(tfactl コマンド)を使う際にエラーが発生する
Exception: ['COMMON_DATA_DIR', 'TFA_DATA_DIR', 'WORK_DIR', 'DIAG_DIR', 'TFA_DIAG_DIR', 'ORACHK_DIAG_DIR'] point to missing directories
実行例
[oracle@hellomyworld ~]$ tfactl diagcollect -from "Nov/10/2022 11:20:00" -to "Nov/10/2022 11:25:00"
Traceback (most recent call last):
File "/opt/oracle.ahf/python/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/oracle.ahf/python/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/ade/aime_tfa_233032/oracle/tfa/src/tfactl_py/src/__main__.py", line 76, in <module>
File "/ade/aime_tfa_233032/oracle/tfa/src/tfactl_py/src/tfactl/common/tfaconstants.py", line 309, in check_ahf_install_properties_content
Exception: ['COMMON_DATA_DIR', 'TFA_DATA_DIR', 'WORK_DIR', 'DIAG_DIR', 'TFA_DIAG_DIR', 'ORACHK_DIAG_DIR'] point to missing directories
[oracle@hellomyworld ~]$ tfactl status
Traceback (most recent call last):
File "/opt/oracle.ahf/python/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/opt/oracle.ahf/python/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/ade/aime_tfa_233032/oracle/tfa/src/tfactl_py/src/__main__.py", line 76, in <module>
File "/ade/aime_tfa_233032/oracle/tfa/src/tfactl_py/src/tfactl/common/tfaconstants.py", line 309, in check_ahf_install_properties_content
Exception: ['COMMON_DATA_DIR', 'TFA_DATA_DIR', 'WORK_DIR', 'DIAG_DIR', 'TFA_DIAG_DIR', 'ORACHK_DIAG_DIR'] point to missing directories
原因
TFA は root ユーザーで実施する必要があるため、root に切り替えて実施すると解消される