API Gateway "managedomain" Cannot Create an init.d Script (Doc ID 1581940.1)

Last updated on AUGUST 18, 2016

Applies to:

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

Symptoms

In OAG 11.1.2.1.0 and OAG 11.1.2.2.0 on either Linux or Solaris, managedomain option cannot create an /etc/init.d script.

Example error message which identifies this problem:

No such file or directory:
'/lab/OAG-11.1.2.1.0/apigateway/posix/samples/etc/init.d/enterprisegateway'

 

Example complete output:

lab/OAG-11.1.2.1.0/apigateway/posix/bin # ./managedomain
-------------------------------------------------------
  Manage Domain Menu
-------------------------------------------------------
[...]
  10) Add init.d script for existing local Gateway Server
[...]

Select option: 10

Select Gateway Server instance:
  1) Gateway1 (Group1)
  2) Enter Gateway Server name and group
Enter selection from 1-2 [2]: 1
Enter user to run service: root

Creating system service for 'Gateway1' in group 'Group1'...
Traceback (most recent call last):
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/managedomain.py", line 1485, in
  manageDomainUtil.createSystemServiceForGatewayInstance(group, name, runAsUser)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/managedomain.py", line 1485, in
  manageDomainUtil.createSystemServiceForGatewayInstance(group, name, runAsUser)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/managedomainlib.py", line 772, in createSystemServiceForGatewayInstance
  self.createSystemService(service.getId(), group.getId(), name, groupName, runAsUser)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/managedomainlib.py", line 782, in createSystemService
  diskInstanceMgr.createSystemServiceOnly(isNodeManager)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/diskinstancemanager.py", line 533, in createSystemServiceOnly 
  self.addService(distDir, instDir, isNodeManager)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/diskinstancemanager.py", line 460, in addService
  self.addLinuxService(distDir, instDir, isNodeManager)
 File "/lab/OAG-11.1.2.1.0/apigateway/system/lib/jython/diskinstancemanager.py", line 496, in addLinuxService
  skel_initd_script = open("%s/posix/samples/etc/init.d/enterprisegateway" %distDir).readlines()
IOError: [Errno 2] No such file or directory:
'/lab/OAG-11.1.2.1.0/apigateway/posix/samples/etc/init.d/enterprisegateway'

 

Changes

The problem is resolved in version 11.1.2.3.0.

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