E-OS: Upgrade From Elasticsearch to OpenSearch Fails With Error "UnboundLocalError: local variable 'old_jre' referenced before assignment"
(Doc ID 2995185.1)
Last updated on JANUARY 15, 2025
Applies to:
PeopleSoft Enterprise PT PeopleTools - Version 8.60 and laterInformation in this document applies to any platform.
Symptoms
When attempting to upgrade from Elasticsearch (ELK 7.10.0.860_03) to OpensSearch (OSK 2.3.0.860_02), the following error occurs:
Traceback (most recent call last):
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 4580, in
main()
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 311, in main
os_upgrade()
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 4048, in os_upgrade
JAVA_HOME_old = os.path.join(pt_dir , old_jre)
UnboundLocalError: local variable 'old_jre' referenced before assignment
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 4580, in
main()
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 311, in main
os_upgrade()
File "<path to where DPK was unzipped to>\setup\OSK_EasyInstall.py", line 4048, in os_upgrade
JAVA_HOME_old = os.path.join(pt_dir , old_jre)
UnboundLocalError: local variable 'old_jre' referenced before assignment
Changes
In this particular case, the customer was upgrading from Elasticsearch (ELK 7.10.0.860_03) to OpensSearch (OSK 2.3.0.860_02).
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 |
Changes |
Cause |
Solution |
References |