Koozali.org: home of the SME Server

Use of uninitialized value / Internal Server Error

countzero

Use of uninitialized value / Internal Server Error
« on: June 21, 2007, 02:27:47 PM »
Using 7.x with "yum update" fully up to date.

With perl 5.8.8 installed:

Internal Server Error when trying to access https://myserver.mydomain.com/server-manager

Workaround:

rpm -e --nodeps perl.i386
rpm -e --nodeps perl-suidperl.i386
yum install perl perl-suidperl perl-Time-HiRes \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons

=============================================================================
 Package                 Arch       Version          Repository        Size
=============================================================================
Installing:
 perl                    i386       3:5.8.5-36.RHEL4  smeos              12 M
 perl-Time-HiRes         i386       1.55-3           smeos              22 k
 perl-suidperl           i386       3:5.8.5-36.RHEL4  smeos             109 k
Installing for dependencies:
 perl-Filter             i386       1.30-6           smeos              67 k

Transaction Summary
=============================================================================

After reboot all looks well, except:

When adding/removing users:
[Thu Jun 21 21:55:32 2007] [error] [client 127.0.0.1] Use of uninitialized value in string ne at /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/remoteuseraccess.pm line 217., referer: https://coeleveld.com/server-manager/cgi-bin/remoteuseraccess?page=0&page_stack=&Next=Next&User=eric&FullName=eric%20account&Sudoer=no&Shell=/bin/bash&ChrootDir=home&VPNClientAccess=yes&wherenext=PAGE_MODIFY

When creating/removing ibays:
[Thu Jun 21 19:28:35 2007] [error] [client 127.0.0.1] Use of uninitialized value in string eq at /usr/lib/perl5/site_perl/esmith/FormMagick/Panel/ibays.pm line 485., referer: https://coeleveld.com/server-manager/cgi-bin/ibays

rpm -e --nodeps e-smith-manager
yum install e-smith-manager \
--disablerepo=* \
--enablerepo=base \
--enablerepo=updates \
--enablerepo=smeos \
--enablerepo=smeupdates \
--enablerepo=smeaddons


Makes no difference.

I have compared /usr/lib/perl5 dirs + copied dirs from another similar server.

I have compared file sized of /etc/e-smith/web/functions:
-rwsr-x---  1 root admin 37866 Apr 12  2006 awstats
-rwsr-x---  1 root admin 34135 Jan 28 06:55 backup
-rwsr-x---  1 root admin  4951 Aug 19  2005 clamav
-rwsr-x---  1 root admin  1740 Apr  2  2003 datetime
-rwsr-x---  1 root admin  4758 Jan 17 00:46 directory
-rwsr-x---  1 root admin  5659 Aug 26  2005 domains
-rwsr-x---  1 root admin 19366 May  9 05:02 emailsettings
-rwsr-x---  1 root admin  5851 Nov 21  2005 groups
-rwsr-x---  1 root admin  5388 Jan 14 15:05 hostentries
-rwsr-x---  1 root admin  5391 Oct  7  2005 ibays
-rwsr-x---  1 root admin  1260 Nov  3  2006 index.cgi
-rwsr-x---  1 root admin  1241 Nov  3  2006 initial.cgi
-rwsr-x---  1 root admin  5258 Mar 15  2006 localnetworks
-rwsr-x---  1 root admin  9975 Jan 27 11:51 navigation
lrwxrwxrwx  1 root admin    10 Jun 21 22:11 noframes -> navigation
-rwsr-x---  1 root admin  2738 Nov 21  2005 online-manual
-rwsr-x---  1 root admin   769 Nov 21  2005 pleasewait
-rwsr-x---  1 root admin  3512 Apr  1  2003 portforwarding
-rwsr-x---  1 root admin  3178 Jan  7  2004 printers
-rwsr-x---  1 root admin  1571 Jun 11  2004 proxy
-rwsr-x---  1 root admin  6470 Apr 12  2003 pseudonyms
-rwsr-x---  1 root admin  2285 Apr 13  2003 qmailanalog
-rwsr-x---  1 root admin  1851 Apr 18  2003 quota
-rwsr-x---  1 root admin  3827 Jan 20 07:33 reboot
-rwsr-x---  1 root admin  6550 Nov 21  2005 remoteaccess
-rwsr-x---  1 root admin  2495 May 10  2006 remoteuseraccess
-rwsr-x---  1 root admin  2720 Nov 21  2005 review
-rwsr-x---  1 root admin  4927 Mar  7  2003 starterwebsite
-rwsr-x---  1 root admin  5411 May 29  2006 subversion
-rwsr-x---  1 root admin  2244 Jan  5  2006 support
-rwsr-x---  1 root admin 10811 Jan 20 07:33 useraccounts
-rwsr-x---  1 root admin  1636 Aug 24  2006 userpanel-sshkeys
-rwsr-x---  1 root admin 13577 Mar 16  2006 viewlogfiles
-rwsr-x---  1 root admin  5646 Jan 31 02:59 workgroup
-rwsr-x---  1 root admin  7426 May 26 14:35 yum


/sbin/e-smith/audittools/templates
/etc/e-smith/templates-custom/etc/samba/smb.conf/91sme7pdf: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates-custom/etc/hosts.allow/snmpd: MANUALLY_ADDED, ADDITION
/etc/e-smith/templates-custom/etc/proftpd.conf/05Chroot: OWNED_BY_RPM, OVERRIDE
/etc/e-smith/templates-custom/etc/smb.conf/printpdf: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates-custom/etc/smb.conf/91sme7pdf: OWNED_BY_RPM, ADDITION
/etc/e-smith/templates/etc/php.ini/40DataHandling: MODIFIED e-smith-php-1.12.0-3.el4.sme
/etc/e-smith/templates/etc/atalk/papd.conf/20printers: MULTIPLE_RPM_OWNERS e-smith-netatalk-1.14.0-3.el4.sme, e-smith-LPRng-1.14.0-4.el4.sme
/etc/e-smith/templates/etc/rc.d/init.d/masq/42AllowVentrilo: MANUALLY_ADDED
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/87PhpldapadminAlias: MANUALLY_ADDED
/etc/e-smith/templates/etc/httpd/conf/httpd.conf/86PhpmyadminAlias: MODIFIED e-smith-phpmyadmin-2.6.0-12

I don't know what else to check or do.

Guess my server is fubar...

Any help highly appreciated.

(+update from perl 5.8.5 to 5.8.8 is not without problems; bug 2755 is alive)

countzero

Use of uninitialized value / Internal Server Error
« Reply #1 on: June 21, 2007, 02:59:37 PM »
Got it solved (finally !!)

For some reason, the files in /etc/e-smith/web/functions were out-of-date.

Copying them from another server solved my problems.

(Note that I am still using perl 5.8.5 as otherwise I will definitively get "Internal Server Error" error messages.)

http://coeleveld.com

Feel free to contact me if you need help.

countzero

Use of uninitialized value / Internal Server Error
« Reply #2 on: August 04, 2007, 04:56:15 AM »
== SOLVED ==

All issues are solved (read: haven't occurred anymore) using SME 7.2 patches.

http://forums.contribs.org/index.php?topic=38043.msg171573#msg171573