
SanjayG.02349 (Customer) asked a question.
Hi
Installed OPP agent 1.3.2 on Centos 7.9.2009.
After installation the agent starts up successfully and no errors. However after restart of the server the OPP agent service doesn't start.
(Apparently this is an old issue found it unanswered on devforum as well.)
1) Okta Dashboard --> Agents shows the agent is green.
2) The agent.log file shows the agent running ok.
3) When I start the service:
sudo service OktaProvisioningAgent start
Job for OktaProvisioningAgent.service failed because the control process exited with error code. See "systemctl status OktaProvisioningAgent.service" and "journalctl -xe" for details.
[FAILED]
[root@companyAcent1 var]* systemctl status OktaProvisioningAgent.service
● OktaProvisioningAgent.service - SYSV: OktaProvisioningAgent Agent server daemon
Loaded: loaded (/etc/rc.d/init.d/OktaProvisioningAgent; bad; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2021-02-16 14:02:04 EST; 17min ago
Docs: man:systemd-sysv-generator(8)
Process: 2104 ExecStart=/etc/rc.d/init.d/OktaProvisioningAgent start (code=exited, status=1/FAILURE)
CGroup: /system.slice/OktaProvisioningAgent.service
├─1653 /opt/OktaProvisioningAgent/jre/bin/java -Dagent_home=/opt/OktaProvisioningAgent -Xmx4096m -jar /opt/OktaProvisioningAgent/bin/OktaProvisioningAgent.jar -mode normal -conf...
├─1707 /opt/OktaProvisioningAgent/jre/bin/java -Dagent_home=/opt/OktaProvisioningAgent -Xmx4096m -jar /opt/OktaProvisioningAgent/bin/OktaProvisioningAgent.jar -mode normal -conf...
├─1920 /opt/OktaProvisioningAgent/jre/bin/java -Dagent_home=/opt/OktaProvisioningAgent -Xmx4096m -jar /opt/OktaProvisioningAgent/bin/OktaProvisioningAgent.jar -mode normal -conf...
└─2123 /opt/OktaProvisioningAgent/jre/bin/java -Dagent_home=/opt/OktaProvisioningAgent -Xmx4096m -jar /opt/OktaProvisioningAgent/bin/OktaProvisioningAgent.jar -mode normal -conf...
Feb 16 14:01:34 companyAcent1.companyA.com OktaProvisioningAgent[2104]: Feb 16, 2021 2:01:34 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
Feb 16 14:01:34 companyAcent1.companyA.com OktaProvisioningAgent[2104]: INFO: Loading XML bean definitions from class path resource [spring/agent.xml]
Feb 16 14:01:35 companyAcent1.companyA.com OktaProvisioningAgent[2104]: Feb 16, 2021 2:01:35 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions
Feb 16 14:01:35 companyAcent1.companyA.com OktaProvisioningAgent[2104]: INFO: Loading XML bean definitions from class path resource [spring/entities.xml]
Feb 16 14:02:04 companyAcent1.companyA.com OktaProvisioningAgent[2104]: /opt/OktaProvisioningAgent/OktaProvisioningAgent: line 28: /var/run/OktaProvisioningAgent.pid: Permission denied
Feb 16 14:02:04 companyAcent1.companyA.com OktaProvisioningAgent[2104]: [FAILED]
Feb 16 14:02:04 companyAcent1.companyA.com systemd[1]: OktaProvisioningAgent.service: control process exited, code=exited status=1
Feb 16 14:02:04 companyAcent1.companyA.com systemd[1]: Failed to start SYSV: OktaProvisioningAgent Agent server daemon.
Feb 16 14:02:04 companyAcent1.companyA.com systemd[1]: Unit OktaProvisioningAgent.service entered failed state.
Feb 16 14:02:04 companyAcent1.companyA.com systemd[1]: OktaProvisioningAgent.service failed.
If anyone knows the root cause, please respond.
Note: I was also able to reproduce the exact same issue in Redhat 8.3
Thanks
Sanjay
+++++++++++++++++++++++++++

Hi Sanjay,
I hope you are fine.
While researching your question I noticed that you have already opened a case with Okta Support.
Our team will keep in touch with you through the portal.