You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Mike Dillinger <mi...@softtalker.com> on 2007/10/25 01:51:12 UTC

sa-update Problem with Archive::Tar

I am having a problem with sa-update:
No data could be read from file at /usr/bin/sa-update line 960
fatal: couldn't create Archive::Tar object!

I searched and couldn't find anything on the Internet that would help me figure out this problem so I'm trying this.  :)

Here are some system details.  I am running Red Hat 9 (Shrike) and I upgraded from v2.6.3 to v3.2.3.  I have upgraded before on other systems and not had this problem.

I checked /tmp and it looks like the files are being created properly, and sa-update is being run as root like so: sa-update --gpghomedir /etc/spamassassin/sa-update-keys --channelfile /etc/spamassassin/channels.

SpamAssassin itself (spamd) seems to be running and working fine.  My only problem seems to be sa-update.

Here is the verbose sa-update output:
[28512] dbg: logger: adding facilities: all
[28512] dbg: logger: logging level is DBG
[28512] dbg: generic: SpamAssassin version 3.2.3
[28512] dbg: config: score set 0 chosen.
[28512] dbg: dns: no ipv6
[28512] dbg: dns: is Net::DNS::Resolver available? yes
[28512] dbg: dns: Net::DNS version: 0.61
[28512] dbg: generic: sa-update version svn540384
[28512] dbg: generic: using update directory: /var/lib/spamassassin/3.002003
[28512] dbg: diag: perl platform: 5.008 linux
[28512] dbg: diag: module installed: Digest::SHA1, version 2.01
[28512] dbg: diag: module installed: HTML::Parser, version 3.55
[28512] dbg: diag: module installed: Net::DNS, version 0.61
[28512] dbg: diag: module installed: MIME::Base64, version 2.12
[28512] dbg: diag: module installed: DB_File, version 1.806
[28512] dbg: diag: module installed: Net::SMTP, version 2.24
[28512] dbg: diag: module not installed: Mail::SPF ('require' failed)
[28512] dbg: diag: module not installed: Mail::SPF::Query ('require' failed)
[28512] dbg: diag: module not installed: IP::Country::Fast ('require' failed)
[28512] dbg: diag: module not installed: Razor2::Client::Agent ('require' failed)
[28512] dbg: diag: module not installed: Net::Ident ('require' failed)
[28512] dbg: diag: module not installed: IO::Socket::INET6 ('require' failed)
[28512] dbg: diag: module not installed: IO::Socket::SSL ('require' failed)
[28512] dbg: diag: module installed: Compress::Zlib, version 1.16
[28512] dbg: diag: module installed: Time::HiRes, version 1.38
[28512] dbg: diag: module not installed: Mail::DomainKeys ('require' failed)
[28512] dbg: diag: module not installed: Mail::DKIM ('require' failed)
[28512] dbg: diag: module installed: DBI, version 1.32
[28512] dbg: diag: module installed: Getopt::Long, version 2.32
[28512] dbg: diag: module installed: LWP::UserAgent, version 2.001
[28512] dbg: diag: module installed: HTTP::Date, version 1.44
[28512] dbg: diag: module installed: Archive::Tar, version 1.32
[28512] dbg: diag: module installed: IO::Zlib, version 1.05
[28512] dbg: diag: module not installed: Encode::Detect ('require' failed)
[28512] dbg: gpg: Searching for 'gpg'
[28512] dbg: util: current PATH is: /sbin:/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin
[28512] dbg: util: executable for gpg was found at /usr/bin/gpg
[28512] dbg: gpg: found /usr/bin/gpg
[28512] dbg: gpg: release trusted key id list: 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE
[28512] dbg: channel: reading in channelfile /etc/mail/spamassassin/channels
[28512] dbg: channel: adding updates.spamassassin.org
[28512] dbg: channel: attempting channel updates.spamassassin.org
[28512] dbg: channel: update directory /var/lib/spamassassin/3.002003/updates_spamassassin_org
[28512] dbg: channel: channel cf file /var/lib/spamassassin/3.002003/updates_spamassassin_org.cf
[28512] dbg: channel: channel pre file /var/lib/spamassassin/3.002003/updates_spamassassin_org.pre
[28512] dbg: dns: 3.2.3.updates.spamassassin.org => 585505, parsed as 585505
[28512] dbg: channel: preparing temp directory for new channel
[28512] dbg: generic: update tmp directory /tmp/.spamassassin28512yWE8tGtmp
[28512] dbg: generic: lint checking site pre files once before attempting channel updates
[28512] dbg: generic: SpamAssassin version 3.2.3
[28512] dbg: config: score set 0 chosen.
[28512] dbg: dns: no ipv6
[28512] dbg: dns: is Net::DNS::Resolver available? yes
[28512] dbg: dns: Net::DNS version: 0.61
[28512] dbg: ignore: using a test message to lint rules
[28512] dbg: config: using "/etc/mail/spamassassin" for site rules pre files
[28512] dbg: config: read file /etc/mail/spamassassin/init.pre
[28512] dbg: config: read file /etc/mail/spamassassin/v310.pre
[28512] dbg: config: read file /etc/mail/spamassassin/v312.pre
[28512] dbg: config: read file /etc/mail/spamassassin/v320.pre
[28512] dbg: config: using "/tmp/.spamassassin28512yWE8tGtmp/doesnotexist" for sys rules pre files
[28512] dbg: config: using "/tmp/.spamassassin28512yWE8tGtmp/doesnotexist" for default rules dir
[28512] dbg: config: using "/tmp/.spamassassin28512yWE8tGtmp/doesnotexist/doesnotexist" for user prefs file
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDNSBL from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::Hashcash from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::SPF from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::Pyzor from @INC
[28512] dbg: pyzor: local tests only, disabling Pyzor
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::Razor2 from @INC
[28512] dbg: razor2: local tests only, skipping Razor
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::SpamCop from @INC
[28512] dbg: reporter: local tests only, disabling SpamCop
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::AWL from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::AutoLearnThreshold from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::WhiteListSubject from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEHeader from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::ReplaceTags from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::Check from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTTPSMismatch from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIDetail from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::Bayes from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::BodyEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::DNSEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::HTMLEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::HeaderEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::MIMEEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::RelayEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::URIEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::WLBLEval from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::VBounce from @INC
[28512] dbg: plugin: loading Mail::SpamAssassin::Plugin::ImageInfo from @INC
[28512] dbg: conf: finish parsing
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::ReplaceTags=HASH(0x8e09180) implements 'finish_parsing_end', priority 0
[28512] dbg: replacetags: replacing tags
[28512] dbg: replacetags: done replacing tags
[28512] dbg: config: score set 0 chosen.
[28512] dbg: message: main message type: text/plain
[28512] dbg: message: ---- MIME PARSER START ----
[28512] dbg: message: parsing normal part
[28512] dbg: message: ---- MIME PARSER END ----
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::DNSEval=HASH(0x8eb8788) implements 'check_start', priority 0
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x8e14780) implements 'check_main', priority 0
[28512] dbg: conf: trusted_networks are not configured; it is recommended that you configure trusted_networks manually
[28512] dbg: metadata: X-Spam-Relays-Trusted:
[28512] dbg: metadata: X-Spam-Relays-Untrusted:
[28512] dbg: metadata: X-Spam-Relays-Internal:
[28512] dbg: metadata: X-Spam-Relays-External:
[28512] dbg: message: no encoding detected
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::URIDNSBL=HASH(0x8cf90c8) implements 'parsed_metadata', priority 0
[28512] dbg: dns: is_dns_available() last checked 1193268059 seconds ago; re-checking
[28512] dbg: dns: is DNS available? 0
[28512] dbg: rules: local tests only, ignoring RBL eval
[28512] dbg: check: is spam? score=0 required=5
[28512] dbg: check: tests=
[28512] dbg: check: subtests=
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::MIMEHeader=HASH(0x8df5100) implements 'finish_tests', priority 0
[28512] dbg: plugin: Mail::SpamAssassin::Plugin::Check=HASH(0x8e14780) implements 'finish_tests', priority 0
[28512] dbg: generic: lint check of site pre files succeeded, continuing with channel updates
[28512] dbg: channel: no MIRRORED.BY file available
[28512] dbg: http: GET request, http://spamassassin.apache.org/updates/MIRRORED.BY
[28512] dbg: channel: MIRRORED.BY file retrieved
[28512] dbg: channel: reading MIRRORED.BY file
[28512] dbg: channel: found mirror http://spamassassin.kluge.net/updates/ weight=5
[28512] dbg: channel: found mirror http://daryl.dostech.ca/sa-update/asf/ weight=5
[28512] dbg: channel: found mirror http://www.sa-update.pccc.com/ weight=1
[28512] dbg: channel: selected mirror http://spamassassin.kluge.net/updates
[28512] dbg: http: GET request, http://spamassassin.kluge.net/updates/585505.tar.gz
[28512] dbg: http: GET request, http://spamassassin.kluge.net/updates/585505.tar.gz.sha1
[28512] dbg: http: GET request, http://spamassassin.kluge.net/updates/585505.tar.gz.asc
[28512] dbg: sha1: verification wanted: 1a23da2734878f4eaa6e6ad38759b6c20e8f9146
[28512] dbg: sha1: verification result: 1a23da2734878f4eaa6e6ad38759b6c20e8f9146
[28512] dbg: channel: populating temp content file
[28512] dbg: gpg: populating temp signature file
[28512] dbg: gpg: calling gpg
[28512] dbg: gpg: gpg: Signature made Wed Oct 17 06:48:51 2007 MST using RSA key ID 24F434CE
[28512] dbg: gpg: [GNUPG:] SIG_ID Emg1JV9olorfVRHATbRNiCz2BXA 2007-10-17 1192628931
[28512] dbg: gpg: [GNUPG:] GOODSIG 6C55397824F434CE updates.spamassassin.org Signing Key <re...@spamassassin.org>
[28512] dbg: gpg: gpg: Good signature from "updates.spamassassin.org Signing Key <re...@spamassassin.org>"
[28512] dbg: gpg: [GNUPG:] VALIDSIG 0C2B1D7175B852C64B3CDC716C55397824F434CE 2007-10-17 1192628931 0
[28512] dbg: gpg: [GNUPG:] TRUST_UNDEFINED
[28512] dbg: gpg: gpg: WARNING: This key is not certified with a trusted signature!
[28512] dbg: gpg: gpg: There is no indication that the signature belongs to the owner.
[28512] dbg: gpg: Primary key fingerprint: 5E54 1DC9 59CB 8BAC 7C78 DFDC 4056 A61A 5244 EC45
[28512] dbg: gpg: Subkey fingerprint: 0C2B 1D71 75B8 52C6 4B3C DC71 6C55 3978 24F4 34CE
[28512] dbg: gpg: found signature made by key 0C2B1D7175B852C64B3CDC716C55397824F434CE
[28512] dbg: gpg: key id 0C2B1D7175B852C64B3CDC716C55397824F434CE is release trusted
[28512] dbg: channel: file verification passed, testing update
[28512] dbg: channel: extracting archive
No data could be read from file at /usr/bin/sa-update line 960
fatal: couldn't create Archive::Tar object!

