Koozali.org: home of the SME Server
Obsolete Releases => SME Server 7.x => Topic started by: kankan on August 15, 2009, 10:01:22 PM
-
Hi
I installed ImageMagik via Yum and other packets :
yum install ImageMagick-perl mod_perl perl-XML-Twig
Since, i am unable to access the server manager:
Internal Server Error
I uninstalled the packages
yum remove ImageMagick-perl mod_perl perl-XML-Twig
But Apache crashed naturally due to the miss of mod_perl
So I reinstalled the whole packages :
ImageMagick-perl i386 6.0.7.1-20.el4
mod_perl i386 2.0.3-1.el4s1.3
perl-XML-Twig noarch 3.13-6
I think this error is due to mod_perl ... but do not know how to rollback to my former version.
I am running SME 7.2
Little help?
Regards
Nicolas
-
kankan II
mod_perl i386 2.0.3-1.el4s1.3
I am running SME 7.2
Do you have additional repositories installed and enabled, beyond those default repos shown in the FAQ, as you seem to have a newer rpm than the current sme 7.4 version ?
If so disable the extras.
On a sme 7.4 up to date server I get
rpm -q mod_perl
mod_perl-1.99_16-4.5
I suggest you reset your repos to defaults
Then uninstall mod_perl
Then update any and all standard default packages with
yum update
signal-event post-upgrade
signal-event reboot
-
Hello Mary
Well, I have those repositories, as i setup additonnal packages (php 5, Mysql 5 etc)
smeaddons 100% |=========================| 1.9 kB 00:00
base 100% |=========================| 1.1 kB 00:00
centosplus 100% |=========================| 951 B 00:00
smeos 100% |=========================| 1.9 kB 00:00
smeupdates 100% |=========================| 1.9 kB 00:00
If i do a Yum update, i am risking to loose some of my configurations no ?
Is there a way to force the setup of mod_perl-1.99_16-4.5 instead ?
-
kankan II
download or wget the required rpm version from the sme repos
Then install manually with
rpm -Uvh -force mod_perl*.rpm
Follow with the signal event commands mentioned previously
You should not need to have additional repos enabled as that will lead to wrongly updating packages from those sources. You can configure additional repos but leave them disabled and use
yum install --enablerepo=reponame packagename
-
kankan II
never enable centosplus repo as it can break your server..
Stefano
-
kankan II
never enable centosplus repo as it can break your server..
Stefano
Thank you
Do you know where i can find the RPM of perl_mod for 7.2?
Or if someone can send it to me ?
Regards
-
you can find it here (http://ftp://ftp.pbone.net/mirror/ftp.centos.org/4.7/os/i386/CentOS/RPMS/mod_perl-1.99_16-4.5.i386.rpm)
HTH
Ciao
Stefano
-
Thank you stefano
I will try to uninstall my version of Perl and setup the original one.
And let you know.
Kankan
-
Hello
Just to let you know that i have returned to the former and original version of mod_perl with the rpm manual install and the server-manager returns the same error.
I am a bit stuck ... :(
-
Just to let you know that i have returned to the former and original version of mod_perl with the rpm manual install and the server-manager returns the same error.
I am a bit stuck ... :(
You'll have to diagnose the problem won't you. You say "crashed due to mod_perl upgrade", but I don't see any direct evidence of that.
"Internal Server Error" - did you look in /var/log/httpd/admin_error_log?
Just FYI, mod_perl is not used for the server manager.
-
Charlie, I suspect that OP has messed up his perl.. if you try to install those rpms with centosplus repo enabled, you'll see that some perl-5.8.8 will be installed..
for the OP, could you please post the result of
/sbin/e-smith/audittools/newrpms
thank you
Stefano
-
Thank you Charlie and Stefano for your support.
admin_error_log appears to be a 0ko file which contains no data
on the other hand, my version of SME does not have auditools installed, so i am unable to give you the result of the request.
I think i have to go for a major update of SME...
Again, thank you for your help
-
Hello all,
Founf the solution
Yum updated my Perl version.
I reinstall Perl with the original SME CD and my Manager is back.
Regards
-
Dear All,
The solution was not completely OK,
I uninstalled the 'yumed' Perl in profit of the original one (7.1 CD)
But use of services in server manager return me errors.
Here is what i found in my httpd-admin logs :
[Sun Sep 20 21:57:41 2009] [error] [client 127.0.0.1] Use of uninitialized value in array element at /usr/lib/perl5/site_perl/CGI/FormMagick/Utils.pm line 405., referer: https://192.168.0.1/server-manager/cgi-bin/portforwarding
[Sun Sep 20 21:57:41 2009] [error] [client 127.0.0.1] Use of uninitialized value in concatenation (.) or string at /usr/lib/perl5/site_perl/CGI/FormMagick/HTML.pm line 185., referer: https://192.168.0.1/server-manager/cgi-bin/portforwarding
[Sun Sep 20 21:57:41 2009] [error] [client 127.0.0.1] Use of uninitialized value in array element at /usr/lib/perl5/site_perl/CGI/FormMagick/Utils.pm line 405., referer: https://192.168.0.1/server-manager/cgi-bin/portforwarding
[Sun Sep 20 21:57:41 2009] [error] [client 127.0.0.1] Use of uninitialized value in numeric eq (==) at /usr/lib/perl5/site_perl/CGI/FormMagick/HTML.pm line 93., referer: https://192.168.0.1/server-manager/cgi-bin/portforwarding
[Sun Sep 20 21:57:41 2009] [error] [client 127.0.0.1] Use of uninitialized value in numeric ge (>=) at /usr/lib/perl5/site_perl/CGI/FormMagick/Utils.pm line 218., referer: https://192.168.0.1/server-manager/cgi-bin/portforwarding
After re-installing mod_perl, post upgrade command display this message :
Can't locate Time/HiRes.pm in @INC (@INC contains: /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.4 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.3 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.2 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.1 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/5.8.0 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5/5.8.4 /usr/lib/perl5/site_perl/5.8.5/5.8.3 /usr/lib/perl5/site_perl/5.8.5/5.8.2 /usr/lib/perl5/site_perl/5.8.5/5.8.1 /usr/lib/perl5/site_perl/5.8.5/5.8.0 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl .) at /usr/lib/perl5/site_perl/esmith/event.pm line 11.
BEGIN failed--compilation aborted at /usr/lib/perl5/site_perl/esmith/event.pm line 11.
Compilation failed in require at /sbin/e-smith/signal-event line 11.
BEGIN failed--compilation aborted at /sbin/e-smith/signal-event line 11.
I think that Perl 5.8.8 did a bit mess with some dependencies and reinstalling original 5.8.5 did not correct all the problem.
Can you help me a bit with this ?
Regards,
Kankan
-
The solution was not completely OK,
I uninstalled the 'yumed' Perl in profit of the original one (7.1 CD)
And you are sure you are running 7.1? This is a quite old release, we are at 7.4 by now and working on 7.5.
-
Kankan.
try
yum install perl-Time-HiRes
Btw, I would backup my server and start with a fresh setup, as it seems that your setup is a mess :-)
Stefano
-
Hello cactus,
Yes i am running 7.1.
Any idea to correct this perl problem ?
Regards,
Kankan
-
Hello cactus,
Yes i am running 7.1.
Any idea to correct this perl problem ?
Regards,
Kankan
in the first post you said SME 7.2, now 7.1... mmmmhhh.. little confused? :-)
anyway, the best thing to do is to insert SME 7.4 cd into your cd reader and go for an upgrade.. NOW!
Ciao
Stefano
-
Stafano,
I am 7.1. Got wrong on the first post with 7.2.
Regards,
KanKan
-
kankan
Your system is in a mess due to inappropriate package upgrades.
Where the troubleshooting/repair process will stop is unsure, as you say you also have php 5 & Mysql 5 installed, and who knows whatever else that is non standard.
Any idea to correct this perl problem ?
You need to look at
/var/log/yum/yum.log
and see what packages including dependencies were updated when you originally ran those commands.
Then you can remove all of them with
rpm -e packagename1 packagename2 packagename3
Then you can download the correct version rpms and install them
Don't use yum as you will just risk upgrading newer incompatible rpms again.
Then for the packages you need to reinstall do
rpm -Uvh packagename1 packagename2 packagename3
followed by
signal-event post-upgrade
signal-event reboot
Note you should really do a major upgrade to sme7.4 with
yum update
signal-event post-upgrade
signal-event reboot
but ONLY do this after you have disabled non standard repos.
Here are the repos configured on my sme 7.4 server
db yum_repositories show
addons=repository
BaseURL=http://mirror.centos.org/centos/4/addons/$basearch
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=addons
Name=CentOS - addons
Visible=no
status=disabled
base=repository
BaseURL=http://mirror.centos.org/centos/4/os/$basearch
EnableGroups=no
Exclude=kernel,kernel-smp,mkinitrd,mdadm,initscripts
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os
Name=CentOS - os
Visible=yes
status=enabled
centosplus=repository
BaseURL=http://mirror.centos.org/centos/4/centosplus/$basearch
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus
Name=CentOS - centosplus
Visible=no
status=disabled
contrib=repository
BaseURL=http://mirror.centos.org/centos/4/contrib/$basearch
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=contrib
Name=CentOS - contrib
Visible=no
status=disabled
dag=repository
BaseURL=http://apt.sw.be/redhat/el4/en/$basearch/dag
EnableGroups=no
Exclude=freetype,htop,iptraf,rsync,syslinux
GPGCheck=yes
GPGKey=http://dag.wieers.com/packages/RPM-GPG-KEY.dag.txt
Name=Dag - EL4
Visible=no
status=disabled
extras=repository
BaseURL=http://mirror.centos.org/centos/4/extras/$basearch
EnableGroups=no
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras
Name=CentOS - extras
Visible=no
status=disabled
smeaddons=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smeaddons/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeaddons-7
Name=SME Server - addons
Visible=yes
status=enabled
smecontribs=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smecontribs/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smecontribs-7
Name=SME Server - contribs
Visible=no
status=disabled
smedev=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smedev/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smedev-7
Name=SME Server - dev
Visible=no
status=disabled
smeextras=repository
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeextras-7
Name=SME Server - extras
Visible=yes
status=enabled
smeos=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smeos/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeos-7
Name=SME Server - os
Visible=yes
status=enabled
smetest=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smetest/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smetest-7
Name=SME Server - test
Visible=no
status=disabled
smeupdates=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smeupdates/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-7
Name=SME Server - updates
Visible=yes
status=enabled
smeupdates-testing=repository
BaseURL=http://mirror.contribs.org/pub/smeserver/releases/7/smeupdates-testing/$basearch
EnableGroups=yes
GPGCheck=yes
MirrorList=http://distro.ibiblio.org/pub/linux/distributions/smeserver/mirrorlist/smeupdates-testing-7
Name=SME Server - updates testing
Visible=yes
status=disabled
testing=repository
BaseURL=http://mirror.centos.org/centos/4/testing/$basearch
EnableGroups=no
GPGCheck=yes
Name=CentOS - testing
Visible=no
status=disabled
updates=repository
BaseURL=http://mirror.centos.org/centos/4/updates/$basearch
EnableGroups=no
Exclude=kernel,kernel-smp,mkinitrd,mdadm,initscripts
GPGCheck=yes
MirrorList=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates
Name=CentOS - updates
Visible=yes
status=enabled
If centosplus is enabled, then you need to do
db yum_repositories setprop centosplus status disabled
Do similar for any other non standard repos you have enabled, then do
signal-event post-upgrade
signal-event reboot
You can check the setting with
db yum_repositories show centosplus
and so on
-
Stafano,
I am 7.1. Got wrong on the first post with 7.2.
Regards,
KanKan
ok.. it doesn't change.. upgrade asap
Stefano