Quantcast

Re: : Pyzor crashing

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: : Pyzor crashing

watrob
There are a couple reasons why Pyzor crashes, one is if you restart "BIND " (named), Pyzor fails on its first attempt to contact the Pyzor website.
 
The second is for some reason both "Exim" & "Postfix" which ever you are using wants access to the Pyzor home directory, If you check the abrtd log you will see the backtrace, it also shows in the message log as failures. Its trying to send an email of the error.

I do the following on every Baruwa build:-

mkdir /var/spool/postfix/.pyzor
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/*
su postfix -s /bin/bash -c 'pyzor discover'

Replace postfix with exim if running exim. Use sudo or su, which ever works for your setup.

Also I place the home directory of pyzor in:-  /etc/mail/spamassassin/.pyzor
Add to local.cf:-
 use_pyzor 1
 pyzor_options --homedir /etc/mail/spamassassin/.pyzor

Then I run:-

 pyzor --homedir /etc/mail/spamassassin/.pyzor discover

this is the first thing I do, then the above to fix for the abrt error.

 Hope this helps
   

-----Original Message-----
From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
Sent: Wednesday, 9 September 2015 8:00 PM
To: [hidden email]
Subject: Baruwa Digest, Vol 60, Issue 1

Send Baruwa mailing list submissions to
        [hidden email]

To subscribe or unsubscribe via the World Wide Web, visit
        http://lists.baruwa.org/mailman/listinfo/baruwa
or, via email, send a message with subject or body 'help' to
        [hidden email]

You can reach the person managing the list at
        [hidden email]

When replying, please edit your Subject line so it is more specific than "Re: Contents of Baruwa digest..."


Today's Topics:

   1. Pyzor crashing (Raymond)
   2. Baruwa uwsgi problem (??????? ?.)


----------------------------------------------------------------------

Message: 1
Date: Tue, 08 Sep 2015 11:06:49 -0500
From: Raymond <[hidden email]>
To: Baruwa users list <[hidden email]>
Subject: [Baruwa] Pyzor crashing
Message-ID: <1441728409.2977.63.camel@mint-1>
Content-Type: text/plain; charset="UTF-8"

Centos 6.2 baruwa 2.1



syslog is rapping off messages like this with every new connection:

Sep  8 11:03:35 relay-4 abrt: detected unhandled Python exception in '/usr/bin/pyzor'
Sep  8 11:03:35 relay-4 abrtd: New client connected Sep  8 11:03:35 relay-4 abrt-server[20423]: Not saving repeating crash in '/usr/bin/pyzor'




Where would I start looking to identify the problem?




------------------------------

Message: 2
Date: Tue, 08 Sep 2015 19:56:58 +0300
From: ??????? ?. <[hidden email]>
To: [hidden email]
Subject: [Baruwa] Baruwa uwsgi problem
Message-ID: <[hidden email]>
Content-Type: text/plain; charset="utf-8"





Hello,
After installing nginx+uwsgi I see "Internal server error" when accessing Baruwa UI.
There is the following message in /var/log/uwsgi/uwsgi-baruwa.log log:
--- no python application found, check your startup logs for errors --- I followed the instructions from  https://pythonhosted.org/baruwa/community/nginx-uwsgi.html .
Could someone advice what I need to check in order to fix the issue?
Thank you advance!

Best regards,
Nicolai
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.baruwa.org/pipermail/baruwa/attachments/20150908/4f8d26ee/attachment-0001.html>

------------------------------

_______________________________________________
http://pledgie.com/campaigns/12056

End of Baruwa Digest, Vol 60, Issue 1
*************************************

_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: : Pyzor crashing

Raymond Norton
Thank you for the detailed response. It helped me find a permissions
problem with /var/spool/pyzor/servers. Changed owner to exim and
eliminated the crashes.






On Thu, 2015-09-10 at 00:20 +0000, Robert Van Gaal wrote:

> There are a couple reasons why Pyzor crashes, one is if you restart "BIND " (named), Pyzor fails on its first attempt to contact the Pyzor website.
>  
> The second is for some reason both "Exim" & "Postfix" which ever you are using wants access to the Pyzor home directory, If you check the abrtd log you will see the backtrace, it also shows in the message log as failures. Its trying to send an email of the error.
>
> I do the following on every Baruwa build:-
>
> mkdir /var/spool/postfix/.pyzor
> 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/*
> su postfix -s /bin/bash -c 'pyzor discover'
>
> Replace postfix with exim if running exim. Use sudo or su, which ever works for your setup.
>
> Also I place the home directory of pyzor in:-  /etc/mail/spamassassin/.pyzor
> Add to local.cf:-
>  use_pyzor 1
>  pyzor_options --homedir /etc/mail/spamassassin/.pyzor
>
> Then I run:-
>
>  pyzor --homedir /etc/mail/spamassassin/.pyzor discover
>
> this is the first thing I do, then the above to fix for the abrt error.
>
>  Hope this helps
>    
>
> -----Original Message-----
> From: [hidden email] [mailto:[hidden email]] On Behalf Of [hidden email]
> Sent: Wednesday, 9 September 2015 8:00 PM
> To: [hidden email]
> Subject: Baruwa Digest, Vol 60, Issue 1
>
> Send Baruwa mailing list submissions to
> [hidden email]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.baruwa.org/mailman/listinfo/baruwa
> or, via email, send a message with subject or body 'help' to
> [hidden email]
>
> You can reach the person managing the list at
> [hidden email]
>
> When replying, please edit your Subject line so it is more specific than "Re: Contents of Baruwa digest..."
>
>
> Today's Topics:
>
>    1. Pyzor crashing (Raymond)
>    2. Baruwa uwsgi problem (??????? ?.)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 08 Sep 2015 11:06:49 -0500
> From: Raymond <[hidden email]>
> To: Baruwa users list <[hidden email]>
> Subject: [Baruwa] Pyzor crashing
> Message-ID: <1441728409.2977.63.camel@mint-1>
> Content-Type: text/plain; charset="UTF-8"
>
> Centos 6.2 baruwa 2.1
>
>
>
> syslog is rapping off messages like this with every new connection:
>
> Sep  8 11:03:35 relay-4 abrt: detected unhandled Python exception in '/usr/bin/pyzor'
> Sep  8 11:03:35 relay-4 abrtd: New client connected Sep  8 11:03:35 relay-4 abrt-server[20423]: Not saving repeating crash in '/usr/bin/pyzor'
>
>
>
>
> Where would I start looking to identify the problem?
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 08 Sep 2015 19:56:58 +0300
> From: ??????? ?. <[hidden email]>
> To: [hidden email]
> Subject: [Baruwa] Baruwa uwsgi problem
> Message-ID: <[hidden email]>
> Content-Type: text/plain; charset="utf-8"
>
>
>
>
>
> Hello,
> After installing nginx+uwsgi I see "Internal server error" when accessing Baruwa UI.
> There is the following message in /var/log/uwsgi/uwsgi-baruwa.log log:
> --- no python application found, check your startup logs for errors --- I followed the instructions from  https://pythonhosted.org/baruwa/community/nginx-uwsgi.html .
> Could someone advice what I need to check in order to fix the issue?
> Thank you advance!
>
> Best regards,
> Nicolai
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.baruwa.org/pipermail/baruwa/attachments/20150908/4f8d26ee/attachment-0001.html>
>
> ------------------------------
>
> _______________________________________________
> http://pledgie.com/campaigns/12056
>
> End of Baruwa Digest, Vol 60, Issue 1
> *************************************
>
> _______________________________________________
> http://pledgie.com/campaigns/12056



_______________________________________________
http://pledgie.com/campaigns/12056
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: : Pyzor crashing

Andrew Colin Kissa
Administrator

On 10 Sep 2015, at 4:39 PM, Raymond <admin@> wrote:

> Thank you for the detailed response. It helped me find a permissions
> problem with /var/spool/pyzor/servers. Changed owner to exim and
> eliminated the crashes.

FYI your domain is listed as a bot net c&c URIBL_DBL_ABUSE_BOTCC


_______________________________________________
http://pledgie.com/campaigns/12056

signature.asc (858 bytes) Download Attachment
--
Baruwa - www.baruwa.org
Loading...