Article View: news.software.nntp
Article #60344nnrpd error: cannot stat backoff_db '': No such file or directory?
From: Daniel
Date: Wed, 11 Sep 2002 19:49
Date: Wed, 11 Sep 2002 19:49
158 lines
7948 bytes
7948 bytes
What causes the nnrpd error: cannot stat backoff_db '': No such file
or directory?
How can I fix it?
background info follows...
Thank you very much!
~ Daniel
RH 7.2 using inn-2.3.2-5 SRPM, but changed configure flag in spec from
--with-perl to --with-python and rebuilt...
With this I replaced my existing inn-2.3.2-5
The situation is I began experimenting with authorization using the
nnrpd_auth.py
I copied the doc/samples nnrpd.py into my inn filter directory
changed nnrppythonauth in inn.conf to true
I made one change to nnrpd_auth.py and that was to allow all hosts,
not just 127.0.0.1 (I commented out some lines)
if attributes['type'] == buffer('connect'):
# if attributes['ipaddress'] == buffer('127.0.0.1'):
# syslog('notice', 'authentication by IP address
succeeded')
return ( self.connectcodes['READPOST'], 1, 1, '*' )
# else:
# syslog('notice', 'authentication by IP address
failed')
# return ( self.connectcodes['PERMDENIED'], 0, 0, '!*'
)
made sure there weren't any awful syntax errors
$ python -ic 'import nnrpd, nnrpd_auth'
-- syslog level: notice message: nnrpd authentication class instance
created
** set_auth_hook for <nnrpd_auth.AUTH instance at 4a63b0>
-- syslog level: notice message: authentication module successfully
hooked into nnrpd
>>>
Reading to the newsgroup works fine, but posting results in the
following:
news.err log:
Sep 11 14:37:45 tcsl nnrpd[30642]: 172.16.48.12 cannot stat backoff_db
'': No such file or directory
No error is returned to the client, though I would expect to have seen
"Posting disallowed"
elif attributes['type'] == buffer('post'):
syslog('notice', 'authorization for post access failed')
return "Posting disallowed"
When there is no rejection string, i.e. return None, I still get the
cannot stat backoff_db error, but the post goes through fine.
/var/log/messages shows user process fault for nnrpd process when I
get that cannot stat backoff_db error
here is the news.notice log for more info than the news.err:
Sep 11 14:37:26 tcsl innd: SERVER shutdown received signal 15
Sep 11 14:37:26 tcsl innd: SERVER descriptors 1024
Sep 11 14:37:26 tcsl innd: SERVER outgoing 1011
Sep 11 14:37:26 tcsl innd: SERVER ccsetup control:12
Sep 11 14:37:26 tcsl innd: SERVER lcsetup localconn:14
Sep 11 14:37:26 tcsl innd: SERVER rcsetup remconn:4
Sep 11 14:37:26 tcsl innd: controlchan! spawned
controlchan!:17:proc:30636
Sep 11 14:37:26 tcsl innd: dummy-feed opened dummy-feed:16:file
Sep 11 14:37:26 tcsl innd: python interpreter initialized OK
Sep 11 14:37:26 tcsl innd: python: First load, so I can do
initialization stuff.
Sep 11 14:37:26 tcsl innd: python: spamfilter successfully hooked into
INN
Sep 11 14:37:26 tcsl innd: SERVER Python filtering enabled
Sep 11 14:37:26 tcsl innd: defined python methods
Sep 11 14:37:26 tcsl innd: SERVER starting
Sep 11 14:37:27 tcsl controlchan[30636]: starting
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/checkgroups.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/ihave.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/senduuname.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/newgroup.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/rmgroup.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/sendme.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/sendsys.pl
Sep 11 14:37:27 tcsl controlchan[30636]: loaded
$inn::controlprogs/version.pl
Sep 11 14:37:39 tcsl nnrpd[30639]: python interpreter initialized OK
Sep 11 14:37:39 tcsl nnrpd[30639]: python: nnrpd authentication class
instance created
Sep 11 14:37:39 tcsl nnrpd[30639]: python: authentication module
successfully hooked into nnrpd
Sep 11 14:37:39 tcsl nnrpd[30639]: some python methods defined. good.
Sep 11 14:37:39 tcsl nnrpd[30639]: ? cant gethostbyaddr 172.16.48.12
Unknown host -- using IP address for access
Sep 11 14:37:39 tcsl nnrpd[30639]: 172.16.48.12 connect
Sep 11 14:37:39 tcsl nnrpd[30639]: python authenticate_method (type
connect) succeeded, return code 200
Sep 11 14:37:39 tcsl nnrpd[30639]: 172.16.48.12 times user 0.030
system 0.030 elapsed 0.029
Sep 11 14:37:39 tcsl nnrpd[30639]: python: close method running, bye!
Sep 11 14:37:41 tcsl nnrpd[30640]: python interpreter initialized OK
Sep 11 14:37:41 tcsl nnrpd[30640]: python: nnrpd authentication class
instance created
Sep 11 14:37:41 tcsl nnrpd[30640]: python: authentication module
successfully hooked into nnrpd
Sep 11 14:37:41 tcsl nnrpd[30640]: some python methods defined. good.
Sep 11 14:37:42 tcsl nnrpd[30640]: ? cant gethostbyaddr 172.16.48.12
Unknown host -- using IP address for access
Sep 11 14:37:42 tcsl nnrpd[30640]: 172.16.48.12 connect
Sep 11 14:37:42 tcsl nnrpd[30640]: python authenticate_method (type
connect) succeeded, return code 200
Sep 11 14:37:42 tcsl nnrpd[30640]: 172.16.48.12 times user 0.040
system 0.020 elapsed 0.030
Sep 11 14:37:42 tcsl nnrpd[30640]: python: close method running, bye!
Sep 11 14:37:45 tcsl nnrpd[30641]: python interpreter initialized OK
Sep 11 14:37:45 tcsl nnrpd[30641]: python: nnrpd authentication class
instance created
Sep 11 14:37:45 tcsl nnrpd[30641]: python: authentication module
successfully hooked into nnrpd
Sep 11 14:37:45 tcsl nnrpd[30641]: some python methods defined. good.
Sep 11 14:37:45 tcsl nnrpd[30641]: ? cant gethostbyaddr 172.16.48.12
Unknown host -- using IP address for access
Sep 11 14:37:45 tcsl nnrpd[30641]: 172.16.48.12 connect
Sep 11 14:37:45 tcsl nnrpd[30641]: python authenticate_method (type
connect) succeeded, return code 200
Sep 11 14:37:45 tcsl nnrpd[30641]: 172.16.48.12 times user 0.020
system 0.040 elapsed 0.029
Sep 11 14:37:45 tcsl nnrpd[30641]: python: close method running, bye!
Sep 11 14:37:45 tcsl nnrpd[30642]: python interpreter initialized OK
Sep 11 14:37:45 tcsl nnrpd[30642]: python: nnrpd authentication class
instance created
Sep 11 14:37:45 tcsl nnrpd[30642]: python: authentication module
successfully hooked into nnrpd
Sep 11 14:37:45 tcsl nnrpd[30642]: some python methods defined. good.
Sep 11 14:37:45 tcsl nnrpd[30642]: ? cant gethostbyaddr 172.16.48.12
Unknown host -- using IP address for access
Sep 11 14:37:45 tcsl nnrpd[30642]: 172.16.48.12 connect
Sep 11 14:37:45 tcsl nnrpd[30642]: python authenticate_method (type
connect) succeeded, return code 200
Sep 11 14:37:45 tcsl nnrpd[30642]: 172.16.48.12 cannot stat backoff_db
'': No such file or directory
Sep 11 14:37:49 tcsl nnrpd[30643]: python interpreter initialized OK
Sep 11 14:37:49 tcsl nnrpd[30643]: python: nnrpd authentication class
instance created
Sep 11 14:37:49 tcsl nnrpd[30643]: python: authentication module
successfully hooked into nnrpd
Sep 11 14:37:49 tcsl nnrpd[30643]: some python methods defined. good.
Thank you for any assistance!
Technical Details
Message-ID:
<40a8aa92.0209111149.3f2501c3@posting.google.com>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <40a8aa92.0209111149.3f2501c3@posting.google.com> Subject: nnrpd error: cannot stat backoff_db '': No such file or directory? Date: Wed, 11 Sep 2002 19:49:56 +0000 From: insaney@ufl.edu (Daniel) Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.mbox.zip!archiver1.google.com!postnews1.google.com!not-for-mail Newsgroups: news.software.nntp Organization: http://groups.google.com/ Lines: 157 NNTP-Posting-Host: 64.236.226.116 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1031773796 24983 127.0.0.1 (11 Sep 2002 19:49:56 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 11 Sep 2002 19:49:56 GMT