OCI: OSMS [Errno 2] No such file or directory: 'osms'
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
Tagged:
2