Any help is greatly appreciated.  Thanks!
-MikeD


Re[2]: sa-update Problem with Archive::Tar

Posted by Mike Dillinger <mi...@softtalker.com>.
--- Original Message
From: Michael Scheidell <sc...@secnap.net>
Sent: Wednesday, October 24, 2007, at 06:10PM PDT (GMT -0700)

>> update [28512] dbg: channel: extracting archive No data could 
>> be read from file at /usr/bin/sa-update line 960
>> fatal: couldn't create Archive::Tar object!

>> Any help is greatly appreciated.  Thanks!
>> -MikeD

MS> You might want to look at the README and dependencies.

MS> Sa-update is new to 3.x and requires the perl module 'Archive::Tar'.
MS> In fact, if you have Archive::Tar, you might check the README for
MS> mininum versions

MS> Missing or down rev module could cause the problem

I figured out the problem.  I forgot to uninstall v2.6.3 first.  So I uninstalled v2.6.3 and then installed 3.2.3 again and everything seems to be working fine.

SpamAssassin won't install unless you have Archive::Tar installed.  That package was already installed.

Thanks!
-MikeD


RE: sa-update Problem with Archive::Tar

Posted by Michael Scheidell <sc...@secnap.net>.
> update [28512] dbg: channel: extracting archive No data could 
> be read from file at /usr/bin/sa-update line 960
> fatal: couldn't create Archive::Tar object!
> 
> Any help is greatly appreciated.  Thanks!
> -MikeD
> 
> 
You might want to look at the README and dependencies.

Sa-update is new to 3.x and requires the perl module 'Archive::Tar'.
In fact, if you have Archive::Tar, you might check the README for
mininum versions

Missing or down rev module could cause the problem

-- 
Michael Scheidell, CTO
Office: 561-999-5000 x 1259
Direct: 561-939-7259
Real time security alerts: http://www.secnap.com/news
_________________________________________________________________________
This email has been scanned and certified safe by SpammerTrap(tm). 
For Information please see http://www.spammertrap.com
_________________________________________________________________________