Koozali.org formerly Contribs.org

SHA512 verification failed, channel failed

SHA512 verification failed, channel failed
« on: August 04, 2020, 09:07:21 AM »
I'm not sure where to ask this but....

For the last few days I've been getting the following message:

/etc/cron.daily/sa_update:

channel: SHA512 verification failed, channel failed

Is it a problem or a bug or can anyone point me at a solution?

DuckDuck searches and here throw up no matches.

Thanks
...

Offline mmccarn

  • *
  • 2,555
Re: SHA512 verification failed, channel failed
« Reply #1 on: August 04, 2020, 12:50:45 PM »
Quote from: /etc/cron.daily/sa_update
#!/bin/bash
# Only restart spamd if sa-update returns 0, meaning it updated the rules
export HOME=/var/lib/spamassassin
cd $HOME
(/usr/bin/sa-update \
  --gpgkeyfile /etc/mail/spamassassin/gpgkeys \
  --channelfile /etc/mail/spamassassin/channels
\
  && service spamassassin condrestart > /dev/null) 2>&1 \
  | tee -a /var/log/sa-update.log

You can get debugging output that may be helpful if you run sa-update manually with "-D" added (for debug output):
Code: [Select]
cd /var/lib/spamassassin
/usr/bin/sa-update --gpgkeyfile /etc/mail/spamassassin/gpgkeys --channelfile /etc/mail/spamassassin/channels -D


Here is what I get on my server; maybe you have an extra channel configured?

