You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by mbeis <mb...@xs4all.nl> on 2010/02/14 22:19:44 UTC

sa-update channel problem

Hi,

After upgrading SpamAssassin to 3.3.0 on FreeBSD 8-Stable, spamd doesn't
start anymore and exits with an error:

child process [xxxxx] exited or timed out without signaling production of a
PID file: exit 25 at /usr/local/bin/spamd line 2544.

It seems that I have to run sa-update first in order for SA to work. But
sa-update exits with an error too, sa-update -D gives:

Feb 14 22:12:46.153 [11706] dbg: logger: adding facilities: all
Feb 14 22:12:46.153 [11706] dbg: logger: logging level is DBG
Feb 14 22:12:46.153 [11706] dbg: generic: SpamAssassin version 3.3.0
Feb 14 22:12:46.153 [11706] dbg: generic: Perl 5.010001, PREFIX=/usr/local,
DEF_RULES_DIR=/usr/local/share/spamassassin,
LOCAL_RULES_DIR=/usr/local/etc/mail/spamassassin,
LOCAL_STATE_DIR=/var/db/spamassassin
Feb 14 22:12:46.153 [11706] dbg: config: timing enabled
Feb 14 22:12:46.154 [11706] dbg: config: score set 0 chosen.
Feb 14 22:12:46.201 [11706] dbg: dns: is Net::DNS::Resolver available? yes
Feb 14 22:12:46.201 [11706] dbg: dns: Net::DNS version: 0.66
Feb 14 22:12:46.202 [11706] dbg: generic: sa-update version svn897929
Feb 14 22:12:46.202 [11706] dbg: generic: using update directory:
/var/db/spamassassin/3.003000
Feb 14 22:12:46.507 [11706] dbg: diag: perl platform: 5.010001 freebsd
Feb 14 22:12:46.507 [11706] dbg: diag: [...] module installed: Digest::SHA1,
version 2.12
Feb 14 22:12:46.507 [11706] dbg: diag: [...] module installed: HTML::Parser,
version 3.64
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Net::DNS,
version 0.66
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: NetAddr::IP,
version 4.027
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Time::HiRes,
version 1.9719
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Archive::Tar,
version 1.56
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: IO::Zlib,
version 1.10
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Digest::SHA1,
version 2.12
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: MIME::Base64,
version 3.09
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: DB_File,
version 1.82
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Net::SMTP,
version 2.31
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Mail::SPF,
version v2.007
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed:
IP::Country::Fast, version 604.001
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed:
Razor2::Client::Agent, version 2.84
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed: Net::Ident,
version 1.20
Feb 14 22:12:46.508 [11706] dbg: diag: [...] module installed:
IO::Socket::INET6, version 2.56
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed:
IO::Socket::SSL, version 1.31
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed:
Compress::Zlib, version 2.015
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed: Mail::DKIM,
version 0.37
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed: DBI, version
1.609
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed: Getopt::Long,
version 2.38
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed:
LWP::UserAgent, version 5.834
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed: HTTP::Date,
version 5.831
Feb 14 22:12:46.509 [11706] dbg: diag: [...] module installed:
Encode::Detect, version 1.01
Feb 14 22:12:46.510 [11706] dbg: gpg: Searching for 'gpg'
Feb 14 22:12:46.510 [11706] dbg: util: current PATH is:
/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin
Feb 14 22:12:46.511 [11706] dbg: util: executable for gpg was found at
/usr/local/bin/gpg
Feb 14 22:12:46.511 [11706] dbg: gpg: found /usr/local/bin/gpg
Feb 14 22:12:46.511 [11706] dbg: gpg: release trusted key id list:
5E541DC959CB8BAC7C78DFDC4056A61A5244EC45
26C900A46DD40CD5AD24F6D7DEE01987265FA05B
0C2B1D7175B852C64B3CDC716C55397824F434CE
Feb 14 22:12:46.518 [11706] dbg: channel: attempting channel
updates.spamassassin.org
Feb 14 22:12:46.518 [11706] dbg: channel: update directory
/var/db/spamassassin/3.003000/updates_spamassassin_org
Feb 14 22:12:46.518 [11706] dbg: channel: channel cf file
/var/db/spamassassin/3.003000/updates_spamassassin_org.cf
Feb 14 22:12:46.518 [11706] dbg: channel: channel pre file
/var/db/spamassassin/3.003000/updates_spamassassin_org.pre
Feb 14 22:12:46.522 [11706] dbg: dns: query failed:
0.3.3.updates.spamassassin.org => NOERROR
Feb 14 22:12:46.525 [11706] dbg: dns: query failed:
mirrors.updates.spamassassin.org => NOERROR
channel: no 'mirrors.updates.spamassassin.org' record found, channel failed
Feb 14 22:12:46.525 [11706] dbg: diag: updates complete, exiting with code 4

