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

OSMH: Instance Registration Failed with Error “Http Status Code: 404. Error Code: NotAuthorizedOrNot

edited Jul 4, 2024 6:32AM in Linux

APPLIES TO

OS Management Hub (OSMH)
Oracle Cloud Infrastructure

SYMPTOMS

Enabling OSMH Plugin fails with error below:

 failed to start osmh-agent with lookup image failed with Error returned by Service. 
 Http Status Code: 404. Error Code:  NotAuthorizedOrNotFound. 

CAUSE

This error message generally indicates a policy or dynamic  group issue.

Solution

To use OSMH, it is required to create an IAM Policy and Dynamic  Group.
Review the steps to setup the required IAM Policy and Dynamic  Group following document: 

Example Dynamic Group For OCI Instances:
ANY {instance.compartment.id='<compartment_ocid>',instance.compartment.id='<subcompartment_ocid>'}

This rule will include all OCI instances in the specified compartments.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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