Thank you for supporting the Cloud Customer Connect Community in 2024. It's a gift to work with you!

Look back
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

Oracle Linux – OSMS Registration issue. No module named requests.

edited Apr 26, 2024 7:35PM in Linux 1 comment

APPLIES TO:
Linux OS – Version Oracle Linux 8
Linux x86_64 on Oracle Public Cloud

SYMPTOMS:
OSMS is enabled and running as per /var/log/oracle-cloud-agent/agent.log:

2024/04/04 16:16:53.108159 instance.go:148: publicName OS Management Service Agent for plugin osms
2024/04/04 16:16:53.108231 policy.go:81: Plugin [osms] has [Enable] state
2024/04/04 16:16:53.109993 health.go:107: health check of plugin:[osms], desiredState:[Enable], currentState:[running], status:[running] version:[1.39.0-11004] err:[<nil>]

However, OSMS registration is failing with an error according to /var/log/oracle-cloud-agent/plugins/osms/agent.log:

2024-04-04 16:08:58,160 - ERROR - Error checking actions (next check in 960 seconds): Command: ['osms', '--log-level', 'INFO', 'register', '--server-url', 'http://127.0.0.1:9003/            XMLRPC'] failed (1): stderr: b'Traceback (most recent call last):\n  File "/usr/sbin/osms", line 15, in <module>\n    from osms import cli\n  File "/usr/share/oracle-cloud-agent/            plugins/osms/osms/cli.py", line 9, in <module>\n    import requests\nImportError: No module named requests\n' stdout: b.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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