I've no idea where to look to solve this. Has anyone here have an idea what
causes this?

Thanks,
Marco
-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27587078.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by Kai Schaetzl <ma...@conactive.com>.
Mbeis wrote on Sun, 14 Feb 2010 13:19:44 -0800 (PST):

> It seems that I have to run sa-update first in order for SA to work. But
> sa-update exits with an error too, sa-update -D gives:

I think I have seen a few messages over this weekend about update 
problems. There must have been/be some server issues. I suggest trying it 
several times and if it still doesn't work retrieve the rules file 
manually and install it. There is a "SpamAssassin sa-update rules tarball" 
link on the download page. Run sa-update --help to get syntax for manual 
installation of rules.

Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com




Re: sa-update channel problem

Posted by Kai Schaetzl <ma...@conactive.com>.
Mbeis wrote on Mon, 15 Feb 2010 07:04:35 -0800 (PST):

> What can I change in it to
> make DNS work for spamassassin?

how should we know? Maybe it's not doing TXT field lookups or a server in 
the chain doesn't do them or a firewall doesn't like that. It's best you 
talk to your service provider and ask for the nameservers you should use. 
Then compare with what you have set. There might also be some caching 
involved, so a reboot might help.
It seems you are not getting any answers back to TXT type queries.
Correct answers are:

;; ANSWER SECTION:
mirrors.updates.spamassassin.org. 3600 IN TXT   
"http://spamassassin.apache.org/updates/MIRRORED.BY"

and for the original query:
;; ANSWER SECTION:
0.3.3.updates.spamassassin.org. 3600 IN TXT     "903765"



Kai

-- 
Get your web at Conactive Internet Services: http://www.conactive.com




Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.
After installing the tarball manually, spamd now starts.
Leaves figuring out what is wrong with my DNS. But it's nice to have
SpamAssassin working again.
Thanks for all your help!

Regards,
Marco
-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27595955.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


[Solved] Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.

Matus UHLAR - fantomas wrote:
> 
> 
> try replacing with another one for a while if it helps. Or maybe
> installing
> a new firmware or new DSL router could help...
> 
> 

Thank you Matus for your hint. I upgraded my modem with a new firmware and
now sa-update works!
Thanks everybody for your help.

Regards,
Marco
-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27600668.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by Matus UHLAR - fantomas <uh...@fantomas.sk>.
> Karsten Bräckelmann-2 wrote:
> > 
> >> ;; QUESTION SECTION:
> >> ;mirrors.updates.spamassassin.org. IN	TXT
> >> 
> >> ;; Query time: 1 msec
> >> ;; SERVER: 10.0.0.138#53(10.0.0.138)
> > 
> > Maybe want to go see that server? ;)

On 15.02.10 07:04, mbeis wrote:
> This is the IP adress of my DSL router. I haven't touched it for a decade or
> so and I have never had a DNS problem before. What can I change in it to
> make DNS work for spamassassin?

