Problem running satellite-schema-upgrade

Solution Verified - Updated -

Environment

  • Red Hat Network Satellite 5.4.1

Issue

  • When I run spacewalk-schema-upgrade,I get:

    root@sat:(/mnt)#spacewalk-schema-upgrade
    Failed to retrieve our schema package name and version.
    root@sat:(/mnt)#
    

Resolution

Run:

package-cleanup --cleandupes

to clean up the duplicate packages and then:

rpm -q satellite-schema
rpm -q spacewalk-schema

should return singular counts of the package. After that, you should be good to run:

satellite-schema-upgrade

Root Cause

  • Two versions of the schema package were installed.

Diagnostic Steps

  • What is the output of:

    service oracle status 
    rpm -q satellite-schema
    rpm -q spacewalk-schema
    
  • In our case, we got:

    root@sat:(/root)#service oracle status
    Oracle Net Listener (pid 29457) is running...
    Oracle DB instance rhnsat (pid 29469) is running...
    You have new mail in /var/spool/mail/root
    root@sat:(/root)#rpm -q satellite-schema
    satellite-schema-5.4.0.9-1.el5sat
    satellite-schema-5.4.0.17-1.el5sat
    root@sat:(/root)#rpm -q spacewalk-schema
    spacewalk-schema-1.2.21-9.el5sat
    spacewalk-schema-1.2.21-15.el5sat
    root@sat:(/root)#
    
  • Component
  • rpm

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