I recently wanted to install NNTPCache (I've played around with it a few
years ago), so Googled around, and stumbled upon the official site:
http://iq.org/~proff/nntpcache.org/
However, the latest update of NNTPCache is from Mar 6 2006, version 3.0.2.
This same site also contains some links which were hosted on
www.nntpcache.com, but that site seems have expired and is taken over by
one of those irritating 'domain parking' companies, serving up garbage.
So, is NNTPCache still maintained? Or is there an alternative available?
Regards, Patrick.
Maybe NewsCache (http://www.linuxhacker.at/NewsCache - appears to be down at
the moment), but it's not that actively maintained either.
I have recently added IPv6 support to NewsCache and made the source code
for that branch available at http://svn.cmeerw.net/newscache/trunk/ (or see
http://cmeerw.org/debian/ for Ubuntu .deb packages)
Christof
--
http://cmeerw.org sip:cmeerw at cmeerw.org
mailto:cmeerw at cmeerw.org xmpp:cmeerw at cmeerw.org
Can't reach that link either.
>I have recently added IPv6 support to NewsCache and made the source code
>for that branch available at http://svn.cmeerw.net/newscache/trunk/ (or see
>http://cmeerw.org/debian/ for Ubuntu .deb packages)
It's a Debian box, but I don't have root access, so I'd like to compile it
myself. Managed to compile NNTPCache fine, it even worked with a local
newsserver which authenticated on ip, but the NNTPCache binary dumps core
when I change the server to another one, which needs a user:pass to
authenticate.
I've mailed to the NNTPCache support address, but due to the fact that
it's also an address @nntpcache.com, I'm wondering if that disappears down
some black hole in that same company that also provides the garbage
webpage there...
Regards, Patrick.
[snip]
>It's a Debian box, but I don't have root access, so I'd like to compile it
>myself. Managed to compile NNTPCache fine, it even worked with a local
>newsserver which authenticated on ip, but the NNTPCache binary dumps core
>when I change the server to another one, which needs a user:pass to
>authenticate.
>
>I've mailed to the NNTPCache support address, but due to the fact that
>it's also an address @nntpcache.com, I'm wondering if that disappears down
>some black hole in that same company that also provides the garbage
>webpage there...
Haven't heard anything from my email, so I started digging around myself.
Simply added 'settaskinfo("blabla");' statements in the code, and ran it
with gdb (which shows that 'blabla' label).
I finally traced it to the parsing of the hostname string in the
nntpcache.c file, the load_servers function. Somewhere at the end of that,
it tries to pars the string "user:pa...@news.server.tld" into the three
different pieces 'user', 'pass' and 'hostname'. However, it fails
miserably at that, because when I printf the results of the piece of code
doing this, I get:
hostname: (null)
user: (null)
pass: pa...@news.server.tld
It then tries to do:
list->host = Sstrdup (hostname);
which apparently dumps core because hostname is null.
It's a mess. Does anyone here have a piece of code which extracts,
cleanly, user, pass and host from a string "user:pass@host"?
Regards, Patrick.
>It's a mess. Does anyone here have a piece of code which extracts,
>cleanly, user, pass and host from a string "user:pass@host"?
Hmmkey, it seems I fixed the parsing by changing line 913 from:
if ((hostname = strrchr(password-2, '@')) != NULL) {
to
if ((hostname = strrchr(password, '@')) != NULL) {
The user, pass and hostname fields now come out ok, and it starts without
dumping core. However, I still cannot connect, I get:
Escape character is '^]'.
503 NNTPCache-3.0.2 Initial server rebuild in progress (0 groups complete,
at least 3000 groups to go. Please try again later. If you think this is
an error, get your news admin to check minGroups (in nntpcache.config),
nntpcache.servers and the nntpcache web-server output
Connection closed by foreign host.
The processes running are:
$ ps -ef | grep nntpc
vervoorn 21638 1 0 15:20 ? 00:00:00 nntpcache: waiting for connections
vervoorn 21639 21638 0 15:20 ? 00:00:00 nntpcache: watch: ready
vervoorn 21641 21638 1 15:20 ? 00:00:14 nntpcache: merging "active" <- newsreader85.eweka.nl
However, nothing seems to be happening with the 'merging' task.
Unfortunately, logging doesn't seem to work, so I can't see where things
go wrong now... How do I enable logging of nntpcached? I have the idea it
(tries to) log to syslog and/or auth.log, but since it's running non-root,
this won't happen. However, the logs don't seem to end up anywhere else
either. *sigh*
Regards, Patrick.