try replacing with another one for a while if it helps. Or maybe installing
a new firmware or new DSL router could help...

-- 
Matus UHLAR - fantomas, uhlar@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
Christian Science Programming: "Let God Debug It!".

Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.


Karsten Bräckelmann-2 wrote:
> 
>> ;; QUESTION SECTION:
>> ;mirrors.updates.spamassassin.org. IN	TXT
>> 
>> ;; Query time: 1 msec
>> ;; SERVER: 10.0.0.138#53(10.0.0.138)
> 
> Maybe want to go see that server? ;)
> 
> 

This is the IP adress of my DSL router. I haven't touched it for a decade or
so and I have never had a DNS problem before. What can I change in it to
make DNS work for spamassassin?
-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27595138.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Mon, 2010-02-15 at 06:30 -0800, mbeis wrote:
> Karsten Bräckelmann wrote:

> > Once again, there is no IP for these, and it isn't supposed to have one.
> > 
> > You are missing the TXT type in your query. By default, dig performs a a
> > lookup for an A record.
> 
> dig -t TXT mirrors.updates.spamassassin.org
> 
> ; <<>> DiG 9.6.1-P1 <<>> -t TXT mirrors.updates.spamassassin.org
> ;; global options: +cmd
> ;; Got answer:
> ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39274
> ;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 4, ADDITIONAL: 7

As has been pointed out before, you seem to have DNS issues. Note the
answer and authority sections missing from your query.


> ;; QUESTION SECTION:
> ;mirrors.updates.spamassassin.org. IN	TXT
> 
> ;; Query time: 1 msec
> ;; SERVER: 10.0.0.138#53(10.0.0.138)

Maybe want to go see that server? ;)


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.


Karsten Bräckelmann-2 wrote:
> 
> On Mon, 2010-02-15 at 05:45 -0800, mbeis wrote:
>> When I enter dig 0.3.3.updates.spamassassin.org, I get:
> 
> Once again, there is no IP for these, and it isn't supposed to have one.
> 
> You are missing the TXT type in your query. By default, dig performs a a
> lookup for an A record.
> 
> 

dig -t TXT mirrors.updates.spamassassin.org

; <<>> DiG 9.6.1-P1 <<>> -t TXT mirrors.updates.spamassassin.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 39274
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 0, ADDITIONAL: 0

;; QUESTION SECTION:
;mirrors.updates.spamassassin.org. IN	TXT

;; Query time: 1 msec
;; SERVER: 10.0.0.138#53(10.0.0.138)
;; WHEN: Mon Feb 15 15:29:07 2010
;; MSG SIZE  rcvd: 50

-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27594578.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Mon, 2010-02-15 at 05:45 -0800, mbeis wrote:
> When I enter dig 0.3.3.updates.spamassassin.org, I get:

Once again, there is no IP for these, and it isn't supposed to have one.

You are missing the TXT type in your query. By default, dig performs a a
lookup for an A record.


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.
When I enter dig 0.3.3.updates.spamassassin.org, I get:

; <<>> DiG 9.6.1-P1 <<>> 0.3.3.updates.spamassassin.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42128
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;0.3.3.updates.spamassassin.org.	IN	A

;; AUTHORITY SECTION:
spamassassin.org.	661	IN	SOA	ns.hyperreal.org. pmc.spamassassin.apache.org.
2010021500 86400 3600 2678400 3600

;; Query time: 33 msec
;; SERVER: 10.0.0.138#53(10.0.0.138)
;; WHEN: Mon Feb 15 14:40:32 2010
;; MSG SIZE  rcvd: 121

And for dig mirrors.updates.spamassassin.org, I get:

; <<>> DiG 9.6.1-P1 <<>> mirrors.updates.spamassassin.org
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 22312
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;mirrors.updates.spamassassin.org. IN	A

