Internal Error Python Traceback Seen In Response
instructions: Windows Mac Red Hat Linux Ubuntu Click URL instructions: Right-click on ad, choose "Copy Link", then paste here → (This may not be possible with some types of ads) More information about our ad policies X You seem to have CSS turned off. Please don't fill out this field. You seem to have CSS turned off. Please don't fill out this field. Briefly describe the problem (required): Upload screenshot of ad (required): Select a file, or drag & drop file here. ✔ ✘ Please provide the ad click URL, if possible: Home Browse Pyzor Mailing Lists Pyzor Brought to you by: abyz12345, alex-kiro, anadelonbrin Summary Files Reviews Support Wiki Mailing Lists Code pyzor-announce pyzor-users Re: Errors after upgrade Re: Errors after upgrade From: Chris - 2014-09-02 12:31:58 On Tue, 2014-09-02 at 23:32 +1200, Tony Meyer wrote: > > Since then I've been seeing this in my syslog: > > Aug 31 10:02:43 localhost spamd[2645]: pyzor: check failed: internal > > error, python traceback seen in response > > It’d be very useful to know what the error is. Trying running pyzor by itself, rather than through SpamAssassin, e.g.: > > $ pyzor ping > public.pyzor.org:24441 (200, 'OK') > $ pyzor check > Subject: Hello world! > > Test > public.pyzor.org:24441 (200, 'OK') 219150 12833 > > You’ll presumably not get those responses, and get an error instead. Pyzor ping works fine: chris@...:~$ pyzor ping public.pyzor.org:24441 (200, 'OK') Pyzor check however just nets me a blinking cursor until I interrupt the process with Ctrl-C which gives me: chris@...:~$ pyzor check ^CTraceback (most recent call last): File "/usr/local/bin/pyzor", line 336, in main() File "/usr/local/bin/pyzor", line 141, in main if not dispatch(client, servers, config): File "/usr/local/bin/pyzor", line 217, in check for digested in get_input_handl
thread:the complete thread tree sorted by datePhillip Carroll at 2010-07-28 17:34 Author: Phillip CarrollDate: 2010-07-28 17:48 UTCTo: exim-usersSubject: Re: [exim] "python traceback" warning from pyzor on every SA-scanned email --- On Tue, 7/27/10, John W. Baxter wrote: > It is possible that the problem was triggered by doing an > initial test using > the command line shown above, as root. That could have > created a file only > root can read or write. Or it could be something else > entirely, of course. > > Python tracebacks, for one with Python knowledge, can be > very useful. It's https://sourceforge.net/p/pyzor/mailman/message/32786667/ > annoying when they get truncated (Exim does that when we > pipe to a Python > program which fails (every few days, for reasons we haven't > figured > out--retries do not fail--it's always a message from a > mobile device on > AT&T, which should narrow it down)). A switch to get > more https://lists.exim.org/lurker/message/20100728.174849.d085842f.en.html than one line > logged would be nice--I hope I haven't missed such a thing > now that I've > ranted. I crossed my fingers (I had visions of megabytes of stuff being dumped on the console) and put the -D switch in the spamd startup options and restarted spamd. It actually dumped only about a dozen lines on the console, having to do with startup. After that, all the debugging trace info was logged to SA's log, which I have configured as /var/log/exim/spamd.log. spamd.log quickly ran to a megabyte. With enough data to chew on, I yanked out the -D option and restarted SA again. The pyzor-relevant debug output in spamd.log (time stamps removed): dbg: pyzor: pyzor is available: /usr/bin/pyzor dbg: dns: entering helper-app run mode dbg: pyzor: opening pipe: /usr/bin/pyzor check < /tmp/.spamassassin10626hxECI3tmp dbg: util: setuid: ruid=8 euid=8 dbg: pyzor: got response: Traceback (most recent call last):\n File "/usr/bin/pyzor", line 4, in ?\n pyzor.client.run()\n File "/usr/lib/python2.4/site-packages/pyzor/client.py", line 991, in run\n ExecCall().run()\n File "/usr
information.... I expected all of the details to be in mail.log and didn't think to check syslog. :-( More details there: Dec 8 11:40:35 gw1 mailscanner[4195]: Dec 8 11:40:35.083 [4334] dbg: pyzor: got http://lists.mailscanner.info/pipermail/mailscanner/2015-December/102796.html response: Traceback (most recent call last):\n File "/usr/bin/pyzor", line 8, in \n pyzor.client.run()\n File http://www.eee.hku.hk/~kmpoon/lists/spamassassin-talk/msg02735.html "/usr/lib/pymodules/python2.7/pyzor/client.py", line 1022, in run\n ExecCall().run()\n File "/usr/lib/pymodules/python2.7/pyzor/client.py", line 180, in run\n os.mkdir(homedir)\nOSError: [Errno 13] Permission denied: '/var/spool/postfix/.pyzor' Dec 8 11:40:35 gw1 mailscanner[4195]: pyzor: check failed: internal error, python traceback seen in response Obviously I have a permissions issue. Now I need to understand why it's trying to use /var/spool/postfix for .pyzor instead of /var/spool/MailScanner. I internal error also clicked around more and found the archive search mechanism. Words of wisdom appreciated. Steve On 12/8/2015 8:44 PM, Steve Weigold wrote: > Greetings > > Apologies if this has been asked before, but while I found the list > archive, I couldn't find a means to search it and considering it goes > back many years, scanning by hand seemed a bit overwhelming. If > there's a search capability for internal error python it that I've missed, please let me know. > > Anyway, I have a new server I've setup to be a spam filter gateway. > It's a clean install of Debian Jessie with MailScanner and Postfix > with what I believe to be the latest versions. Generally, the system > is working, but I'm still getting much more spam than I should be. > Reviewing the logs, I can see that I'm getting relatively low spam > scores even on what I'd consider obvious spam emails. > > This lead me down the path of what else could be done with > spamassassin, which got me to Pyzor, Razor and DCC. At the moment, > DCC isn't installed. I guess it was removed from the repository > because it's non-free? Pyzor and Razor are installed, and somehow, I > think I have Razor working, at least based on the fact that I see log > entries like this one: > > Dec 8 20:33:02 gw1 MailScanner[16071]: Message 0005D140024.A1747 from > 198.173.85.230 > (amazon-promotional-credit at urfhe.selectweddingbands.com) to acnoc.net > is not spam, SpamAssassin (not cached, score=5.497, required 6, > RAZOR2_CF_RANGE_51_100 0.36, RAZOR2_CF_RANGE_E8_51_100 2.43, > RAZOR2_CHECK 1.73, SPF_SOFTFAIL 0.97, URIBL_BLOCKED 0.00) > > I'm not sure Pyzor is working though, and wh
error, python traceback seen in response From: Steve Bergman Date: Mon, 30 Jun 2014 13:58:16 -0500 Delivered-to: mailing list users@spamassassin.apache.org Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=GtqiV7songfKBXcKCuM0au3r058S3Lpg3a87Rpl49dg=; b=yIF0dvqfRy2kFtUqimXySecZpIA+vxKby+H+bY7gId0u8GKtE2UwGUfG+CWv4yQvU9 0LpwKM6PWeMEtM/pPe4HpuLPm3ofIQQ+Noc8pJEe3YVqNhjuuIN+7taTE8s7dorHtXSJ 1gurkMAOb+52rkr3zciDXPKFt1y/Hq//KZklt8cD+/SPyO0WbPg3bjf+sjknyH4a+REQ B0MTsDDWULl4lyi5lNd3TGS1vnBg/iDEJemc6/653kpz0RsEEMjQqi4YCY2zghh4cecU 4H26H+isjVr4VRTF5v5VjmCDIeLZTQhU4f56gaxONfrWWXAod2cqRuKKm24QCR85BeKw /DYA== List-help: List-id: List-post: List-unsubscribe: Mailing-list: contact users-help@spamassassin.apache.org; run by ezmlm User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Icedove/24.5.0 Hi, I'm getting: "pyzor: check failed: internal error, python traceback seen in response" on many Spamassassin generated calls to pyzor. In the case of good emails, at least, the senders report getting a bounce, but the emails make it through to the recipient. Despite adding '-d' to the pyzor options, I haven't been able to actually look at a traceback. Could anyone direct me to how to find an actual traceback? On a related note, we have postfix aliases. Should I be explicitly giving a --homedir for pyzor? I'm not sure what that "servers" file is about. Setting a --homedir doesn't seem to fix the problem. I'm running Ubuntu 10.04 on the server, with the Ubuntu provided packages. spamassassin 3.3.1-1 pyzor 1:0.5.0-0ubuntu2 Thank you for any enlightenment on this. Steve Bergman Follow-Ups: Re: pyzor: check failed: internal error, pyt