Code: [Select]
# /usr/bin/sa-update --gpgkeyfile /etc/mail/spamassassin/gpgkeys --channelfile /etc/mail/spamassassin/channels -D
Aug  4 06:40:36.108 [26504] dbg: logger: adding facilities: all
Aug  4 06:40:36.109 [26504] dbg: logger: logging level is DBG
Aug  4 06:40:36.109 [26504] dbg: generic: SpamAssassin version 3.4.2
Aug  4 06:40:36.109 [26504] dbg: generic: Perl 5.010001, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Aug  4 06:40:36.110 [26504] dbg: config: timing enabled
Aug  4 06:40:36.119 [26504] dbg: config: score set 0 chosen.
Aug  4 06:40:36.134 [26504] dbg: generic: sa-update version 3.4.2 / svn1840377
Aug  4 06:40:36.134 [26504] dbg: generic: using update directory: /var/lib/spamassassin/3.004002
Aug  4 06:40:36.619 [26504] dbg: diag: perl platform: 5.010001 linux
Aug  4 06:40:36.619 [26504] dbg: diag: [...] module installed: Digest::SHA, version 5.47
Aug  4 06:40:36.620 [26504] dbg: diag: [...] module installed: HTML::Parser, version 3.69
Aug  4 06:40:36.620 [26504] dbg: diag: [...] module installed: Net::DNS, version 0.71
Aug  4 06:40:36.620 [26504] dbg: diag: [...] module installed: NetAddr::IP, version 4.066
Aug  4 06:40:36.620 [26504] dbg: diag: [...] module installed: Time::HiRes, version 1.9721
Aug  4 06:40:36.620 [26504] dbg: diag: [...] module installed: Archive::Tar, version 1.58
Aug  4 06:40:36.621 [26504] dbg: diag: [...] module installed: IO::Zlib, version 1.09
Aug  4 06:40:36.621 [26504] dbg: diag: [...] module installed: Digest::SHA1, version 2.12
Aug  4 06:40:36.621 [26504] dbg: diag: [...] module installed: MIME::Base64, version 3.08
Aug  4 06:40:36.621 [26504] dbg: diag: [...] module installed: DB_File, version 1.82
Aug  4 06:40:36.622 [26504] dbg: diag: [...] module installed: Net::SMTP, version 2.31
Aug  4 06:40:36.622 [26504] dbg: diag: [...] module installed: Mail::SPF, version v2.008
Aug  4 06:40:36.622 [26504] dbg: diag: [...] module installed: Geo::IP, version 1.38
Aug  4 06:40:36.622 [26504] dbg: diag: [...] module installed: Net::CIDR::Lite, version 0.21
Aug  4 06:40:36.623 [26504] dbg: diag: [...] module installed: Razor2::Client::Agent, version 2.84
Aug  4 06:40:36.623 [26504] dbg: diag: [...] module not installed: IO::Socket::IP ('require' failed)
Aug  4 06:40:36.623 [26504] dbg: diag: [...] module installed: IO::Socket::INET6, version 2.72
Aug  4 06:40:36.623 [26504] dbg: diag: [...] module installed: IO::Socket::SSL, version 2.022
Aug  4 06:40:36.623 [26504] dbg: diag: [...] module installed: Compress::Zlib, version 2.021
Aug  4 06:40:36.624 [26504] dbg: diag: [...] module installed: Mail::DKIM, version 0.39
Aug  4 06:40:36.624 [26504] dbg: diag: [...] module installed: DBI, version 1.622
Aug  4 06:40:36.624 [26504] dbg: diag: [...] module installed: Getopt::Long, version 2.38
Aug  4 06:40:36.624 [26504] dbg: diag: [...] module installed: LWP::UserAgent, version 5.833
Aug  4 06:40:36.624 [26504] dbg: diag: [...] module installed: HTTP::Date, version 5.831
Aug  4 06:40:36.625 [26504] dbg: diag: [...] module installed: Encode::Detect::Detector, version 1.01
Aug  4 06:40:36.625 [26504] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
Aug  4 06:40:36.625 [26504] dbg: diag: [...] module not installed: Net::DNS::Nameserver ('require' failed)
Aug  4 06:40:36.625 [26504] dbg: diag: [...] module installed: BSD::Resource, version 1.2903
Aug  4 06:40:36.628 [26504] dbg: gpg: reading in gpgfile /etc/mail/spamassassin/gpgkeys
Aug  4 06:40:36.629 [26504] dbg: gpg: adding key id 26C900A46DD40CD5AD24F6D7DEE01987265FA05B
Aug  4 06:40:36.629 [26504] dbg: gpg: adding key id D8099BC79E17D7E49BC21E31FDE52F40F7D39814
Aug  4 06:40:36.630 [26504] dbg: gpg: adding key id 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
Aug  4 06:40:36.630 [26504] dbg: gpg: adding key id 8D25B5E91DAF0F715F60B588DC85341F6C6191E3
Aug  4 06:40:36.631 [26504] dbg: gpg: Searching for 'gpg'
Aug  4 06:40:36.631 [26504] dbg: util: current PATH is: /usr/local/rvm/gems/ruby-2.6.1/bin:/usr/local/rvm/gems/ruby-2.6.1@global/bin:/usr/local/rvm/rubies/ruby-2.6.1/bin:/sbin/e-smith:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/rvm/bin:/root/bin
Aug  4 06:40:36.632 [26504] dbg: util: executable for gpg was found at /usr/bin/gpg
Aug  4 06:40:36.632 [26504] dbg: gpg: found /usr/bin/gpg
Aug  4 06:40:36.633 [26504] dbg: gpg: release trusted key id list: 8D25B5E91DAF0F715F60B588DC85341F6C6191E3 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE D8099BC79E17D7E49BC21E31FDE52F40F7D39814
Aug  4 06:40:36.633 [26504] dbg: channel: reading in channelfile /etc/mail/spamassassin/channels
Aug  4 06:40:36.634 [26504] dbg: channel: adding updates.spamassassin.org
Aug  4 06:40:36.635 [26504] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin26504Dy8Qaatmp
Aug  4 06:40:36.635 [26504] dbg: channel: attempting channel updates.spamassassin.org
Aug  4 06:40:36.636 [26504] dbg: channel: using existing directory /var/lib/spamassassin/3.004002/updates_spamassassin_org
Aug  4 06:40:36.636 [26504] dbg: channel: channel cf file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
Aug  4 06:40:36.636 [26504] dbg: channel: channel pre file /var/lib/spamassassin/3.004002/updates_spamassassin_org.pre
Aug  4 06:40:36.637 [26504] dbg: channel: metadata version = 1880516, from file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
Aug  4 06:40:36.712 [26504] dbg: dns: 2.4.3.updates.spamassassin.org => 1880516, parsed as 1880516
Aug  4 06:40:36.712 [26504] dbg: channel: current version is 1880516, new version is 1880516, skipping channel
Aug  4 06:40:36.713 [26504] dbg: diag: updates complete, exiting with code 1


Here is an old (2014!) post with more info on how spamassassin finds its channels for doing updates:
https://forums.contribs.org/index.php?topic=50498.0

Re: SHA512 verification failed, channel failed
« Reply #2 on: August 04, 2020, 08:08:30 PM »
Thanks for the prompt reply.

The first time I ran the command there were lots of error and it over filled the buffer on putty.  I set up logging and re-ran it with the following result:

