Cannot start Satellite server after doing a yum update to RHEL 5.8

Solution Verified - Updated -

Environment

  • Red Hat Network (RHN) Satellite 5.4 running on Red Hat Enterprise Linux 5 updated to 5.8

Issue

  • Cannot start Red Hat Network Satellite server after doing a yum update to RHEL 5.8
  • While running 'rhn-satellite start' command got below error messages -
[root@localhost~]# rhn-satellite  start
Starting spacewalk services...
Initializing jabberd processes ...
process [router] already running
Starting sm:                                               [  OK  ]
Starting c2s:                                              [  OK  ]
Starting s2s:                                              [  OK  ]
Starting Oracle Net Listener ... 
Starting Oracle DB instance "rhnsat" ... 
logger: Warning: Oracle DB instance rhnsat possibly left running when system went down (system crash?).
                                                           [  OK  ]
Starting osa-dispatcher:                                   [  OK  ]
Starting tomcat5: tomcat5 process already running
Waiting for tomcat to be ready ...
Starting httpd: Syntax error on line 10 of /etc/httpd/conf.d/cobbler.conf:
Invalid command 'WSGIScriptAliasMatch', perhaps misspelled or defined by a module not included in the server configuration
                                                           [FAILED]
Can't locate List/MoreUtils.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 22.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 22.
Compilation failed in require at /usr/sbin/Monitoring line 6.
BEGIN failed--compilation aborted at /usr/sbin/Monitoring line 6.
Can't locate List/MoreUtils.pm in @INC (@INC contains: /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Config/IniFiles.pm line 14.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 22.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/NOCpulse/Object.pm line 22.
Compilation failed in require at /usr/sbin/MonitoringScout line 6.
BEGIN failed--compilation aborted at /usr/sbin/MonitoringScout line 6.
Starting rhn-search...
rhn-search is already running.
Starting cobbler daemon: Traceback (most recent call last):
  File "/usr/bin/cobblerd", line 76, in main
    api = cobbler_api.BootAPI(is_cobblerd=True)
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 130, in __init__
    self.deserialize()
  File "/usr/lib/python2.4/site-packages/cobbler/api.py", line 873, in deserialize
    return self._config.deserialize()
  File "/usr/lib/python2.4/site-packages/cobbler/config.py", line 266, in deserialize
    raise CX("serializer: error loading collection %s. Check /etc/cobbler/modules.conf" % item.collection_type())
CX: 'serializer: error loading collection distro. Check /etc/cobbler/modules.conf'
                                                           [  OK  ]
Starting RHN Taskomatic...
Done.

Resolution

  • The following entries are not part of a Satellite setup.
Alias /cobbler /var/www/cobbler
Alias /cobbler_webui_content /var/www/cobbler_webui_content

WSGIScriptAliasMatch ^/cblr/svc/([^/]*) /var/www/cobbler/svc/services.py

Comment out the above entries in /etc/httpd/conf.d/cobbler.conf and uncomment the entry below:

 #AliasMatch ^/cobbler(.*)?$ "/var/www/cobbler$1"

Then try to restart Satellite services -

rhn-satellite restart
  • Un-install web UI and other cobbler packages not provided by RHN Satellite.

  • Examine / disable EPEL and other external repos on Satellite server to avoid further conflicts.

Root Cause

  • See What is the supported usage of cobbler on RHN Satellite?
  • Installation of third-party cobbler web UI package was creating the problem.
  • Having third-party pkgs (such as EPEL or other external repo) on the system may introduce packages that conflict with RHN Satellite or underlying Red Hat Enterprise Linux OS.

Diagnostic Steps

The copy of the cobbler.conf file is:

[root@localhost~]# cat /etc/httpd/conf.d/cobbler.conf
# This configuration file allows cobbler data
# to be accessed over HTTP.

AliasMatch ^/cblr(?!/svc/)(.*)?$ "/var/www/cobbler$1"
AliasMatch ^/cobbler_track(.*)?$ "/var/www/cobbler$1"
#AliasMatch ^/cobbler(.*)?$ "/var/www/cobbler$1"
Alias /cobbler /var/www/cobbler
Alias /cobbler_webui_content /var/www/cobbler_webui_content

WSGIScriptAliasMatch ^/cblr/svc/([^/]*) /var/www/cobbler/svc/services.py

<Directory "/var/www/cobbler">
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

ProxyRequests off

ProxyPass /cobbler_api http://localhost:25151/
ProxyPassReverse /cobbler_api http://localhost:25151/

BrowserMatch "MSIE" AuthDigestEnableQueryStringHack=On

# the webui is now part of the "cobbler-web" package
# and is visited at http://.../cobbler_web not this URL.
# this is only a pointer to the new page.

<Directory "/var/www/cobbler/web/">
    Options Indexes FollowSymLinks
    Order allow,deny
    Allow from all
</Directory>

I couldn't see any 'WSGIScriptAliasMatch' in the /etc/httpd/conf.d/cobbler.conf file of a local satellite 5.4.1 server.

[root@gob ~]# grep -i WSGIScriptAliasMatch /etc/httpd/conf.d/cobbler.conf 
[root@gob ~]#

It seems like the customer has installed some third party cobbler web ui package in the server.

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.