EM12c: 'java.io.IOException: Cannot run program "/usr/lib/oracle/agent/sbin/nmo": java.io.IOException: error=2, No such file or directory' Reported in gcagent.log (Doc ID 1945352.1)

Last updated on JUNE 01, 2016

Applies to:

Enterprise Manager Base Platform - Version 12.1.0.4.0 and later
Information in this document applies to any platform.

Symptoms

/AGENT_INST/sysman/log/gcagent.log reports the following message every 30 minutes

014-09-16 10:08:18,203 497:C6397182:GC.SysExecutor.8 (Ping OMS) INFO - attempting another heartbeat
2014-09-16 10:08:29,231 316:60A5495:GC.SysExecutor.5 (NmoHealthTask) INFO - Job Attributes: {JobID=AgentHealthMonitor:1410862109231, KeepAliveRequest=false} Job Command: {/usr/lib/oracle/agent/sbin/nmo}
2014-09-16 10:08:29,236 316:60A5495 WARN - NmoStatus: Unable to verify nmo.
oracle.sysman.gcagent.target.interaction.execution.JobExecutionMgr$AuthenticatedJobExecutionException: ERROR: NMO not setuid-root (Unix-only)
  at oracle.sysman.gcagent.target.interaction.execution.JobExecutionMgr.call(JobExecutionMgr.java:1219)
  at oracle.sysman.gcagent.jobs.JobRequestDriver.executeJobStep(JobRequestDriver.java:1482)
  at oracle.sysman.gcagent.task.executor.TrackThreadFactory$1.run(TrackThreadFactory.java:54)
  at oracle.sysman.gcagent.util.system.GCAThread$RunnableWrapper.run(GCAThread.java:189)
  at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Cannot run program "/usr/lib/oracle/agent/sbin/nmo": java.io.IOException: error=2, No such file or directory
  at java.lang.ProcessBuilder.start(ProcessBuilder.java:460)
  at oracle.sysman.gcagent.common.SafeProcessBuilder.start(SafeProcessBuilder.java:120)



Changes

 Agents are installed using the rpm method and using the: "--relocate /usr/lib/oracle/agent=/u01/app/em" option

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