;; AUTHORITY SECTION:
spamassassin.org.	3600	IN	SOA	ns.hyperreal.org. pmc.spamassassin.apache.org.
2010021500 86400 3600 2678400 3600

;; Query time: 182 msec
;; SERVER: 10.0.0.138#53(10.0.0.138)
;; WHEN: Mon Feb 15 14:42:49 2010
;; MSG SIZE  rcvd: 123


-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27593997.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by Martin Gregorie <ma...@gregorie.org>.
On Mon, 2010-02-15 at 13:34 +0100, Karsten Bräckelmann wrote:
> dig +short -t TXT 0.3.3.updates.spamassassin.org

That gets "903765" from here.


Martin



Re: sa-update channel problem

Posted by Karsten Bräckelmann <gu...@rudersport.de>.
On Mon, 2010-02-15 at 10:38 +0000, Martin Gregorie wrote:
> On Sun, 2010-02-14 at 23:46 -0800, mbeis wrote:
> > John Hardin wrote:

> > > What does "dig +short -t TXT 0.3.3.updates.spamassassin.org" return?
> > 
> > I have this computer running like this for 6 years now, and I've never had a
> > problem like this before. When I enter the command it returns nothing,
> > doesn't seem ok to me?

Yup -- it should return the TXT record.

> From here "traceroute spamassassin.org" works but ping reports 'unknown
> host' and traceroute reports 'Name or service not known' for
> updates.spamassassin.org and 0.3.3.updates.spamassassin.org
> 
> This looks like a network problem inside spamassassin.org to me.
> 
> To the OP: what results did you get with ping or traceroute?

It's not a real host, it's not supposed to have an IP. This is not an
issue and doesn't help diagnose the problem.

Try dig'ing for the TXT record as John mentioned. The returned value is
the rules' version.

  guenther


-- 
char *t="\10pse\0r\0dtu\0.@ghno\x4e\xc8\x79\xf4\xab\x51\x8a\x10\xf4\xf4\xc4";
main(){ char h,m=h=*t++,*x=t+2*h,c,i,l=*x,s=0; for (i=0;i<l;i++){ i%8? c<<=1:
(c=*++x); c&128 && (s+=h); if (!(h>>=1)||!t[s+h]){ putchar(t[s]);h=m;s=0; }}}


Re: sa-update channel problem

Posted by Martin Gregorie <ma...@gregorie.org>.
On Sun, 2010-02-14 at 23:46 -0800, mbeis wrote:
> 
> John Hardin wrote:
> > 
> > On Sun, 14 Feb 2010, mbeis wrote:
> > 
> >> Feb 14 22:12:46.522 [11706] dbg: dns: query failed:
> >> 0.3.3.updates.spamassassin.org => NOERROR
> >> Feb 14 22:12:46.525 [11706] dbg: dns: query failed:
> >> mirrors.updates.spamassassin.org => NOERROR
> >> channel: no 'mirrors.updates.spamassassin.org' record found, channel
> >> failed
> >> Feb 14 22:12:46.525 [11706] dbg: diag: updates complete, exiting with
> >> code 4
> >>
> >> I've no idea where to look to solve this. Has anyone here have an idea
> >> what
> >> causes this?
> > 
> > Silly, basic question: does DNS work from that host?
> > 
> > What does "dig +short -t TXT 0.3.3.updates.spamassassin.org" return?
> > 
> > 
> I have this computer running like this for 6 years now, and I've never had a
> problem like this before. When I enter the command it returns nothing,
> doesn't seem ok to me?
>
>>From here "traceroute spamassassin.org" works but ping reports 'unknown
host' and traceroute reports 'Name or service not known' for
updates.spamassassin.org and 0.3.3.updates.spamassassin.org

This looks like a network problem inside spamassassin.org to me.

To the OP: what results did you get with ping or traceroute?


Martin



Re: sa-update channel problem

