Pyzor bug I think

Report bugs and workarounds
Post Reply
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Pyzor bug I think

Post by Michaelv »

I seem to be getting random pyzor crashes.

May 12 00:56:42 relay abrt: detected unhandled Python exception in '/usr/bin/pyzor'
May 12 00:56:42 relay abrt: can't communicate with ABRT daemon, is it running? [Errno 2] No such file or directory

pyzor ping
public.pyzor.org:24441 (200, 'OK')

I've just turned on abrt to log the error.

Most of the time, I see pyzor listed in the spam checks. So it is working most of the time.

Anybody else seen this?

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Pyzor bug I think

Post by shawniverson »

I wonder if the Pyzor cache is the problem?

Code: Select all

sudo cdcc rtt
Thanks to Michaelv for this tip!
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: Pyzor bug I think

Post by Michaelv »

Hi Shawn,

No that is for DCC if it always complaint's it cannot find server.
Then you use "sudo cdcc rtt" that will will drop its cache and re-probe all the servers it can reach.

Not sure what changing abrtd conf to support an pyzor which is not in a package.
Wait a bit, I'll post the results of the next crash.

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Pyzor bug I think

Post by shawniverson »

:text-blondmoment:
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: Pyzor bug I think

Post by Michaelv »

Hi all,

Okay got more details on this problem.

