smedev:what_is_not_working_on_el6

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
smedev:what_is_not_working_on_el6 [25/01/2013 22:28]
dani créée
smedev:what_is_not_working_on_el6 [26/01/2013 00:32] (Version actuelle)
dani [httpd]
Ligne 2: Ligne 2:
  
 ===== httpd ===== ===== httpd =====
-  * mod_ssl is not installed (not required by any other package ?)+  * mod_ssl is not installed (should be listed as a requirement for e-smith-apache)
 <code bash> <code bash>
 yum install mod_ssl yum install mod_ssl
 </code> </code>
-  * mod_auth_tkt used to provide the perl Apache::AuthTkt module. It's not the case anymore so this module is now missing, preventing the server-manager to load +  * mod_auth_tkt used to provide the perl Apache::AuthTkt module. It's not the case anymore so this module is now missing, preventing the server-manager to load. A standalone perl-Apache-AuthTkt rpm is available on repoforge 
 +  * perl-suidperl is not installed (should be added as required by e-smith-manager) 
 +<code bash> 
 +yum install perl-suidperl 
 +</code> 
 +  * after fixing those two issues, we get a blank page after login on the server-manager, logs (admin_error_log) print the following error: 
 +<code> 
 +[Fri Jan 25 22:59:23 2013] [error] [client 127.0.0.1] Can't locate object method "host" via package "URI::_generic" at /etc/e-smith/web/common/cgi-bin/login line 162., referer: https://192.168.7.154/server-common/cgi-bin/login?redirect=1&back=http%253a%252f%252f192.168.7.154%252fserver-manager%252f 
 +</code> 
 +  * If we try to access the server-manager again, it's working (as we already have our cookie). It's just the redirection after the login which is broken
 ===== squid ===== ===== squid =====
   * squid doesn't start, and the folowwing errors are printed in /var/log/messages   * squid doesn't start, and the folowwing errors are printed in /var/log/messages
Ligne 26: Ligne 34:
 </code> </code>
  
 +So several problems here:
 +  * We need to remove the -D arg from /var/services/squid/run
 +  * We need to remove the file /etc/e-smith/templates/etc/squid/squid.conf/20ACL00all (which just contains acl all src 0.0.0.0/0.0.0.0 and is not needed anymore)
 +  * we need to convert acl in CIDR notation (for now, they are retrieved using esmith::NetworksDB::local_access_spec, which doesn't support cidr)
 +  * we need to remove /etc/e-smith/templates/etc/squid/squid.conf/35extension_methods (extensionmethods is not supported anymore as it was not usefull anymore)
 ===== clamav ===== ===== clamav =====
   * user created during clamd installation is now clam (used to be clamav), templates for /etc/clamd.conf need to be adjusted   * user created during clamd installation is now clam (used to be clamav), templates for /etc/clamd.conf need to be adjusted
   * DatabaseDirectory is now /var/lib/clamav (used to be /var/clamav), templates for /etc/clamd.conf need to be adjusted   * DatabaseDirectory is now /var/lib/clamav (used to be /var/clamav), templates for /etc/clamd.conf need to be adjusted
   * LocalSocket should now be /var/run/clamav/clamd.socket (use to be /var/clamav/clamd.socket), templates for /etc/clamd.conf need to be adjusted   * LocalSocket should now be /var/run/clamav/clamd.socket (use to be /var/clamav/clamd.socket), templates for /etc/clamd.conf need to be adjusted
 +  * Permissions on /var/spool/qpsmtpd/ (provided by smeserver-qpsmtpd) should also be adjusted (clam instead of clamav group)
 ===== qpsmtpd ===== ===== qpsmtpd =====
   * doesn't start. See http://bugs.contribs.org/bugs/show_bug.cgi?id=7223   * doesn't start. See http://bugs.contribs.org/bugs/show_bug.cgi?id=7223
Ligne 38: Ligne 51:
 </code> </code>
  
 +We should rebuild qpsmtpd with a simple spec file change to use /usr/share/perl5/vendor_perl instead of /usr/lib/perl5/site_perl
 ===== radius ===== ===== radius =====
   * radiusd doesn't start with this error   * radiusd doesn't start with this error
Ligne 43: Ligne 57:
 radiusd: Error: No log destination specified radiusd: Error: No log destination specified
 </code> </code>
 +  * To fix this error, we need to add "-l stdout" as argument to radiusd in /var/service/radiusd/run 
 +  * After that, the following error occures: 
 +<code> 
 +@400000005103145934920bc4 Sat Jan 26 00:25:03 2013 : Info: Starting - reading configuration files ... 
 +@400000005103145937a239c4 Sat Jan 26 00:25:03 2013 : Error: /etc/raddb/radiusd.conf[115]: Failed to link to module 'rlm_ldap': file not found  
 +@400000005103145937a2c27c Sat Jan 26 00:25:03 2013 : Error: /etc/raddb/radiusd.conf[177]: Failed to load module "ldap"
 +@400000005103145937a2fd14 Sat Jan 26 00:25:03 2013 : Error: /etc/raddb/radiusd.conf[177]: Failed to parse "ldap" entry. 
 +@400000005103145937a39954 Sat Jan 26 00:25:03 2013 : Error: Failed to load virtual server <default> 
 +</code> 
 +  * To fix this, we have to install freeradius-ldap, which is now in its own package (freeradius-ldap should be added as required by e-smith-radiusd)
 ===== syslog ===== ===== syslog =====
  
Ligne 52: Ligne 75:
  
 ===== LDAP ===== ===== LDAP =====
-  * openldap-servers is installed (missing a Requires: openldap-servers in e-smith-ldap)+  * openldap-servers is not installed (missing a Requires: openldap-servers in e-smith-ldap's spec file)
   * we need to add -f /etc/openldap/slapd.conf arg when launching slapd (in /var/service/ldap/run), or it will try to convert this file the the new slapd.d style   * we need to add -f /etc/openldap/slapd.conf arg when launching slapd (in /var/service/ldap/run), or it will try to convert this file the the new slapd.d style
   * schema file /etc/openldap/schema/redhat/autofs.schema is missing. In EL5, it was provided by openldap-servers   * schema file /etc/openldap/schema/redhat/autofs.schema is missing. In EL5, it was provided by openldap-servers
Ligne 62: Ligne 85:
 ===== console ===== ===== console =====
   * kudzu has been removed from EL6, so now this bug http://bugs.contribs.org/show_bug.cgi?id=3596 needs to be fixed so we can detect network interfaces.   * kudzu has been removed from EL6, so now this bug http://bugs.contribs.org/show_bug.cgi?id=3596 needs to be fixed so we can detect network interfaces.
-Here's a code snipet which seems to work, the only thing missing is to retrieve the interface description from hwdata (in esmith/ethernet.pm)+Here's a code snipet which seems to work, the only thing missing is to retrieve the interface description from hwdata, for now, it just return the name 'eth0, eth1 etc...) instead of the description (in esmith/ethernet.pm)
 <code perl> <code perl>
     opendir(my $dh, "/sys/class/net") or die "Couldn't open /sys/class/net: $!";     opendir(my $dh, "/sys/class/net") or die "Couldn't open /sys/class/net: $!";
  • smedev/what_is_not_working_on_el6.1359149299.txt.gz
  • Dernière modification: 25/01/2013 22:28
  • de dani