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.


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:

the following error occurs:

"Traceback (most recent call last):
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/", line <number>, in
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/", line <number>, in main
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/", line <number>, in silent_mode_install
  raise e
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/", line <number>, in silent_mode_install
  tar =, "r:gz")
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/python/lib/python3.10/", line <number>, in open
  return func(name, filemode, fileobj, **kwargs)
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/python/lib/python3.10/", line <number>, in gzopen
  fileobj = GzipFile(name, mode + "b", compresslevel, fileobj)
  File "/opt/ansible/OSK-DPK-LNX-<patch_number>/setup/python/lib/python3.10/", line <number>, in __init__
  fileobj = self.myfileobj =, mode or 'rb')
IsADirectoryError: [Errno 21] Is a directory: '/opt/ansible/OSK-DPK-LNX-<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.
2. Extract the entire contents of in the same directory, OSK_INSTALL.
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.


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.