Somehow it creates the problem when the emails logs are
May 14 02:52:55 relay postfix/cleanup[12563]: F1D3910041E: hold: header Received: by <myserver.hostname> (Postfix, from userid 0)??id F1D3910041E;
Wed, 14 May 2014 02:52:54 +0800 (SGT) from local; from=<user@"hostdomainname"> to=<root@localhost."hostdomainname">
May 14 02:52:55 relay postfix/cleanup[12563]: F1D3910041E: message-id=<53726a06.9/nu/QotLWTgmyCw%user@localhost>
May 14 02:52:59 relay MailScanner[6593]: New Batch: Scanning 1 messages, 1957 bytes
May 14 02:52:59 relay MailScanner[6593]: Virus and Content Scanning: Starting
May 14 02:52:59 relay MailScanner[6593]: Spam Checks: Starting
May 14 02:52:59 relay MailScanner[6593]: Expired 1 records from the SpamAssassin cache
May 14 02:52:59 relay MailScanner[6593]: Whitelist refresh time reached
May 14 02:52:59 relay MailScanner[6593]: Starting up SQL Whitelist
May 14 02:52:59 relay MailScanner[6593]: Read 1 whitelist entries
May 14 02:52:59 relay MailScanner[6593]: Message F1D3910041E.A2556 from 127.0.0.1 (user@"hostdomainname") is whitelisted
May 14 02:52:59 relay MailScanner[6593]: Requeue: F1D3910041E.A2556 to D80AC100885
May 14 02:52:59 relay MailScanner[6593]: Uninfected: Delivered 1 messages
May 14 02:52:59 relay postfix/qmgr[23343]: D80AC100885: from=<user@antlabs.com>, size=1736, nrcpt=1 (queue active)
May 14 02:52:59 relay MailScanner[6593]: Deleted 1 messages from processing-database
May 14 02:52:59 relay MailScanner[6593]: Started SQL Logging child
May 14 02:52:59 relay postfix/cleanup[12563]: 9D1A3100893: message-id=<53726a06.9/nu/QotLWTgmyCw%user@localhost>
May 14 02:52:59 relay postfix/qmgr[23343]: 9D1A3100893: from=<user@"hostdomainname">, size=2218, nrcpt=1 (queue active)
May 14 02:52:59 relay postfix/local[12721]: D80AC100885: to=<root@localhost."hostdomainname">, orig_to=<root@localhost>, relay=local, delay=4.7, delays=4.5/0.15/0/0.01, dsn=2.0.0, status=sent (forwarded as 9D1A3100893)
May 14 02:52:59 relay postfix/qmgr[23343]: D80AC100885: removed
May 14 02:53:00 relay postfix/smtp[12724]: 9D1A3100893: to=<michael.van@"domainname">, orig_to=<root@localhost>, relay=x.x.x.x[x.x.x.x]:25, delay=0.56, delays=0.01/0.02/0.14/0.39, dsn=2.6.0, status=sent (250 2.6.0 <53726a06.9/nu/QotLWTgmyCw%user@localhost> Queued mail for delivery)
(of course I've replaced my domain name with "domainname" and so on.

so its internally generated email. Not sure from whom yet, or maybe its the error that is logged in abrt.

Now that email is
abrt_version: 2.0.8
cmdline: /usr/bin/python -Wignore::DeprecationWarning /usr/bin/pyzor report
executable: /usr/bin/pyzor
kernel: 2.6.32-431.3.1.el6.x86_64
last_occurrence: 1400007163
time: Wed 14 May 2014 02:52:43 AM SGT
uid: 48
username: apache

sosreport.tar.xz: Binary file, 1712100 bytes

backtrace:
:client.py:180:run:OSError: [Errno 13] Permission denied: '/var/www/.pyzor'
:
:Traceback (most recent call last):
: File "/usr/bin/pyzor", line 8, in <module>
: pyzor.client.run()
: File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 1022, in run
: ExecCall().run()
: File "/usr/lib/python2.6/site-packages/pyzor/client.py", line 180, in run
: os.mkdir(homedir)
:OSError: [Errno 13] Permission denied: '/var/www/.pyzor'
:
:Local variables in innermost frame:
:homedir: '/var/www/.pyzor'
:k: 'Timeout'
:args: ['report']
:options: []
:self: <pyzor.client.ExecCall object at 0x7ff2e3416200>
:debug: 0
:defaults: {'DiscoverServersURL': 'http://pyzor.sourceforge.net/cgi-bin/in ... vers-0-3-x', 'ServersFile': 'servers', 'AccountsFile': 'accounts', 'Timeout': '5'}
:v: '5'
:specified_homedir: None
:config: <pyzor.Config object at 0x7ff2e27b8a10>
:servers_fn: '/var/www/.pyzor/servers'
:log: None
So it cannot find pyzor servers in the directory /var/spool/postfix/.pyzor
Not sure why it needs to.

I've used the same fix for the razor mail bug component.

Code: Select all

sudo ln -s /var/spool/postfix/.pyzor /var/www/.pyzor
sudo chown -R postfix:apache /var/spool/postfix/.pyzor
sudo chmod ug+rwx /var/spool/postfix/.pyzor
sudo chmod ug+rw /var/spool/postfix/.pyzor/*
Will report back in a few days to see if the problem reoccurs.

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Pyzor bug I think

Post by shawniverson »

Thanks Michael!

I'll post an issue to Github after you confirm the issue is gone.
Michaelv
Posts: 16
Joined: 29 Apr 2014 14:01

Re: Pyzor bug I think

Post by Michaelv »

Hi Shawn,

Looks like the bug is gone.
Haven't see it pop up for the last 5 days.
The bug used to pop up about 4-10 times a day.

Regards,

Michael
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Pyzor bug I think

Post by shawniverson »

User avatar
darky83
Site Admin
Posts: 540
Joined: 30 Sep 2012 11:03
Location: eFa
Contact:

Re: Pyzor bug I think

Post by darky83 »

Added the fix to the 3.0.0.5 release
Version eFa 4.x now available!
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: Pyzor bug I think

Post by ovizii »

Not sure this is the same problem but I am seeing this in my logs quite often:

Code: Select all

Jan 25 16:31:27 jacob abrt: detected unhandled Python exception in '/usr/bin/pyzor'
Jan 25 16:31:27 jacob abrt: can't communicate with ABRT daemon, is it running? [Errno 2] No such file or directory
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: Pyzor bug I think

Post by ovizii »

Yes, I know there are 3 years between the date the bug was fixed and me getting this error but can someone confirm whether anyone else is experiencing this?
Woger
Posts: 67
Joined: 15 Mar 2017 10:54

Re: Pyzor bug I think

Post by Woger »

I don't get the error, but my installation is only 1 day old ;)
What version are you on? and did you check the above settings?

My settings are like these:
/var/spool/postfix:
drwxrwxr-x. 2 postfix apache 4096 Feb 19 15:57 .pyzor

/var/www/.pyzor/:
lrwxrwxrwx. 1 root root 25 Feb 19 15:57 .pyzor -> /var/spool/postfix/.pyzor

The directory is empty

Greetings,
Roger
User avatar
shawniverson
Posts: 3644
Joined: 13 Jan 2014 23:30
Location: Indianapolis, Indiana USA
Contact:

Re: Pyzor bug I think

Post by shawniverson »

ovizii wrote: 20 Mar 2017 08:21 Yes, I know there are 3 years between the date the bug was fixed and me getting this error but can someone confirm whether anyone else is experiencing this?
I wonder if something is up with pyzor itself in your install? Perhaps a reinstall of pyzor is in order?
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: Pyzor bug I think

Post by ovizii »

I'll try that next weekend as I will be also upgrading to 3.0.1.9
ovizii
Posts: 463
Joined: 11 May 2016 08:08

Re: Pyzor bug I think

Post by ovizii »

still didn't get around to upgrade from 3.0.1.5 as I saw loads of issues with upgrading on this forum. Will watch 3.0.2.1 for another week before taking the plunge.

Did a yum reinstall pyzor and will see if that helped.
Post Reply