🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
16 messages
16 total messages Started by Jochen Gensch Mon, 29 Mar 2004 15:37
nnrpd bug with option -D?
#68848
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 15:37
13 lines
1179 bytes
Hi there!

I'm trying to get nnrpd started in daemon mode. So I tried:

---
/usr/local/news/bin/nnrpd -D -p 20000
/usr/local/news/bin/nnrpd: can't bind (Invalid argument)
---

But this worked fine before I updateted to the most recent version of Inn.

Jochen
Re: nnrpd bug with option -D?
#68847
Author: Russ Allbery
Date: Mon, 29 Mar 2004 17:37
17 lines
1527 bytes
Jochen Gensch <nomail@mail.org> writes:

> I'm trying to get nnrpd started in daemon mode. So I tried:

> ---
> /usr/local/news/bin/nnrpd -D -p 20000
> /usr/local/news/bin/nnrpd: can't bind (Invalid argument)
> ---

Were you running nnrpd inside a jail before?  Are you now?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68854
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 18:25
14 lines
1224 bytes
Russ Allbery schrieb:
> Jochen Gensch <nomail@mail.org> writes:

> Were you running nnrpd inside a jail before?  

Yes

Are you now?

Yes


Jochen
Re: nnrpd bug with option -D?
#68849
Author: Russ Allbery
Date: Mon, 29 Mar 2004 18:31
25 lines
1834 bytes
Jochen Gensch <nomail@mail.org> writes:
> Russ Allbery schrieb:

>> Were you running nnrpd inside a jail before?

> Yes

>> Are you now?

> Yes

So, I've not actually used jails, but my understanding is that they limit
the ability of processes inside the jails to bind to ports.  Are you sure
that's not what you're running into?

I have a hard time imagining how this could possibly be an INN bug, given
that all INN is doing is copying the port number into a struct and calling
bind, and bind is failing.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68859
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 18:35
6 lines
1221 bytes
I guess I know what you want, but other programs are able to bind, like 
apache, innd, etc. So why is nnrpd not able to bind to a particular 
port. Mmh...

Jochen
Re: nnrpd bug with option -D?
#68851
Author: Russ Allbery
Date: Mon, 29 Mar 2004 18:44
17 lines
1786 bytes
Jochen Gensch <nomail@mail.org> writes:

> I guess I know what you want, but other programs are able to bind, like
> apache, innd, etc. So why is nnrpd not able to bind to a particular
> port. Mmh...

I think that has something to do with your local configuration, since
nothing about INN's way of binding to ports has changed that I can recall.
Do you set bindaddress or the like in inn.conf for innd?  nnrpd doesn't
pay attention to that, so that could be one possible difference.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68852
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 18:49
13 lines
1640 bytes
Russ Allbery schrieb:

> So, I've not actually used jails, but my understanding is that they limit
> the ability of processes inside the jails to bind to ports.  Are you sure
> that's not what you're running into?

Yes, I am. I had a working Inn 2.4 on another system. But I recompiled 
it to the latest version. Since then nnrpd won't start any more.
That's all I'm rembering. But maybe I can install an older version of 
inn again, to check it. Give me a few minutes.

Jochen
Re: nnrpd bug with option -D?
#68853
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 20:18
22 lines
1973 bytes
Russ Allbery schrieb:

> I have a hard time imagining how this could possibly be an INN bug, given
> that all INN is doing is copying the port number into a struct and calling
> bind, and bind is failing.

OK. It really works with an older version of nnrpd!!!
I installad an older version of Inn on another server. Version number is 
"inn-2.3.20030106". After this, I copied its nnrpd version to my other 
system, which is running "inn-2.4.1_1". I replaced the newer version by 
the old one, started it by "nnrpd -D -p 563" et voil�.

Any ideas? Could this be an problem of FreeBSD? Maybe something went 
wrong during compilation, because the new version I use has been 
compiled by my sytem, the old one has been installed throuh an 
precompiled package... mmh.

This drives my crazy :-/


Jochen
Re: nnrpd bug with option -D?
#68855
Author: Russ Allbery
Date: Mon, 29 Mar 2004 20:24
19 lines
1974 bytes
Jochen Gensch <nomail@mail.org> writes:

