While starting Red Hat Enterprise Linux Amazon Instance for first time, the configuration wizard throw "Error Class Code: 42". How to fix this?

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux on Amazon EC2 (Elastic Compute Cloud)
  • Red Hat Network (RHN)

Issue

  • While starting Red Hat Enterprise Linux Amazon Instance for first time, the configuration wizard errors out with following message. How to fix this?

    An error has occurred:
    Error Class Code: 42
    Error Class Info: Invalid ORG_ID requested
    

Resolution

This is a known problem on the 32bit Red Hat Enterprise Linux AMIs. This problem is actively worked by Engineering team for fixing it.

In the meantime, work around the issue by using the rhnreg_ks command to register the system from the command line. There are two methods for doing this. The first method is insecure, and passes the RHN login information in clear text. It is recommended that this be used only if registering the system in a secure environment.

Method 1: Register systems to RHN or satellite via command line (careful - password is passed in cleartext.)

rhnreg_ks --profilename <myserver> --username <rhn user> --password <rhn password> --nohardware

Method 2: Create an activation key in the RHN account, then use it to register the system. This is more secure and does not pass login information in clear text.

rhnreg_ks --profilename <myserver> --activationkey <activation key> --nohardware

Using either of these two command line methods will allow the Red Hat Enterprise Linux AMI instance to register to RHN. Once this is done, the instance can be updated with any necessary packages, and continue with the bundling process.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments