You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

OCI: OSMS [Errno 2] No such file or directory: 'osms'

edited Aug 16, 2023 11:03AM in Linux 1 comment

Applies To:

Oracle Cloud Infrastructure

 Linux OS

Symptoms:

OS Management does not work. /var/log/oracle-cloud-agent/plugins/osms is constantly reporting:

ERROR - Error checking actions (next check in 240 seconds): [Errno 2] No such file or directory: 'osms': 'osms'

Cause:

OSMS binaries files are deleted.

Solution:

Customer seems to somehow deleted OSMS binaries.

Follow these steps to reinstall oracle-cloud-agent and reenable the OSMS plugin:

  • ssh into the instance.
  • restore the old /etc/yum.repos.d/*.repo content from /etc/yum.repos.d/oci-included-ol8.repo.osms-backup .
$ sudo mv /etc/yum.repos.d/oci-included-ol8.repo.osms-backup /etc/yum.repos.d/oci-included-ol8.repo
$ sudo osms unregister
$ sudo yum remove oracle-cloud-agent
$ sudo yum install oracle-cloud-agent
$ sudo sed -i.saved -e '/^  osms:/,/^  [a-z]*:/{s/\(.*disabled:.*\)false/\1true/}' /etc/oracle-cloud- 
agent/agent.yml
$ sudo systemctl restart oracle-cloud-agent

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!