Koozali.org: home of the SME Server

Obsolete Releases => SME 7.x Contribs => Topic started by: idyll on January 03, 2007, 04:50:19 PM

Title: error when running sa-update
Post by: idyll on January 03, 2007, 04:50:19 PM
I recently upgraded to 7.1.  My cron-driven sa-update routine is now reporting the following...

I'm hoping Brian R or another SA expert can chime in and give me a pointer.

thanks

patrick

Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_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.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.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/bin/sa-update line 94.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 94.
Title: error when running sa-update
Post by: brianr on January 03, 2007, 05:21:31 PM
Please post the contents of the sa-update file, plus have you tried to run it from the command line?

cd /etc/cron.daily
./sa-update

I sucessfully ran one on a 7.1 system yesterday, and also one this morning.
Title: see initial post
Post by: idyll on January 03, 2007, 05:32:38 PM
Brian - what I posted (above) is the output.

regards,
patrick
Title: Re: see initial post
Post by: brianr on January 03, 2007, 06:18:41 PM
Quote from: "idyll"
Brian - what I posted (above) is the output.

regards,
patrick


yes, I'd like to know exactly which copy of my "sa-update" you are using.

also try running the SA sa-update from the command line:

cd ~root
sa-update -D
Title: sa-update
Post by: idyll on January 03, 2007, 06:22:59 PM
I am using the version dated 08-Aug-2006 from your download page. I downloaded and installed it this morning.

The output above is what appears when running from the command line.

Thanks.

regards,

patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 06:34:11 PM
ok, looks lik a problem with the SA install, but please try:

cd ~root
sa-update -D

and give me the output, also try:

spamassassin -D --lint

to check that SA is able to run.

Do you have any other contribs installed?
Title: output
Post by: idyll on January 03, 2007, 06:40:02 PM
The output is unchanged..

[root@galadriel ~]# sa-update -D
Can't locate Archive/Tar.pm in @INC (@INC contains: /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_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.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.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/bin/sa-update line 94.
BEGIN failed--compilation aborted at /usr/bin/sa-update line 94.


The response to spamassassin -D --lint  is perfect, showing no issues other than the expected one of the (new) database not having learned 200 messages yet. It is busy learning ham and spam as seen in the spamd/current log.

regards,
patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 06:42:57 PM
that is definatly NOT what I get (on 3 seperate 7.1 systems).

what is the output from ls -l /usr/bin/sa-update ?

What is the history of your server - is it an update from SME6, or a new install SME7?
Title: output
Post by: idyll on January 03, 2007, 06:44:50 PM
[root@galadriel ~]# ls -l /usr/bin/sa-update

-r-xr-xr-x  1 root root 41755 Oct 11 06:54 /usr/bin/sa-update

It's a 7.0 updated to 7.1 using yum.

As far as other contribs, I failed to answer. I use Disk ARchive for backups and also installed Michael's SA rpm to lower the thresholds, etc. It was used on the 7.0 server as well, as was the backup contrib.

patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 06:46:59 PM
ok, same as mine.

Background to the server?
Title: unclear
Post by: idyll on January 03, 2007, 06:52:45 PM
Brian, I'm not sure I know what you are asking.

The history of the server is that it was a 7.0 yum-updated to 7.1 . I was NOT using the sa-update process previously.

I actually suffered a catastrophic failure after the upgrade, and using the DAR contrib did a full restore of ~80GB of user and info bay data. I cannot find any other issues with the server.

In fact, if  were not trying to run the sa-learn I would consider myself free and clear. Very odd.

patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 06:58:10 PM
try ls -l /usr/lib/perl5/vendor_perl/5.8.5/Archive/Tar.pm
Title: nada
Post by: idyll on January 03, 2007, 06:59:18 PM
No such file or directory.

Any idea where to find this thing?

patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 07:04:44 PM
ok, now we can see why sa-update is failing.  Clearly your "catastrophic" failure and subsequent restore has still left out a whole chunk of the perl structure.  

Can you work back up the path of the file that I gave you to see how much is missing?  Use "mc" if you are familiar with it.

However the quickest might be to retain your dar archive, wipe the discs and re-install SME7.1, then retore from the dar archive.
Title: nasty
Post by: idyll on January 03, 2007, 08:47:41 PM
I chased it down.

I had to manually install three items to eliminate the issue...

perl-Compress-Zlib
perl-IO-Zlib
perl-Archive-Tar.noarch 0:1.26-1.2.el4.rf

It was interesting to see the number of replies I found using Google to this exact issue, across multiple platforms, etc.

But, the sa-learn command now performs as expected.

Thanks for the help.

regards,
patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 08:55:06 PM
No problem.

Just uploaded slightly better one which only emails you when it does a rule update.

I am hoping that while we are "up to date" with the SA version we can get rule updates quite often to keep up with the spam.
Title: cool
Post by: idyll on January 03, 2007, 08:57:34 PM
I'll grab it as soon as the site updates.

I agree with you, it's all we can do and it is necessary in light of the tonnage of SPAM.

patrick
Title: error when running sa-update
Post by: dmay on January 03, 2007, 08:58:21 PM
In SME 7.x, no perl-Archive rpms appear to be installed by default. However perl-Archive-Tar is available:

[root@sme71]# yum list perl-Archive*
==============================================================
WARNING: Additional commands may be required after running yum
==============================================================
Loading "smeserver" plugin
Loading "fastestmirror" plugin
Setting up repositories
smeaddons                 100% |=========================|  951 B    00:00
updates                   100% |=========================|  951 B    00:00
base                      100% |=========================| 1.1 kB    00:00
smeos                     100% |=========================|  951 B    00:00
smeupdates                100% |=========================|  951 B    00:00
Loading mirror speeds from cached hostfile
Reading repository metadata in from local files
primary.xml.gz            100% |=========================| 229 kB    00:01
smeos     : ################################################## 481/481
Added 301 new packages, deleted 305 old in 8.90 seconds
Available Packages
perl-Archive-Tar.noarch                  1.26-1.2.el4.rf        smeos
================================================================
No new rpms were installed. No additional commands are required.
================================================================

Darrell
Title: yup
Post by: idyll on January 03, 2007, 09:01:51 PM
Thanks Darrell, that is one of the items I had to install to fix this issue.

And if you missed my other post, your DAR restore totally and completely recovered a failed system for me late last night. I replied in your DAR post.

regards,

patrick
Title: error when running sa-update
Post by: brianr on January 03, 2007, 09:17:54 PM
I've got 3 x 7.1 systems, 2 updated from 7.0 and one brand new 7.1, all of which do not get the sa-update problem.  I presume that means that yum silently installed the extra libs?

The brand new one has not had a yum update AFAICT.

Sorry, scratch that out - all were 7.0, updated to 7.1 by yum..

(even more) Confused...
Title: error when running sa-update
Post by: brianr on January 04, 2007, 06:20:06 PM
ok, built a new sme7.1 system today, and as expected from above, running /usr/bin/sa-update -D

Gives the error relating to the missing perl lib.

Installing the folowing, then allows sa-update to run.

perl-Compress-Zlib
perl-IO-Zlib
perl-Archive-Tar.noarch 0:1.26-1.2.el4.rf

Have opened a bug for this:

http://bugs.contribs.org/show_bug.cgi?id=2235
Title: yup.
Post by: idyll on January 04, 2007, 06:47:06 PM
And my server software GUI had two perl rpms to download and install this morning. I don't know if they are related to your filing of the bug, but they may be.

See, I wasn't crazy.  ;-)

patrick