Posted by Justin Mason <jm...@jmason.org>.
On Mon, Feb 15, 2010 at 07:46, mbeis <mb...@xs4all.nl> wrote:
>
>
> John Hardin wrote:
>>
>> On Sun, 14 Feb 2010, mbeis wrote:
>>
>>> Feb 14 22:12:46.522 [11706] dbg: dns: query failed:
>>> 0.3.3.updates.spamassassin.org => NOERROR
>>> Feb 14 22:12:46.525 [11706] dbg: dns: query failed:
>>> mirrors.updates.spamassassin.org => NOERROR
>>> channel: no 'mirrors.updates.spamassassin.org' record found, channel
>>> failed
>>> Feb 14 22:12:46.525 [11706] dbg: diag: updates complete, exiting with
>>> code 4
>>>
>>> I've no idea where to look to solve this. Has anyone here have an idea
>>> what
>>> causes this?
>>
>> Silly, basic question: does DNS work from that host?
>>
>> What does "dig +short -t TXT 0.3.3.updates.spamassassin.org" return?
>>
>>
> I have this computer running like this for 6 years now, and I've never had a
> problem like this before. When I enter the command it returns nothing,
> doesn't seem ok to me?

The most likely scenario is that your /etc/resolv.conf file specifies
an incorrect value for the first nameserver.  Ensure the first IP
listed in that file is a working recursive NS.

if you don't have working DNS at the site, maybe download the rules
tarball from the download site and use sa-update --install.

-- 
--j.

Re: sa-update channel problem

Posted by mbeis <mb...@xs4all.nl>.

John Hardin wrote:
> 
> On Sun, 14 Feb 2010, mbeis wrote:
> 
>> Feb 14 22:12:46.522 [11706] dbg: dns: query failed:
>> 0.3.3.updates.spamassassin.org => NOERROR
>> Feb 14 22:12:46.525 [11706] dbg: dns: query failed:
>> mirrors.updates.spamassassin.org => NOERROR
>> channel: no 'mirrors.updates.spamassassin.org' record found, channel
>> failed
>> Feb 14 22:12:46.525 [11706] dbg: diag: updates complete, exiting with
>> code 4
>>
>> I've no idea where to look to solve this. Has anyone here have an idea
>> what
>> causes this?
> 
> Silly, basic question: does DNS work from that host?
> 
> What does "dig +short -t TXT 0.3.3.updates.spamassassin.org" return?
> 
> 
I have this computer running like this for 6 years now, and I've never had a
problem like this before. When I enter the command it returns nothing,
doesn't seem ok to me?
-- 
View this message in context: http://old.nabble.com/sa-update-channel-problem-tp27587078p27590396.html
Sent from the SpamAssassin - Users mailing list archive at Nabble.com.


Re: sa-update channel problem

Posted by John Hardin <jh...@impsec.org>.
On Sun, 14 Feb 2010, mbeis wrote:

> Feb 14 22:12:46.522 [11706] dbg: dns: query failed:
> 0.3.3.updates.spamassassin.org => NOERROR
> Feb 14 22:12:46.525 [11706] dbg: dns: query failed:
> mirrors.updates.spamassassin.org => NOERROR
> channel: no 'mirrors.updates.spamassassin.org' record found, channel failed
> Feb 14 22:12:46.525 [11706] dbg: diag: updates complete, exiting with code 4
>
> I've no idea where to look to solve this. Has anyone here have an idea what
> causes this?

Silly, basic question: does DNS work from that host?

What does "dig +short -t TXT 0.3.3.updates.spamassassin.org" return?

-- 
  John Hardin KA7OHZ                    http://www.impsec.org/~jhardin/
  jhardin@impsec.org    FALaholic #11174     pgpk -a jhardin@impsec.org
  key: 0xB8732E79 -- 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
   When I say "I don't want the government to do X", do not
   automatically assume that means I don't want X to happen.
-----------------------------------------------------------------------
  8 days until George Washington's 278th Birthday