Koozali.org: home of the SME Server

error when running sa-update

Offline idyll

  • ****
  • 113
  • +0/-0
error when running sa-update
« 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.
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #1 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
see initial post
« Reply #2 on: January 03, 2007, 05:32:38 PM »
Brian - what I posted (above) is the output.

regards,
patrick
...

Offline brianr

  • *
  • 990
  • +2/-0
Re: see initial post
« Reply #3 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
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
sa-update
« Reply #4 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
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #5 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?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
output
« Reply #6 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
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #7 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?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
output
« Reply #8 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
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #9 on: January 03, 2007, 06:46:59 PM »
ok, same as mine.

Background to the server?
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
unclear
« Reply #10 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
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #11 on: January 03, 2007, 06:58:10 PM »
try ls -l /usr/lib/perl5/vendor_perl/5.8.5/Archive/Tar.pm
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
nada
« Reply #12 on: January 03, 2007, 06:59:18 PM »
No such file or directory.

Any idea where to find this thing?

patrick
...

Offline brianr

  • *
  • 990
  • +2/-0
error when running sa-update
« Reply #13 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline idyll

  • ****
  • 113
  • +0/-0
nasty
« Reply #14 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
...