Friday, November 22, 2013

webmin architecture does not match error

Description of problem:

In webmin, in module LDAP Users and groups, if you see the following problem:
Errno architecture (i386-linux-thread-multi-2.6.18-308.24.1.el5xen) does not match executable architecture (i386-linux-thread-multi-2.6.18-53.el5) at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/Errno.pm line 11.
Compilation failed in require at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.
BEGIN failed--compilation aborted at /usr/lib/perl5/5.8.8/i386-linux-thread-multi/IO/Socket.pm line 17.
Compilation failed in require at /usr/lib/perl5/vendor_perl/5.8.8/Net/LDAP.pm line 8.
BEGIN failed--compilation aborted at /usr/lib/perl5/vendor_perl/5.8.8/Net/LDAP.pm line 8.
Compilation failed in require at (eval 138) line 2.
BEGIN failed--compilation aborted at (eval 138) line 2.

Probably because you recently did a Perl update and forgot to restart webmin. To confirm:
# perl -MConfig -le 'print $Config{osvers}'
2.6.18-308.24.1.el5xen

and your webmin probably is still running under the old Perl binary (i386-linux-thread-multi-2.6.18-53.el5).

A restart of webmin should solve this problem.

# /etc/webmin/restart
Stopping Webmin server in /usr/libexec/webmin
Starting Webmin server in /usr/libexec/webmin
Pre-loaded WebminCore


No comments: