My Oracle Support Banner

E-OS: Opensearch DPK Install Fails With 'IsADirectoryError: [Errno 21] Is a directory' Error (Doc ID 2998879.1)

Last updated on JANUARY 19, 2024

Applies to:

PeopleSoft Enterprise PT PeopleTools - Version 8.60 and later
Information in this document applies to any platform.

Symptoms

On PeopleTools 8.60, 

When attempting to perform the step "Encrypting the OpenSearch Passwords on Linux"  of Task 3-2-3: Installing OpenSearch and OpenSearch Dashboards on Linux in Silent Mode for deploying the search components as per: 

https://docs.oracle.com/cd/F84020_02/psft/pdf/PeopleSoft_Deployment_Packages_Installation_for_Search_Components_PeopleTools8.60_October2023.pdf

the following error occurs:


"Traceback (most recent call last):
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/OSK_EasyInstall.py", line <number>, in
  main()
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/OSK_EasyInstall.py", line <number>, in main
  silent_mode_install()
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/OSK_EasyInstall.py", line <number>, in silent_mode_install
  raise e
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/OSK_EasyInstall.py", line <number>, in silent_mode_install
  tar = tarfile.open(os_tar, "r:gz")
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/python/lib/python3.10/tarfile.py", line <number>, in open
  return func(name, filemode, fileobj, **kwargs)
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/python/lib/python3.10/tarfile.py", line <number>, in gzopen
  fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
  File "/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/setup/python/lib/python3.10/gzip.py", line <number>, in __init__
  fileobj = self.myfileobj = builtins.open(filename, mode or 'rb')
IsADirectoryError: [Errno 21] Is a directory: '/opt/ansible/OSK-DPK-LNX-2.3.0.860_<patch_number>/archives/pt-opensearch-2.3.0' "


The issue can be reproduced at will with the following steps:
1. Open a terminal window, and change directory to OSK_INSTALL.
cd OSK_INSTALL
2. Extract the entire contents of OSK_FILENAME.zip in the same directory, OSK_INSTALL.
unzip OSK_FILENAME.zip
3. Change directory to OSK_INSTALL/archives, and extract pt-jdk11.0.yy.tgz into a directory with the same name.
4. Change directory to OSK_INSTALL/archives and extract pt-opensearch-2.3.0.tgz into a directory with the same name.
5. The error occurs.


Cause

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
Symptoms
Cause
Solution
References


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