Thursday, October 5, 2023

adopmnctl.sh: exiting with status 152

While starting the Apache/OHS service using adstrtal.sh in R12.2, it gives below error message in Solaris Environment.

$ ./adstrtal.sh

Executing service control script:

/d02/EBSTEST/fs1/inst/apps/TEST_test/admin/scripts/adapcctl.sh start

Timeout specified in context file: 100 second(s)

script returned:

****************************************************

ERROR : Timed out( 100000 ): Interrupted Exception

You are running adapcctl.sh version 120.0.12020000.6

Starting OPMN managed Oracle HTTP Server (OHS) instance ...

**************************************************** 


$ ./adopmnctl.sh status

You are running adopmnctl.sh version 120.0.12020000.2

Checking status of OPMN managed processes...

Optic: request(/dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=pdml]): Error connecting to OPMN at localhost:6115 -- Connection refused (Connection refused)  request(/dump?type=dms&dmsarg=[nountype=opmn_ias_instance&format=pdml]) at InetSocketAddress: localhost/10.x.x.x:6115

  dialOpmn: no SSL localhost:6115 timeout=60000ms

  dialOpmn: connect failed (Connection refused (Connection refused)): localhost:6115


$ adopmnctl.sh startall

You are running adopmnctl.sh version 120.0.12020000.2

Starting Apache...

EXIT CODE is 152. Please check the log file for more details.

adopmnctl.sh: exiting with status 152


Workaround:

- Restarted the entire EBS R12.2 application services.

- Restarted the database as well.

- Restarted the Entire server.

- export TIMEDPROCESS_TIMEOUT=-1 and restarted the application services.


Cause:

root@test:~# telnet localhost 6115

Trying 10.x.x.x...

telnet: Unable to connect to remote host: Connection refused


Solution:

Checked the below values from the file /etc/nsswitch.conf and it should be hosts: files dns

hosts:  file dns

We found localhost entry was recently added in DNS server and its reflected into server level and its affected apache services which is using localhost internally to start up services.

so we have to update the nsswitch.conf file using below mentioned steps

connect as root user

# svccfg -s name-service/switch

svc:/system/name-service/switch> listprop config

config                     application

config/default             astring     files

config/host                astring     "file dns"

config/value_authorization astring     solaris.smf.value.name-service.switch

svc:/system/name-service/switch> setprop config/host = "files dns"

svc:/system/name-service/switch> listprop config

config                     application

config/default             astring     files

config/host                astring     "files dns"

config/value_authorization astring     solaris.smf.value.name-service.switch

svc:/system/name-service/switch>

# svcadm refresh name-service/switch

# svcadm restart name-service/switch

Then telnet connection worked properly and Apache services started successfully.

No comments:

Post a Comment