Quote
[root@the-shed ~]# cd /var/lib/spamassassin
[root@the-shed spamassassin]# /usr/bin/sa-update --gpgkeyfile /etc/mail/spamassassin/gpgkeys --channelfile /etc/mail/spamassassin/channels -D
Aug  4 18:58:12.820 [27686] dbg: logger: adding facilities: all
Aug  4 18:58:12.820 [27686] dbg: logger: logging level is DBG
Aug  4 18:58:12.820 [27686] dbg: generic: SpamAssassin version 3.4.2
Aug  4 18:58:12.820 [27686] dbg: generic: Perl 5.010001, PREFIX=/usr, DEF_RULES_DIR=/usr/share/spamassassin, LOCAL_RULES_DIR=/etc/mail/spamassassin, LOCAL_STATE_DIR=/var/lib/spamassassin
Aug  4 18:58:12.820 [27686] dbg: config: timing enabled
Aug  4 18:58:12.824 [27686] dbg: config: score set 0 chosen.
Aug  4 18:58:12.828 [27686] dbg: generic: sa-update version 3.4.2 / svn1840377
Aug  4 18:58:12.828 [27686] dbg: generic: using update directory: /var/lib/spamassassin/3.004002
Aug  4 18:58:12.966 [27686] dbg: diag: perl platform: 5.010001 linux
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Digest::SHA, version 5.47
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: HTML::Parser, version 3.69
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Net::DNS, version 0.71
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: NetAddr::IP, version 4.066
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Time::HiRes, version 1.9721
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Archive::Tar, version 1.58
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: IO::Zlib, version 1.09
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Digest::SHA1, version 2.12
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: MIME::Base64, version 3.08
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: DB_File, version 1.82
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Net::SMTP, version 2.31
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Mail::SPF, version v2.008
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Geo::IP, version 1.38
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Net::CIDR::Lite, version 0.21
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Razor2::Client::Agent, version 2.84
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module not installed: IO::Socket::IP ('require' failed)
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: IO::Socket::INET6, version 2.72
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: IO::Socket::SSL, version 2.022
Aug  4 18:58:12.966 [27686] dbg: diag: [...] module installed: Compress::Zlib, version 2.021
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: Mail::DKIM, version 0.39
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: DBI, version 1.622
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: Getopt::Long, version 2.38
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: LWP::UserAgent, version 5.833
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: HTTP::Date, version 5.831
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: Encode::Detect::Detector, version 1.01
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module not installed: Net::Patricia ('require' failed)
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module not installed: Net::DNS::Nameserver ('require' failed)
Aug  4 18:58:12.967 [27686] dbg: diag: [...] module installed: BSD::Resource, version 1.2903
Aug  4 18:58:12.968 [27686] dbg: gpg: reading in gpgfile /etc/mail/spamassassin/gpgkeys
Aug  4 18:58:12.968 [27686] dbg: gpg: adding key id 26C900A46DD40CD5AD24F6D7DEE01987265FA05B
Aug  4 18:58:12.968 [27686] dbg: gpg: adding key id D8099BC79E17D7E49BC21E31FDE52F40F7D39814
Aug  4 18:58:12.968 [27686] dbg: gpg: adding key id 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
Aug  4 18:58:12.968 [27686] dbg: gpg: adding key id 8D25B5E91DAF0F715F60B588DC85341F6C6191E3
Aug  4 18:58:12.968 [27686] dbg: gpg: Searching for 'gpg'
Aug  4 18:58:12.968 [27686] dbg: util: current PATH is: /sbin/e-smith:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
Aug  4 18:58:12.969 [27686] dbg: util: executable for gpg was found at /usr/bin/gpg
Aug  4 18:58:12.969 [27686] dbg: gpg: found /usr/bin/gpg
Aug  4 18:58:12.969 [27686] dbg: gpg: release trusted key id list: 8D25B5E91DAF0F715F60B588DC85341F6C6191E3 5E541DC959CB8BAC7C78DFDC4056A61A5244EC45 26C900A46DD40CD5AD24F6D7DEE01987265FA05B 0C2B1D7175B852C64B3CDC716C55397824F434CE D8099BC79E17D7E49BC21E31FDE52F40F7D39814
Aug  4 18:58:12.969 [27686] dbg: channel: reading in channelfile /etc/mail/spamassassin/channels
Aug  4 18:58:12.969 [27686] dbg: channel: adding updates.spamassassin.org
Aug  4 18:58:12.969 [27686] dbg: util: secure_tmpfile created a temporary file /tmp/.spamassassin27686B3F7notmp
Aug  4 18:58:12.969 [27686] dbg: channel: attempting channel updates.spamassassin.org
Aug  4 18:58:12.970 [27686] dbg: channel: using existing directory /var/lib/spamassassin/3.004002/updates_spamassassin_org
Aug  4 18:58:12.970 [27686] dbg: channel: channel cf file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
Aug  4 18:58:12.970 [27686] dbg: channel: channel pre file /var/lib/spamassassin/3.004002/updates_spamassassin_org.pre
Aug  4 18:58:12.970 [27686] dbg: channel: metadata version = 1880516, from file /var/lib/spamassassin/3.004002/updates_spamassassin_org.cf
Aug  4 18:58:12.987 [27686] dbg: dns: 2.4.3.updates.spamassassin.org => 1880516, parsed as 1880516
Aug  4 18:58:12.987 [27686] dbg: channel: current version is 1880516, new version is 1880516, skipping channel
Aug  4 18:58:12.987 [27686] dbg: diag: updates complete, exiting with code 1
[root@the-shed spamassassin]#

************************

Which seems to be similar to yours.  From my (VERY) limit knowledge there appear to be no errors?

I await tonight's run to see if it is fixed but why did it happen?


...