OAG Installer Fails With Jython Error '[Errno 20000] Unknown error: 20000'

(Doc ID 1912743.1)

Last updated on NOVEMBER 30, 2016

Applies to:

Oracle API Gateway - Version 11.1.2 and later
Information in this document applies to any platform.

Symptoms

When installing Oracle API Gateway 11.1.2, the installer can fail with errors similar to the following:

*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/resources.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/rt.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/jsse.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/jce.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/charsets.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/jfr.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/sunjce_provider.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/sunec.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/localedata.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/dnsns.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/zipfs.jar'
*sys-package-mgr*: processing new jar, '/usr/app/oag/apigateway/Linux.x86_64/jre/lib/ext/sunpkcs11.jar'
Traceback (most recent call last):
 File "/usr/app/oag/apigateway/system/lib/jython/managedomain.py", line 1876, in
  manageDomainUtil.registerFirstNodeManager(localNodeManagerName,
 File "/usr/app/oag/apigateway/system/lib/jython/managedomain.py", line 1876, in
  manageDomainUtil.registerFirstNodeManager(localNodeManagerName,
 File "/usr/app/oag/apigateway/system/lib/jython/managedomainlib.py", line 498, in registerFirstNodeManager
  domainHandler = self.generateDomainCert(certMgmtParams.domainDname, certMgmtParams.domainPassphrase, certMgmtParams.signCertAlg, debug)
 File "/usr/app/oag/apigateway/system/lib/jython/managedomainlib.py", line 498, in registerFirstNodeManager
  domainHandler = self.generateDomainCert(certMgmtParams.domainDname, certMgmtParams.domainPassphrase, certMgmtParams.signCertAlg, debug)
 File "/usr/app/oag/apigateway/system/lib/jython/managedomainlib.py", line 381, in generateDomainCert
  domainHandler.makeNewCert(domainDname, alg=signAlg)
 File "/usr/app/oag/apigateway/system/lib/jython/cert.py", line 458, in makeNewCert
  openssl = OpenSSLUtil(self.certPath, None, [], "domain_extensions", debug=self.debug)
 File "/usr/app/oag/apigateway/system/lib/jython/openssl.py", line 26, in __init__
  self.setupOpenSSLCnf(confFilePath, topologyId, subjectAlternativeNames, extensionSection)
 File "/usr/app/oag/apigateway/system/lib/jython/openssl.py", line 31, in setupOpenSSLCnf
  shutil.copy("%s/skel/openssl.cnf" % vutil.getVDISTDIR(), tempPath)
 File "/usr/app/oag/apigateway/system/lib/jython/Lib/shutil.py", line 86, in copy
  copymode(src, dst)
 File "/usr/app/oag/apigateway/system/lib/jython/Lib/shutil.py", line 65, in copymode
  os.chmod(dst, mode)
OSError: [Errno 20000] Unknown error: 20000: '/usr/app/oag/apigateway/groups/certs/openssl.cnf'

A similar error can occur when attempting to create additional Gateway instances after the initial install has been performed.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms