Cannot restart servers from /scripts/ due to perl failure

semseoymas

Member
Oct 22, 2013
20
2
1
cPanel Access Level
Root Administrator
Hello:

Running WHM 11.38.2 (build 7).

Recently, configured pyzor/razor/dcc at spamassassin... and had a look at:
http://forums.cpanel.net/f43/spamas...ped-working-after-updated-11-36-a-330141.html

And did what user told:

The solution in case anyone else is experiencing this problem: you have to reinstall Razor2 using this method:

/usr/local/cpanel/3rdparty/perl/514/bin/cpan -i Razor2::Client::Agent
Did select "yes" to all questions, about automatic configuring cpan... cannot figure out next problems..

But next day, after upcp I think, and since, if I try to restart any server from scripts get:

[email protected] [/var/log]# /scripts/restartsrv_clamd
/usr/local/cpanel/3rdparty/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/BSD/Resource/Resource.so: undefined symbol: Perl_Istack_sp_ptr

[email protected] [/var/log]# /scripts/restartsrv_spamd
/usr/local/cpanel/3rdparty/bin/perl: symbol lookup error: /usr/local/lib64/perl5/auto/BSD/Resource/Resource.so: undefined symbol: Perl_Istack_sp_ptr
Now I am very confused... do not know what to do about perl configuration and why this ocurrs. :(

Can someone help please?

Thanks so much...
 

semseoymas

Member
Oct 22, 2013
20
2
1
cPanel Access Level
Root Administrator
Hello:

I see differences between cpanel's perl in:

Executing: /usr/local/cpanel/3rdparty/bin/perl -V

SERVER WITHOUT THAT PROBLEM:
Compiled at Mar 5 2013 15:44:19
@INC:
/usr/local/cpanel
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3
/opt/cpanel/perl5/514/site_lib/x86_64-linux-64int
/opt/cpanel/perl5/514/site_lib
.
SERVER WITH THE PROBLEM:
Compiled at Mar 5 2013 15:44:19
%ENV:
PERL5LIB="/usr/local/lib64/perl5:/usr/local/share/perl5:/usr/lib64/perl5/vendor_perl:/usr/share/perl5/vendor_perl"
@INC:
/usr/local/lib64/perl5
/usr/local/share/perl5
/usr/lib64/perl5/vendor_perl
/usr/share/perl5/vendor_perl
/usr/local/cpanel
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/cpanel_lib
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3/x86_64-linux-64int
/usr/local/cpanel/3rdparty/perl/514/lib64/perl5/5.14.3
/opt/cpanel/perl5/514/site_lib/x86_64-linux-64int
/opt/cpanel/perl5/514/site_lib
I am sure this is the main problem, but do not know how to fix it...

Help please...
 

semseoymas

Member
Oct 22, 2013
20
2
1
cPanel Access Level
Root Administrator
Hello...

Did fix myself....

Just have a look at the ENV variable... if you do "env -i perl -V" the ENV variables are not set and the INC is correct, so:

unset PERL5LIB
env for perl variable is gone, INC is good, all is running perfectly.

Bye!
 

semseoymas

Member
Oct 22, 2013
20
2
1
cPanel Access Level
Root Administrator
Also.....

The ENV variable is getting set at:
/etc/profile.d/atrpms.csh
/etc/profile.d/atrpms.sh

So the problem was started since installing atrpms repository for yum through rpm.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,260
463
Hello :)

I am happy to hear you were able to resolve the issue. Thank you for sharing the solution.