> OK. It really works with an older version of nnrpd!!!  I installad an
> older version of Inn on another server. Version number is
> "inn-2.3.20030106". After this, I copied its nnrpd version to my other
> system, which is running "inn-2.4.1_1". I replaced the newer version by
> the old one, started it by "nnrpd -D -p 563" et voil�.

> Any ideas?

I've compared the old and the new source, and there are no functional
differences unless you built INN 2.4.1 with IPv6 support.  Did you?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68856
Author: Russ Allbery
Date: Mon, 29 Mar 2004 20:25
14 lines
1720 bytes
Russ Allbery <rra@stanford.edu> writes:

> I've compared the old and the new source, and there are no functional
> differences unless you built INN 2.4.1 with IPv6 support.  Did you?

Oh, and I assume you've already checked with netstat to make sure that
nothing else is listening on that port?

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68857
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 20:31
9 lines
1478 bytes
Russ Allbery schrieb:

> Oh, and I assume you've already checked with netstat to make sure that
> nothing else is listening on that port?

Yes. I also used the same ports for the old and new nnrpd.

Jochen
Re: nnrpd bug with option -D?
#68858
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 20:33
9 lines
1453 bytes
Russ Allbery schrieb:

> I've compared the old and the new source, and there are no functional
> differences unless you built INN 2.4.1 with IPv6 support.  Did you?

Yes, I did. I used the option "--enable-ipv6"

Jochen
Re: nnrpd bug with option -D?
#68860
Author: Russ Allbery
Date: Mon, 29 Mar 2004 21:05
20 lines
2182 bytes
Jochen Gensch <nomail@mail.org> writes:
> Russ Allbery schrieb:

>> I've compared the old and the new source, and there are no functional
>> differences unless you built INN 2.4.1 with IPv6 support.  Did you?

> Yes, I did. I used the option "--enable-ipv6"

My guess, then, is that nnrpd is attempting to bind to an IPv6 socket and
is unable to do so due to something related to either the local
configuration or how it's doing the bind.  That's going to be the
difference between your INN 2.3 nnrpd and your INN 2.4 one; the former
didn't have IPv6 support.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: nnrpd bug with option -D?
#68861
Author: Jochen Gensch
Date: Mon, 29 Mar 2004 21:17
12 lines
1741 bytes
Russ Allbery schrieb:

> My guess, then, is that nnrpd is attempting to bind to an IPv6 socket and
> is unable to do so due to something related to either the local
> configuration or how it's doing the bind.  That's going to be the
> difference between your INN 2.3 nnrpd and your INN 2.4 one; the former
> didn't have IPv6 support.

I will try and compile it without IPV6 and post the result here.

Jochen
Re: nnrpd bug with option -D?
#68867
Author: Jochen Gensch
Date: Tue, 30 Mar 2004 01:31
9 lines
1704 bytes
Works perfectly without ipv6. Even ssl works fine now.
Funny. Compiling with IPV6 (what can be considered exeperimental as far 
as I now) is the default behaviour of the FreeBSD port. I'll ask the 
maintainer to disable this. Experimental options shouldn't be default.

Thanks very very much! 3:30 am now, time for bed :-)

Jochen
Re: nnrpd bug with option -D?
#68868
Author: Russ Allbery
Date: Tue, 30 Mar 2004 01:35
19 lines
2283 bytes
Jochen Gensch <nomail@gmx.net> writes:

> Works perfectly without ipv6. Even ssl works fine now.  Funny. Compiling
> with IPV6 (what can be considered exeperimental as far as I now) is the
> default behaviour of the FreeBSD port. I'll ask the maintainer to
> disable this. Experimental options shouldn't be default.

IPv6 support in INN works pretty reliably and people use it regularly.
I'm not sure that it's really experimental (although it's true that it's
not enabled by default).  However, the interactions with the system,
particularly with regards to socket binding, can be a little odd, and it's
possible that we're missing some case for FreeBSD.

-- 
Russ Allbery (rra@stanford.edu)             <http://www.eyrie.org/~eagle/>

          Please post questions rather than mailing me directly.
     <http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
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