Thread View: news.software.nntp
5 messages
5 total messages
Started by Patrick Vervoorn
Mon, 04 Aug 2008 15:34
Status of NNTPCache?
Author: Patrick Vervoorn
Date: Mon, 04 Aug 2008 15:34
Date: Mon, 04 Aug 2008 15:34
16 lines
1580 bytes
1580 bytes
Hi there, 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.
Re: Status of NNTPCache?
Author: Christof Meerwald
Date: Mon, 04 Aug 2008 16:36
Date: Mon, 04 Aug 2008 16:36
16 lines
1816 bytes
1816 bytes
On 04 Aug 2008 15:34:01 GMT, Patrick Vervoorn wrote: > So, is NNTPCache still maintained? Or is there an alternative available? 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
Re: Status of NNTPCache?
Author: Patrick Vervoorn
Date: Mon, 04 Aug 2008 17:15
Date: Mon, 04 Aug 2008 17:15
26 lines
2316 bytes
2316 bytes
In article <slrng9ec09.4qo.NOSPAM-seeMySig@msgid.cmeerw.org>, Christof Meerwald <NOSPAM-seeMySig+uyr5+@usenet.cmeerw.org> wrote: >On 04 Aug 2008 15:34:01 GMT, Patrick Vervoorn wrote: >> So, is NNTPCache still maintained? Or is there an alternative available? > >Maybe NewsCache (http://www.linuxhacker.at/NewsCache - appears to be down at >the moment), but it's not that actively maintained either. 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.
Re: Status of NNTPCache?
Author: Patrick Vervoorn
Date: Tue, 05 Aug 2008 12:31
Date: Tue, 05 Aug 2008 12:31
41 lines
2913 bytes
2913 bytes
In article <48973931$0$49839$e4fe514c@news.xs4all.nl>,
Patrick Vervoorn <patrick.vervoorn@NOSPAM.perihelion.demon.nl> wrote:
[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:pass@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: pass@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.
Re: Status of NNTPCache?
Author: Patrick Vervoorn
Date: Tue, 05 Aug 2008 13:38
Date: Tue, 05 Aug 2008 13:38
41 lines
2919 bytes
2919 bytes
In article <4898483a$0$49959$e4fe514c@news.xs4all.nl>,
Patrick Vervoorn <patrick.vervoorn@NOSPAM.perihelion.demon.nl> wrote:
>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.
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads