SpamAssassin no such file directory Util.pm
Hello,
i receive the following issue during a daily cronjob.
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105.: 93 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN339> line 806.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN102> line 736.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN64> line 86.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN286> line 221.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN605> line 78.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN627> line 1198.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN760> line 891.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN783> line 166.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN438> line 254.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN22> line 236.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN632> line 913.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN171> line 2197.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN663> line 1385.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN376> line 343.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN380> line 483.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN789> line 67.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN340> line 53.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN597> line 168.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN475> line 612.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN248> line 402.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN182> line 977.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN746> line 1636.: 1 Time(s)
Can't exec "/bin/pyzor": No such file or directory at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/Mail/SpamAssassin/Util.pm line 2105, <GEN108> line 1409.: 1 Time(s)
Can you please help me find out how to fix it?
Thank you
-
Hey there! Usually when we see this happen, *something* on the server has added /bin/pyzor and that is being called first instead of the correct path to the SpamAssassin utilities. It's important to note that cPanel doesn't use that file path for anything.
I would do the following to check and confirm this is the case:
-run the following command to see if this file is linked to any package:
rpm -qf /bin/pyzor
-if that doesn't show any results, it isn't linked to a package so there wouldn't be any dependencies related to that file. You can do the following to move that out of the way:
mv -v /bin/pyzor /root/pyzor.file
and then restart the SpamAssassin service:
/scripts/restartsrv_spamd
Can you let me know if that takes care of the issue?
0 -
Hi! Thank you for the reply!
I run the 1st command and pyzor return me no dependencies so i completed the next two commands. Unfortunately i receive exact the same report at logwatch under SpamAssassin service.As cPanel doesn't use that pyzor file path i decided to edit the service code:
nano /usr/share/logwatch/scripts/services/spamassassin
and mark as comment the following lines at the end of this file:
#if (keys %OtherList) {
# print "\n**Unmatched Entries**\n";
# foreach $line (sort {$OtherList{$b}<=>$OtherList{$a} } keys %OtherList) {
# print " $line: $OtherList{$line} Time(s)\n";
# }
#}Now i see logwatch report clear as for this /bin/pyzor issue.
0 -
It may be worth submitting a ticket so our team could investigate this further so we can keep this from happening in the future, but that's up to you and how much you want to investigate this.
0
Please sign in to leave a comment.
Comments
3 comments